# HG changeset patch # User Mychaela Falconia # Date 1459990183 0 # Node ID eca8d5f642fd39083e37ac918bb042b74fb3f3df # Parent 1cda9bc89011b076241517bf3d78be74387b5888 l1_ctl.c: l1ctl_toa_update() reconstructed diff -r 1cda9bc89011 -r eca8d5f642fd chipsetsw/layer1/cfile/l1_ctl.c --- 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)