Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libm/arch/arm lrint() and lrintf() are supposed to use t...



details:   https://anonhg.NetBSD.org/src/rev/c7843fc2026c
branches:  trunk
changeset: 822364:c7843fc2026c
user:      chs <chs%NetBSD.org@localhost>
date:      Thu Mar 16 16:32:12 2017 +0000

description:
lrint() and lrintf() are supposed to use the current rounding mode,
so use vcvtr rather than vcvt.

diffstat:

 lib/libm/arch/arm/lrint.S  |  4 ++--
 lib/libm/arch/arm/lrintf.S |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r b085ac8768bf -r c7843fc2026c lib/libm/arch/arm/lrint.S
--- a/lib/libm/arch/arm/lrint.S Thu Mar 16 16:13:19 2017 +0000
+++ b/lib/libm/arch/arm/lrint.S Thu Mar 16 16:32:12 2017 +0000
@@ -29,14 +29,14 @@
 
 #include <arm/asm.h>
 
-RCSID("$NetBSD: lrint.S,v 1.1 2013/02/11 12:43:03 matt Exp $")
+RCSID("$NetBSD: lrint.S,v 1.2 2017/03/16 16:32:12 chs Exp $")
 
 STRONG_ALIAS(_lrintl, _lrint)
 WEAK_ALIAS(lrintl, _lrintl)
 WEAK_ALIAS(lrint, _lrint)
 
 ENTRY(_lrint)
-       vcvt.s32.f64    s0, d0
+       vcvtr.s32.f64   s0, d0
        vmov            r0, s0
        RET
 END(_lrint)
diff -r b085ac8768bf -r c7843fc2026c lib/libm/arch/arm/lrintf.S
--- a/lib/libm/arch/arm/lrintf.S        Thu Mar 16 16:13:19 2017 +0000
+++ b/lib/libm/arch/arm/lrintf.S        Thu Mar 16 16:32:12 2017 +0000
@@ -29,12 +29,12 @@
 
 #include <arm/asm.h>
 
-RCSID("$NetBSD: lrintf.S,v 1.1 2013/02/11 12:43:03 matt Exp $")
+RCSID("$NetBSD: lrintf.S,v 1.2 2017/03/16 16:32:12 chs Exp $")
 
 WEAK_ALIAS(lrintf, _lrintf)
 
 ENTRY(_lrintf)
-       vcvt.s32.f32    s0, s0
+       vcvtr.s32.f32   s0, s0
        vmov            r0, s0
        RET
 END(_lrintf)



Home | Main Index | Thread Index | Old Index