Changeset 39303 in vbox for trunk/include/VBox
- Timestamp:
- Nov 15, 2011 10:55:12 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 74857
- Location:
- trunk/include/VBox
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/types.h
r38549 r39303 118 118 { 119 119 /** The bitmap data. */ 120 uint32_t au32Bitmap[ 256/32];120 uint32_t au32Bitmap[8 /*256/32*/]; 121 121 } VMCPUSET; 122 122 /** Pointer to a Virtual CPU set. */ … … 124 124 /** Pointer to a const Virtual CPU set. */ 125 125 typedef VMCPUSET const *PCVMCPUSET; 126 127 /** Tests if a valid CPU ID is present in the set.. */128 #define VMCPUSET_IS_PRESENT(pSet, idCpu) ASMBitTest( &(pSet)->au32Bitmap, (idCpu))129 /** Adds a CPU to the set. */130 #define VMCPUSET_ADD(pSet, idCpu) ASMBitSet( &(pSet)->au32Bitmap, (idCpu))131 /** Deletes a CPU from the set. */132 #define VMCPUSET_DEL(pSet, idCpu) ASMBitClear(&(pSet)->au32Bitmap, (idCpu))133 /** Empties the set. */134 #define VMCPUSET_EMPTY(pSet) memset(&(pSet)->au32Bitmap[0], '\0', sizeof((pSet)->au32Bitmap))135 /** Filles the set. */136 #define VMCPUSET_FILL(pSet) memset(&(pSet)->au32Bitmap[0], 0xff, sizeof((pSet)->au32Bitmap))137 /** Filles the set. */138 #define VMCPUSET_IS_EQUAL(pSet1, pSet2) (memcmp(&(pSet1)->au32Bitmap[0], &(pSet2)->au32Bitmap[0], sizeof((pSet1)->au32Bitmap)) == 0)139 126 140 127
Note:
See TracChangeset
for help on using the changeset viewer.