diff options
author | MITSUNARI Shigeo <[email protected]> | 2015-04-25 07:29:03 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2015-04-25 07:29:03 +0900 |
commit | dcf8ca01f789329aee03cd4947eacb2a80614cfa (patch) | |
tree | 0956ba5bac240e68fa1a9bfd9b25382b96d4c156 | |
parent | ae449d3a1630d6cb9d67d46263705d3800717f64 (diff) | |
download | xbyak-dcf8ca01f789329aee03cd4947eacb2a80614cfa.tar.gz xbyak-dcf8ca01f789329aee03cd4947eacb2a80614cfa.zip |
fix setSize
-rw-r--r-- | readme.md | 3 | ||||
-rw-r--r-- | readme.txt | 3 | ||||
-rw-r--r-- | xbyak/xbyak.h | 4 | ||||
-rw-r--r-- | xbyak/xbyak_mnemonic.h | 2 |
4 files changed, 7 insertions, 5 deletions
@@ -1,5 +1,5 @@ -Xbyak 4.80 ; JIT assembler for x86(IA32), x64(AMD64, x86-64) by C++ +Xbyak 4.81 ; JIT assembler for x86(IA32), x64(AMD64, x86-64) by C++ ============= Abstract @@ -277,6 +277,7 @@ The header files under xbyak/ are independent of cybozulib. History ------------- +* 2015/Apr/25 ver 4.81 fix the condition to throw exception for setSize(thanks to whyisthisfieldhere) * 2015/Apr/22 ver 4.80 rip supports label(thanks to whyisthisfieldhere) * 2015/Jar/28 ver 4.71 support adcx, adox, cmpxchg, rdseed, stac * 2014/Oct/14 ver 4.70 support MmapAllocator @@ -1,5 +1,5 @@ - C++用x86(IA-32), x64(AMD64, x86-64) JITアセンブラ Xbyak 4.80
+ C++用x86(IA-32), x64(AMD64, x86-64) JITアセンブラ Xbyak 4.81
-----------------------------------------------------------------------------
◎概要
@@ -296,6 +296,7 @@ cybozulibは単体テストでのみ利用されていて、xbyak/ディレク� -----------------------------------------------------------------------------
◎履歴
+2015/04/25 ver 4.81 setSizeが例外を投げる条件を修正(thanks to whyisthisfieldhere)
2015/04/22 ver 4.80 rip相対でLabelのサポート(thanks to whyisthisfieldhere)
2015/01/28 ver 4.71 adcx, adox, cmpxchg, rdseed, stacのサポート
2014/10/14 ver 4.70 MmapAllocatorのサポート
diff --git a/xbyak/xbyak.h b/xbyak/xbyak.h index ada3f63..f81138c 100644 --- a/xbyak/xbyak.h +++ b/xbyak/xbyak.h @@ -96,7 +96,7 @@ namespace Xbyak { enum { DEFAULT_MAX_CODE_SIZE = 4096, - VERSION = 0x4800 /* 0xABCD = A.BC(D) */ + VERSION = 0x4810 /* 0xABCD = A.BC(D) */ }; #ifndef MIE_INTEGER_TYPE_DEFINED @@ -739,7 +739,7 @@ public: size_t getSize() const { return size_; } void setSize(size_t size) { - if (size >= maxSize_) throw Error(ERR_OFFSET_IS_TOO_BIG); + if (size > maxSize_) throw Error(ERR_OFFSET_IS_TOO_BIG); size_ = size; } void dump() const diff --git a/xbyak/xbyak_mnemonic.h b/xbyak/xbyak_mnemonic.h index 5e0beae..2005ad0 100644 --- a/xbyak/xbyak_mnemonic.h +++ b/xbyak/xbyak_mnemonic.h @@ -1,4 +1,4 @@ -const char *getVersionString() const { return "4.80"; } +const char *getVersionString() const { return "4.81"; } void packssdw(const Mmx& mmx, const Operand& op) { opMMX(mmx, op, 0x6B); } void packsswb(const Mmx& mmx, const Operand& op) { opMMX(mmx, op, 0x63); } void packuswb(const Mmx& mmx, const Operand& op) { opMMX(mmx, op, 0x67); } |