/***************************************************************
                           fmaths.h
 ***************************************************************/

module allegro.fmaths;

public import allegro.inline.fmaths_inl;

import allegro.fixed;
import allegro.base : allegro_errno;
import allegro.internal._export;


extern (C) {
   fixed fixsqrt (fixed x);
   fixed fixhypot (fixed x, fixed y);
   fixed fixatan (fixed x);
   fixed fixatan2 (fixed y, fixed x);
}

mixin(_export!(`
   extern extern (C) {
      // sizes taken from math.c
      fixed _cos_tbl[512];
      fixed _tan_tbl[256];
      fixed _acos_tbl[513];
   }
`));
