Browse Source

some assemblers don't like fistpq; use the alt. mnemonic fistpll

Rich Felker 13 years ago
parent
commit
0e195dfaa4
3 changed files with 3 additions and 3 deletions
  1. 1 1
      src/math/i386/llrint.s
  2. 1 1
      src/math/i386/llrintf.s
  3. 1 1
      src/math/i386/llrintl.s

+ 1 - 1
src/math/i386/llrint.s

@@ -2,7 +2,7 @@
 .type llrint,@function
 llrint:
 	fldl 4(%esp)
-	fistpq 4(%esp)
+	fistpll 4(%esp)
 	mov 4(%esp),%eax
 	mov 8(%esp),%edx
 	ret

+ 1 - 1
src/math/i386/llrintf.s

@@ -3,7 +3,7 @@
 llrintf:
 	sub $8,%esp
 	flds 12(%esp)
-	fistpq (%esp)
+	fistpll (%esp)
 	pop %eax
 	pop %edx
 	ret

+ 1 - 1
src/math/i386/llrintl.s

@@ -2,7 +2,7 @@
 .type llrintl,@function
 llrintl:
 	fldt 4(%esp)
-	fistpq 4(%esp)
+	fistpll 4(%esp)
 	mov 4(%esp),%eax
 	mov 8(%esp),%edx
 	ret