Skip to content

Commit

Permalink
Fix bug in examples/example_manuscript.c
Browse files Browse the repository at this point in the history
  • Loading branch information
mfasi committed Jan 10, 2025
1 parent 0ddba87 commit 6ce0be7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ These two commands run, in MATLAB and Octave respectively, the function `test/cp

# Acknowledgements

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.
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.

# Licensing information

Expand Down
3 changes: 2 additions & 1 deletion examples/example_manuscript.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ int main () {

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

Expand Down

0 comments on commit 6ce0be7

Please sign in to comment.