math.h 340 B

123456789101112131415161718
  1. #include <openlibm_math.h>
  2. // Missing typedefs
  3. typedef float float_t;
  4. typedef double double_t;
  5. // Included to fix mesa issues
  6. #ifndef M_PI
  7. #define M_PI 3.14159265358979323846 /* pi */
  8. #endif
  9. #ifndef M_PI_2
  10. #define M_PI_2 1.57079632679489661923 /* pi/2 */
  11. #endif
  12. #ifndef M_PI_4
  13. #define M_PI_4 0.78539816339744830962 /* pi/4 */
  14. #endif