Skip to content

Commit 9c9be62

Browse files
bogglebrson
authored andcommitted
std: rewrote math to support most C95 libmath calls on f32, f64 and float
1 parent 75ce03d commit 9c9be62

File tree

3 files changed

+305
-64
lines changed

3 files changed

+305
-64
lines changed

src/lib/ctypes.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Definitions useful for C interop
55
*/
66

77
type c_int = i32;
8+
89
type long = int;
910
type unsigned = u32;
1011
type ulong = uint;
@@ -13,6 +14,9 @@ type intptr_t = uint;
1314
type uintptr_t = uint;
1415
type uint32_t = u32;
1516

17+
// This *must* match with "import c_float = fXX" in std::math per arch
18+
type c_float = f64;
19+
1620
type size_t = uint;
1721
type ssize_t = int;
1822
type off_t = uint;

0 commit comments

Comments
 (0)