Current Path : /usr/src/contrib/gcc/config/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/src/contrib/gcc/config/floatundidf.c |
/* Public domain. */ typedef unsigned int USItype __attribute__ ((mode (SI))); typedef unsigned int UDItype __attribute__ ((mode (DI))); typedef float DFtype __attribute__ ((mode (DF))); DFtype __floatundidf (UDItype); DFtype __floatundidf (UDItype u) { /* When the word size is small, we never get any rounding error. */ DFtype f = (USItype) (u >> (sizeof (USItype) * 8)); f *= 0x1p32f; f += (USItype) u; return f; }