comparison src/cpu/x86/vm/assembler_x86.hpp @ 6141:e7715c222897

7174532: jdk/test/java/lang/Math/WorstCaseTests.java failing on x86 Summary: increase precision on x86 for the steps of the computation of exp and pow. Reviewed-by: kvn
author roland
date Tue, 12 Jun 2012 10:02:36 +0200
parents 6759698e3140
children 8c92982cbbc4
comparison
equal deleted inserted replaced
6140:d5dded5d1e0d 6141:e7715c222897
2393 // compute pow(x,y) and exp(x) with x86 instructions. Don't cover 2393 // compute pow(x,y) and exp(x) with x86 instructions. Don't cover
2394 // all corner cases and may result in NaN and require fallback to a 2394 // all corner cases and may result in NaN and require fallback to a
2395 // runtime call. 2395 // runtime call.
2396 void fast_pow(); 2396 void fast_pow();
2397 void fast_exp(); 2397 void fast_exp();
2398 void increase_precision();
2399 void restore_precision();
2398 2400
2399 // computes exp(x). Fallback to runtime call included. 2401 // computes exp(x). Fallback to runtime call included.
2400 void exp_with_fallback(int num_fpu_regs_in_use) { pow_or_exp(true, num_fpu_regs_in_use); } 2402 void exp_with_fallback(int num_fpu_regs_in_use) { pow_or_exp(true, num_fpu_regs_in_use); }
2401 // computes pow(x,y). Fallback to runtime call included. 2403 // computes pow(x,y). Fallback to runtime call included.
2402 void pow_with_fallback(int num_fpu_regs_in_use) { pow_or_exp(false, num_fpu_regs_in_use); } 2404 void pow_with_fallback(int num_fpu_regs_in_use) { pow_or_exp(false, num_fpu_regs_in_use); }