29 #ifndef __ARCH_POWER_INSTS_FLOATING_HH__
30 #define __ARCH_POWER_INSTS_FLOATING_HH__
62 return ((
bits(val_bits, 30, 23) == 0xFF) &&
bits(val_bits, 22, 0));
68 return ((
bits(val_bits, 62, 52) == 0x7FF) &&
bits(val_bits, 51, 0));
75 uint32_t val_bits = *(uint32_t *) val_ptr;
76 return isNan(val_bits);
83 uint64_t val_bits = *(uint64_t *) val_ptr;
84 return isNan(val_bits);
91 return ((
bits(val_bits, 30, 22) == 0x1FE) &&
bits(val_bits, 22, 0));
98 return (
bits(val_bits, 30, 22) == 0x1FF);
105 return ((
bits(val_bits, 30, 23) == 0xFF) && !
bits(val_bits, 22, 0));
112 return ((
bits(val_bits, 30, 23) != 0xFF) &&
bits(val_bits, 22, 0));
120 return (!
bits(val_bits, 30, 23) &&
bits(val_bits, 22, 0));
127 return (!
bits(val_bits, 30, 23) && !
bits(val_bits, 22, 0));
134 return (
bits(val_bits, 31));
143 else if (
a <
b) {
c = 0x8; }
144 else if (
a >
b) {
c = 0x4; }
156 #endif //__ARCH_POWER_INSTS_FLOATING_HH__