VirtualBox

Changeset 53327 in vbox for trunk/include/iprt/cpuset.h


Ignore:
Timestamp:
Nov 14, 2014 1:54:04 PM (10 years ago)
Author:
vboxsync
Message:

iprt/cpuset: RTCpuSetCopy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpuset.h

    r52582 r53327  
    6767        pSet->bmSet[i] = UINT64_MAX;
    6868    return pSet;
     69}
     70
     71
     72/**
     73 * Copies one set to another.
     74 *
     75 * @param   pDst    Pointer to the destination set.
     76 * @param   pSrc    Pointer to the source set.
     77 */
     78DECLINLINE(void) RTCpuSetCopy(PRTCPUSET pDst, PRTCPUSET pSrc)
     79{
     80    unsigned i;
     81    for (i = 0; i < RT_ELEMENTS(pDst->bmSet); i++)
     82        pDst->bmSet[i] = pSrc->bmSet[i];
    6983}
    7084
Note: See TracChangeset for help on using the changeset viewer.

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