From 3e5ff22ab95fb72715b3c844b437e8a15067c36d Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Thu, 27 Jun 2013 14:27:36 +0100 Subject: [PATCH] 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 --- src/tests/eina/eina_test_fp.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/tests/eina/eina_test_fp.c b/src/tests/eina/eina_test_fp.c index ef1b1d4..63b1a61 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) for (dc1 = 0; dc1 < dl1; dc1 += step1) { + if ((int)dc1 % 5 == 2) + dc1 += 2; for (dc2 = 0; dc2 < dl2; dc2 += step2) { + if ((int)dc2 % 10 == 5) + dc2 += 20; + dresult = dc1 * dc2; fc1 = eina_f32p32_double_from(dc1); @@ -154,8 +159,12 @@ START_TEST(eina_fp_div) for (dc1 = 0; dc1 < dl1; dc1 += step1) { + if ((int)dc1 % 5 == 2) + dc1 += 2; for (dc2 = step2; dc2 < dl2; dc2 += step2) { + if ((int)dc2 % 10 == 5) + dc2 += 20; dresult = dc1 / dc2; fc1 = eina_f32p32_double_from(dc1); -- 2.7.4