[BACK]Return to infinityf_ieee754.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Annotation of src/lib/libc/gen/infinityf_ieee754.c, Revision 1.2

1.2     ! lukem       1: /*     $NetBSD: infinityf_ieee754.c,v 1.1 2003/10/25 22:31:20 kleink Exp $     */
1.1       kleink      2:
                      3: /*
                      4:  * IEEE-compatible infinityf.c -- public domain.
                      5:  */
                      6:
1.2     ! lukem       7: #include <sys/cdefs.h>
        !             8: #if defined(LIBC_SCCS) && !defined(lint)
        !             9: __RCSID("$NetBSD$");
        !            10: #endif /* LIBC_SCCS and not lint */
        !            11:
1.1       kleink     12: #include <math.h>
                     13: #include <machine/endian.h>
                     14:
                     15: const union __float_u __infinityf =
                     16: #if BYTE_ORDER == BIG_ENDIAN
                     17:        { { 0x7f, 0x80,     0,    0 } };
                     18: #else
                     19:        { {    0,    0,  0x80, 0x7f } };
                     20: #endif

CVSweb <webmaster@jp.NetBSD.org>