Exemple #1
0
int
__issignalingd32 (_Decimal32 x)
{
  uint32_t hx;
  GET_DEC32_WORD (hx, x);

  /* 0 11111 10 ... == sNaN  */
  return (hx & DEC32_SNAN_MASK) == DEC32_SNAN_MASK;
}
Exemple #2
0
int
__isinfd32 (_Decimal32 x)
{
    uint32_t hx;
    GET_DEC32_WORD (hx, x);

    /* 0 1111000 ... == sINF  */
    return ((hx & DEC32_NAN_MASK) == DEC32_INF_MASK) ?
           ((hx & 0x80000000) ? -1 : 1) : 0;
}
Exemple #3
0
int
__isfinited32 (_Decimal32 x)
{
    uint32_t hx;
    GET_DEC32_WORD (hx, x);

    if (((hx & DEC32_NAN_MASK) == DEC32_NAN_MASK) ||
            ((hx & DEC32_INF_MASK) == DEC32_INF_MASK))
        return 0;
    return 1;
}