VirtualBox

Changeset 39303 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Nov 15, 2011 10:55:12 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74857
Message:

VMCPUSET changes.

Location:
trunk/include/VBox
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/types.h

    r38549 r39303  
    118118{
    119119    /** The bitmap data.  */
    120     uint32_t    au32Bitmap[256/32];
     120    uint32_t    au32Bitmap[8 /*256/32*/];
    121121} VMCPUSET;
    122122/** Pointer to a Virtual CPU set. */
     
    124124/** Pointer to a const Virtual CPU set. */
    125125typedef 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)
    139126
    140127
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette