summaryrefslogtreecommitdiffstats
path: root/lib/libm/arch/powerpc/fenv.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-09-12 19:47:01 +0000
committerguenther <guenther@openbsd.org>2016-09-12 19:47:01 +0000
commit2f2c00629eff6a304ebffb255fc56f4fa7a1833b (patch)
treeb9c0095adcecbb9788e0b6034e82ec405e3f1288 /lib/libm/arch/powerpc/fenv.c
parentMore #include cleanup per POSIX: (diff)
downloadwireguard-openbsd-2f2c00629eff6a304ebffb255fc56f4fa7a1833b.tar.xz
wireguard-openbsd-2f2c00629eff6a304ebffb255fc56f4fa7a1833b.zip
Reduce libm's exports and make internal calls go direct.
All dependencies on libc are now via reserved/standardized names. ok kettenis@ millert@ deraadt@
Diffstat (limited to 'lib/libm/arch/powerpc/fenv.c')
-rw-r--r--lib/libm/arch/powerpc/fenv.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/libm/arch/powerpc/fenv.c b/lib/libm/arch/powerpc/fenv.c
index 28e628b47e0..5ebe465b535 100644
--- a/lib/libm/arch/powerpc/fenv.c
+++ b/lib/libm/arch/powerpc/fenv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fenv.c,v 1.4 2014/04/18 15:09:52 guenther Exp $ */
+/* $OpenBSD: fenv.c,v 1.5 2016/09/12 19:47:02 guenther Exp $ */
/*
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
@@ -57,6 +57,7 @@ feclearexcept(int excepts)
return (0);
}
+DEF_STD(feclearexcept);
/*
* The fegetexceptflag() function stores an implementation-defined
@@ -92,6 +93,7 @@ feraiseexcept(int excepts)
return (0);
}
+DEF_STD(feraiseexcept);
/*
* This function sets the floating-point status flags indicated by the argument
@@ -123,6 +125,7 @@ fesetexceptflag(const fexcept_t *flagp, int excepts)
return (0);
}
+DEF_STD(fesetexceptflag);
/*
* The fetestexcept() function determines which of a specified subset of the
@@ -141,6 +144,7 @@ fetestexcept(int excepts)
return (u.bits[1] & excepts);
}
+DEF_STD(fetestexcept);
/*
* The fegetround() function gets the current rounding direction.
@@ -155,6 +159,7 @@ fegetround(void)
return (u.bits[1] & _ROUND_MASK);
}
+DEF_STD(fegetround);
/*
* The fesetround() function establishes the rounding direction represented by
@@ -182,6 +187,7 @@ fesetround(int round)
return (0);
}
+DEF_STD(fesetround);
/*
* The fegetenv() function attempts to store the current floating-point
@@ -199,6 +205,7 @@ fegetenv(fenv_t *envp)
return (0);
}
+DEF_STD(fegetenv);
/*
* The feholdexcept() function saves the current floating-point environment
@@ -225,6 +232,7 @@ feholdexcept(fenv_t *envp)
return (0);
}
+DEF_STD(feholdexcept);
/*
* The fesetenv() function attempts to establish the floating-point environment
@@ -247,6 +255,7 @@ fesetenv(const fenv_t *envp)
return (0);
}
+DEF_STD(fesetenv);
/*
* The feupdateenv() function saves the currently raised floating-point
@@ -272,6 +281,7 @@ feupdateenv(const fenv_t *envp)
return (0);
}
+DEF_STD(feupdateenv);
/*
* The following functions are extentions to the standard