History

libtcc1.c: Fix __asm__() in __tcc_fpinit and __tcc_cvt_ftol

Ramsay Jones committed 13 years ago

Commit 235a6501 parent 9382d6f1 file · +3 −3Browse files

Unified · Split

lib/libtcc1.c+3−3
@@ -482,7 +482,7 @@ long long __ashldi3(long long a, int b) · 481 unmodified lines
482void __tcc_fpinit(void)482void __tcc_fpinit(void)
483{483{
484 unsigned c = 0x137F;484 unsigned c = 0x137F;
485 __asm__ __volatile__ ("fldcw %0" : "=m" (c));485 __asm__ __volatile__ ("fldcw %0" : : "m" (c));
486}486}
487#endif487#endif
488long long __tcc_cvt_ftol(long double x)488long long __tcc_cvt_ftol(long double x)
@@ -491,9 +491,9 @@ long long __tcc_cvt_ftol(long double x) · 2 unmodified lines
491 long long ret;491 long long ret;
492 __asm__ __volatile__ ("fnstcw %0" : "=m" (c0));492 __asm__ __volatile__ ("fnstcw %0" : "=m" (c0));
493 c1 = c0 | 0x0C00;493 c1 = c0 | 0x0C00;
494 __asm__ __volatile__ ("fldcw %0" : "=m" (c1));494 __asm__ __volatile__ ("fldcw %0" : : "m" (c1));
495 __asm__ __volatile__ ("fistpll %0" : "=m" (ret));495 __asm__ __volatile__ ("fistpll %0" : "=m" (ret));
496 __asm__ __volatile__ ("fldcw %0" : "=m" (c0));496 __asm__ __volatile__ ("fldcw %0" : : "m" (c0));
497 return ret;497 return ret;
498}498}
499#endif /* !__x86_64__ */499#endif /* !__x86_64__ */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t