project_files/hwc/rtl/system.c
changeset 11660 e15eb10f1703
parent 10910 df11dea74701
child 13885 5f819b90d479
equal deleted inserted replaced
11659:870f22de388b 11660:e15eb10f1703
     1 #include "system.h"
     1 #include "system.h"
     2 #include <string.h>
     2 #include <string.h>
     3 #include <stdio.h>
     3 #include <stdio.h>
     4 #include <stdlib.h>
     4 #include <stdlib.h>
     5 #include <wchar.h>
     5 #include <wchar.h>
       
     6 #include "pmath.h"
     6 
     7 
     7 #ifndef M_PI
     8 #ifndef M_PI
     8 // some math.h do not have M_PI macros
     9 // some math.h do not have M_PI macros
     9 # define M_PI    3.14159265358979323846  /* pi */
    10 # define M_PI    3.14159265358979323846  /* pi */
    10 # define M_PI_2  1.57079632679489661923  /* pi/2 */
    11 # define M_PI_2  1.57079632679489661923  /* pi/2 */