mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
Merge in upstream openbsd commit yu8HfTXRTrrv8b2W which allows isnanf, isnand, isinff, and isinfd to be deleted.
This commit is contained in:
@@ -12,10 +12,6 @@ objs += $(addprefix liba/src/, \
|
||||
fpclassify.o \
|
||||
fpclassifyf.o \
|
||||
ieee754.o \
|
||||
isnand.o \
|
||||
isnanf.o \
|
||||
isinfd.o \
|
||||
isinff.o \
|
||||
malloc.o \
|
||||
memcmp.o \
|
||||
memcpy.o \
|
||||
|
||||
2
liba/src/external/openbsd/s_roundf.c
vendored
2
liba/src/external/openbsd/s_roundf.c
vendored
@@ -34,7 +34,7 @@ roundf(float x)
|
||||
{
|
||||
float t;
|
||||
|
||||
if (isinff(x) || isnanf(x))
|
||||
if (isinf(x) || isnan(x))
|
||||
return (x);
|
||||
|
||||
if (x >= 0.0) {
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#include <math.h>
|
||||
#include <private/ieee754.h>
|
||||
|
||||
int isinfd(double x) {
|
||||
return (ieee754exp64(x) == 0x7FF && ieee754man64(x) == 0);
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
#include <math.h>
|
||||
#include <private/ieee754.h>
|
||||
|
||||
int isinff(float x) {
|
||||
return (ieee754exp32(x) == 0xFF && ieee754man32(x) == 0);
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
#include <math.h>
|
||||
#include <private/ieee754.h>
|
||||
|
||||
int isnand(double x) {
|
||||
return (ieee754exp64(x) == 0x7FF && ieee754man64(x) != 0);
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
#include <math.h>
|
||||
#include <private/ieee754.h>
|
||||
|
||||
int isnanf(float x) {
|
||||
return (ieee754exp32(x) == 0xFF && ieee754man32(x) != 0);
|
||||
}
|
||||
Reference in New Issue
Block a user