Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libm/arch/m68k Improve the code. %sp@(4) is already loa...
details: https://anonhg.NetBSD.org/src/rev/3e55930baf8d
branches: trunk
changeset: 331395:3e55930baf8d
user: isaki <isaki%NetBSD.org@localhost>
date: Sun Aug 10 13:30:43 2014 +0000
description:
Improve the code. %sp@(4) is already loaded in %fp0.
PR/49083 (2)
diffstat:
lib/libm/arch/m68k/s_ceil.S | 6 +++---
lib/libm/arch/m68k/s_floor.S | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 3d769db63d2a -r 3e55930baf8d lib/libm/arch/m68k/s_ceil.S
--- a/lib/libm/arch/m68k/s_ceil.S Sun Aug 10 13:29:10 2014 +0000
+++ b/lib/libm/arch/m68k/s_ceil.S Sun Aug 10 13:30:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: s_ceil.S,v 1.8 2014/08/10 13:29:10 isaki Exp $ */
+/* $NetBSD: s_ceil.S,v 1.9 2014/08/10 13:30:43 isaki Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -38,7 +38,7 @@
;_sccsid:
;.asciz "from: @(#)floor.s 5.1 (Berkeley) 5/17/90"
-RCSID("$NetBSD: s_ceil.S,v 1.8 2014/08/10 13:29:10 isaki Exp $")
+RCSID("$NetBSD: s_ceil.S,v 1.9 2014/08/10 13:30:43 isaki Exp $")
| ceil(x)
ENTRY(ceil)
@@ -46,7 +46,7 @@
fmoved %sp@(4),%fp0 | get argument
fbun Lret | if NaN, return NaN
fmovel #0x30,%fpcr | round to +inf
- fintd %sp@(4),%fp0 | truncate
+ fintx %fp0 | truncate
fmovel %d0,%fpcr | restore old FPCR
Lret:
#ifndef __SVR4_ABI__
diff -r 3d769db63d2a -r 3e55930baf8d lib/libm/arch/m68k/s_floor.S
--- a/lib/libm/arch/m68k/s_floor.S Sun Aug 10 13:29:10 2014 +0000
+++ b/lib/libm/arch/m68k/s_floor.S Sun Aug 10 13:30:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: s_floor.S,v 1.8 2014/08/10 13:29:10 isaki Exp $ */
+/* $NetBSD: s_floor.S,v 1.9 2014/08/10 13:30:43 isaki Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -38,7 +38,7 @@
;_sccsid:
;.asciz "from: @(#)floor.s 5.1 (Berkeley) 5/17/90"
-RCSID("$NetBSD: s_floor.S,v 1.8 2014/08/10 13:29:10 isaki Exp $")
+RCSID("$NetBSD: s_floor.S,v 1.9 2014/08/10 13:30:43 isaki Exp $")
| floor(x)
| the largest integer no larger than x
@@ -47,7 +47,7 @@
fmoved %sp@(4),%fp0 | get argument
fbun Lret | if NaN, return NaN
fmovel #0x20,%fpcr | round to -inf
- fintd %sp@(4),%fp0 | truncate
+ fintx %fp0 | truncate
fmovel %d0,%fpcr | restore old FPCR
Lret:
#ifndef __SVR4_ABI__
Home |
Main Index |
Thread Index |
Old Index