Changeset 74795 in vbox for trunk/include
- Timestamp:
- Oct 12, 2018 11:24:11 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/vm.h
r74794 r74795 654 654 * @param fFlag The flag to set. 655 655 */ 656 #define VM_FF_SET(pVM, fFlag) \ 657 do { AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); ASMAtomicOrU32(&(pVM)->fGlobalForcedActions, (fFlag)); } while (0) 656 #define VM_FF_SET(pVM, fFlag) do { \ 657 AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); \ 658 AssertCompile((fFlag) == RT_BIT_32(fFlag##_BIT)); \ 659 ASMAtomicOrU32(&(pVM)->fGlobalForcedActions, (fFlag)); \ 660 } while (0) 658 661 659 662 /** @def VMCPU_FF_SET … … 664 667 * @sa VMCPU_FF_SET_MASK 665 668 */ 666 #define VMCPU_FF_SET(pVCpu, fFlag) \ 667 do { AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); ASMAtomicOrU32(&(pVCpu)->fLocalForcedActions, (fFlag)); } while (0) 669 #define VMCPU_FF_SET(pVCpu, fFlag) do { \ 670 AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); \ 671 AssertCompile((fFlag) == RT_BIT_32(fFlag##_BIT)); \ 672 ASMAtomicOrU32(&(pVCpu)->fLocalForcedActions, (fFlag)); \ 673 } while (0) 668 674 669 675 /** @def VMCPU_FF_SET_MASK … … 683 689 * @param fFlag The flag to clear. 684 690 */ 685 #define VM_FF_CLEAR(pVM, fFlag) \ 686 do { AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); ASMAtomicAndU32(&(pVM)->fGlobalForcedActions, ~(fFlag)); } while (0) 691 #define VM_FF_CLEAR(pVM, fFlag) do { \ 692 AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); \ 693 AssertCompile((fFlag) == RT_BIT_32(fFlag##_BIT)); \ 694 ASMAtomicAndU32(&(pVM)->fGlobalForcedActions, ~(fFlag)); \ 695 } while (0) 687 696 688 697 /** @def VMCPU_FF_CLEAR … … 692 701 * @param fFlag The flag to clear. 693 702 */ 694 #define VMCPU_FF_CLEAR(pVCpu, fFlag) \ 695 do { AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); ASMAtomicAndU32(&(pVCpu)->fLocalForcedActions, ~(fFlag)); } while (0) 703 #define VMCPU_FF_CLEAR(pVCpu, fFlag) do { \ 704 AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); \ 705 AssertCompile((fFlag) == RT_BIT_32(fFlag##_BIT)); \ 706 ASMAtomicAndU32(&(pVCpu)->fLocalForcedActions, ~(fFlag)); \ 707 } while (0) 696 708 697 709 /** @def VMCPU_FF_CLEAR_MASK
Note:
See TracChangeset
for help on using the changeset viewer.