Home
last modified time | relevance | path

Searched refs:FLT_EPSILON (Results 1 – 25 of 164) sorted by relevance

1234567

/external/skia/src/pathops/
DSkPathOpsTypes.h83 const double FLT_EPSILON_CUBED = FLT_EPSILON * FLT_EPSILON * FLT_EPSILON;
84 const double FLT_EPSILON_HALF = FLT_EPSILON / 2;
85 const double FLT_EPSILON_DOUBLE = FLT_EPSILON * 2;
86 const double FLT_EPSILON_ORDERABLE_ERR = FLT_EPSILON * 16;
87 const double FLT_EPSILON_SQUARED = FLT_EPSILON * FLT_EPSILON;
88 const double FLT_EPSILON_SQRT = sqrt(FLT_EPSILON);
89 const double FLT_EPSILON_INVERSE = 1 / FLT_EPSILON;
92 const double ROUGH_EPSILON = FLT_EPSILON * 64;
93 const double MORE_ROUGH_EPSILON = FLT_EPSILON * 256;
94 const double WAY_ROUGH_EPSILON = FLT_EPSILON * 2048;
[all …]
DSkPathOpsTypes.cpp11 float denormalizedCheck = FLT_EPSILON * epsilon / 2; in arguments_denormalized()
68 return a <= b - FLT_EPSILON * epsilon; in less_ulps()
81 return a < b + FLT_EPSILON * epsilon; in less_or_equal_ulps()
109 return fabs(a - b) / SkTMax(fabs(a), fabs(b)) < FLT_EPSILON * 16; in AlmostDequalUlps()
/external/chromium_org/third_party/skia/src/pathops/
DSkPathOpsTypes.h83 const double FLT_EPSILON_CUBED = FLT_EPSILON * FLT_EPSILON * FLT_EPSILON;
84 const double FLT_EPSILON_HALF = FLT_EPSILON / 2;
85 const double FLT_EPSILON_DOUBLE = FLT_EPSILON * 2;
86 const double FLT_EPSILON_ORDERABLE_ERR = FLT_EPSILON * 16;
87 const double FLT_EPSILON_SQUARED = FLT_EPSILON * FLT_EPSILON;
88 const double FLT_EPSILON_SQRT = sqrt(FLT_EPSILON);
89 const double FLT_EPSILON_INVERSE = 1 / FLT_EPSILON;
92 const double ROUGH_EPSILON = FLT_EPSILON * 64;
93 const double MORE_ROUGH_EPSILON = FLT_EPSILON * 256;
94 const double WAY_ROUGH_EPSILON = FLT_EPSILON * 2048;
[all …]
DSkPathOpsTypes.cpp11 float denormalizedCheck = FLT_EPSILON * epsilon / 2; in arguments_denormalized()
68 return a <= b - FLT_EPSILON * epsilon; in less_ulps()
81 return a < b + FLT_EPSILON * epsilon; in less_or_equal_ulps()
109 return fabs(a - b) / SkTMax(fabs(a), fabs(b)) < FLT_EPSILON * 16; in AlmostDequalUlps()
/external/chromium_org/third_party/skia/experimental/Intersection/
DDataTypes.h40 const double FLT_EPSILON_CUBED = FLT_EPSILON * FLT_EPSILON * FLT_EPSILON;
41 const double FLT_EPSILON_HALF = FLT_EPSILON / 2;
42 const double FLT_EPSILON_SQUARED = FLT_EPSILON * FLT_EPSILON;
43 const double FLT_EPSILON_SQRT = sqrt(FLT_EPSILON);
44 const double FLT_EPSILON_INVERSE = 1 / FLT_EPSILON;
46 const double ROUGH_EPSILON = FLT_EPSILON * 64;
47 const double MORE_ROUGH_EPSILON = FLT_EPSILON * 256;
50 return fabs(x) < FLT_EPSILON; in approximately_zero()
58 return fabs(x) < FLT_EPSILON; in approximately_zero()
83 return x == 0 || fabs(x / y) < FLT_EPSILON; in approximately_zero_when_compared_to()
[all …]
DthingsToDo.txt249 if ((step > 0 ? span.fT - fromT : fromT - span.fT) >= FLT_EPSILON ) {
395 nextOther = other->fTs[start->fOtherIndex].fT > 1 - FLT_EPSILON ? NULL : other;
398 nextOther = other->fTs[end->fOtherIndex].fT < FLT_EPSILON ? NULL : other;
406 bool checkNext = !next && (step < 0 ? span.fT < FLT_EPSILON
407 && span.fOtherT > 1 - FLT_EPSILON : span.fT > 1 - FLT_EPSILON
408 && span.fOtherT < FLT_EPSILON);
409 bool checkOther = !nextOther && (step < 0 ? fabs(span.fT - start->fT) < FLT_EPSILON
410 && span.fOtherT < FLT_EPSILON : fabs(span.fT - end->fT) < FLT_EPSILON
411 && span.fOtherT > 1 - FLT_EPSILON);
422 if (oSpan.fT >= FLT_EPSILON && oSpan.fT <= 1 - FLT_EPSILON) {
[all …]
/external/skia/experimental/Intersection/
DDataTypes.h40 const double FLT_EPSILON_CUBED = FLT_EPSILON * FLT_EPSILON * FLT_EPSILON;
41 const double FLT_EPSILON_HALF = FLT_EPSILON / 2;
42 const double FLT_EPSILON_SQUARED = FLT_EPSILON * FLT_EPSILON;
43 const double FLT_EPSILON_SQRT = sqrt(FLT_EPSILON);
44 const double FLT_EPSILON_INVERSE = 1 / FLT_EPSILON;
46 const double ROUGH_EPSILON = FLT_EPSILON * 64;
47 const double MORE_ROUGH_EPSILON = FLT_EPSILON * 256;
50 return fabs(x) < FLT_EPSILON; in approximately_zero()
58 return fabs(x) < FLT_EPSILON; in approximately_zero()
83 return x == 0 || fabs(x / y) < FLT_EPSILON; in approximately_zero_when_compared_to()
[all …]
DthingsToDo.txt249 if ((step > 0 ? span.fT - fromT : fromT - span.fT) >= FLT_EPSILON ) {
395 nextOther = other->fTs[start->fOtherIndex].fT > 1 - FLT_EPSILON ? NULL : other;
398 nextOther = other->fTs[end->fOtherIndex].fT < FLT_EPSILON ? NULL : other;
406 bool checkNext = !next && (step < 0 ? span.fT < FLT_EPSILON
407 && span.fOtherT > 1 - FLT_EPSILON : span.fT > 1 - FLT_EPSILON
408 && span.fOtherT < FLT_EPSILON);
409 bool checkOther = !nextOther && (step < 0 ? fabs(span.fT - start->fT) < FLT_EPSILON
410 && span.fOtherT < FLT_EPSILON : fabs(span.fT - end->fT) < FLT_EPSILON
411 && span.fOtherT > 1 - FLT_EPSILON);
422 if (oSpan.fT >= FLT_EPSILON && oSpan.fT <= 1 - FLT_EPSILON) {
[all …]
/external/skia/tests/
DPathOpsCubicIntersectionTestData.cpp12 static const double D = FLT_EPSILON / 2;
13 static const double G = FLT_EPSILON / 3;
14 static const double N = -FLT_EPSILON / 2;
15 static const double M = -FLT_EPSILON / 3;
49 {{{1 + FLT_EPSILON * 2, 1}, {1, FLT_EPSILON * 2}, {1, 1}, {1, 1}}},
50 {{{1 + FLT_EPSILON * 2, 1}, {1 - FLT_EPSILON * 2, 1}, {1, 1}, {1, 1}}}
159 static const double E = FLT_EPSILON * 2;
160 static const double F = FLT_EPSILON * 3;
DPathOpsQuadIntersectionTestData.cpp47 static const double F = FLT_EPSILON * 3;
48 static const double H = FLT_EPSILON * 4;
49 static const double J = FLT_EPSILON * 5;
50 static const double K = FLT_EPSILON * 8; // INVESTIGATE: why are larger multiples necessary?
/external/chromium_org/third_party/skia/tests/
DPathOpsCubicIntersectionTestData.cpp12 static const double D = FLT_EPSILON / 2;
13 static const double G = FLT_EPSILON / 3;
14 static const double N = -FLT_EPSILON / 2;
15 static const double M = -FLT_EPSILON / 3;
49 {{{1 + FLT_EPSILON * 2, 1}, {1, FLT_EPSILON * 2}, {1, 1}, {1, 1}}},
50 {{{1 + FLT_EPSILON * 2, 1}, {1 - FLT_EPSILON * 2, 1}, {1, 1}, {1, 1}}}
159 static const double E = FLT_EPSILON * 2;
160 static const double F = FLT_EPSILON * 3;
DPathOpsQuadIntersectionTestData.cpp47 static const double F = FLT_EPSILON * 3;
48 static const double H = FLT_EPSILON * 4;
49 static const double J = FLT_EPSILON * 5;
50 static const double K = FLT_EPSILON * 8; // INVESTIGATE: why are larger multiples necessary?
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_test_arit.c194 x = 1.0f - 0.5f*FLT_EPSILON; in fractf()
214 FLT_EPSILON,
215 -FLT_EPSILON,
216 1.0f - 0.5f*FLT_EPSILON,
217 -1.0f + FLT_EPSILON,
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/
Dlp_test_arit.c194 x = 1.0f - 0.5f*FLT_EPSILON; in fractf()
214 FLT_EPSILON,
215 -FLT_EPSILON,
216 1.0f - 0.5f*FLT_EPSILON,
217 -1.0f + FLT_EPSILON,
/external/chromium_org/third_party/skia/src/core/
DSkBitmapFilter.h145 if (x > -FLT_EPSILON && x < FLT_EPSILON) { in evaluate()
165 if (x > -FLT_EPSILON && x < FLT_EPSILON) { in evaluate()
/external/skia/src/core/
DSkBitmapFilter.h145 if (x > -FLT_EPSILON && x < FLT_EPSILON) { in evaluate()
165 if (x > -FLT_EPSILON && x < FLT_EPSILON) { in evaluate()
/external/libcxx/test/containers/unord/unord.set/unord.set.cnstr/
Dinit.pass.cpp57 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
88 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
122 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
157 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
Drange.pass.cpp60 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
93 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
127 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
162 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
/external/libcxx/test/containers/unord/unord.multiset/unord.multiset.cnstr/
Dinit.pass.cpp57 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
88 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
122 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
157 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
Drange.pass.cpp60 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
93 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
127 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
162 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
Dassign_move.pass.cpp80 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
125 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
170 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
224 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
269 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
Dmove_alloc.pass.cpp74 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
115 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
165 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
206 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
/external/libcxx/test/containers/unord/unord.multiset/
Dload_factor.pass.cpp41 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
66 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
/external/libcxx/test/containers/unord/unord.set/
Dload_factor.pass.cpp41 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
66 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
/external/libcxx/test/containers/unord/unord.map/unord.map.cnstr/
Dinit.pass.cpp59 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
91 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
123 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
156 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()

1234567