diff options
author | MITSUNARI Shigeo <[email protected]> | 2013-04-11 21:34:35 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2013-04-11 21:34:35 +0900 |
commit | 35bb4eac6e7e5df1463a2eb867f27c28a51807f1 (patch) | |
tree | f9b144db7926bd7035e927a72a53dbf4eecba129 /sample/calc.cpp | |
parent | ebea977d3b0e2caca641954d130340667cec481f (diff) | |
download | xbyak-35bb4eac6e7e5df1463a2eb867f27c28a51807f1.tar.gz xbyak-35bb4eac6e7e5df1463a2eb867f27c28a51807f1.zip |
use XBYAK_NO_OP_NAMES
Diffstat (limited to 'sample/calc.cpp')
-rw-r--r-- | sample/calc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/calc.cpp b/sample/calc.cpp index d93bc95..4f05eee 100644 --- a/sample/calc.cpp +++ b/sample/calc.cpp @@ -194,10 +194,10 @@ int main(int argc, char *argv[]) valTbl.resize(varTbl.size()); #ifdef XBYAK32 puts("32bit mode"); - void (*func)(double *ret, const double *valTbl) = (void (*)(double *, const double*))(const void*)funcGen.getCode(); + void (*func)(double *ret, const double *valTbl) = funcGen.getCode<void (*)(double *, const double*)>(); #else puts("64bit mode"); - double (*func)(const double *valTbl) = (double (*)(const double*))(const void*)funcGen.getCode(); + double (*func)(const double *valTbl) = funcGen.getCode<double (*)(const double*)>(); #endif for (int i = 0; i < 10; i++) { for (size_t j = 0, n = valTbl.size(); j < n; j++) { |