mirror of
https://github.com/herumi/xbyak
synced 2024-11-20 16:06:14 -07:00
support align for auto_grow
This commit is contained in:
parent
086530ed13
commit
1d75fb35c3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue