Repository navigation
Commit 07fcdab
committed
v0.1.606: f_pow, exp and log on RISC-V answer libm's bits; an extern's unit parameter is dropped by its type
On RV32IM/RV64IM these are prelude Mere over softfloat. Against libm on
6000-call sweeps, f_pow disagreed on 3131 points by up to 20 ulp, exp on 303,
log on 598 by up to 2; now 47, 2 and 4, each 1 ulp. The log pair carries the
rounding of s = (m-1)/(m+1), exp takes its argument as a pair and rounds once,
and small integer powers walk as pairs. test/float/rv_libm_points.mere holds
66 points to libm's bits (rv_float_check.sh, with MEMU).
C and LLVM dropped only a literal () for an extern's unit parameter, so a
unit-typed variable was passed to a function declared to take nothing: clang
refused it, LLVM linked by luck.1 parent 30bf6e8 commit 07fcdab
10 files changed
Lines changed: 336 additions & 53 deletions
File tree
- docs
- lib
- scripts
- test
- ctests
- float
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
7 | 46 | | |
8 | 47 | | |
9 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2763 | 2763 | | |
2764 | 2764 | | |
2765 | 2765 | | |
| 2766 | + | |
| 2767 | + | |
| 2768 | + | |
| 2769 | + | |
| 2770 | + | |
| 2771 | + | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
| 2775 | + | |
| 2776 | + | |
| 2777 | + | |
| 2778 | + | |
| 2779 | + | |
| 2780 | + | |
| 2781 | + | |
2766 | 2782 | | |
2767 | | - | |
2768 | | - | |
2769 | | - | |
2770 | | - | |
2771 | | - | |
| 2783 | + | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
| 2787 | + | |
| 2788 | + | |
2772 | 2789 | | |
2773 | | - | |
| 2790 | + | |
| 2791 | + | |
2774 | 2792 | | |
2775 | 2793 | | |
2776 | 2794 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5151 | 5151 | | |
5152 | 5152 | | |
5153 | 5153 | | |
| 5154 | + | |
| 5155 | + | |
| 5156 | + | |
| 5157 | + | |
| 5158 | + | |
| 5159 | + | |
| 5160 | + | |
| 5161 | + | |
| 5162 | + | |
| 5163 | + | |
5154 | 5164 | | |
5155 | | - | |
5156 | | - | |
5157 | | - | |
| 5165 | + | |
| 5166 | + | |
| 5167 | + | |
| 5168 | + | |
5158 | 5169 | | |
5159 | 5170 | | |
5160 | 5171 | | |
5161 | 5172 | | |
5162 | 5173 | | |
5163 | 5174 | | |
5164 | | - | |
5165 | | - | |
| 5175 | + | |
5166 | 5176 | | |
5167 | 5177 | | |
5168 | 5178 | | |
| |||
0 commit comments