Changeset 22005 in vbox for trunk/include
- Timestamp:
- Aug 5, 2009 6:41:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asm.h
r22004 r22005 5057 5057 * @returns true / false. 5058 5058 * 5059 * @param pvPage Pointer to the page. This must be naturally aligned if5060 * not page aligned.5059 * @param pvPage Pointer to the page. Must be aligned on 16 byte 5060 * boundrary 5061 5061 */ 5062 5062 DECLINLINE(bool) ASMMemIsZeroPage(void const *pvPage) … … 5065 5065 union { RTCCUINTREG r; bool f; } uAX; 5066 5066 RTCCUINTREG xCX, xDI; 5067 Assert(!((uintptr_t)pvPage & (sizeof(uintptr_t) - 1)));5067 Assert(!((uintptr_t)pvPage & 15)); 5068 5068 __asm__ __volatile__("repe; " 5069 5069 # ifdef RT_ARCH_AMD64 … … 5088 5088 uintptr_t const *puPtr = (uintptr_t const *)pvPage; 5089 5089 int cLeft = 0x1000 / sizeof(uintptr_t) / 8; 5090 Assert(!((uintptr_t)pvPage & (sizeof(uintptr_t) - 1)));5090 Assert(!((uintptr_t)pvPage & 15)); 5091 5091 for (;;) 5092 5092 {
Note:
See TracChangeset
for help on using the changeset viewer.