[Icc-mot] RE: Icc-mot Digest, Vol 41, Issue 6
Richard Man
richard-lists at imagecraft.com
Thu Jan 31 00:12:06 PST 2008
Rene, please trim your post. Please send me OFF-LIST a ZIP file of a
project demonstrating the problem. Make it as small as possible but
be sure to use all the memory options etc. that cause the problem.
Send it directly to me and not to the list, and I will take a look at it.
Thanks.
At 11:56 PM 1/30/2008, Rene Streubel wrote:
>Of course I include math.h
>I deactivate the fround function in math.h with comment "//".
>//#define fround froundf
>And the complete fround is:
>signed long fround(float data_in)
>{
> signed long data_out;
>
> if (data_in>0)
> {
> data_out=(signed long)(data_in+0.5);
> }
> else
> {
> data_out=(signed long)(data_in-0.5);
> }
>
> return data_out;
>}
>The important thing is that it crashes, if data_in is a signed value.
>
>But please look at my other tests: They are simpler...
>(With froundf I use the predefined froundf function from the include
>path [math.h] and not my own function)
>
>signed int foo(void)
>{return froundf(abs(-101.85));}
>
>In this function I use "abs()" to get an unsigned value. This works.
>But, if the function has to round a signed value, it crashes:
>
>signed int foo(void)
>{return froundf(-101.85);}
>
>This is reproducible on my system. I look to the include paths, but they
>are correct! (Also the library path)
>I think it only crashes, if the complete project is large and use
>expanded memory pages. Do you use expanded memory pages in your tests?
>
>Best regards
>Rene
>
// richard (This email is for mailing lists. To reach me directly,
please use richard at imagecraft.com)
More information about the Icc-mot
mailing list