Changeset 81613 in vbox for trunk/include/iprt
- Timestamp:
- Oct 31, 2019 6:50:08 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asm-amd64-x86.h
r81605 r81613 1476 1476 DECLINLINE(bool) ASMIsIntelCpuEx(uint32_t uEBX, uint32_t uECX, uint32_t uEDX) 1477 1477 { 1478 return uEBX == UINT32_C(0x756e6547) 1479 && uECX == UINT32_C(0x6c65746e) 1480 && uEDX == UINT32_C(0x49656e69); 1478 /* 'GenuineIntel' */ 1479 return uEBX == UINT32_C(0x756e6547) /* 'Genu' */ 1480 && uEDX == UINT32_C(0x49656e69) /* 'ineI' */ 1481 && uECX == UINT32_C(0x6c65746e); /* 'ntel' */ 1481 1482 } 1482 1483 … … 1506 1507 DECLINLINE(bool) ASMIsAmdCpuEx(uint32_t uEBX, uint32_t uECX, uint32_t uEDX) 1507 1508 { 1508 return uEBX == UINT32_C(0x68747541) 1509 && uECX == UINT32_C(0x444d4163) 1510 && uEDX == UINT32_C(0x69746e65); 1509 /* 'AuthenticAMD' */ 1510 return uEBX == UINT32_C(0x68747541) /* 'Auth' */ 1511 && uEDX == UINT32_C(0x69746e65) /* 'enti' */ 1512 && uECX == UINT32_C(0x444d4163); /* 'dAMD' */ 1511 1513 } 1512 1514 … … 1536 1538 DECLINLINE(bool) ASMIsViaCentaurCpuEx(uint32_t uEBX, uint32_t uECX, uint32_t uEDX) 1537 1539 { 1538 return uEBX == UINT32_C(0x746e6543) 1539 && uECX == UINT32_C(0x736c7561) 1540 && uEDX == UINT32_C(0x48727561); 1540 /* 'CentaurHauls' */ 1541 return uEBX == UINT32_C(0x746e6543) /* 'Cent' */ 1542 && uEDX == UINT32_C(0x48727561) /* 'aurH' */ 1543 && uECX == UINT32_C(0x736c7561); /* 'auls' */ 1541 1544 } 1542 1545 … … 1566 1569 DECLINLINE(bool) ASMIsShanghaiCpuEx(uint32_t uEBX, uint32_t uECX, uint32_t uEDX) 1567 1570 { 1568 return uEBX == UINT32_C(0x68532020) 1569 && uECX == UINT32_C(0x20206961) 1570 && uEDX == UINT32_C(0x68676e61); 1571 /* ' Shanghai ' */ 1572 return uEBX == UINT32_C(0x68532020) /* ' Sh' */ 1573 && uEDX == UINT32_C(0x68676e61) /* 'angh' */ 1574 && uECX == UINT32_C(0x20206961); /* 'ai ' */ 1571 1575 } 1572 1576 … … 1596 1600 DECLINLINE(bool) ASMIsHygonCpuEx(uint32_t uEBX, uint32_t uECX, uint32_t uEDX) 1597 1601 { 1598 return uEBX == UINT32_C(0x6f677948) 1599 && uECX == UINT32_C(0x656e6975) 1600 && uEDX == UINT32_C(0x6e65476e); 1602 /* 'HygonGenuine' */ 1603 return uEBX == UINT32_C(0x6f677948) /* Hygo */ 1604 && uECX == UINT32_C(0x656e6975) /* uine */ 1605 && uEDX == UINT32_C(0x6e65476e); /* nGen */ 1601 1606 } 1602 1607
Note:
See TracChangeset
for help on using the changeset viewer.