Everything in C

This commit is contained in:
Renar Narubin
2021-12-16 17:43:52 -08:00
parent d6c6477977
commit 63647ad28d
8 changed files with 365 additions and 288 deletions

View File

@@ -18,28 +18,19 @@ name = "math"
harness = false
[features]
default = [
"num-traits",
"finite-math-only",
"associative-math",
"reciprocal-math",
"no-signed-zeros",
"no-trapping-math",
"fp-contract-fast",
"approx-func",
]
default = ["num-traits"]
# default fast-math features
finite-math-only = []
associative-math = []
reciprocal-math = []
no-signed-zeros = []
no-trapping-math = []
fp-contract-fast = []
approx-func = []
# disable-able fast-math features
no-finite-math-only = []
no-associative-math = []
no-reciprocal-math = []
signed-zeros = []
trapping-math = []
fp-contract-on = []
no-approx-func = []
math-errno = []
# non-default fast-math-like features
denormal-fp-math-preserve-sign = []
# TODO denormal-fp-math? can have cpu-wide consequences
# optional trait implementations
nalgebra-v021 = ["num-traits", "nalgebra_v021", "simba_v01", "approx_v03"]