Skip to content

Commit

Permalink
interp: fpu: add fpatan implementation
Browse files Browse the repository at this point in the history
Completely untested. Hope it works...
  • Loading branch information
zhuowei committed Nov 18, 2018
1 parent 45590fa commit 37e1698
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions emu/interp/fpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,8 @@
set(dst, cpu->fcw,16)
#define FLDCW(dst) \
cpu->fcw = get(dst,16)

// there's no native atan2 for 80-bit float yet.
#define FPATAN() \
ST(1) = f80_from_double(atan2(f80_to_double(ST(1)), f80_to_double(ST(0)))); \
FPOP

0 comments on commit 37e1698

Please sign in to comment.