rsys

Basic data structures and low-level features
git clone git://git.meso-star.fr/rsys.git
Log | Files | Refs | README | LICENSE

commit eecae148f72d7f5744edab611367051721015717
parent 7382abc7e554485aaa52cb8a3cdafb474473acac
Author: vaplv <vaplv@free.fr>
Date:   Fri,  5 Sep 2014 16:25:05 +0200

Add the MDEG2RAD mathematic macro

Diffstat:
Msrc/math.h | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/math.h b/src/math.h @@ -12,6 +12,8 @@ #define PI 3.14159265358979323846 #define RCP_PI 0.31830988618379067154 /* 1/ pi */ #define SQRT2 1.41421356237309504880 /* sqrt( 2 ) */ +#define MDEG2RAD(Deg) ((Deg)*PI/180.0) + static FINLINE size_t round_up_pow2(const size_t i)