Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 4 of 4) sorted by relevance

/lvgl-3.5.0/tests/unity/
Dunity.h252 …e TEST_ASSERT_INT_WITHIN(delta, expected, actual) UNITY… argument
253 … TEST_ASSERT_INT8_WITHIN(delta, expected, actual) UNITY_… argument
254 …TEST_ASSERT_INT16_WITHIN(delta, expected, actual) UNITY_T… argument
255 …TEST_ASSERT_INT32_WITHIN(delta, expected, actual) UNITY_T… argument
256 …TEST_ASSERT_INT64_WITHIN(delta, expected, actual) UNITY_T… argument
257 … TEST_ASSERT_UINT_WITHIN(delta, expected, actual) UNITY_… argument
258 …TEST_ASSERT_UINT8_WITHIN(delta, expected, actual) UNITY_T… argument
259 …EST_ASSERT_UINT16_WITHIN(delta, expected, actual) UNITY_TE… argument
260 …EST_ASSERT_UINT32_WITHIN(delta, expected, actual) UNITY_TE… argument
261 …EST_ASSERT_UINT64_WITHIN(delta, expected, actual) UNITY_TE… argument
[all …]
Dunity_internals.h605 void UnityAssertNumbersWithin(const UNITY_UINT delta,
612 void UnityAssertNumbersArrayWithin(const UNITY_UINT delta,
632 void UnityAssertFloatsWithin(const UNITY_FLOAT delta,
652 void UnityAssertDoublesWithin(const UNITY_DOUBLE delta,
861 …_TEST_ASSERT_INT_WITHIN(delta, expected, actual, line, message) UnityAssertNum… argument
862 …TEST_ASSERT_INT8_WITHIN(delta, expected, actual, line, message) UnityAssertNumb… argument
863 …TEST_ASSERT_INT16_WITHIN(delta, expected, actual, line, message) UnityAssertNumb… argument
864 …TEST_ASSERT_INT32_WITHIN(delta, expected, actual, line, message) UnityAssertNumb… argument
865 …TEST_ASSERT_UINT_WITHIN(delta, expected, actual, line, message) UnityAssertNumb… argument
866 …TEST_ASSERT_UINT8_WITHIN(delta, expected, actual, line, message) UnityAssertNumb… argument
[all …]
Dunity.c872 #define UNITY_FLOAT_OR_DOUBLE_WITHIN(delta, expected, actual, diff) \ argument
877 if ((delta) < 0) (delta) = -(delta); \
878 return !(isnan(diff) || isinf(diff) || ((diff) > (delta)))
899 static int UnityFloatsWithin(UNITY_FLOAT delta, UNITY_FLOAT expected, UNITY_FLOAT actual) in UnityFloatsWithin() argument
902 UNITY_FLOAT_OR_DOUBLE_WITHIN(delta, expected, actual, diff); in UnityFloatsWithin()
954 void UnityAssertFloatsWithin(const UNITY_FLOAT delta, in UnityAssertFloatsWithin() argument
963 if (!UnityFloatsWithin(delta, expected, actual)) in UnityAssertFloatsWithin()
1040 static int UnityDoublesWithin(UNITY_DOUBLE delta, UNITY_DOUBLE expected, UNITY_DOUBLE actual) in UnityDoublesWithin() argument
1043 UNITY_FLOAT_OR_DOUBLE_WITHIN(delta, expected, actual, diff); in UnityDoublesWithin()
1095 void UnityAssertDoublesWithin(const UNITY_DOUBLE delta, in UnityAssertDoublesWithin() argument
[all …]
/lvgl-3.5.0/src/misc/
Dlv_color.c230 int32_t delta = rgbMax - rgbMin; in lv_color_rgb_to_hsv() local
231 if(delta < 3) { in lv_color_rgb_to_hsv()
238 hsv.s = 100 * delta / rgbMax; in lv_color_rgb_to_hsv()
247 h = (((g - b) << 10) / delta) + (g < b ? (6 << 10) : 0); // between yellow & magenta in lv_color_rgb_to_hsv()
249 h = (((b - r) << 10) / delta) + (2 << 10); // between cyan & yellow in lv_color_rgb_to_hsv()
251 h = (((r - g) << 10) / delta) + (4 << 10); // between magenta & cyan in lv_color_rgb_to_hsv()