diff options
Diffstat (limited to 'sysdeps/i386/fpu/e_atan2l.c')
-rw-r--r-- | sysdeps/i386/fpu/e_atan2l.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sysdeps/i386/fpu/e_atan2l.c b/sysdeps/i386/fpu/e_atan2l.c new file mode 100644 index 0000000000..19a2a60621 --- /dev/null +++ b/sysdeps/i386/fpu/e_atan2l.c @@ -0,0 +1,18 @@ +/* + * Written by J.T. Conklin <jtc@netbsd.org>. + * Public domain. + * + * Adapted for `long double' by Ulrich Drepper <drepper@cygnus.com>. + */ + +#include <math_private.h> + +long double +__ieee754_atan2l (long double y, long double x) +{ + long double res; + + asm ("fpatan" : "=t" (res) : "u" (y), "0" (x) : "st(1)"); + + return res; +} |