This repository was archived by the owner on Apr 28, 2025. It is now read-only.
Commit 86ccf1b
Introduce
Rust does not have any native way to parse hex floats, but they are
heavily used in the C algorithms that we derive from. Introduce a const
function that can parse these, as well as macros `hf32!` and `hf64!`
that ensure the string literals get handled at compiler time.
These are currently not used but making everything available now will
ease future development.
Co-authored-by: quaternic <[email protected]>hf32! and hf64! macros for hex float support1 parent 561fd42 commit 86ccf1b
File tree
4 files changed
+430
-26
lines changed- libm
- src/math/support
4 files changed
+430
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
| 47 | + | |
| 48 | + | |
50 | 49 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
73 | 54 | | |
74 | 55 | | |
75 | | - | |
| 56 | + | |
76 | 57 | | |
77 | 58 | | |
| 59 | + | |
78 | 60 | | |
79 | 61 | | |
80 | 62 | | |
| |||
0 commit comments