Changes between Initial Version and Version 1 of Ticket #222, comment 5
- Timestamp:
- Jun 12, 2011, 12:55:07 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #222, comment 5
initial v1 6 6 {{{ 7 7 8 inline unsigned__fstcw(void)8 inline USHORT __fstcw(void) 9 9 { 10 unsignedout;10 USHORT out; 11 11 asm ( "fstcw %0\n\t" : "=m" (out) : : ); 12 12 return out; 13 13 } 14 14 15 inline void __fldcw( unsignedin)15 inline void __fldcw(USHORT in) 16 16 { 17 17 asm ( "fldcw %0\n\t" : : "m" (in) : ); 18 18 } 19 19 20 #define __FPU_CW_SAVE unsignedfcwState = __fstcw();20 #define __FPU_CW_SAVE USHORT fcwState = __fstcw(); 21 21 #define __FPU_CW_RESTORE __fldcw(fcwState); 22 22