Skip to content

Commit

Permalink
remove warning of VC
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Oct 12, 2023
1 parent 6c580b1 commit eb11850
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbyak/xbyak.h
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,15 @@ inline size_t getPageSize()
#ifdef _WIN32
static const SystemInfo si;
return si.info.dwPageSize;
#elif defined(__GNUC__)
#else
#ifdef __GNUC__
static const long pageSize = sysconf(_SC_PAGESIZE);
if (pageSize > 0) {
return (size_t)pageSize;
}
#endif
return 4096;
#endif
}

inline bool IsInDisp8(uint32_t x) { return 0xFFFFFF80 <= x || x <= 0x7F; }
Expand Down

0 comments on commit eb11850

Please sign in to comment.