aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2017-05-25 04:33:39 +0900
committerMITSUNARI Shigeo <[email protected]>2017-05-25 04:33:39 +0900
commit675ebd5c3555264325dd09ced304c214aaf68783 (patch)
treea0051365fc93f0cef75f9b45ec6d58bf016e3872
parentd3a9ce87566f97eb311323a281948e908288bc9f (diff)
downloadxbyak-675ebd5c3555264325dd09ced304c214aaf68783.tar.gz
xbyak-675ebd5c3555264325dd09ced304c214aaf68783.zip
undef jnl if Bessel function is defined as macro
-rw-r--r--readme.md1
-rw-r--r--xbyak/xbyak.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/readme.md b/readme.md
index 03e9cbe..50d6c28 100644
--- a/readme.md
+++ b/readme.md
@@ -311,6 +311,7 @@ Macro
* **XBYAK64_GCC** is defined on 64bit gcc, cygwin
* define **XBYAK_NO_OP_NAMES** on gcc without `-fno-operator-names`
* define **XBYAK_ENABLE_OMITTED_OPERAND** if you use omitted destination such as `vaddps(xmm2, xmm3);`(duplicated in the future)
+* define **XBYAK_UNDEF_JNL** if Bessel function jnl is defined as macro
Sample
-------------
diff --git a/xbyak/xbyak.h b/xbyak/xbyak.h
index ba7e48d..08ea7e6 100644
--- a/xbyak/xbyak.h
+++ b/xbyak/xbyak.h
@@ -2372,6 +2372,9 @@ public:
}
#endif
+#ifdef XBYAK_UNDEF_JNL
+ #undef jnl
+#endif
#ifndef XBYAK_DONT_READ_LIST
#include "xbyak_mnemonic.h"
void align(int x = 16)