diff options
author | Chris Lattner <sabre@nondot.org> | 2010-05-15 17:10:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-05-15 17:10:24 +0000 |
commit | 93cd0f1c890846012c88a9fce471daa191b68a41 (patch) | |
tree | 50927d66888521ec18c8b973228632c41e52403b /llvm/lib/ExecutionEngine/ExecutionEngine.cpp | |
parent | b0efad148c12994ae139da0269ee5653bf736c63 (diff) | |
download | bcm5719-llvm-93cd0f1c890846012c88a9fce471daa191b68a41.tar.gz bcm5719-llvm-93cd0f1c890846012c88a9fce471daa191b68a41.zip |
improve portability to systems that don't have powf/modf (e.g. solaris 9)
patch by Evzen Muller!
llvm-svn: 103876
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index b17827ef255..be7f1f56a95 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp @@ -715,7 +715,7 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) { case Instruction::FDiv: GV.FloatVal = LHS.FloatVal / RHS.FloatVal; break; case Instruction::FRem: - GV.FloatVal = ::fmodf(LHS.FloatVal,RHS.FloatVal); break; + GV.FloatVal = std::fmod(LHS.FloatVal,RHS.FloatVal); break; } break; case Type::DoubleTyID: @@ -730,7 +730,7 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) { case Instruction::FDiv: GV.DoubleVal = LHS.DoubleVal / RHS.DoubleVal; break; case Instruction::FRem: - GV.DoubleVal = ::fmod(LHS.DoubleVal,RHS.DoubleVal); break; + GV.DoubleVal = std::fmod(LHS.DoubleVal,RHS.DoubleVal); break; } break; case Type::X86_FP80TyID: |