/libcore/luni/src/main/java/java/text/ |
ChoiceFormat.java | 42 * double[] limits = {1, 2, 3, 4, 5, 6, 7}; 45 * double[] limits2 = {0, 1, ChoiceFormat.nextDouble(1)}; 50 * ChoiceFormat.nextDouble(double) allows to get the double following the one 75 private double[] choiceLimits; 80 * Constructs a new {@code ChoiceFormat} with the specified double values 82 * {@link #format(double, StringBuffer, FieldPosition) format} with a double 97 public ChoiceFormat(double[] limits, String[] formats) { 124 double[] limits = new double[5] [all...] |
/external/stlport/src/ |
num_put_float.cpp | 130 static inline bool _Stl_is_nan_or_inf(double x) 136 static inline bool _Stl_is_neg_nan(double x) { return isnan(x) && ( copysign(1., x) < 0 ); } 137 static inline bool _Stl_is_inf(double x) { return isinf(x); } 138 // inline bool _Stl_is_neg_inf(double x) { return isinf(x) < 0; } 139 static inline bool _Stl_is_neg_inf(double x) { return isinf(x) && x < 0; } 143 static inline bool _Stl_is_nan_or_inf(double x) { return IsNANorINF(x); } 144 static inline bool _Stl_is_inf(double x) { return IsNANorINF(x) && IsINF(x); } 145 static inline bool _Stl_is_neg_inf(double x) { return (IsINF(x)) && (x < 0.0); } 146 static inline bool _Stl_is_neg_nan(double x) { return IsNegNAN(x); } 148 static inline bool _Stl_is_nan_or_inf(double x) { return !_finite(x); [all...] |
/ndk/sources/cxx-stl/stlport/src/ |
num_put_float.cpp | 130 static inline bool _Stl_is_nan_or_inf(double x) 136 static inline bool _Stl_is_neg_nan(double x) { return isnan(x) && ( copysign(1., x) < 0 ); } 137 static inline bool _Stl_is_inf(double x) { return isinf(x); } 138 // inline bool _Stl_is_neg_inf(double x) { return isinf(x) < 0; } 139 static inline bool _Stl_is_neg_inf(double x) { return isinf(x) && x < 0; } 143 static inline bool _Stl_is_nan_or_inf(double x) { return IsNANorINF(x); } 144 static inline bool _Stl_is_inf(double x) { return IsNANorINF(x) && IsINF(x); } 145 static inline bool _Stl_is_neg_inf(double x) { return (IsINF(x)) && (x < 0.0); } 146 static inline bool _Stl_is_neg_nan(double x) { return IsNegNAN(x); } 148 static inline bool _Stl_is_nan_or_inf(double x) { return !_finite(x); [all...] |
/libcore/luni/src/main/java/java/lang/ |
StrictMath.java | 39 * The double value closest to e, the base of the natural logarithm. 41 public static final double E = Math.E; 44 * The double value closest to pi, the ratio of a circle's circumference to 47 public static final double PI = Math.PI; 70 public static double abs(double d) { 125 * Returns the closest double approximation of the arc cosine of the 139 public static native double acos(double d); 142 * Returns the closest double approximation of the arc sine of the argumen [all...] |
/external/valgrind/main/none/tests/ppc32/ |
power5+_round.c | 44 double inf, neg0, nan; 46 double d; 59 double set[] = { inf, 1.5, 0, neg0, -1.5, -inf, nan }; 84 double set[] = { inf, 1.9, 1.1, 0, neg0, -1.1, -1.9, -inf, nan }; 85 double frin[] = { inf, 2.0, 1.0, 0, neg0, -1.0, -2.0, -inf, nan }; 86 double friz[] = { inf, 1.0, 1.0, 0, neg0, -1.0, -1.0, -inf, nan }; 87 double frip[] = { inf, 2.0, 2.0, 0, neg0, -1.0, -1.0, -inf, nan }; 88 double frim[] = { inf, 1.0, 1.0, 0, neg0, -2.0, -2.0, -inf, nan }; 92 double set2[] = { 0.9, 0.1, -0.1, -0.9, 1e-40, -1e-40 }; 93 double frin2[] = { 1.0, 0.0, -0.0, -1.0, 0.0, -0.0 } [all...] |
/external/valgrind/main/memcheck/tests/ |
vcpu_fnfns.c | 11 double d; 15 const double tinyD = 0.0000000001; 16 const double tinyF = 0.0001; 27 printf("floorF(%+20.4e) = %+20.4e\n", (double)f, (double)floorf(f)); 39 printf(" ceilF(%+20.4e) = %+20.4e\n", (double)f, (double)ceilf(f)); 51 printf(" sinF(%+20.4e) = %+20.4e\n", (double)f, (double)sinf(f)); 63 printf(" cosF(%+20.4e) = %+20.4e\n", (double)f, (double)cosf(f)) [all...] |
/external/webkit/Source/WebCore/platform/graphics/filters/ |
FEColorMatrix.cpp | 76 inline void matrix(double& red, double& green, double& blue, double& alpha, const Vector<float>& values) 78 double r = values[0] * red + values[1] * green + values[2] * blue + values[3] * alpha + values[4] * 255; 79 double g = values[5] * red + values[6] * green + values[7] * blue + values[8] * alpha + values[9] * 255; 80 double b = values[10] * red + values[11] * green + values[12] * blue + values[13] * alpha + values[14] * 255; 81 double a = values[15] * red + values[16] * green + values[17] * blue + values[18] * alpha + values[19] * 255; 89 inline void saturate(double& red, double& green, double& blue, const float& s [all...] |
/external/opencv/cvaux/src/ |
cvvecfacetracking.cpp | 61 const double pi = 3.1415926535; 72 inline double CalculateTransformationLMS3_0( CvPoint* pTemplPoints, CvPoint* pSrcPoints); 73 inline double CalculateTransformationLMS3( CvPoint* pTemplPoints, 75 double* pdbAverageScale, 76 double* pdbAverageRotate, 77 double* pdbAverageShiftX, 78 double* pdbAverageShiftY ); 111 double dbRotateDelta; 112 double dbRotateAngle; 461 cvTrackFace(CvFaceTracker* pFaceTracker, IplImage* imgGray, CvRect* pRects, int nRects, CvPoint* ptRotate, double* dbAngleRotate [all...] |
_cvfacedetection.h | 55 FaceFeature(double dWeight,void * lpContour,bool bIsFeature); 60 inline double GetWeight(); 62 inline void SetWeight(double dWeight); 65 double m_dWeight; 85 inline double FaceFeature::GetWeight() 95 inline void FaceFeature::SetWeight(double dWeight) 98 }//inline void FaceFeature::SetWeight(double * dWeight) 136 inline MouthFaceTemplate(long lNumber,CvRect rect,double dEyeWidth,double dEyeHeight,double dDistanceBetweenEye,double dDistanceEyeAboveMouth) [all...] |
/bionic/libm/bsdsrc/ |
mathimpl.h | 47 * IEEE double variable to zero. It must be expression-like for syntactic 55 _b_trunc(volatile double *_dp) 63 struct Double { 64 double a; 65 double b; 71 double __exp__D(double, double); 72 struct Double __log__D(double); [all...] |
/external/clang/test/CodeGen/ |
x86_32-arguments-linux.c | 7 // CHECK: <1 x double> %a4, %struct.s56_2* byval align 4, 9 // CHECK: <2 x double> %a8, %struct.s56_4* byval align 4, 11 // CHECK: <4 x double> %a12, %struct.s56_6* byval align 4) 16 // CHECK: <1 x double> %{{[^ ]*}}, %struct.s56_2* byval align 4 %{{[^ ]*}}, 18 // CHECK: <2 x double> %{{[^ ]*}}, %struct.s56_4* byval align 4 %{{[^ ]*}}, 20 // CHECK: <4 x double> %{{[^ ]*}}, %struct.s56_6* byval align 4 %{{[^ ]*}}) 23 // <rdar://problem/7964854> [i386] clang misaligns long double in structures 27 typedef double __attribute__((vector_size (8))) t56_v1d; 29 typedef double __attribute__((vector_size (16))) t56_v2d; 31 typedef double __attribute__((vector_size (32))) t56_v4d [all...] |
/external/javassist/src/main/javassist/bytecode/annotation/ |
DoubleMemberValue.java | 24 * Double floating-point number constant value. 34 * Constructs a double constant value. The initial value is specified 45 * Constructs a double constant value. 49 public DoubleMemberValue(double d, ConstPool cp) { 55 * Constructs a double constant value. The initial value is 0.0. 63 return new Double(getValue()); 67 return double.class; 73 public double getValue() { 80 public void setValue(double newValue) { 88 return Double.toString(getValue()) [all...] |
/external/javassist/src/main/javassist/compiler/ast/ |
DoubleConst.java | 22 * Double constant. 25 protected double value; 28 public DoubleConst(double v, int tokenId) { value = v; type = tokenId; } 30 public double get() { return value; } 32 public void set(double v) { value = v; } 38 public String toString() { return Double.toString(value); } 65 return compute(op, this.value, (double)right.value, this.type); 68 private static DoubleConst compute(int op, double value1, double value2, 71 double newValue [all...] |
/external/llvm/test/CodeGen/X86/ |
2008-08-06-RewriterBug.ll | 6 define void @foo(double* noalias, double* noalias) { 14 load double** getelementptr (double** bitcast ([400 x i64]* @data to double**), i64 180), align 8 ; <double*>:8 [#uses=1] 15 bitcast double* %8 to double* ; <double*>:9 [#uses=1] 16 ptrtoint double* %9 to i64 ; <i64>:10 [#uses=1 [all...] |
avx-cast.ll | 13 define <4 x double> @castB(<2 x double> %m) nounwind uwtable readnone ssp { 15 %shuffle.i = shufflevector <2 x double> %m, <2 x double> zeroinitializer, <4 x i32> <i32 0, i32 1, i32 2, i32 2> 16 ret <4 x double> %shuffle.i 42 define <2 x double> @castF(<4 x double> %m) nounwind uwtable readnone ssp { 44 %shuffle.i = shufflevector <4 x double> %m, <4 x double> %m, <2 x i32> <i32 0, i32 1> 45 ret <2 x double> %shuffle. [all...] |
avx-arith.ll | 4 define <4 x double> @addpd256(<4 x double> %y, <4 x double> %x) nounwind uwtable readnone ssp { 6 %add.i = fadd <4 x double> %x, %y 7 ret <4 x double> %add.i 11 define <4 x double> @addpd256fold(<4 x double> %y) nounwind uwtable readnone ssp { 13 %add.i = fadd <4 x double> %y, <double 4.500000e+00, double 3.400000e+00, double 2.300000e+00, double 1.200000e+00 [all...] |
movmsk.ll | 6 %0 = type { double } 9 define i32 @double_signbit(double %d1) nounwind uwtable readnone ssp { 11 %__x.addr.i = alloca double, align 8 13 %0 = bitcast double* %__x.addr.i to i8* 15 store double %d1, double* %__x.addr.i, align 8 17 store double %d1, double* %__f.i, align 8 18 %tmp = bitcast double %d1 to i64 27 define i32 @double_add_signbit(double %d1, double %d2) nounwind uwtable readnone ssp [all...] |
/frameworks/base/core/java/android/gesture/ |
InstanceLearner.java | 31 double score1 = object1.score; 32 double score2 = object2.score; 48 TreeMap<String, Double> label2score = new TreeMap<String, Double>(); 54 double distance; 60 double weight; 62 weight = Double.MAX_VALUE; 66 Double score = label2score.get(sample.label); 72 // double sum = 0; 74 double score = label2score.get(name) [all...] |
/libcore/json/src/main/java/org/json/ |
JSON.java | 23 static double checkDouble(double d) throws JSONException { 24 if (Double.isInfinite(d) || Double.isNaN(d)) { 44 static Double toDouble(Object value) { 45 if (value instanceof Double) { 46 return (Double) value; 51 return Double.valueOf((String) value); 65 return (int) Double.parseDouble((String) value); 79 return (long) Double.parseDouble((String) value) [all...] |
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
MosaicTypes.h | 59 double lft, rgt, top, bot; 71 double trs[3][3]; 136 double theta; 137 double x; 138 double y; 139 double width; 140 double radius; 141 double direction; 142 double correction; 150 double roundoffOverlap;// 1. [all...] |
/system/extras/tests/bionic/libc/common/ |
test_drand48.c | 4 double drand48(void); 9 double_eq(double a, double b) 11 /* Compare two double values, and return 1 if they are "close" enough */ 12 double diff = a -b; 43 double _val = (value); \ 44 double _expected = (expected); \ 59 double d = -87.65432e45; 61 // Verify display of hard-coded float and double values. 66 printf(" f: %g\n", (double) f) [all...] |
/frameworks/compile/libbcc/tests/data/src/ |
flops.c | 11 printf("double op double:\n"); 23 printf("double op float:\n"); 29 printf("double op int:\n"); 35 printf("int op double:\n"); 42 void comparisonTestdd(double a, double b) { 48 printf("double op double:\n"); 55 void comparisonTestdf(double a, float b) [all...] |
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
db_rob_image_homography.cpp | 36 inline double db_RobImageHomography_Cost(double H[9],int point_count,double *x_i,double *xp_i,double one_over_scale2) 39 double back,acc,*x_i_temp,*xp_i_temp; 74 inline double db_RobImageHomography_Statistics(double H[9],int point_count,double *x_i,double *xp_i,double one_over_scale2,db_Statistics *stat,double thresh=DB_OUTLIER_THRESHOLD [all...] |
/cts/tools/vm-tests/src/dot/junit/opcodes/div_double/ |
Test_div_double.java | 61 * @title Types of arguments - long, double. Dalvik doens't distinguish 64-bits types internally, 62 * so this division of long and double makes no sense but shall not crash the VM. 73 * @title Arguments = Double.POSITIVE_INFINITY, 74 * Double.NEGATIVE_INFINITY 78 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 79 Double.NEGATIVE_INFINITY)); 83 * @title Arguments = Double.POSITIVE_INFINITY, -2.7d 87 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY [all...] |
/cts/tools/vm-tests/src/dot/junit/opcodes/div_double_2addr/ |
Test_div_double_2addr.java | 61 * @title Types of arguments - long, double. Dalvik doens't distinguish 64-bits types internally, 62 * so this division of long and double makes no sense but shall not crash the VM. 73 * @title Arguments = Double.POSITIVE_INFINITY, 74 * Double.NEGATIVE_INFINITY 78 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 79 Double.NEGATIVE_INFINITY)); 83 * @title Arguments = Double.POSITIVE_INFINITY, -2.7d 87 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY [all...] |