OSDN Git Service

libgcc/
[pf3gnuchains/gcc-fork.git] / libgcc / config / libbid / _dd_to_udi.c
index fce0bfa..4f784cc 100644 (file)
@@ -28,14 +28,16 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
 
 #include "bid_conf.h"
 #include "bid_functions.h"
+#include "bid_gcc_intrinsics.h"
 
 UDItype
 __bid_fixunsdddi (_Decimal64 x) {
-  UDItype res;
+  UDItype res = 0xbaddbaddbaddbaddull;
   union decimal64 ux;
 
   ux.d = x;
   res = __bid64_to_uint64_xint (ux.i);
+
   if (res == 0x8000000000000000ull) res = 0; // for NaNs too
   return (res);
 }