changeset 85:eca8d5f642fd

l1_ctl.c: l1ctl_toa_update() reconstructed
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Thu, 07 Apr 2016 00:49:43 +0000
parents 1cda9bc89011
children b30f037829cf
files chipsetsw/layer1/cfile/l1_ctl.c
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/chipsetsw/layer1/cfile/l1_ctl.c	Sat Apr 02 07:56:24 2016 +0000
+++ b/chipsetsw/layer1/cfile/l1_ctl.c	Thu Apr 07 00:49:43 2016 +0000
@@ -1610,19 +1610,25 @@
   }
   else
   {
-    UWORD32 TOA_divisor = 0;
+#if 0	/* fix added in LoCosto, not present in TCS211 */
+    UWORD32 TOA_divisor;
+#endif
     TOA_estimated=(TOASP[IZW]*IZW)+(TOASP[IZW-1]*(IZW-1)>>C_GEW);
     TOA_estimated *= 8; //F13.3 in order to have qBit precision
+#if 0
     TOA_divisor = TOASP[IZW]+(TOASP[IZW-1] >> C_GEW);
     if (TOA_divisor!=0)
+#endif
     {
-    TOA_estimated/= TOASP[IZW]+(TOASP[IZW-1] >> C_GEW);
-    TOA_estimated /= 2; // unit in QBit ("/8" then "*4" = "/2")
-  }
+      TOA_estimated /= TOASP[IZW]+(TOASP[IZW-1] >> C_GEW);
+      TOA_estimated /= 2; // unit in QBit ("/8" then "*4" = "/2")
+    }
+#if 0
     else
     {
       TOA_estimated = 0;
     }
+#endif
   }
 
   if (Trans_active)