summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Willmann <d.willmann@samsung.com>2013-06-27 14:27:36 +0100
committerDaniel Willmann <d.willmann@samsung.com>2013-06-27 14:34:02 +0100
commit3e5ff22ab95fb72715b3c844b437e8a15067c36d (patch)
tree1317a907a6b477d283e4423d04edcb4efd95f954
parentd263e31c7f047755be59d5c92dfbe09f6331be5e (diff)
eina_test_fp: Improve speed of eina_fp test
Test less values in between, but still have a decent combination of large/small values to test. Fixes -WTasn Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
-rw-r--r--src/tests/eina/eina_test_fp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/eina/eina_test_fp.c b/src/tests/eina/eina_test_fp.c
index ef1b1d4948..63b1a61658 100644
--- a/src/tests/eina/eina_test_fp.c
+++ b/src/tests/eina/eina_test_fp.c
@@ -106,8 +106,13 @@ START_TEST(eina_fp_mul)
106 106
107 for (dc1 = 0; dc1 < dl1; dc1 += step1) 107 for (dc1 = 0; dc1 < dl1; dc1 += step1)
108 { 108 {
109 if ((int)dc1 % 5 == 2)
110 dc1 += 2;
109 for (dc2 = 0; dc2 < dl2; dc2 += step2) 111 for (dc2 = 0; dc2 < dl2; dc2 += step2)
110 { 112 {
113 if ((int)dc2 % 10 == 5)
114 dc2 += 20;
115
111 dresult = dc1 * dc2; 116 dresult = dc1 * dc2;
112 117
113 fc1 = eina_f32p32_double_from(dc1); 118 fc1 = eina_f32p32_double_from(dc1);
@@ -154,8 +159,12 @@ START_TEST(eina_fp_div)
154 159
155 for (dc1 = 0; dc1 < dl1; dc1 += step1) 160 for (dc1 = 0; dc1 < dl1; dc1 += step1)
156 { 161 {
162 if ((int)dc1 % 5 == 2)
163 dc1 += 2;
157 for (dc2 = step2; dc2 < dl2; dc2 += step2) 164 for (dc2 = step2; dc2 < dl2; dc2 += step2)
158 { 165 {
166 if ((int)dc2 % 10 == 5)
167 dc2 += 20;
159 dresult = dc1 / dc2; 168 dresult = dc1 / dc2;
160 169
161 fc1 = eina_f32p32_double_from(dc1); 170 fc1 = eina_f32p32_double_from(dc1);