1 /*         ______   ___    ___
2  *        /\  _  \ /\_ \  /\_ \
3  *        \ \ \L\ \\//\ \ \//\ \      __     __   _ __   ___
4  *         \ \  __ \ \ \ \  \ \ \   /'__`\ /'_ `\/\`'__\/ __`\
5  *          \ \ \/\ \ \_\ \_ \_\ \_/\  __//\ \L\ \ \ \//\ \L\ \
6  *           \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
7  *            \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
8  *                                           /\____/
9  *                                           \_/__/
10  *
11  *      Fixed point math routines.
12  *
13  *      By Shawn Hargreaves.
14  *
15  *      See readme.txt for copyright information.
16  */
17 
18 
19 #ifndef ALLEGRO_FMATH_H
20 #define ALLEGRO_FMATH_H
21 
22 #include "base.h"
23 #include "fixed.h"
24 
25 #ifdef __cplusplus
26    extern "C" {
27 #endif
28 
29 AL_FUNC(fixed, fixsqrt, (fixed x));
30 AL_FUNC(fixed, fixhypot, (fixed x, fixed y));
31 AL_FUNC(fixed, fixatan, (fixed x));
32 AL_FUNC(fixed, fixatan2, (fixed y, fixed x));
33 
34 AL_ARRAY(fixed, _cos_tbl);
35 AL_ARRAY(fixed, _tan_tbl);
36 AL_ARRAY(fixed, _acos_tbl);
37 
38 #ifdef __cplusplus
39    }
40 #endif
41 
42 #include "inline/fmaths.inl"
43 
44 #endif          /* ifndef ALLEGRO_FMATH_H */
45 
46 
47