bsd compatibility mods
[goodguy/history.git] / cinelerra-5.1 / libzmpeg3 / audio / dct.C
index fb440d05d69fef618367fa371ad068a3abeb4da9..5aaea91b604b251d16d67d598f4c6de55e98b5fc 100644 (file)
@@ -31,7 +31,7 @@
 int zaudio_decoder_layer_t::
 dct64_1(float *out0, float *out1, float *b1, float *b2, float *samples)
 {
-  register float *costab = pnts[0];
+  float *costab = pnts[0];
 
   b1[0x00] = samples[0x00] + samples[0x1F];
   b1[0x01] = samples[0x01] + samples[0x1E];
@@ -156,8 +156,8 @@ dct64_1(float *out0, float *out1, float *b1, float *b2, float *samples)
   b1[0x1C] = (b2[0x1C] - b2[0x1B]) * costab[3];
 
   {
-    register float const cos0 = pnts[3][0];
-    register float const cos1 = pnts[3][1];
+    float const cos0 = pnts[3][0];
+    float const cos1 = pnts[3][1];
 
     b2[0x00] = b1[0x00] + b1[0x03];
     b2[0x03] = (b1[0x00] - b1[0x03]) * cos0;
@@ -201,7 +201,7 @@ dct64_1(float *out0, float *out1, float *b1, float *b2, float *samples)
   }
 
   {
-    register float const cos0 = pnts[4][0];
+    float const cos0 = pnts[4][0];
 
     b1[0x00] = b2[0x00] + b2[0x01];
     b1[0x01] = (b2[0x00] - b2[0x01]) * cos0;
@@ -284,7 +284,7 @@ dct64_1(float *out0, float *out1, float *b1, float *b2, float *samples)
   out1[0x10*14] = b1[0x0F];
 
   { 
-    register float tmp;
+    float tmp;
     tmp = b1[0x18] + b1[0x1C];
     out0[0x10*15] = tmp + b1[0x10];
     out0[0x10*13] = tmp + b1[0x14];
@@ -361,7 +361,7 @@ dct36(float *inbuf, float *o1, float *o2, float *wintab, float *tsbuf)
   float tmp[18];
 
   {
-    register float *in = inbuf;
+    float *in = inbuf;
 
     in[17]+=in[16]; in[16]+=in[15]; in[15]+=in[14];
     in[14]+=in[13]; in[13]+=in[12]; in[12]+=in[11];
@@ -462,10 +462,10 @@ dct36(float *inbuf, float *o1, float *o2, float *wintab, float *tsbuf)
   ts[SBLIMIT*(9+(v))] = out1[9+(v)] + tmpval * w[9+(v)]; \
   }
     {
-      register float *out2 = o2;
-      register float *w = wintab;
-      register float *out1 = o1;
-      register float *ts = tsbuf;
+      float *out2 = o2;
+      float *w = wintab;
+      float *out1 = o1;
+      float *ts = tsbuf;
 
       MACRO(0);
       MACRO(1);
@@ -485,7 +485,7 @@ dct36(float *inbuf, float *o1, float *o2, float *wintab, float *tsbuf)
  * new DCT12
  */
 int zaudio_decoder_layer_t::
-dct12(float *in,float *rawout1,float *rawout2,register float *wi,register float *ts)
+dct12(float *in,float *rawout1,float *rawout2,float *wi,float *ts)
 {
 #define DCT12_PART1 \
   in5 = in[5*3]; \
@@ -512,7 +512,7 @@ dct12(float *in,float *rawout1,float *rawout2,register float *wi,register float
 
   {
     float in0,in1,in2,in3,in4,in5;
-    register float *out1 = rawout1;
+    float *out1 = rawout1;
     ts[SBLIMIT*0] = out1[0]; ts[SBLIMIT*1] = out1[1]; ts[SBLIMIT*2] = out1[2];
     ts[SBLIMIT*3] = out1[3]; ts[SBLIMIT*4] = out1[4]; ts[SBLIMIT*5] = out1[5];
 
@@ -547,7 +547,7 @@ dct12(float *in,float *rawout1,float *rawout2,register float *wi,register float
 
   {
     float in0,in1,in2,in3,in4,in5;
-    register float *out2 = rawout2;
+    float *out2 = rawout2;
 
     DCT12_PART1
 
@@ -581,7 +581,7 @@ dct12(float *in,float *rawout1,float *rawout2,register float *wi,register float
 
   {
     float in0,in1,in2,in3,in4,in5;
-    register float *out2 = rawout2;
+    float *out2 = rawout2;
     out2[12]=out2[13]=out2[14]=out2[15]=out2[16]=out2[17]=0.0;
 
     DCT12_PART1