コード例 #1
0
USItype
__bid_fixunsddsi (_Decimal64 x) {
  USItype res = 0xbaddbadd;
  union decimal64 ux;

  ux.d = x;
  res = __bid64_to_uint32_xint (ux.i);

  if (res == 0x80000000) res = 0; // for NaNs too
  return (res);
}
コード例 #2
0
ファイル: _sd_to_usi.c プロジェクト: abumaryam/gcc
USItype
__bid_fixunssdsi (_Decimal32 x) {
  USItype res = 0xbaddbadd;
  UINT64 x64;
  union decimal32 ux;

  ux.d = x;
  x64 = __bid32_to_bid64 (ux.i);
  res = __bid64_to_uint32_xint (x64);

  if (res == 0x80000000) res = 0; // for NaNs too
  return (res);
}