From 87afbcc75676457ea931c1edd592d004847c682a Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Wed, 31 Oct 2018 09:56:49 +0900 Subject: [PATCH] update xbyak --- src/xbyak/xbyak.h | 7 ++++++- src/xbyak/xbyak_mnemonic.h | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/xbyak/xbyak.h b/src/xbyak/xbyak.h index 03a2419..bcfeb34 100644 --- a/src/xbyak/xbyak.h +++ b/src/xbyak/xbyak.h @@ -113,7 +113,7 @@ namespace Xbyak { enum { DEFAULT_MAX_CODE_SIZE = 4096, - VERSION = 0x5750 /* 0xABCD = A.BC(D) */ + VERSION = 0x5751 /* 0xABCD = A.BC(D) */ }; #ifndef MIE_INTEGER_TYPE_DEFINED @@ -283,6 +283,11 @@ inline void AlignedFree(void *p) #endif } +template +inline const To CastTo(From p) throw() +{ + return (const To)(size_t)(p); +} namespace inner { static const size_t ALIGN_PAGE_SIZE = 4096; diff --git a/src/xbyak/xbyak_mnemonic.h b/src/xbyak/xbyak_mnemonic.h index 4f81090..766f2f6 100644 --- a/src/xbyak/xbyak_mnemonic.h +++ b/src/xbyak/xbyak_mnemonic.h @@ -1,4 +1,4 @@ -const char *getVersionString() const { return "5.75"; } +const char *getVersionString() const { return "5.751"; } void adc(const Operand& op, uint32 imm) { opRM_I(op, imm, 0x10, 2); } void adc(const Operand& op1, const Operand& op2) { opRM_RM(op1, op2, 0x10); } void adcx(const Reg32e& reg, const Operand& op) { opGen(reg, op, 0xF6, 0x66, isREG32_REG32orMEM, NONE, 0x38); }