示例#1
0
文件: _dd_to_si.c 项目: ChaosJohn/gcc
SItype
__bid_fixddsi (_Decimal64 x) {
  SItype res = 0xbaddbadd;
  union decimal64 ux;

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

  return (res);
}
示例#2
0
文件: _sd_to_si.c 项目: 0day-ci/gcc
SItype
__bid_fixsdsi (_Decimal32 x) {
  SItype res = 0xbaddbadd;
  UINT64 x64;
  union decimal32 ux;

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

  return (res);
}