Files
tinygo/compiler
Ayke van Laethem 464ebc4fe1 compiler: implement most math/bits functions
These functions can be implemented more efficiently using LLVM
intrinsics. That makes them the Go equivalent of functions like
__builtin_clz which are also implemented using these LLVM intrinsics.

I believe the Go compiler does something very similar: IIRC it converts
calls to these functions into optimal instructions for the given
architecture.

I tested these by running `tinygo test math/bits` after uncommenting the
tests that would always fail (the *PanicZero and *PanicOverflow tests).
2023-03-29 20:55:09 +02:00
..
2022-10-19 22:23:19 +02:00
2022-10-19 22:23:19 +02:00
2023-03-24 09:22:38 -07:00
2021-09-27 15:47:12 +02:00
2023-01-18 08:24:42 +01:00