Efficient implementation of elementary functions in the medium-precision range
Fredrik Johansson
(LFANT, INRIA Bordeaux)
22nd IEEE Symposium on Computer Arithmetic (ARITH 22), Lyon, France, June 2015
1 / 27
Efficient implementation of elementary functions in the - - PowerPoint PPT Presentation
Efficient implementation of elementary functions in the medium-precision range Fredrik Johansson (LFANT, INRIA Bordeaux) 22nd IEEE Symposium on Computer Arithmetic (ARITH 22), Lyon, France, June 2015 1 / 27 Elementary functions Functions :
1 / 27
2 / 27
2 / 27
2 / 27
3 / 27
3 / 27
3 / 27
4 / 27
4 / 27
4 / 27
5 / 27
5 / 27
6 / 27
7 / 27
7 / 27
7 / 27
8 / 27
9 / 27
9 / 27
9 / 27
10 / 27
10 / 27
10 / 27
10 / 27
10 / 27
10 / 27
11 / 27
11 / 27
12 / 27
12 / 27
13 / 27
14 / 27
14 / 27
15 / 27
15 / 27
15 / 27
15 / 27
16 / 27
16 / 27
16 / 27
16 / 27
17 / 27
17 / 27
17 / 27
17 / 27
17 / 27
18 / 27
18 / 27
18 / 27
18 / 27
18 / 27
18 / 27
19 / 27
19 / 27
19 / 27
19 / 27
19 / 27
20 / 27
21 / 27
22 / 27
102 103 104 105 Precision (bits) 1 2 10 30
exp(x) log(x) sin(x) cos(x) atan(x) 102 103 104 105 Precision (bits) 10-7 10-6 10-5 10-4 10-3 10-2 10-1
exp(x) log(x) sin(x) cos(x) atan(x)
23 / 27
24 / 27
24 / 27
24 / 27
25 / 27
25 / 27
25 / 27
◮ Gradually change precision in Taylor series summation ◮ Use short multiplications (no GMP support) ◮ Use precomputed inverses (no GMP support) ◮ Assembly for low precision (1-3 words?) ◮ Further tuning of lookup tables 26 / 27
◮ Gradually change precision in Taylor series summation ◮ Use short multiplications (no GMP support) ◮ Use precomputed inverses (no GMP support) ◮ Assembly for low precision (1-3 words?) ◮ Further tuning of lookup tables
26 / 27
◮ Gradually change precision in Taylor series summation ◮ Use short multiplications (no GMP support) ◮ Use precomputed inverses (no GMP support) ◮ Assembly for low precision (1-3 words?) ◮ Further tuning of lookup tables
26 / 27
◮ Gradually change precision in Taylor series summation ◮ Use short multiplications (no GMP support) ◮ Use precomputed inverses (no GMP support) ◮ Assembly for low precision (1-3 words?) ◮ Further tuning of lookup tables
26 / 27
27 / 27