-
Notifications
You must be signed in to change notification settings - Fork 18k
math: add ARM64 implementation of hypot #47536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
This PR (HEAD: 1bc07c8) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/339849 to see it. Tip: You can toggle comments from me using the |
Message from Hau Yang: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/339849. |
Message from Robert Griesemer: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/339849. |
Message from fannie zhang: Patch Set 1: Run-TryBot+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/339849. |
Message from Go Bot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/339849. |
Message from Go Bot: Patch Set 1: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/339849. |
This PR (HEAD: 52f73f1) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/339849 to see it. Tip: You can toggle comments from me using the |
Message from Hau Yang: Patch Set 2: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/339849. |
This PR (HEAD: e85ba85) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/339849 to see it. Tip: You can toggle comments from me using the |
Message from Russ Cox: Patch Set 3: Hold+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/339849. |
Fixes golang#53522 Change-Id: Ibed838d358a733d26a6c3d89446d7fadb1012961 Reviewed-on: https://go-review.googlesource.com/c/go/+/413876 Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
This PR (HEAD: 1d646a5) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/339849 to see it. Tip: You can toggle comments from me using the |
Message from Hau Yang: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/339849. |
Message from Hau Yang: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/339849. |
Message from Robert Griesemer: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/339849. |
Message from Fannie Zhang: Patch Set 1: Run-TryBot+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/339849. |
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/339849. |
Message from Gopher Robot: Patch Set 1: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/339849. |
Message from Hau Yang: Patch Set 2: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/339849. |
Message from Russ Cox: Patch Set 3: Hold+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/339849. |
Message from Hau Yang: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/339849. |
Add ARM64 assembly implementation of hypot. The benchmark which run on
Apple Silicon M1 chip is listed as following.
BenchmarkHypot
BenchmarkHypot-8 2.185 ns/op 0 B/op 0 allocs/op
BenchmarkHypotGo
BenchmarkHypotGo-8 3.462 ns/op 0 B/op 0 allocs/op
delta: -36.89%