Welcome to mirror list, hosted at ThFree Co, Russian Federation.

carg.c « complex « mingwex « mingw « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cb47accb640ccefdd3a5aff3b59d8efeafe70d11 (plain)
1
2
3
4
5
6
7
8
9
#include <complex.h>
double  __attribute__ ((const)) carg (double _Complex _Z)
{
  double res;
  __asm__ ("fpatan;"
	   : "=t" (res) : "0" (__real__ _Z), "u" (__imag__ _Z) : "st(1)");
  return res;
}