Clarify semantics of fancy integer division functions.
- Oct 10, 2024
-
-
Daniel Bauer authoredb441b41d
-
Daniel Bauer authored7cd4de2f
-
- Sep 30, 2024
-
-
Daniel Bauer authored42f875bc
-
Closes #88 (closed).
The goal of these functions is to provide fast, fp-free functions for semi-complicated semantics on positive integers (The old implementation did not behave sensibly for negative input). This MR clarifies the names and docstrings of the fancy integer divisions to make it clear that negative input is not always expected. Furthermore, the implementation is changed such that no remainders or conditionals must be evaluated.
The old names are still available but issue deprecation warnings.