|
StuBS
|
512 byte structure for FPU / MMX / SSE registers corresponds to the layout used by the instructions fxsave and fxrstor. More...
#include <machine/fpu.h>
Classes | |
| struct | ST |
| 80 bit registers for FPU stack / MMX More... | |
| struct | XMM |
| 128 bit SSE registers More... | |
Public Member Functions | |
| void | init () |
| Set structure to the initial FPU state Clears the FPU state (but its not just zeroed!). | |
| void | save () |
| Save the current FPU (+ MMX + SSE) state into this structure. | |
| void | restore () |
| Restore the saved FPU (+ MMX + SSE) state from this structure. | |
Public Attributes | |
| uint16_t | fcw |
| FPU Control Word. | |
| uint16_t | fsw |
| FPU Status Word. | |
| uint8_t | ftw |
| FPU Tag Word. | |
| uint16_t | : 0 |
| (16 bit alignment) | |
| uint16_t | fop |
| FPU Opcode. | |
| union { | |
| uint64_t | ip |
| struct { | |
| uint32_t | ip_off |
| uint32_t | ip_seg |
| } | |
| }; | |
| union { | |
| uint64_t | dp |
| struct { | |
| uint32_t | dp_off |
| uint32_t | dp_seg |
| } | |
| }; | |
| uint32_t | mxcsr |
| uint32_t | mxcsr_mask |
| struct { | |
| ST | value |
| uint64_t | : 48 |
| } | st [8] |
| XMM | xmm [16] |
| uint64_t | reserved [12] |
| (reserved) | |
512 byte structure for FPU / MMX / SSE registers corresponds to the layout used by the instructions fxsave and fxrstor.
| struct FPU::State::ST |
| void State::init | ( | ) |
Set structure to the initial FPU state Clears the FPU state (but its not just zeroed!).
|
inline |
Save the current FPU (+ MMX + SSE) state into this structure.
|
inline |
Restore the saved FPU (+ MMX + SSE) state from this structure.
| uint16_t FPU::State::fcw |
FPU Control Word.
| uint16_t FPU::State::fsw |
FPU Status Word.
| uint8_t FPU::State::ftw |
FPU Tag Word.
| uint16_t FPU::State::__pad0__ |
(16 bit alignment)
| uint16_t FPU::State::fop |
FPU Opcode.
| union { ... } FPU::State |
| union { ... } FPU::State |
| uint32_t FPU::State::mxcsr |
| uint32_t FPU::State::mxcsr_mask |
| struct { ... } FPU::State::st[8] |
| XMM FPU::State::xmm[16] |
| uint64_t FPU::State::reserved[12] |
(reserved)