Merge in upstream openbsd commit yu8HfTXRTrrv8b2W which allows isnanf, isnand, isinff, and isinfd to be deleted.

This commit is contained in:
Jacob Young
2017-09-12 03:56:25 -04:00
committed by Ecco
parent da1e66e798
commit f2b7f92d71
6 changed files with 1 additions and 29 deletions

View File

@@ -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 \

View File

@@ -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) {

View File

@@ -1,6 +0,0 @@
#include <math.h>
#include <private/ieee754.h>
int isinfd(double x) {
return (ieee754exp64(x) == 0x7FF && ieee754man64(x) == 0);
}

View File

@@ -1,6 +0,0 @@
#include <math.h>
#include <private/ieee754.h>
int isinff(float x) {
return (ieee754exp32(x) == 0xFF && ieee754man32(x) == 0);
}

View File

@@ -1,6 +0,0 @@
#include <math.h>
#include <private/ieee754.h>
int isnand(double x) {
return (ieee754exp64(x) == 0x7FF && ieee754man64(x) != 0);
}

View File

@@ -1,6 +0,0 @@
#include <math.h>
#include <private/ieee754.h>
int isnanf(float x) {
return (ieee754exp32(x) == 0xFF && ieee754man32(x) != 0);
}