diff options
-rw-r--r-- | lib/libm/arch/hppa/e_remainder.c | 5 | ||||
-rw-r--r-- | lib/libm/arch/hppa/s_ceil.c | 2 | ||||
-rw-r--r-- | lib/libm/arch/hppa/s_floor.c | 2 | ||||
-rw-r--r-- | lib/libm/arch/hppa/s_round.c | 2 | ||||
-rw-r--r-- | lib/libm/arch/hppa/s_trunc.c | 2 | ||||
-rw-r--r-- | lib/libm/shlib_version | 2 |
6 files changed, 13 insertions, 2 deletions
diff --git a/lib/libm/arch/hppa/e_remainder.c b/lib/libm/arch/hppa/e_remainder.c index 7dba95689da..e7b02d4dde4 100644 --- a/lib/libm/arch/hppa/e_remainder.c +++ b/lib/libm/arch/hppa/e_remainder.c @@ -2,7 +2,8 @@ * Written by Michael Shalayeff. Public Domain */ -#include "math.h" +#include <sys/cdefs.h> +#include <math.h> double remainder(double x, double p) @@ -11,3 +12,5 @@ remainder(double x, double p) return (x); } + +__weak_alias(remainderl, remainder); diff --git a/lib/libm/arch/hppa/s_ceil.c b/lib/libm/arch/hppa/s_ceil.c index e3dc53ff180..a76201406d5 100644 --- a/lib/libm/arch/hppa/s_ceil.c +++ b/lib/libm/arch/hppa/s_ceil.c @@ -21,3 +21,5 @@ ceil(double x) __asm__ __volatile__("fldds 0(%0), %%fr0" :: "r" (&ofpsr) : "memory"); return (x); } + +__weak_alias(ceill, ceil); diff --git a/lib/libm/arch/hppa/s_floor.c b/lib/libm/arch/hppa/s_floor.c index 6a84aad4b2a..9683d9a1580 100644 --- a/lib/libm/arch/hppa/s_floor.c +++ b/lib/libm/arch/hppa/s_floor.c @@ -20,3 +20,5 @@ floor(double x) __asm__ __volatile__("fldds 0(%0), %%fr0" :: "r" (&ofpsr) : "memory"); return (x); } + +__weak_alias(floorl, floor); diff --git a/lib/libm/arch/hppa/s_round.c b/lib/libm/arch/hppa/s_round.c index a9cda68c22a..4462f0772f3 100644 --- a/lib/libm/arch/hppa/s_round.c +++ b/lib/libm/arch/hppa/s_round.c @@ -21,3 +21,5 @@ round(double x) __asm__ __volatile__("fldds 0(%0), %%fr0" :: "r" (&ofpsr) : "memory"); return (x); } + +__weak_alias(roundl, round); diff --git a/lib/libm/arch/hppa/s_trunc.c b/lib/libm/arch/hppa/s_trunc.c index 22e2b76349e..989ee3d914e 100644 --- a/lib/libm/arch/hppa/s_trunc.c +++ b/lib/libm/arch/hppa/s_trunc.c @@ -21,3 +21,5 @@ trunc(double x) __asm__ __volatile__("fldds 0(%0), %%fr0" :: "r" (&ofpsr) : "memory"); return (x); } + +__weak_alias(truncl, trunc); diff --git a/lib/libm/shlib_version b/lib/libm/shlib_version index 5b844bbf422..b39addfcc64 100644 --- a/lib/libm/shlib_version +++ b/lib/libm/shlib_version @@ -1,2 +1,2 @@ major=7 -minor=0 +minor=1 |