/external/chromium_org/ui/gfx/geometry/ |
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 142 double epsilon = 0.00015; local [all...] |
quad_unittest.cc | 98 float epsilon = std::numeric_limits<float>::epsilon(); local 99 PointF a2(1 + epsilon / 2, 1 + epsilon / 2); 100 PointF b2(2 + epsilon / 2, 1 + epsilon / 2); 101 PointF c2(2 + epsilon / 2, 2 + epsilon / 2); 102 PointF d2(1 + epsilon / 2, 2 + epsilon / 2) [all...] |
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/deqp/framework/delibs/decpp/ |
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/third_party/mesa/src/src/mesa/main/ |
drawpix.c | 326 const GLfloat epsilon = 0.0001F; local 327 GLint x = IFLOOR(ctx->Current.RasterPos[0] + epsilon - xorig); 328 GLint y = IFLOOR(ctx->Current.RasterPos[1] + epsilon - yorig);
|
/external/mesa3d/src/mesa/main/ |
drawpix.c | 326 const GLfloat epsilon = 0.0001F; local 327 GLint x = IFLOOR(ctx->Current.RasterPos[0] + epsilon - xorig); 328 GLint y = IFLOOR(ctx->Current.RasterPos[1] + epsilon - yorig);
|
/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;
|
/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/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
ExternalVideoSurfaceContainerTest.java | 42 final float epsilon = 0.000001f; local 46 if (Math.abs(rect.width() - widthCss) < epsilon 47 && Math.abs(rect.height() - heightCss) < 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/libvorbis/lib/ |
lpc.c | 65 double epsilon; local 80 epsilon=1e-9*aut[0]+1e-10; 85 if(error<epsilon){
|
/external/fonttools/Lib/fontTools/misc/ |
bezierTools.py | 21 epsilon = 1e-12 variable 263 if abs(a) < epsilon: 264 if abs(b) < epsilon: 294 if abs(a) < epsilon:
|
/external/chromium_org/third_party/WebKit/Source/core/html/parser/ |
HTMLScriptRunner.cpp | 158 const double epsilon = 1; local 159 if (pendingScriptType == PendingScript::ParsingBlocking && !m_parserBlockingScriptAlreadyLoaded && compilationFinishTime > epsilon && loadFinishTime > epsilon) {
|
/external/chromium_org/third_party/skia/tests/ |
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/chrome/browser/ui/views/infobars/ |
infobar_view.cc | 179 const SkScalar epsilon = 0.01f; local 180 fill_path_.rLineTo(-epsilon, 0); 182 fill_path_.rLineTo(epsilon - (arrow_fill_half_width * 2), 0);
|
/external/chromium_org/ui/gfx/ |
transform_util.cc | 86 const double epsilon = 1e-5; local 87 if (std::abs(product - 1.0) < epsilon) {
|
/external/deqp/modules/glshared/ |
glsCalibration.cpp | 62 const float epsilon = 1e-6f; local 78 if (de::abs(ptA.x() - ptB.x()) > epsilon) 126 const float epsilon = 1e-6f; local 144 if (de::abs(ptA.x() - ptB.x()) > epsilon)
|
/external/bison/lib/ |
hash.c | 515 float epsilon; local 522 is 11 (due to next_prime's algorithm), so an epsilon of 0.1 524 epsilon = 0.1f; 526 if (epsilon < tuning->growth_threshold 527 && tuning->growth_threshold < 1 - epsilon 528 && 1 + epsilon < tuning->growth_factor 530 && tuning->shrink_threshold + epsilon < tuning->shrink_factor 532 && tuning->shrink_threshold + epsilon < tuning->growth_threshold) [all...] |
/external/ceres-solver/include/ceres/ |
jet.h | 38 // denoted with the greek symbol epsilon, such that e != 0 but e^2 = 0. Dual 652 static inline Real epsilon() { return Real(std::numeric_limits<T>::epsilon()); } function in struct:Eigen::NumTraits
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
AutoTableLayout.cpp | 223 // We substitute 0 percent by (epsilon / percentScaleFactor) percent in two places below to avoid division by zero. 225 const float epsilon = 1 / 128.0f; local 234 float logicalWidth = static_cast<float>(m_layoutStruct[i].effectiveMaxLogicalWidth) * 100 / std::max(percent, epsilon); 243 maxNonPercent = maxNonPercent * 100 / std::max(remainingPercent, epsilon); [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/ |
LayoutUnit.h | 91 return clamp(value + epsilon() / 2.0f); 92 return clamp(value - epsilon() / 2.0f); 175 static float epsilon() { return 1.0f / kFixedPointDenominator; } function in class:blink::LayoutUnit
|
/external/chromium_org/third_party/WebKit/Source/platform/audio/ |
AudioBus.cpp | 458 // If the gain is within epsilon of totalDesiredGain, we can skip dezippering. 460 const float epsilon = 0.001f; local 465 unsigned framesToDezipper = (gainDiff < epsilon) ? 0 : framesToProcess;
|
/external/chromium_org/third_party/mesa/src/src/mesa/program/ |
prog_execute.c | 1025 const GLfloat epsilon = 1.0F \/ 256.0F; \/* from NV VP spec *\/ local [all...] |
/external/chromium_org/ui/events/gesture_detection/ |
gesture_provider.cc | 285 double epsilon = 1e-3; variable 286 if (distance > epsilon) {
|
/external/mesa3d/src/mesa/program/ |
prog_execute.c | 1025 const GLfloat epsilon = 1.0F \/ 256.0F; \/* from NV VP spec *\/ local [all...] |