VirtualBox

Changeset 22005 in vbox for trunk/include


Ignore:
Timestamp:
Aug 5, 2009 6:41:01 PM (15 years ago)
Author:
vboxsync
Message:

ASMMemIsZeroPage: require 16-byte alignment.

File:
1 edited

Legend:

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

    r22004 r22005  
    50575057 * @returns true / false.
    50585058 *
    5059  * @param   pvPage      Pointer to the page.  This must be naturally aligned if
    5060  *                      not page aligned.
     5059 * @param   pvPage      Pointer to the page.  Must be aligned on 16 byte
     5060 *                      boundrary
    50615061 */
    50625062DECLINLINE(bool) ASMMemIsZeroPage(void const *pvPage)
     
    50655065    union { RTCCUINTREG r; bool f; } uAX;
    50665066    RTCCUINTREG xCX, xDI;
    5067    Assert(!((uintptr_t)pvPage & (sizeof(uintptr_t) - 1)));
     5067   Assert(!((uintptr_t)pvPage & 15));
    50685068    __asm__ __volatile__("repe; "
    50695069#  ifdef RT_ARCH_AMD64
     
    50885088   uintptr_t const *puPtr = (uintptr_t const *)pvPage;
    50895089   int              cLeft = 0x1000 / sizeof(uintptr_t) / 8;
    5090    Assert(!((uintptr_t)pvPage & (sizeof(uintptr_t) - 1)));
     5090   Assert(!((uintptr_t)pvPage & 15));
    50915091   for (;;)
    50925092   {
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