Changeset 2139 for trunk


Ignore:
Timestamp:
Jul 2, 2005, 2:15:59 AM (20 years ago)
Author:
bird
Message:

o Made isinf[lf] return -1 for negative infinity like GLIBC does.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/bsd/gen/isinf.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r2138 r2139  
    4545
    4646        u.d = d;
     47#ifdef __EMX__
     48        return (u.bits.exp == 2047 && u.bits.manl == 0 && u.bits.manh == 0)
     49            ? u.bits.sign ? -1 : 1 : 0;
     50#else
    4751        return (u.bits.exp == 2047 && u.bits.manl == 0 && u.bits.manh == 0);
     52#endif
    4853}
    4954
     
    5459
    5560        u.f = f;
     61#ifdef __EMX__
     62        return (u.bits.exp == 255 && u.bits.man == 0)
     63            ? u.bits.sign ? -1 : 1 : 0;
     64#else
    5665        return (u.bits.exp == 255 && u.bits.man == 0);
     66#endif
    5767}
    5868
     
    6474        u.e = e;
    6575        mask_nbit_l(u);
     76#ifdef __EMX__
     77#ifndef __alpha__
     78        return (u.bits.exp == 32767 && u.bits.manl == 0 && u.bits.manh == 0)
     79#else
     80        return (u.bits.exp == 2047 && u.bits.manl == 0 && u.bits.manh == 0)
     81#endif
     82            ? u.bits.sign ? -1 : 1 : 0;
     83#else
    6684#ifndef __alpha__
    6785        return (u.bits.exp == 32767 && u.bits.manl == 0 && u.bits.manh == 0);
     
    6987        return (u.bits.exp == 2047 && u.bits.manl == 0 && u.bits.manh == 0);
    7088#endif
     89#endif
    7190}
Note: See TracChangeset for help on using the changeset viewer.