# HG changeset patch # User Stefan Mahr # Date 1385329592 -3600 # Node ID 3f2a95a4b98da8741d1d6a91249111b09ef5ab2e # Parent 5a5a67799338411261bba327bdb03d20f4ba09aa jit compiler: use existing int functions diff -r 5a5a67799338 -r 3f2a95a4b98d libinterp/corefcn/jit-typeinfo.cc --- a/libinterp/corefcn/jit-typeinfo.cc Sun Nov 24 23:28:50 2013 +0100 +++ b/libinterp/corefcn/jit-typeinfo.cc Sun Nov 24 22:46:32 2013 +0100 @@ -78,6 +78,7 @@ #include "ov-uint32.h" #include "ov-uint64.h" #include "pager.h" +#include "oct-inttypes.h" static llvm::LLVMContext& context = llvm::getGlobalContext (); @@ -1074,6 +1075,9 @@ extern "C" uint64_t octave_jit_mul_uint64_uint64 (uint64_t lhs, uint64_t rhs) { +#if 1 + return octave_int_arith_base::mul(lhs,rhs); +#else #ifdef OCTAVE_INT_USE_LONG_DOUBLE long double p = static_cast (lhs) * static_cast (rhs); if (p > static_cast (std::numeric_limits::max ())) @@ -1090,6 +1094,7 @@ return lo | -!!hi; #endif +#endif } extern "C" uint64_t