diff options
Diffstat (limited to 'pk/fp.h')
-rw-r--r-- | pk/fp.h | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -3,16 +3,18 @@ #ifndef _FP_H #define _FP_H +typedef union { + struct { + uint8_t flags : 5; + uint8_t rm : 3; + } fcsr; + uint8_t bits; +} fcsr_t; + typedef struct { uint64_t fpr[32]; - union { - struct { - uint8_t flags : 5; - uint8_t rm : 3; - } fsr; - uint8_t bits; - } fsr; + fcsr_t fcsr; } fp_state_t; void put_fp_state(const void* fp_regs, uint8_t fsr); |