mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 15:15:40 +00:00
dep/xbyak: Unreachable code warning fix
This commit is contained in:
parent
1398d789ec
commit
a66fec4266
|
@ -390,10 +390,13 @@ inline size_t getPageSize()
|
||||||
static const long pageSize = sysconf(_SC_PAGESIZE);
|
static const long pageSize = sysconf(_SC_PAGESIZE);
|
||||||
if (pageSize > 0) {
|
if (pageSize > 0) {
|
||||||
return (size_t)pageSize;
|
return (size_t)pageSize;
|
||||||
}
|
} else {
|
||||||
#endif
|
|
||||||
return 4096;
|
return 4096;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
return 4096;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
inline bool IsInDisp8(uint32_t x) { return 0xFFFFFF80 <= x || x <= 0x7F; }
|
inline bool IsInDisp8(uint32_t x) { return 0xFFFFFF80 <= x || x <= 0x7F; }
|
||||||
inline bool IsInInt32(uint64_t x) { return ~uint64_t(0x7fffffffu) <= x || x <= 0x7FFFFFFFU; }
|
inline bool IsInInt32(uint64_t x) { return ~uint64_t(0x7fffffffu) <= x || x <= 0x7FFFFFFFU; }
|
||||||
|
|
Loading…
Reference in a new issue