Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/x86_64/gen even simpler.
details: https://anonhg.NetBSD.org/src/rev/8fca384979e0
branches: trunk
changeset: 770001:8fca384979e0
user: christos <christos%NetBSD.org@localhost>
date: Thu Sep 29 22:55:45 2011 +0000
description:
even simpler.
diffstat:
lib/libc/arch/x86_64/gen/flt_rounds.S | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (22 lines):
diff -r 642f2ee2b9c4 -r 8fca384979e0 lib/libc/arch/x86_64/gen/flt_rounds.S
--- a/lib/libc/arch/x86_64/gen/flt_rounds.S Thu Sep 29 22:53:13 2011 +0000
+++ b/lib/libc/arch/x86_64/gen/flt_rounds.S Thu Sep 29 22:55:45 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: flt_rounds.S,v 1.4 2011/09/29 22:45:20 christos Exp $ */
+/* $NetBSD: flt_rounds.S,v 1.5 2011/09/29 22:55:45 christos Exp $ */
#include <machine/asm.h>
@@ -12,9 +12,8 @@
_ALIGN_TEXT
ENTRY(__flt_rounds)
fnstcw -4(%rsp)
- movl -4(%rsp), %ecx
- shrl $9, %ecx
- andl $6, %ecx
+ movl -4(%rsp), %eax
+ shrl $10, %eax
+ andl $3, %eax
xorl $1, %eax /* map 0,1,2,3 -> 1,0,3,2 */
- andl $3, %eax
ret
Home |
Main Index |
Thread Index |
Old Index