Browse Source

Refs #75. Use ffreep opcode directly. Please check out http://www.sandpile.org/x86/opc_fpu.htm .

tags/v0.2.0^2
Xianyi Zhang 13 years ago
parent
commit
a4daa34db7
2 changed files with 9 additions and 0 deletions
  1. +5
    -0
      common_x86.h
  2. +4
    -0
      common_x86_64.h

+ 5
- 0
common_x86.h View File

@@ -356,4 +356,9 @@ REALNAME:

#ifndef ALIGN_6
#define ALIGN_6 .align 64

// ffreep %st(0).
// Because Clang didn't support ffreep, we directly use the opcode.
// Please check out http://www.sandpile.org/x86/opc_fpu.htm
#define ffreep .byte 0xdf, 0xc0 #
#endif

+ 4
- 0
common_x86_64.h View File

@@ -448,4 +448,8 @@ REALNAME:
#define ALIGN_6 .align 64
#endif

// ffreep %st(0).
// Because Clang didn't support ffreep, we directly use the opcode.
// Please check out http://www.sandpile.org/x86/opc_fpu.htm
#define ffreep .byte 0xdf, 0xc0 #
#endif

Loading…
Cancel
Save