Re: question on arm soft-fp function __aeabi_d2uiz

2011-05-08 Thread Andreas Schwab
"Amker.Cheng" writes: > I also tried the code on x86-cygwin, which prints 0x. > I am wondering why __aeabi_d2uiz returns 0 for negative double values. > Is this behavior defined by arm fpu and it's different with x86 in fpu > implementation? Converting a negative float value to an unsign

question on arm soft-fp function __aeabi_d2uiz

2011-05-07 Thread Amker.Cheng
Hi, I found in gcc/config/arm/ieee754-df.S, the function __aeabi_d2uiz converts double into unsigned integer and the function always return 0 if the double value is negative. for example the following codes: ---sample codes-- unsigned long ul; double d = -1.1