summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/aarch64/gen/fpgetround.c7
-rw-r--r--lib/libc/arch/aarch64/gen/fpsetround.c6
2 files changed, 3 insertions, 10 deletions
diff --git a/lib/libc/arch/aarch64/gen/fpgetround.c b/lib/libc/arch/aarch64/gen/fpgetround.c
index fa7dda454c7..046ebe473ea 100644
--- a/lib/libc/arch/aarch64/gen/fpgetround.c
+++ b/lib/libc/arch/aarch64/gen/fpgetround.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpgetround.c,v 1.1 2017/01/11 18:09:24 patrick Exp $ */
+/* $OpenBSD: fpgetround.c,v 1.2 2017/03/22 07:32:34 guenther Exp $ */
/*
* Copyright (C) 2014 Andrew Turner
* All rights reserved.
@@ -31,10 +31,6 @@
#include <sys/types.h>
#include <ieeefp.h>
-#ifdef __weak_alias
-__weak_alias(_fpgetround,fpgetround);
-#endif
-
fp_rnd
fpgetround(void)
{
@@ -44,3 +40,4 @@ fpgetround(void)
return ((fpscr >> 22) & 3);
}
+DEF_WEAK(fpgetround);
diff --git a/lib/libc/arch/aarch64/gen/fpsetround.c b/lib/libc/arch/aarch64/gen/fpsetround.c
index 05f1c6e7d4e..ff36af0b1e3 100644
--- a/lib/libc/arch/aarch64/gen/fpsetround.c
+++ b/lib/libc/arch/aarch64/gen/fpsetround.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpsetround.c,v 1.1 2017/01/11 18:09:24 patrick Exp $ */
+/* $OpenBSD: fpsetround.c,v 1.2 2017/03/22 07:32:34 guenther Exp $ */
/*
* Copyright (C) 2014 Andrew Turner
* All rights reserved.
@@ -31,10 +31,6 @@
#include <sys/types.h>
#include <ieeefp.h>
-#ifdef __weak_alias
-__weak_alias(_fpsetround,fpsetround);
-#endif
-
fp_rnd
fpsetround(fp_rnd rnd_dir)
{