mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 06:15:33 -04:00
These sys/cdefs.h are not needed. Purge them. They are mostly left-over
from the $FreeBSD$ removal. A few in libc are still required for macros
that cdefs.h defines. Keep those.
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D42385
(cherry picked from commit 559a218c9b)
23 lines
370 B
C
23 lines
370 B
C
/*
|
|
* infinity.c
|
|
*/
|
|
|
|
#include <math.h>
|
|
|
|
/* bytes for +Infinity on a 387 */
|
|
const union __infinity_un __infinity = {
|
|
#if BYTE_ORDER == BIG_ENDIAN
|
|
{ 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 }
|
|
#else
|
|
{ 0, 0, 0, 0, 0, 0, 0xf0, 0x7f }
|
|
#endif
|
|
};
|
|
|
|
/* bytes for NaN */
|
|
const union __nan_un __nan = {
|
|
#if BYTE_ORDER == BIG_ENDIAN
|
|
{0xff, 0xc0, 0, 0}
|
|
#else
|
|
{ 0, 0, 0xc0, 0xff }
|
|
#endif
|
|
};
|