math.Atan implementation

68 views
Skip to first unread message

rhiro

unread,
May 30, 2019, 11:14:57 AM5/30/19
to golang-nuts
I'd like to see the implementation for math.Atan, but I see that https://golang.org/src/math/atan.go seems to be a missing body for that function "func Atan(x float64) float64".  Is this code being hidden, or is there some other mechanism preventing it from showing up?  Thanks.

andrey mirtchovski

unread,
May 30, 2019, 11:31:23 AM5/30/19
to rhiro, golang-nuts
Atan is implemented in assembly. for amd64 it's just a call to atan
(lowercase a): https://golang.org/src/math/atan_amd64.s

for 386 it is not: https://golang.org/src/math/atan_386.s

On Thu, May 30, 2019 at 9:15 AM rhiro <rhir...@gmail.com> wrote:
>
> I'd like to see the implementation for math.Atan, but I see that https://golang.org/src/math/atan.go seems to be a missing body for that function "func Atan(x float64) float64". Is this code being hidden, or is there some other mechanism preventing it from showing up? Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/8bf7aa9a-adf3-49b8-b9ee-3582d73b286b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages