summaryrefslogtreecommitdiffstats
path: root/vm/compiler/codegen/arm/FP/Thumb2VFP.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm/compiler/codegen/arm/FP/Thumb2VFP.c')
-rw-r--r--vm/compiler/codegen/arm/FP/Thumb2VFP.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vm/compiler/codegen/arm/FP/Thumb2VFP.c b/vm/compiler/codegen/arm/FP/Thumb2VFP.c
index 42d0657f0..9149646b8 100644
--- a/vm/compiler/codegen/arm/FP/Thumb2VFP.c
+++ b/vm/compiler/codegen/arm/FP/Thumb2VFP.c
@@ -14,8 +14,6 @@
* limitations under the License.
*/
-#include <math.h> // for double sqrt(double)
-
static bool genArithOpFloat(CompilationUnit *cUnit, MIR *mir,
RegLocation rlDest, RegLocation rlSrc1,
RegLocation rlSrc2)
@@ -197,7 +195,7 @@ static bool genInlineSqrt(CompilationUnit *cUnit, MIR *mir)
newLIR0(cUnit, kThumb2Fmstat);
branch = newLIR2(cUnit, kThumbBCond, 0, kArmCondEq);
dvmCompilerClobberCallRegs(cUnit);
- loadConstant(cUnit, r2, (int)sqrt);
+ LOAD_FUNC_ADDR(cUnit, r2, (int)sqrt);
newLIR3(cUnit, kThumb2Fmrrd, r0, r1, S2D(rlSrc.lowReg, rlSrc.highReg));
newLIR1(cUnit, kThumbBlxR, r2);
newLIR3(cUnit, kThumb2Fmdrr, S2D(rlResult.lowReg, rlResult.highReg),