VirtualBox

Changeset 55949 in vbox for trunk


Ignore:
Timestamp:
May 19, 2015 11:45:36 PM (10 years ago)
Author:
vboxsync
Message:

iprt/asm.h: Replaced two RT_UNLIKELY occurances with RT_LIKELY.

File:
1 edited

Legend:

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

    r54269 r55949  
    35993599    uint8_t const *pb = (uint8_t const *)pv;
    36003600    for (; cb; cb--, pb++)
    3601         if (RT_UNLIKELY(*pb != u8))
     3601        if (RT_LIKELY(*pb == u8))
     3602        { /* likely */ }
     3603        else
    36023604            return (void *)pb;
    36033605    return NULL;
     
    36243626    uint32_t const *pu32 = (uint32_t const *)pv;
    36253627    for (; cb; cb -= 4, pu32++)
    3626         if (RT_UNLIKELY(*pu32 != u32))
     3628        if (RT_LIKELY(*pu32 == u32))
     3629        { /* likely */ }
     3630        else
    36273631            return (uint32_t *)pu32;
    36283632    return NULL;
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