|
38 | 38 | #include "os_support.h"
|
39 | 39 |
|
40 | 40 | static void drfti1(int n, float *wa, int *ifac){
|
41 |
| - static int ntryh[4] = { 4,2,3,5 }; |
42 |
| - static float tpi = 6.28318530717958648f; |
| 41 | + static const int ntryh[4] = { 4,2,3,5 }; |
| 42 | + static const float tpi = 6.28318530717958648f; |
43 | 43 | float arg,argh,argld,fi;
|
44 | 44 | int ntry=0,i,j=-1;
|
45 | 45 | int k1, l1, l2, ib;
|
@@ -170,7 +170,7 @@ static void dradf2(int ido,int l1,float *cc,float *ch,float *wa1){
|
170 | 170 |
|
171 | 171 | static void dradf4(int ido,int l1,float *cc,float *ch,float *wa1,
|
172 | 172 | float *wa2,float *wa3){
|
173 |
| - static float hsqt2 = .70710678118654752f; |
| 173 | + static const float hsqt2 = .70710678118654752f; |
174 | 174 | int i,k,t0,t1,t2,t3,t4,t5,t6;
|
175 | 175 | float ci2,ci3,ci4,cr2,cr3,cr4,ti1,ti2,ti3,ti4,tr1,tr2,tr3,tr4;
|
176 | 176 | t0=l1*ido;
|
@@ -273,7 +273,7 @@ static void dradf4(int ido,int l1,float *cc,float *ch,float *wa1,
|
273 | 273 | static void dradfg(int ido,int ip,int l1,int idl1,float *cc,float *c1,
|
274 | 274 | float *c2,float *ch,float *ch2,float *wa){
|
275 | 275 |
|
276 |
| - static float tpi=6.283185307179586f; |
| 276 | + static const float tpi=6.283185307179586f; |
277 | 277 | int idij,ipph,i,j,k,l,ic,ik,is;
|
278 | 278 | int t0,t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
|
279 | 279 | float dc2,ai1,ai2,ar1,ar2,ds2;
|
@@ -687,8 +687,8 @@ static void dradb2(int ido,int l1,float *cc,float *ch,float *wa1){
|
687 | 687 |
|
688 | 688 | static void dradb3(int ido,int l1,float *cc,float *ch,float *wa1,
|
689 | 689 | float *wa2){
|
690 |
| - static float taur = -.5f; |
691 |
| - static float taui = .8660254037844386f; |
| 690 | + static const float taur = -.5f; |
| 691 | + static const float taui = .8660254037844386f; |
692 | 692 | int i,k,t0,t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
|
693 | 693 | float ci2,ci3,di2,di3,cr2,cr3,dr2,dr3,ti2,tr2;
|
694 | 694 | t0=l1*ido;
|
@@ -750,7 +750,7 @@ static void dradb3(int ido,int l1,float *cc,float *ch,float *wa1,
|
750 | 750 |
|
751 | 751 | static void dradb4(int ido,int l1,float *cc,float *ch,float *wa1,
|
752 | 752 | float *wa2,float *wa3){
|
753 |
| - static float sqrt2=1.414213562373095f; |
| 753 | + static const float sqrt2=1.414213562373095f; |
754 | 754 | int i,k,t0,t1,t2,t3,t4,t5,t6,t7,t8;
|
755 | 755 | float ci2,ci3,ci4,cr2,cr3,cr4,ti1,ti2,ti3,ti4,tr1,tr2,tr3,tr4;
|
756 | 756 | t0=l1*ido;
|
@@ -841,7 +841,7 @@ static void dradb4(int ido,int l1,float *cc,float *ch,float *wa1,
|
841 | 841 |
|
842 | 842 | static void dradbg(int ido,int ip,int l1,int idl1,float *cc,float *c1,
|
843 | 843 | float *c2,float *ch,float *ch2,float *wa){
|
844 |
| - static float tpi=6.283185307179586f; |
| 844 | + static const float tpi=6.283185307179586f; |
845 | 845 | int idij,ipph,i,j,k,l,ik,is,t0,t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,
|
846 | 846 | t11,t12;
|
847 | 847 | float dc2,ai1,ai2,ar1,ar2,ds2;
|
|
0 commit comments