Merge branch 'nivas-x86-master' into dev

This commit is contained in:
MITSUNARI Shigeo 2024-01-31 09:33:46 +09:00
commit 1201541213

View file

@ -3215,7 +3215,7 @@ public:
{
if (x == 1) return;
if (x < 1 || (x & (x - 1))) XBYAK_THROW(ERR_BAD_ALIGN)
if (isAutoGrow()) XBYAK_THROW(ERR_BAD_ALIGN)
if (isAutoGrow() && inner::getPageSize() % x != 0) XBYAK_THROW(ERR_BAD_ALIGN)
size_t remain = size_t(getCurr()) % x;
if (remain) {
nop(x - remain, useMultiByteNop);