- 時間撮記:
- 2016-7-29 下午10:31:28 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Runtime/testcase/tstRTInlineAsm.cpp
r62570 r62721 640 640 CHECKVAL(*pu8, 0, "%#x"); 641 641 642 CHECKOP(ASMAtomicXchgU8(pu8, 0xff), 0, "%#x", uint8_t);642 CHECKOP(ASMAtomicXchgU8(pu8, UINT8_C(0xff)), 0, "%#x", uint8_t); 643 643 CHECKVAL(*pu8, 0xff, "%#x"); 644 644 645 CHECKOP(ASMAtomicXchgU8(pu8, 0x87), 0xffff, "%#x", uint8_t);645 CHECKOP(ASMAtomicXchgU8(pu8, UINT8_C(0x87)), UINT8_C(0xff), "%#x", uint8_t); 646 646 CHECKVAL(*pu8, 0x87, "%#x"); 647 647 } … … 1434 1434 pbBuf2[offEnd] = 0xff; 1435 1435 } 1436 #ifdef _MSC_VER /* simple stupid compiler warnings */ 1437 else 1438 bSaved1 = bSaved2 = 0; 1439 #endif 1436 1440 1437 1441 uint8_t *pbRet = (uint8_t *)ASMMemFirstMismatchingU8(pbBuf1 + offStart, cb, bFiller1); … … 1667 1671 u64Out = ASMByteSwapU64(u64In); 1668 1672 CHECKVAL(u64Out, u64In, "%#018RX64"); 1669 u64In = ~(uint64_t)0;1673 u64In = UINT64_MAX; 1670 1674 u64Out = ASMByteSwapU64(u64In); 1671 1675 CHECKVAL(u64Out, u64In, "%#018RX64"); … … 1686 1690 u32Out = ASMByteSwapU32(u32In); 1687 1691 CHECKVAL(u32Out, u32In, "%#010RX32"); 1688 u32In = ~(uint32_t)0;1692 u32In = UINT32_MAX; 1689 1693 u32Out = ASMByteSwapU32(u32In); 1690 1694 CHECKVAL(u32Out, u32In, "%#010RX32"); … … 1705 1709 u16Out = ASMByteSwapU16(u16In); 1706 1710 CHECKVAL(u16Out, u16In, "%#06RX16"); 1707 u16In = ~(uint16_t)0;1711 u16In = UINT16_MAX; 1708 1712 u16Out = ASMByteSwapU16(u16In); 1709 1713 CHECKVAL(u16Out, u16In, "%#06RX16");
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器