/external/chromium_org/cc/animation/ |
timing_function_unittest.cc | 16 double epsilon = 0.00015; local 18 EXPECT_NEAR(function->GetValue(0), 0, epsilon); 19 EXPECT_NEAR(function->GetValue(0.05), 0.01136, epsilon); 20 EXPECT_NEAR(function->GetValue(0.1), 0.03978, epsilon); 21 EXPECT_NEAR(function->GetValue(0.15), 0.079780, epsilon); 22 EXPECT_NEAR(function->GetValue(0.2), 0.12803, epsilon); 23 EXPECT_NEAR(function->GetValue(0.25), 0.18235, epsilon); 24 EXPECT_NEAR(function->GetValue(0.3), 0.24115, epsilon); 25 EXPECT_NEAR(function->GetValue(0.35), 0.30323, epsilon); 26 EXPECT_NEAR(function->GetValue(0.4), 0.36761, epsilon); 45 double epsilon = 0.00015; local 71 double epsilon = 0.00015; local [all...] |
/external/stlport/test/unit/ |
math_aux.h | 21 return (ref - val) <= __STD numeric_limits<_Tp>::epsilon(); 24 return (val - ref) <= __STD numeric_limits<_Tp>::epsilon();
|
/ndk/tests/device/test-gnustl-full/unit/ |
math_aux.h | 21 return (ref - val) <= __STD numeric_limits<_Tp>::epsilon(); 24 return (val - ref) <= __STD numeric_limits<_Tp>::epsilon();
|
/ndk/tests/device/test-stlport/unit/ |
math_aux.h | 21 return (ref - val) <= __STD numeric_limits<_Tp>::epsilon(); 24 return (val - ref) <= __STD numeric_limits<_Tp>::epsilon();
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.limits/limits/numeric.limits.members/ |
epsilon.pass.cpp | 12 // epsilon() 22 assert(std::numeric_limits<T>::epsilon() == expected); 23 assert(std::numeric_limits<const T>::epsilon() == expected); 24 assert(std::numeric_limits<volatile T>::epsilon() == expected); 25 assert(std::numeric_limits<const volatile T>::epsilon() == expected);
|
/external/chromium_org/third_party/skia/src/pathops/ |
SkPathOpsTypes.cpp | 10 static bool arguments_denormalized(float a, float b, int epsilon) { 11 float denormalizedCheck = FLT_EPSILON * epsilon / 2; 17 static bool equal_ulps(float a, float b, int epsilon, int depsilon) { 27 return aBits < bBits + epsilon && bBits < aBits + epsilon; 30 static bool d_equal_ulps(float a, float b, int epsilon) { 37 return aBits < bBits + epsilon && bBits < aBits + epsilon; 40 static bool not_equal_ulps(float a, float b, int epsilon) { 44 if (arguments_denormalized(a, b, epsilon)) { [all...] |
/external/skia/src/pathops/ |
SkPathOpsTypes.cpp | 10 static bool arguments_denormalized(float a, float b, int epsilon) { 11 float denormalizedCheck = FLT_EPSILON * epsilon / 2; 17 static bool equal_ulps(float a, float b, int epsilon, int depsilon) { 27 return aBits < bBits + epsilon && bBits < aBits + epsilon; 30 static bool d_equal_ulps(float a, float b, int epsilon) { 37 return aBits < bBits + epsilon && bBits < aBits + epsilon; 40 static bool not_equal_ulps(float a, float b, int epsilon) { 44 if (arguments_denormalized(a, b, epsilon)) { [all...] |
/art/test/053-wait-some/src/ |
Main.java | 60 long epsilon = delay / 10; local 61 if (epsilon > 50) { 62 epsilon = 50; 65 long min = delay - epsilon; 66 long max = delay + epsilon;
|
/dalvik/tests/053-wait-some/src/ |
Main.java | 46 long epsilon = delay / 10; local 47 if (epsilon > 50) { 48 epsilon = 50; 51 long min = delay - epsilon; 52 long max = delay + epsilon;
|
/external/chromium_org/third_party/WebKit/Source/platform/animation/ |
UnitBezier.h | 65 double solveCurveX(double x, double epsilon) 80 if (fabs (x2) < epsilon) 95 if (fabs(x2 - x) < epsilon) 108 // Evaluates y at the given x. The epsilon parameter provides a hint as to the required 110 double solve(double x, double epsilon) 116 return sampleCurveY(solveCurveX(x, epsilon));
|
/external/chromium_org/third_party/WebKit/Source/platform/geometry/ |
FloatSize.cpp | 55 return fabs(m_width) < numeric_limits<float>::epsilon() && fabs(m_height) < numeric_limits<float>::epsilon();
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
LineWidth.h | 51 bool fitsOnLine() const { return currentWidth() <= (m_availableWidth + LayoutUnit::epsilon()); } 52 bool fitsOnLine(float extra) const { return currentWidth() + extra <= (m_availableWidth + LayoutUnit::epsilon()); }
|
/external/replicaisland/src/com/replica/replicaisland/ |
Utils.java | 21 private static final float EPSILON = 0.0001f; 24 return close(a, b, EPSILON); 27 public final static boolean close(float a, float b, float epsilon) { 28 return Math.abs(a - b) < epsilon;
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
SoftLandingInterpolator.java | 42 final float epsilon = Math.min(mI / 2f, (1f - mI) / 2f); local 43 bottom = mI - epsilon; 44 top = mI + epsilon;
|
/external/eigen/test/eigen2/ |
eigen2_prec_inverse_4x4.cpp | 24 template<typename T> inline typename NumTraits<T>::Real epsilon() function 26 return std::numeric_limits<typename NumTraits<T>::Real>::epsilon(); 42 double error = double( (m*inv-MatrixType::Identity()).norm() / epsilon<Scalar>() ); 60 } while(absdet < 10 * epsilon<Scalar>()); 62 double error = double( (m*inv-MatrixType::Identity()).norm() * absdet / epsilon<Scalar>() );
|
/external/eigen/Eigen/src/Geometry/ |
EulerAngles.h | 40 const Scalar epsilon = NumTraits<Scalar>::dummy_precision(); local 51 if (s > epsilon) 66 if (c > epsilon)
|
/external/eigen/test/ |
prec_inverse_4x4.cpp | 23 double error = double( (m*inv-MatrixType::Identity()).norm() / NumTraits<Scalar>::epsilon() ); 42 } while(absdet < NumTraits<Scalar>::epsilon()); 44 double error = double( (m*inv-MatrixType::Identity()).norm() * absdet / NumTraits<Scalar>::epsilon() );
|
/external/eigen/unsupported/Eigen/src/NonLinearOptimization/ |
chkder.h | 21 const Scalar eps = sqrt(NumTraits<Scalar>::epsilon()); 22 const Scalar epsf = chkder_factor * NumTraits<Scalar>::epsilon(); 52 if (temp > NumTraits<Scalar>::epsilon() && temp < eps)
|
/external/eigen/Eigen/src/Core/ |
NumTraits.h | 45 * \li An epsilon() function which, unlike std::numeric_limits::epsilon(), returns a \a Real instead of a \a T. 46 * \li A dummy_precision() function returning a weak epsilon value. It is mainly used as a default 71 static inline Real epsilon() { return std::numeric_limits<T>::epsilon(); } 120 static inline Real epsilon() { return NumTraits<Real>::epsilon(); }
|
/external/libvorbis/lib/ |
lpc.c | 65 double epsilon; local 80 epsilon=1e-9*aut[0]+1e-10; 85 if(error<epsilon){
|
/external/chromium_org/native_client_sdk/src/examples/demo/flock/ |
frame_counter.cc | 31 if (fabs(elapsed_time) > std::numeric_limits<double>::epsilon()) {
|
/external/chromium_org/media/audio/ |
simple_sources_unittest.cc | 37 std::numeric_limits<float>::epsilon()); 43 std::numeric_limits<float>::epsilon());
|
/external/chromium_org/v8/test/mjsunit/ |
sin-cos.js | 118 var epsilon = 0.0000001; variable 121 test_inputs.push(0 + epsilon); 122 test_inputs.push(0 - epsilon); 124 test_inputs.push(Math.PI/2 + epsilon); 125 test_inputs.push(Math.PI/2 - epsilon); 127 test_inputs.push(Math.PI + epsilon); 128 test_inputs.push(Math.PI - epsilon); 130 test_inputs.push(- 2*Math.PI + epsilon); 131 test_inputs.push(- 2*Math.PI - epsilon); 165 function assertError(expected, x, epsilon) { [all...] |
/external/chromium_org/ui/gfx/ |
matrix3_f.cc | 104 if (std::numeric_limits<float>::epsilon() > std::abs(determinant)) 126 const float epsilon = std::numeric_limits<float>::epsilon(); local 127 if (std::abs(data_[M01] - data_[M10]) > epsilon || 128 std::abs(data_[M02] - data_[M20]) > epsilon || 129 std::abs(data_[M12] - data_[M21]) > epsilon) { 140 bool diagonal = std::abs(p) < epsilon;
|
skbitmap_operations.cc | 274 // Epsilon used to judge when shift values are close enough to various critical 277 const double epsilon = 0.0005; member in namespace:__anon17661::HSLShift 296 DCHECK(hsl_shift.s < 0 || fabs(hsl_shift.s - 0.5) < HSLShift::epsilon); 297 DCHECK(hsl_shift.l < 0 || fabs(hsl_shift.l - 0.5) < HSLShift::epsilon); 309 DCHECK(hsl_shift.s < 0 || fabs(hsl_shift.s - 0.5) < HSLShift::epsilon); 310 DCHECK(hsl_shift.l <= 0.5 - HSLShift::epsilon && hsl_shift.l >= 0); 333 DCHECK(hsl_shift.s < 0 || fabs(hsl_shift.s - 0.5) < HSLShift::epsilon); 334 DCHECK(hsl_shift.l >= 0.5 + HSLShift::epsilon && hsl_shift.l <= 1); 378 DCHECK(hsl_shift.s >= 0 && hsl_shift.s <= 0.5 - HSLShift::epsilon); 379 DCHECK(hsl_shift.l < 0 || fabs(hsl_shift.l - 0.5) < HSLShift::epsilon); [all...] |