Lines Matching +full:0 +full:f
13 #define local_abs(x) (((x) < 0) ? -(x) : (x))
24 1.0f, 2.0f, 3.0f, 4.0f,
25 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, /* numbers across the decade */
26 3.14159265359f, 2.718281828f, /* irrational numbers pi and e */
27 123.4f, 0.025f, 0.10f, 1.875f /* numbers with infinite */
46 ieee754.u &= ~0x8000000000000000; /* ignore the sign */ in isinf()
47 return ((ieee754.u >> 52) == 0x7FF) && in isinf()
48 ((ieee754.u & 0x000fffffffffffff) == 0); in isinf()
57 ieee754.u &= ~0x8000000000000000; /* ignore the sign */ in isnan()
58 return ((ieee754.u >> 52) == 0x7FF) && in isnan()
59 ((ieee754.u & 0x000fffffffffffff) != 0); in isnan()
66 union { uint32_t u; float f; } ieee754; in isinff() member
67 ieee754.f = x; in isinff()
68 ieee754.u &= ~0x80000000; /* ignore the sign */ in isinff()
69 return ((ieee754.u >> 23) == 0xFF) && in isinff()
70 ((ieee754.u & 0x7FFFFF) == 0); in isinff()
77 union { uint32_t u; float f; } ieee754; in isnanf() member
78 ieee754.f = x; in isnanf()
79 ieee754.u &= ~0x80000000; /* ignore the sign */ in isnanf()
80 return ((ieee754.u >> 23) == 0xFF) && in isnanf()
81 ((ieee754.u & 0x7FFFFF) != 0); in isnanf()
86 #define MAX_FLOAT_ERROR_PERCENT (3.5e-5f)
99 max_error = 0; in ZTEST()
102 zassert_true(sqrtf(0.0f) == 0.0f, "sqrtf(0.0)"); in ZTEST()
111 zassert_true(isnanf(sqrtf(-10.0f)), "isnanf(sqrt(-10.0))"); in ZTEST()
113 for (exponent = 1.0e-10f; exponent < 1.0e10f; exponent *= 10.0f) { in ZTEST()
114 for (i = 0; i < NUM_TEST_FLOATS; i++) { in ZTEST()
118 zassert_true((resf > 0.0f) && (resf < INFINITY), in ZTEST()
120 if ((resf > 0.0f) && (resf < INFINITY)) { in ZTEST()
123 if (error < 0.0f) { in ZTEST()
137 error = 0.0f; in ZTEST()
143 zassert_true(max_error < 0x03, "huge errors in sqrt implementation"); in ZTEST()
158 max_error = 0; in ZTEST()
173 for (i = 0; i < NUM_TEST_DOUBLES; i++) { in ZTEST()
202 zassert_true(max_error < 0x04, "huge errors in sqrt implementation"); in ZTEST()