/* Copyright 2020, Dirk Krause. All rights reserved. SPDX-License-Identifier: BSD-3-Clause */ #ifndef DK3MA_H_INCLUDED #define DK3MA_H_INCLUDED 1 #ifndef DK3CONF_H_INCLUDED #include #endif #include #if DK3_HAVE_SYS_TYPES_H #include #endif #if DK3_HAVE_STDINT #include #endif #if DK3_HAVE_INTTYPES_H #include #endif #if DK3_HAVE_LIMITS_H #include #endif #if DK3_HAVE_MATH_H #include #endif #if DK3_HAVE_FLOAT_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /* Yes, there are systems without M_PI or M_PI_2 in math.h */ #ifndef M_PI /** Define pi if not already defined in math.h */ #define M_PI (3.14159265358979323846) #endif #ifndef M_PI_2 /** Define 0.5 * pi if not already defined in math.h */ #define M_PI_2 (1.57079632679489661923) #endif #endif