Commit d6db82b
committed
fix: CI typo, Rust lint, NaN preservation, C++ includes, Go tests
Closes #28 — replace goto-bus/setup-zig with mlugg/setup-zig in both
test-bindings.yml and release.yml.
Closes #35 — add #![allow(non_camel_case_types)] to goldenfloat-sys
lib.rs for FFI-style type names.
Closes #38 — GF16.fromF32 now maps NaN to exp=0x3F,mant=1 (not inf).
GF16.toF32 returns std.math.nan when exp=0x3F and mant!=0.
Closes #36 — add cpp/include to CMakeLists include_directories so
<goldenfloat/gf16.hpp> resolves.
Closes #37 — remove import "C" from gf16_test.go (Go forbids cgo
in test files). Rewrite tests as exported Test* functions using the
Go wrapper API from gf16.go.1 parent 71037e8 commit d6db82b
5 files changed
Lines changed: 173 additions & 395 deletions
File tree
- .github/workflows
- go/goldenfloat
- rust/goldenfloat-sys/src
- src/formats
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments