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>
This commit is contained in:
Daniel Willmann 2013-06-27 14:27:36 +01:00
parent d263e31c7f
commit 3e5ff22ab9
1 changed files with 9 additions and 0 deletions

View File

@ -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);