xref: /netbsd/lib/libm/src/s_infinity.c (revision d797a5d5)
1*d797a5d5Sjtc /*
2*d797a5d5Sjtc  * Copyright (c) 1994 Winning Strategies, Inc.
3*d797a5d5Sjtc  * All rights reserved.
4*d797a5d5Sjtc  *
5*d797a5d5Sjtc  * Redistribution and use in source and binary forms, with or without
6*d797a5d5Sjtc  * modification, are permitted provided that the following conditions
7*d797a5d5Sjtc  * are met:
8*d797a5d5Sjtc  * 1. Redistributions of source code must retain the above copyright
9*d797a5d5Sjtc  *    notice, this list of conditions and the following disclaimer.
10*d797a5d5Sjtc  * 2. Redistributions in binary form must reproduce the above copyright
11*d797a5d5Sjtc  *    notice, this list of conditions and the following disclaimer in the
12*d797a5d5Sjtc  *    documentation and/or other materials provided with the distribution.
13*d797a5d5Sjtc  * 3. All advertising materials mentioning features or use of this software
14*d797a5d5Sjtc  *    must display the following acknowledgement:
15*d797a5d5Sjtc  *      This product includes software developed by Winning Strategies, Inc.
16*d797a5d5Sjtc  * 4. The name of the author may not be used to endorse or promote products
17*d797a5d5Sjtc  *    derived from this software without specific prior written permission.
18*d797a5d5Sjtc  *
19*d797a5d5Sjtc  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20*d797a5d5Sjtc  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21*d797a5d5Sjtc  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22*d797a5d5Sjtc  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23*d797a5d5Sjtc  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24*d797a5d5Sjtc  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25*d797a5d5Sjtc  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26*d797a5d5Sjtc  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27*d797a5d5Sjtc  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28*d797a5d5Sjtc  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29*d797a5d5Sjtc  */
30*d797a5d5Sjtc 
31*d797a5d5Sjtc #include <machine/endian.h>
32*d797a5d5Sjtc 
33*d797a5d5Sjtc #if BYTE_ORDER == LITTLE_ENDIAN
34*d797a5d5Sjtc char __infinity[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x7f };
35*d797a5d5Sjtc #else
36*d797a5d5Sjtc char __infinity[] = { 0x7f, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
37*d797a5d5Sjtc #endif
38