Module Name: src Committed By: christos Date: Thu Sep 29 22:53:13 UTC 2011
Modified Files: src/lib/libc/arch/i386/gen: flt_rounds.S Log Message: even shorter To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/lib/libc/arch/i386/gen/flt_rounds.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/arch/i386/gen/flt_rounds.S diff -u src/lib/libc/arch/i386/gen/flt_rounds.S:1.7 src/lib/libc/arch/i386/gen/flt_rounds.S:1.8 --- src/lib/libc/arch/i386/gen/flt_rounds.S:1.7 Thu Sep 29 18:46:00 2011 +++ src/lib/libc/arch/i386/gen/flt_rounds.S Thu Sep 29 18:53:13 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: flt_rounds.S,v 1.7 2011/09/29 22:46:00 christos Exp $ */ +/* $NetBSD: flt_rounds.S,v 1.8 2011/09/29 22:53:13 christos Exp $ */ #include <machine/asm.h> @@ -12,9 +12,8 @@ _ALIGN_TEXT ENTRY(__flt_rounds) fnstcw -4(%esp) - movl -4(%esp), %ecx - shrl $9, %ecx - andl $6, %ecx - xorl $1, %eax /* map 0,1,2,3 -> 1,0,3,2 */ + movl -4(%esp), %eax + shrl $10, %eax andl $3, %eax + xorl $1, %eax /* map 0,1,2,3 -> 1,0,3,2 */ ret