diff options
Diffstat (limited to 'lib/libc/arch/sh/gen/fpgetround.c')
-rw-r--r-- | lib/libc/arch/sh/gen/fpgetround.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/arch/sh/gen/fpgetround.c b/lib/libc/arch/sh/gen/fpgetround.c index 3f45ea139ed..de61effe63b 100644 --- a/lib/libc/arch/sh/gen/fpgetround.c +++ b/lib/libc/arch/sh/gen/fpgetround.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fpgetround.c,v 1.2 2014/04/18 15:09:52 guenther Exp $ */ +/* $OpenBSD: fpgetround.c,v 1.3 2016/07/26 19:07:09 guenther Exp $ */ /* * Copyright (c) 2006 Miodrag Vallat. * @@ -20,10 +20,11 @@ #include <ieeefp.h> fp_rnd -fpgetround() +fpgetround(void) { register_t fpscr; __asm__ volatile ("sts fpscr, %0" : "=r" (fpscr)); return (fpscr & 0x3); } +DEF_WEAK(fpgetround); |