Add the definitions of __infinity and __nan.

This commit is contained in:
Andrew Turner 2015-08-20 13:11:52 +00:00
parent 52afd687c3
commit ccee502763
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286959
3 changed files with 17 additions and 0 deletions

View File

@ -17,6 +17,8 @@ FBSD_1.0 {
__flt_rounds;
fpgetmask;
fpsetmask;
__infinity;
__nan;
setjmp;
longjmp;
sigsetjmp;

View File

@ -5,6 +5,7 @@ SRCS+= _ctx_start.S \
flt_rounds.c \
fpgetmask.c \
fpsetmask.c \
infinity.c \
ldexp.c \
makecontext.c \
_setjmp.S \

View File

@ -0,0 +1,14 @@
/*
* infinity.c
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <math.h>
/* bytes for +Infinity on aarch64 */
const union __infinity_un __infinity = { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } };
/* bytes for NaN */
const union __nan_un __nan = { { 0, 0, 0xc0, 0xff } };