math32
math32 copied to clipboard
A float32 version of Go's math package
Maybe there are some performance and precision benefits to be gained from implementing `core-math`'s MIT licensed algorithms? https://gitlab.inria.fr/core-math/core-math/-/tree/master/src/binary32
How different is the library performance vs go standard math in average?
I am importing your great float32 package for the following environment: > tinygo version 0.23.0 linux/arm (using go version go1.18.1 and LLVM version 14.0.0) > Target: Raspberry Pi Pico RP2040...
Due to recent developments, some assembly implementations have been discovered to be broken. * arm64 https://github.com/chewxy/math32/blob/master/_exp_arm64.s * risc64 https://github.com/chewxy/math32/blob/master/_stubs_risc64.s #### An idea for 64bit assembly implementations Disclaimer: I'm unsure if...
Recently I have a new cpu architecture other than the one listed, and build gives the following error: ``` # github.com/chewxy/math32 ../../../../go/pkg/mod/github.com/chewxy/[email protected]/exp.go:3:6: missing function body ../../../../go/pkg/mod/github.com/chewxy/[email protected]/exp.go:57:6: missing function body ../../../../go/pkg/mod/github.com/chewxy/[email protected]/log.go:76:6:...
``` $ go build . # github.com/chewxy/math32 ../go/pkg/mod/github.com/chewxy/[email protected]/exp.go:3:6: missing function body ../go/pkg/mod/github.com/chewxy/[email protected]/exp.go:57:6: missing function body ../go/pkg/mod/github.com/chewxy/[email protected]/sqrt.go:3:6: missing function body ../go/pkg/mod/github.com/chewxy/[email protected]/log.go:76:6: missing function body ../go/pkg/mod/github.com/chewxy/[email protected]/remainder.go:33:6: missing function body ```