Home
last modified time | relevance | path

Searched refs:UNITY_DOUBLE (Results 1 – 2 of 2) sorted by relevance

/lvgl-latest/tests/unity/
Dunity.c333 void UnityPrintFloat(const UNITY_DOUBLE input_number) in UnityPrintFloat()
345 UNITY_DOUBLE number = input_number; in UnityPrintFloat()
385 UNITY_DOUBLE factor = 1.0f; in UnityPrintFloat()
387 while (number < (UNITY_DOUBLE)max_scaled / 1e10f) { number *= 1e10f; exponent -= 10; } in UnityPrintFloat()
388 while (number * factor < (UNITY_DOUBLE)min_scaled) { factor *= 10.0f; exponent--; } in UnityPrintFloat()
392 else if (number > (UNITY_DOUBLE)max_scaled) in UnityPrintFloat()
394 UNITY_DOUBLE divisor = 1.0f; in UnityPrintFloat()
396 … while (number > (UNITY_DOUBLE)min_scaled * 1e10f) { number /= 1e10f; exponent += 10; } in UnityPrintFloat()
397 while (number / divisor > (UNITY_DOUBLE)max_scaled) { divisor *= 10.0f; exponent++; } in UnityPrintFloat()
408 UNITY_DOUBLE factor = 1.0f; in UnityPrintFloat()
[all …]
Dunity_internals.h286 typedef UNITY_FLOAT UNITY_DOUBLE; typedef
300 typedef UNITY_DOUBLE_TYPE UNITY_DOUBLE; typedef
586 void UnityPrintFloat(const UNITY_DOUBLE input_number);
710 void UnityAssertDoublesWithin(const UNITY_DOUBLE delta,
711 const UNITY_DOUBLE expected,
712 const UNITY_DOUBLE actual,
716 void UnityAssertDoublesNotWithin(const UNITY_DOUBLE delta,
717 const UNITY_DOUBLE expected,
718 const UNITY_DOUBLE actual,
722 void UnityAssertGreaterOrLessDouble(const UNITY_DOUBLE threshold,
[all …]