D | mul.cpp | 25 static bool test_mul(double al, double au, double bl, double bu) { in test_mul() argument 26 I a(al, au), b(bl, bu); in test_mul() 28 return c.lower() == (min)(al*bl, al*bu, au*bl, au*bu) in test_mul() 29 && c.upper() == (max)(al*bl, al*bu, au*bl, au*bu); in test_mul() 32 static bool test_mul1(double ac, double bl, double bu) { in test_mul1() argument 33 I a(ac), b(bl, bu); in test_mul1() 40 static bool test_div(double al, double au, double bl, double bu) { in test_div() argument 41 I a(al, au), b(bl, bu); in test_div() 43 return c.lower() == (min)(al/bl, al/bu, au/bl, au/bu) in test_div() 44 && c.upper() == (max)(al/bl, al/bu, au/bl, au/bu); in test_div() [all …]
|