[Liboil] lrint lrintf seem fail liboiltest when CPU round to nearest mode is used.

Bernd Roesch nospamname at web.de
Tue Oct 13 04:06:51 PDT 2009


Hi, 

the jpeg_test do this output

I think the problem is 68k CPU and other CPU (PPC i think)use at default
round nearest, but X86 use a default of round zero.are the result values of
52, 46, 28  correct ?

The lrint lrintf specification say the command use the current rounding
mode.Is it need that in liboil the roundmode must set to round zero ?

BTW: a explain, wy i try 68k CPU and liboil

because there are working some guys on a Amiga compatible System which have
68k CPU in fpga 

http://www.natami.net/gfx/NatAmi16_LX/natami16_lx_4.jpg

As you can see its powered by a cyclone 3.this fpga is able to do full HD
processing and is cheap and need less power. 

http://www.altera.com/products/devices/cyclone3/mkts-apps/cy3-mkts-video-image.html,


And my hope is to make if this maybe get real to get some FPGA routines to
do the time consuming stuff over libOil and Cyclone 3.

Is there some activity here to write FPGA routines for liboil ?

There are also other FPGA Cards out, but currently its only for high power
Computing.

http://edageek.com/2007/04/17/nallatech-intel-quickassist/


OIL: ERROR liboiltest.c 405: oil_test_check_impl(): function
conv_s16_f32_lrintf in class conv_s16_f32 failed check (52 > 0.1
) || (outside=0)
OIL: ERROR liboiltest.c 405: oil_test_check_impl(): function
conv_s16_f32_lrint in class conv_s16_f32 failed check (52 > 0.1)
 || (outside=0)
OIL: ERROR liboiltest.c 405: oil_test_check_impl(): function
conv_s16_f64_lrint in class conv_s16_f64 failed check (46 > 0.1)
 || (outside=0)
OIL: ERROR liboiltest.c 405: oil_test_check_impl(): function
conv_s32_f32_lrintf in class conv_s32_f32 failed check (28 > 0.1
) || (outside=0)
OIL: ERROR liboiltest.c 405: oil_test_check_impl(): function
conv_s32_f32_lrint in class conv_s32_f32 failed check (28 > 0.1)
 || (outside=0)
OIL: ERROR liboiltest.c 405: oil_test_check_impl(): function
conv_s32_f64_lrint in class conv_s32_f64 failed check (52 > 0.1)
 || (outside=0)
OIL: ERROR liboiltest.c 405: oil_test_check_impl(): function
conv_s8_f32_lrintf in class conv_s8_f32 failed check (43 > 0.1) 
|| (outside=0)
OIL: ERROR liboiltest.c 405: oil_test_check_impl(): function
conv_s8_f32_lrint in class conv_s8_f32 failed check (43 > 0.1) |
| (outside=0)
OIL: ERROR liboiltest.c 405: oil_test_check_impl(): function
conv_s8_f64_lrint in class conv_s8_f64 failed check (57 > 0.1) |
| (outside=0)
OIL: ERROR liboiltest.c 405: oil_test_check_impl(): function
conv_u16_f32_lrintf in class conv_u16_f32 failed check (52 > 0.1
) || (outside=0)
OIL: ERROR liboiltest.c 405: oil_test_check_impl(): function
conv_u16_f32_lrint in class conv_u16_f32 failed check (52 > 0.1)
 || (outside=0)
OIL: ERROR liboiltest.c 405: oil_test_check_impl(): function
conv_u16_f64_lrint in class conv_u16_f64 failed check (54 > 0.1)
 || (outside=0)
OIL: ERROR liboiltest.c 405: oil_test_check_impl(): function
conv_u8_f32_lrintf in class conv_u8_f32 failed check (48 > 0.1) 
|| (outside=0)
OIL: ERROR liboiltest.c 405: oil_test_check_impl(): function
conv_u8_f32_lrint in class conv_u8_f32 failed check (48 > 0.1) |
| (outside=0)
OIL: ERROR liboiltest.c 405: oil_test_check_impl(): function
conv_u8_f64_lrint in class conv_u8_f64 failed check (49 > 0.1) |
| (outside=0)
P2
28 29
255
1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 13 18 23 26 27 28 
28 25 19 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 13 20 23 23 25 26 27 29 
29 29 29 29 20 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 18 23 21 21 23 24 25 26 27 
29 29 29 28 29 29 0 0 0 0 0 0 
0 0 0 0 0 10 20 23 21 19 20 21 22 23 23 25 
26 28 29 29 30 30 29 17 0 0 0 0 
0 0 0 0 0 20 22 20 18 18 19 20 20 21 22 23 
24 26 28 29 29 29 29 29 0 0 0 0 
0 0 0 0 18 22 20 18 17 17 17 18 19 18 19 20 
22 23 25 28 30 28 29 29 29 0 0 0 
0 0 0 14 24 20 18 17 15 17 16 16 16 16 17 18 
19 22 24 26 28 29 29 29 30 19 0 0 
0 1 0 19 21 19 17 15 14 14 14 14 14 14 15 15 
19 36 54 47 30 29 29 29 29 29 0 0 
0 0 11 23 20 18 16 14 13 12 13 12 13 11 12 13 
28 82 154 150 70 29 29 29 29 29 17 0 
0 0 17 22 19 17 15 13 12 11 11 10 10 9 9 11 
33 119 223 231 149 42 28 29 29 29 28 0 
0 0 19 21 19 17 15 13 11 10 10 9 8 7 6 8 
26 98 218 230 172 51 27 29 29 29 29 0 
0 0 22 23 21 18 16 14 11 10 9 8 6 4 4 5 
13 49 121 161 110 41 26 29 29 29 29 0 
0 0 25 24 22 20 17 15 12 10 9 7 5 3 0 3 
6 17 39 55 43 26 25 28 29 29 29 0 
0 0 27 27 24 21 18 16 13 11 9 7 5 4 0 3 
6 9 13 20 20 21 24 27 29 29 29 0 
1 0 27 29 25 24 20 17 14 12 10 8 6 4 3 4 
6 10 13 15 17 20 23 26 29 30 30 0 
0 0 27 29 27 24 22 19 16 14 11 9 7 7 6 7 
8 10 12 15 18 20 23 26 28 30 27 0 
0 0 25 29 29 27 23 21 20 20 16 12 10 9 9 9 
10 11 13 15 18 20 23 26 28 29 22 0 
1 1 17 29 29 29 26 27 43 56 51 33 17 12 11 11 
12 13 15 17 18 21 23 25 27 28 14 0 
0 0 0 29 29 29 29 36 82 145 156 110 52 22 15 14 
13 15 17 18 19 21 23 25 26 22 0 0 
0 0 0 19 29 29 29 34 89 216 232 219 124 48 21 16 
17 17 18 19 20 21 22 24 25 13 1 0 
0 0 0 0 29 29 29 29 49 147 228 226 162 70 30 19 
19 19 20 21 21 22 22 22 18 0 0 0 
0 0 1 0 0 29 29 29 30 47 98 130 100 54 28 22 
22 22 22 22 22 22 22 20 0 0 0 0 
0 0 0 0 0 17 29 29 29 29 31 36 37 31 27 26 
24 25 25 25 24 25 20 9 0 0 0 0 
0 0 0 0 0 0 0 30 30 29 29 29 29 29 29 29 
29 29 29 28 28 21 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 22 30 30 29 29 29 29 29 
29 29 29 27 17 0 0 1 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 21 29 29 29 29 29 
29 27 19 0 0 0 0 0 0 0 0 0 
1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0                       


Bye



More information about the Liboil mailing list