From 14b75917c2c8b8e139bfd2442ec007341af2b6e0 Mon Sep 17 00:00:00 2001 From: Ankitr19 Date: Fri, 7 Jul 2017 12:47:56 +0530 Subject: Demos and RPi compiler compatibility --- 2.3-1/src/c/signalProcessing/sincd/u8sincds.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '2.3-1/src/c/signalProcessing/sincd/u8sincds.c') diff --git a/2.3-1/src/c/signalProcessing/sincd/u8sincds.c b/2.3-1/src/c/signalProcessing/sincd/u8sincds.c index d03f48ae..ff0a2acc 100644 --- a/2.3-1/src/c/signalProcessing/sincd/u8sincds.c +++ b/2.3-1/src/c/signalProcessing/sincd/u8sincds.c @@ -13,12 +13,11 @@ #include #include #include "sincd.h" -#define PI 3.14159265358979 void u8sincds(int n,int flg,double* oup) { double npt=4*n; int sz=4*n; - double pas=PI/npt; + double pas=M_PI/npt; double om[sz+1]; int i; //om[0]=0; @@ -69,7 +68,7 @@ void u8sincds(int n,int flg,double* oup) int a; for(a=0;a<=4*n;a++) { - om[a]=om[a]-(PI/(2*n)); + om[a]=om[a]-(M_PI/(2*n)); } int j,k; for(j=0;j<=4*n;j++) -- cgit