Skip to content

Commit 6ce0be7

Browse files
committed
Fix bug in examples/example_manuscript.c
1 parent 0ddba87 commit 6ce0be7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ These two commands run, in MATLAB and Octave respectively, the function `test/cp
142142

143143
# Acknowledgements
144144

145-
The library was written by Massimiliano Fasi and Mantas Mikaitis. We thank Theo Mary, Ian McInerney, and Siegfried Rump for reporting bugs and suggesting improvements.
145+
The library was written by Massimiliano Fasi and Mantas Mikaitis. We thank Nicolas Louvet, Theo Mary, Ian McInerney, and Siegfried Rump for reporting bugs and suggesting improvements.
146146

147147
# Licensing information
148148

examples/example_manuscript.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ int main () {
1212

1313
// Set up the parameters for binary16 target format.
1414
fpopts->precision = 11; // Bits in the significand + 1.
15+
fpopts->emin = -14; // The minimum exponent value.
1516
fpopts->emax = 15; // The maximum exponent value.
1617
fpopts->subnormal = CPFLOAT_SUBN_USE; // Support for subnormals is on.
1718
fpopts->round = CPFLOAT_RND_TP; // Round toward +infinity.
18-
fpopts->flip = CPFLOAT_NO_SOFTERR; // Bit flips are off.
19+
fpopts->flip = CPFLOAT_SOFTERR_NO; // Bit flips are off.
1920
fpopts->p = 0; // Bit flip probability (not used).
2021
fpopts->explim = CPFLOAT_EXPRANGE_TARG; // Limited exponent in target format.
2122

0 commit comments

Comments
 (0)