aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2024-02-22 13:00:12 +0900
committerMITSUNARI Shigeo <[email protected]>2024-02-22 13:00:12 +0900
commit776ce053dce55e14011ac906bc32f3d0ff2102dd (patch)
treeda273c329acc912aee62f40da412b7459664f141
parent78d878500e9166cfb36a411bb1506a8ec0fc4e0c (diff)
downloadxbyak-776ce053dce55e14011ac906bc32f3d0ff2102dd.tar.gz
xbyak-776ce053dce55e14011ac906bc32f3d0ff2102dd.zip
tweak compareVendorString
-rw-r--r--xbyak/xbyak_util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xbyak/xbyak_util.h b/xbyak/xbyak_util.h
index 2b27afd..8cae24e 100644
--- a/xbyak/xbyak_util.h
+++ b/xbyak/xbyak_util.h
@@ -149,9 +149,9 @@ private:
{
return x[0] | (x[1] << 8) | (x[2] << 16) | (x[3] << 24);
}
- bool compareVendorString(const uint32_t EBX, const uint32_t ECX, const uint32_t EDX, const char vendorString[12]) const
+ bool compareVendorString(uint32_t EBX, uint32_t ECX, uint32_t EDX, const char s[12]) const
{
- return get32bitAsBE(&vendorString[0]) == EBX && get32bitAsBE(&vendorString[4]) == EDX && get32bitAsBE(&vendorString[8]) == ECX;
+ return get32bitAsBE(&s[0]) == EBX && get32bitAsBE(&s[4]) == EDX && get32bitAsBE(&s[8]) == ECX;
}
uint32_t extractBit(uint32_t val, uint32_t base, uint32_t end) const
{