/*
 * Written by J.T. Conklin <[email protected]>.
 * Public domain.
 *
 */

#include <math.h>

float
atan2f (float y, float x)
{
  float res;
  asm ("fpatan" : "=t" (res) : "u" (y), "0" (x) : "st(1)");
  return res;
}
Download atan2f.c — origineel C-bestand