Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (18 sloc) 0.616 kb
.include "utils-a.s"
global_text main
prepare_stack
.set offset , 0
stack_allocate ARGV , 8
stack_allocate A , 8
stack_allocate B , 8
stack_allocate C , 8
mov %rsi , ARGV(%rbp)
ref8 ARGV , 1 , %rdi ; call atof ; movsd %xmm0 , A(%rbp)
ref8 ARGV , 2 , %rdi ; call atof ; movsd %xmm0 , B(%rbp)
movsd A(%rbp) , %xmm0
movsd B(%rbp) , %xmm1
call atan2
movsd %xmm0 , C(%rbp)
print_double C(%rbp)
print_nl
return_integer $0
Jump to Line
Something went wrong with that request. Please try again.