Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: intrinsify more of math/bits on amd64 #28273
Now that more API has been added to math/bits (#24813), this is a tracking bug to intrinsify more of it in the compiler for amd64.
I originally had added the Div64 intrinsic for amd64, but there were concerns during review about the behavior when the quotient won't fit into 64-bits. In particular, the pure go implementation ported from math/big returns a value of
Currently, the documentation from the original proposal states:
The concern was that "undefined" shouldn't encompass both returning a value in one implementation and panic in another.
I propose that the behavior when