/external/chromium_org/ui/gfx/geometry/ |
H A D | cubic_bezier_unittest.cc | 16 double epsilon = 0.00015; local 18 EXPECT_NEAR(function.Solve(0), 0, epsilon); 19 EXPECT_NEAR(function.Solve(0.05), 0.01136, epsilon); 20 EXPECT_NEAR(function.Solve(0.1), 0.03978, epsilon); 21 EXPECT_NEAR(function.Solve(0.15), 0.079780, epsilon); 22 EXPECT_NEAR(function.Solve(0.2), 0.12803, epsilon); 23 EXPECT_NEAR(function.Solve(0.25), 0.18235, epsilon); 24 EXPECT_NEAR(function.Solve(0.3), 0.24115, epsilon); 25 EXPECT_NEAR(function.Solve(0.35), 0.30323, epsilon); 26 EXPECT_NEAR(function.Solve(0.4), 0.36761, epsilon); 44 double epsilon = 0.00015; local 70 double epsilon = 0.00015; local [all...] |
H A D | 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;
|
/external/libcxx/test/language.support/support.limits/limits/numeric.limits.members/ |
H A D | 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/stlport/test/unit/ |
H A D | math_aux.h | 21 return (ref - val) <= __STD numeric_limits<_Tp>::epsilon(); 24 return (val - ref) <= __STD numeric_limits<_Tp>::epsilon();
|
/external/chromium_org/third_party/skia/src/pathops/ |
H A D | SkPathOpsTypes.cpp | 10 static bool arguments_denormalized(float a, float b, int epsilon) { argument 11 float denormalizedCheck = FLT_EPSILON * epsilon / 2; 17 static bool equal_ulps(float a, float b, int epsilon, int depsilon) { argument 27 return aBits < bBits + epsilon && bBits < aBits + epsilon; 30 static bool d_equal_ulps(float a, float b, int epsilon) { argument 37 return aBits < bBits + epsilon && bBits < aBits + epsilon; 40 static bool not_equal_ulps(float a, float b, int epsilon) { argument 44 if (arguments_denormalized(a, b, epsilon)) { 53 d_not_equal_ulps(float a, float b, int epsilon) argument 63 less_ulps(float a, float b, int epsilon) argument 76 less_or_equal_ulps(float a, float b, int epsilon) argument [all...] |
/external/skia/src/pathops/ |
H A D | SkPathOpsTypes.cpp | 10 static bool arguments_denormalized(float a, float b, int epsilon) { argument 11 float denormalizedCheck = FLT_EPSILON * epsilon / 2; 17 static bool equal_ulps(float a, float b, int epsilon, int depsilon) { argument 27 return aBits < bBits + epsilon && bBits < aBits + epsilon; 30 static bool d_equal_ulps(float a, float b, int epsilon) { argument 37 return aBits < bBits + epsilon && bBits < aBits + epsilon; 40 static bool not_equal_ulps(float a, float b, int epsilon) { argument 44 if (arguments_denormalized(a, b, epsilon)) { 53 d_not_equal_ulps(float a, float b, int epsilon) argument 63 less_ulps(float a, float b, int epsilon) argument 76 less_or_equal_ulps(float a, float b, int epsilon) argument [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/geometry/ |
H A D | FloatSize.cpp | 53 return fabs(m_width) < numeric_limits<float>::epsilon() && fabs(m_height) < numeric_limits<float>::epsilon();
|
/external/chromium_org/v8/test/mjsunit/ |
H A D | 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/third_party/WebKit/Source/platform/animation/ |
H A D | UnitBezier.h | 95 double solveCurveX(double x, double epsilon) argument 110 if (fabs (x2) < epsilon) 125 if (fabs(x2 - x) < epsilon) 138 // Evaluates y at the given x. The epsilon parameter provides a hint as to the required 140 double solve(double x, double epsilon) argument 146 return sampleCurveY(solveCurveX(x, epsilon));
|
/external/replicaisland/src/com/replica/replicaisland/ |
H A D | Utils.java | 27 public final static boolean close(float a, float b, float epsilon) { argument 28 return Math.abs(a - b) < epsilon;
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/line/ |
H A D | LineWidth.h | 49 bool fitsOnLine() const { return currentWidth() <= (m_availableWidth + LayoutUnit::epsilon()); } 50 bool fitsOnLine(float extra) const { return currentWidth() + extra <= (m_availableWidth + LayoutUnit::epsilon()); } 53 return currentWidth() - (whitespaceTreatment == ExcludeWhitespace ? trailingWhitespaceWidth() : 0) + extra <= (m_availableWidth + LayoutUnit::epsilon());
|
/external/eigen/test/eigen2/ |
H A D | 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/chromium_org/third_party/skia/experimental/Intersection/ |
H A D | CubicIntersection_TestData.cpp | 13 {{1 + PointEpsilon - std::numeric_limits<double>::epsilon(), 1}, 14 {1, 1 + PointEpsilon - std::numeric_limits<double>::epsilon()}, {1, 1}, {1, 1}}, 15 {{1 + PointEpsilon/2 - std::numeric_limits<double>::epsilon(), 1}, 16 {1 - (PointEpsilon/2 - std::numeric_limits<double>::epsilon()), 1}, {1, 1}, {1, 1}} 22 {{1 + PointEpsilon + std::numeric_limits<double>::epsilon(), 1}, {1, 1 + PointEpsilon}, {1, 1}, {1, 1}}, 23 {{1 + PointEpsilon/2 + std::numeric_limits<double>::epsilon(), 1}, {1 - PointEpsilon/2, 1}, {1, 1}, {1, 1}} 205 {{1, 1}, {3, 3}, {2, 2}, {4, 4+F}}, // INVESTIGATE: why the epsilon is bigger 206 {{1, 1+F}, {2, 2}, {4, 4}, {3, 3}}, // INVESTIGATE: why the epsilon is bigger 255 {{1, 1}, {4, 4}, {3, 3}, {2+G, 2}}, // INVESTIGATE: why the epsilon is smaller 259 {{2+G, 2}, {3, 3}, {4, 4}, {1, 1}}, // INVESTIGATE: why the epsilon i [all...] |
/external/eigen/Eigen/src/Core/ |
H A D | 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(); } 144 static inline RealScalar epsilon() { return NumTraits<RealScalar>::epsilon(); }
|
/external/skia/experimental/Intersection/ |
H A D | CubicIntersection_TestData.cpp | 13 {{1 + PointEpsilon - std::numeric_limits<double>::epsilon(), 1}, 14 {1, 1 + PointEpsilon - std::numeric_limits<double>::epsilon()}, {1, 1}, {1, 1}}, 15 {{1 + PointEpsilon/2 - std::numeric_limits<double>::epsilon(), 1}, 16 {1 - (PointEpsilon/2 - std::numeric_limits<double>::epsilon()), 1}, {1, 1}, {1, 1}} 22 {{1 + PointEpsilon + std::numeric_limits<double>::epsilon(), 1}, {1, 1 + PointEpsilon}, {1, 1}, {1, 1}}, 23 {{1 + PointEpsilon/2 + std::numeric_limits<double>::epsilon(), 1}, {1 - PointEpsilon/2, 1}, {1, 1}, {1, 1}} 205 {{1, 1}, {3, 3}, {2, 2}, {4, 4+F}}, // INVESTIGATE: why the epsilon is bigger 206 {{1, 1+F}, {2, 2}, {4, 4}, {3, 3}}, // INVESTIGATE: why the epsilon is bigger 255 {{1, 1}, {4, 4}, {3, 3}, {2+G, 2}}, // INVESTIGATE: why the epsilon is smaller 259 {{2+G, 2}, {3, 3}, {4, 4}, {1, 1}}, // INVESTIGATE: why the epsilon i [all...] |
/external/eigen/test/ |
H A D | prec_inverse_4x4.cpp | 22 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/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
H A D | ExternalVideoSurfaceContainerTest.java | 42 final float epsilon = 0.000001f; 46 if (Math.abs(rect.width() - widthCss) < epsilon 47 && Math.abs(rect.height() - heightCss) < epsilon) {
|
/external/eigen/unsupported/Eigen/src/NonLinearOptimization/ |
H A D | chkder.h | 25 const Scalar eps = sqrt(NumTraits<Scalar>::epsilon()); 26 const Scalar epsf = chkder_factor * NumTraits<Scalar>::epsilon(); 56 if (temp > NumTraits<Scalar>::epsilon() && temp < eps)
|
/external/libvorbis/lib/ |
H A D | 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/ |
H A D | frame_counter.cc | 31 if (fabs(elapsed_time) > std::numeric_limits<double>::epsilon()) {
|
/external/deqp/framework/delibs/decpp/ |
H A D | deRandom.cpp | 91 const float epsilon = 0.01f; local 94 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat()) < epsilon); 101 const float epsilon = 0.01f; 104 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat(-542.2f, 1248.7f)) < epsilon);
|
/external/chromium_org/media/audio/ |
H A D | simple_sources_unittest.cc | 37 std::numeric_limits<float>::epsilon()); 43 std::numeric_limits<float>::epsilon());
|
/external/chromium_org/third_party/skia/tests/ |
H A D | PathOpsAngleTest.cpp | 55 int epsilon = abs(p1Bits - p2Bits); local 56 if (maxEpsilon < epsilon) { 58 " epsilon=%d\n", 59 line[1].fX, line[1].fY, t, test.fX, test.fY, epsilon); 60 maxEpsilon = epsilon; 108 int epsilon = abs(p1Bits - p2Bits); local 109 if (maxEpsilon < epsilon) { 111 " pt={%1.7g, %1.7g} epsilon=%d\n", 112 line[1].fX, line[1].fY, t, t2, t3, moveT, last.fX, last.fY, epsilon); 113 maxEpsilon = epsilon; [all...] |
/external/skia/tests/ |
H A D | PathOpsAngleTest.cpp | 55 int epsilon = abs(p1Bits - p2Bits); local 56 if (maxEpsilon < epsilon) { 58 " epsilon=%d\n", 59 line[1].fX, line[1].fY, t, test.fX, test.fY, epsilon); 60 maxEpsilon = epsilon; 108 int epsilon = abs(p1Bits - p2Bits); local 109 if (maxEpsilon < epsilon) { 111 " pt={%1.7g, %1.7g} epsilon=%d\n", 112 line[1].fX, line[1].fY, t, t2, t3, moveT, last.fX, last.fY, epsilon); 113 maxEpsilon = epsilon; [all...] |
/external/chromium_org/ui/gfx/ |
H A D | skbitmap_operations.cc | 268 const double epsilon = 0.0005; member in namespace:__anon16143::HSLShift 287 DCHECK(hsl_shift.s < 0 || fabs(hsl_shift.s - 0.5) < HSLShift::epsilon); 288 DCHECK(hsl_shift.l < 0 || fabs(hsl_shift.l - 0.5) < HSLShift::epsilon); 300 DCHECK(hsl_shift.s < 0 || fabs(hsl_shift.s - 0.5) < HSLShift::epsilon); 301 DCHECK(hsl_shift.l <= 0.5 - HSLShift::epsilon && hsl_shift.l >= 0); 324 DCHECK(hsl_shift.s < 0 || fabs(hsl_shift.s - 0.5) < HSLShift::epsilon); 325 DCHECK(hsl_shift.l >= 0.5 + HSLShift::epsilon && hsl_shift.l <= 1); 369 DCHECK(hsl_shift.s >= 0 && hsl_shift.s <= 0.5 - HSLShift::epsilon); 370 DCHECK(hsl_shift.l < 0 || fabs(hsl_shift.l - 0.5) < HSLShift::epsilon); 406 DCHECK(hsl_shift.s >= 0 && hsl_shift.s <= 0.5 - HSLShift::epsilon); [all...] |