소스 검색

fenv: fix i386 fesetround for sse

i386 fenv code checks __hwcap for sse support, but in fesetround the sse
code was unconditionally jumped over after the test so the sse rounding
mode was never set.
Szabolcs Nagy 11 년 전
부모
커밋
7e01b8f09b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/fenv/i386/fenv.s

+ 1 - 1
src/fenv/i386/fenv.s

@@ -75,7 +75,7 @@ __fesetround:
 1:	addl $__hwcap-1b,(%esp)
 	pop %edx
 	testl $0x02000000,(%edx)
-	jmp 1f
+	jz 1f
 	stmxcsr (%esp)
 	shl $3,%ch
 	andb $0x9f,1(%esp)