[Integer] power_int_positive_int returns an option
This function relies on Z.power_int_positive_int, which can raise the exception Invalid_argument when dealing with an exponent too big to produce a valid result in GMP. This exception is now catched and thus the function produce an option. Modifications at callsites have been taken care of, and the file floating_point.ml has been made more human readable.
Showing
- src/libraries/stdlib/integer.ml 3 additions, 1 deletionsrc/libraries/stdlib/integer.ml
- src/libraries/stdlib/integer.mli 1 addition, 1 deletionsrc/libraries/stdlib/integer.mli
- src/libraries/utils/floating_point.ml 248 additions, 307 deletionssrc/libraries/utils/floating_point.ml
- src/plugins/eva/engine/subdivided_evaluation.ml 2 additions, 3 deletionssrc/plugins/eva/engine/subdivided_evaluation.ml
This diff is collapsed.
Please register or sign in to comment