mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
Add the definitions of __infinity and __nan.
This commit is contained in:
parent
52afd687c3
commit
ccee502763
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286959
@ -17,6 +17,8 @@ FBSD_1.0 {
|
||||
__flt_rounds;
|
||||
fpgetmask;
|
||||
fpsetmask;
|
||||
__infinity;
|
||||
__nan;
|
||||
setjmp;
|
||||
longjmp;
|
||||
sigsetjmp;
|
||||
|
@ -5,6 +5,7 @@ SRCS+= _ctx_start.S \
|
||||
flt_rounds.c \
|
||||
fpgetmask.c \
|
||||
fpsetmask.c \
|
||||
infinity.c \
|
||||
ldexp.c \
|
||||
makecontext.c \
|
||||
_setjmp.S \
|
||||
|
14
lib/libc/aarch64/gen/infinity.c
Normal file
14
lib/libc/aarch64/gen/infinity.c
Normal 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 } };
|
Loading…
Reference in New Issue
Block a user