asdfuser pushed a commit to branch master.
commit 3e5ff22ab95fb72715b3c844b437e8a15067c36d
Author: Daniel Willmann <[email protected]>
Date: Thu Jun 27 14:27:36 2013 +0100
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 <[email protected]>
---
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);
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev