Searched refs:CLOSE_ENOUGH (Results 1 – 2 of 2) sorted by relevance
/external/caliper/caliper/src/test/java/com/google/caliper/util/ |
D | LinearTranslationTest.java | 27 private static final double CLOSE_ENOUGH = 1.0E-13; field in LinearTranslationTest 31 assertEquals(32, ctof.translate(0), CLOSE_ENOUGH); in linearTranslation() 32 assertEquals(212, ctof.translate(100), CLOSE_ENOUGH); in linearTranslation() 33 assertEquals(98.6, ctof.translate(37), CLOSE_ENOUGH); in linearTranslation() 34 assertEquals(-40, ctof.translate(-40), CLOSE_ENOUGH); in linearTranslation() 37 assertEquals(-21, reversed.translate(101), CLOSE_ENOUGH); in linearTranslation()
|
/external/adhd/cras/src/common/ |
D | edid_utils.c | 829 #define CLOSE_ENOUGH(a, b) (abs((a)-(b)) < 16) macro 836 if (CLOSE_ENOUGH((h * 3), (v * 4))) in find_aspect() 838 if (CLOSE_ENOUGH((h * 4), (v * 5))) in find_aspect() 840 if (CLOSE_ENOUGH((h * 9), (v * 16))) in find_aspect() 842 if (CLOSE_ENOUGH((h * 10), (v * 16))) in find_aspect()
|