Lines Matching refs:pu32
668 DECLINLINE(void) tstASMAtomicXchgU32Worker(uint32_t volatile *pu32)
670 *pu32 = 0;
672 CHECKOP(ASMAtomicXchgU32(pu32, 1), 0, "%#x", uint32_t);
673 CHECKVAL(*pu32, 1, "%#x");
675 CHECKOP(ASMAtomicXchgU32(pu32, 0), 1, "%#x", uint32_t);
676 CHECKVAL(*pu32, 0, "%#x");
678 CHECKOP(ASMAtomicXchgU32(pu32, ~UINT32_C(0)), 0, "%#x", uint32_t);
679 CHECKVAL(*pu32, ~UINT32_C(0), "%#x");
681 CHECKOP(ASMAtomicXchgU32(pu32, 0x87654321), ~UINT32_C(0), "%#x", uint32_t);
682 CHECKVAL(*pu32, 0x87654321, "%#x");
761 DECLINLINE(void) tstASMAtomicCmpXchgU32Worker(uint32_t volatile *pu32)
763 *pu32 = UINT32_C(0xffffffff);
765 CHECKOP(ASMAtomicCmpXchgU32(pu32, 0, 0), false, "%d", bool);
766 CHECKVAL(*pu32, UINT32_C(0xffffffff), "%x");
768 CHECKOP(ASMAtomicCmpXchgU32(pu32, 0, UINT32_C(0xffffffff)), true, "%d", bool);
769 CHECKVAL(*pu32, 0, "%x");
771 CHECKOP(ASMAtomicCmpXchgU32(pu32, UINT32_C(0x8008efd), UINT32_C(0xffffffff)), false, "%d", bool);
772 CHECKVAL(*pu32, 0, "%x");
774 CHECKOP(ASMAtomicCmpXchgU32(pu32, UINT32_C(0x8008efd), 0), true, "%d", bool);
775 CHECKVAL(*pu32, UINT32_C(0x8008efd), "%x");
813 DECLINLINE(void) tstASMAtomicCmpXchgExU32Worker(uint32_t volatile *pu32)
815 *pu32 = UINT32_C(0xffffffff);
818 CHECKOP(ASMAtomicCmpXchgExU32(pu32, 0, 0, &u32Old), false, "%d", bool);
819 CHECKVAL(*pu32, UINT32_C(0xffffffff), "%x");
822 CHECKOP(ASMAtomicCmpXchgExU32(pu32, 0, UINT32_C(0xffffffff), &u32Old), true, "%d", bool);
823 CHECKVAL(*pu32, 0, "%x");
826 CHECKOP(ASMAtomicCmpXchgExU32(pu32, UINT32_C(0x8008efd), UINT32_C(0xffffffff), &u32Old), false, "%d", bool);
827 CHECKVAL(*pu32, 0, "%x");
830 CHECKOP(ASMAtomicCmpXchgExU32(pu32, UINT32_C(0x8008efd), 0, &u32Old), true, "%d", bool);
831 CHECKVAL(*pu32, UINT32_C(0x8008efd), "%x");
834 CHECKOP(ASMAtomicCmpXchgExU32(pu32, 0, UINT32_C(0x8008efd), &u32Old), true, "%d", bool);
835 CHECKVAL(*pu32, 0, "%x");
958 DECLINLINE(void) tstASMAtomicUoIncU32Worker(uint32_t volatile *pu32)
960 *pu32 = 0;
962 CHECKOP(ASMAtomicUoIncU32(pu32), UINT32_C(1), "%#x", uint32_t);
963 CHECKVAL(*pu32, UINT32_C(1), "%#x");
965 *pu32 = ~UINT32_C(0);
966 CHECKOP(ASMAtomicUoIncU32(pu32), 0, "%#x", uint32_t);
967 CHECKVAL(*pu32, 0, "%#x");
969 *pu32 = UINT32_C(0x7fffffff);
970 CHECKOP(ASMAtomicUoIncU32(pu32), UINT32_C(0x80000000), "%#x", uint32_t);
971 CHECKVAL(*pu32, UINT32_C(0x80000000), "%#x");
981 DECLINLINE(void) tstASMAtomicUoDecU32Worker(uint32_t volatile *pu32)
983 *pu32 = 0;
985 CHECKOP(ASMAtomicUoDecU32(pu32), ~UINT32_C(0), "%#x", uint32_t);
986 CHECKVAL(*pu32, ~UINT32_C(0), "%#x");
988 *pu32 = ~UINT32_C(0);
989 CHECKOP(ASMAtomicUoDecU32(pu32), UINT32_C(0xfffffffe), "%#x", uint32_t);
990 CHECKVAL(*pu32, UINT32_C(0xfffffffe), "%#x");
992 *pu32 = UINT32_C(0x80000000);
993 CHECKOP(ASMAtomicUoDecU32(pu32), UINT32_C(0x7fffffff), "%#x", uint32_t);
994 CHECKVAL(*pu32, UINT32_C(0x7fffffff), "%#x");
1121 DECLINLINE(void) tstASMAtomicAndOrU32Worker(uint32_t volatile *pu32)
1123 *pu32 = UINT32_C(0xffffffff);
1125 ASMAtomicOrU32(pu32, UINT32_C(0xffffffff));
1126 CHECKVAL(*pu32, UINT32_C(0xffffffff), "%x");
1128 ASMAtomicAndU32(pu32, UINT32_C(0xffffffff));
1129 CHECKVAL(*pu32, UINT32_C(0xffffffff), "%x");
1131 ASMAtomicAndU32(pu32, UINT32_C(0x8f8f8f8f));
1132 CHECKVAL(*pu32, UINT32_C(0x8f8f8f8f), "%x");
1134 ASMAtomicOrU32(pu32, UINT32_C(0x70707070));
1135 CHECKVAL(*pu32, UINT32_C(0xffffffff), "%x");
1137 ASMAtomicAndU32(pu32, UINT32_C(1));
1138 CHECKVAL(*pu32, UINT32_C(1), "%x");
1140 ASMAtomicOrU32(pu32, UINT32_C(0x80000000));
1141 CHECKVAL(*pu32, UINT32_C(0x80000001), "%x");
1143 ASMAtomicAndU32(pu32, UINT32_C(0x80000000));
1144 CHECKVAL(*pu32, UINT32_C(0x80000000), "%x");
1146 ASMAtomicAndU32(pu32, UINT32_C(0));
1147 CHECKVAL(*pu32, UINT32_C(0), "%x");
1149 ASMAtomicOrU32(pu32, UINT32_C(0x42424242));
1150 CHECKVAL(*pu32, UINT32_C(0x42424242), "%x");
1230 DECLINLINE(void) tstASMAtomicUoAndOrU32Worker(uint32_t volatile *pu32)
1232 *pu32 = UINT32_C(0xffffffff);
1234 ASMAtomicUoOrU32(pu32, UINT32_C(0xffffffff));
1235 CHECKVAL(*pu32, UINT32_C(0xffffffff), "%#x");
1237 ASMAtomicUoAndU32(pu32, UINT32_C(0xffffffff));
1238 CHECKVAL(*pu32, UINT32_C(0xffffffff), "%#x");
1240 ASMAtomicUoAndU32(pu32, UINT32_C(0x8f8f8f8f));
1241 CHECKVAL(*pu32, UINT32_C(0x8f8f8f8f), "%#x");
1243 ASMAtomicUoOrU32(pu32, UINT32_C(0x70707070));
1244 CHECKVAL(*pu32, UINT32_C(0xffffffff), "%#x");
1246 ASMAtomicUoAndU32(pu32, UINT32_C(1));
1247 CHECKVAL(*pu32, UINT32_C(1), "%#x");
1249 ASMAtomicUoOrU32(pu32, UINT32_C(0x80000000));
1250 CHECKVAL(*pu32, UINT32_C(0x80000001), "%#x");
1252 ASMAtomicUoAndU32(pu32, UINT32_C(0x80000000));
1253 CHECKVAL(*pu32, UINT32_C(0x80000000), "%#x");
1255 ASMAtomicUoAndU32(pu32, UINT32_C(0));
1256 CHECKVAL(*pu32, UINT32_C(0), "%#x");
1258 ASMAtomicUoOrU32(pu32, UINT32_C(0x42424242));
1259 CHECKVAL(*pu32, UINT32_C(0x42424242), "%#x");