@@ -63,10 +63,6 @@ namespace sta {
6363// ra_get_r
6464// ra_get_s
6565
66- using std::string;
67- using std::abs;
68- using std::vector;
69-
7066struct delay_work ;
7167struct delay_c ;
7268
@@ -151,15 +147,15 @@ class ArnoldiDelayCalc : public LumpedCapDelayCalc
151147 const LoadPinIndexMap &load_pin_index_map,
152148 const Scene *scene,
153149 const MinMax *min_max) override ;
154- string reportGateDelay (const Pin *drvr_pin,
155- const TimingArc *arc,
156- const Slew &in_slew,
157- float load_cap,
158- const Parasitic *parasitic,
159- const LoadPinIndexMap &load_pin_index_map,
160- const Scene *scene,
161- const MinMax *min_max,
162- int digits) override ;
150+ std:: string reportGateDelay (const Pin *drvr_pin,
151+ const TimingArc *arc,
152+ const Slew &in_slew,
153+ float load_cap,
154+ const Parasitic *parasitic,
155+ const LoadPinIndexMap &load_pin_index_map,
156+ const Scene *scene,
157+ const MinMax *min_max,
158+ int digits) override ;
163159 void finishDrvrPin () override ;
164160 void delay_work_set_thresholds (delay_work *D,
165161 double lo,
@@ -240,7 +236,7 @@ class ArnoldiDelayCalc : public LumpedCapDelayCalc
240236 int pin_n_;
241237 ArnoldiReduce *reduce_;
242238 delay_work *delay_work_;
243- vector<rcmodel*> unsaved_parasitics_;
239+ std:: vector<rcmodel*> unsaved_parasitics_;
244240 bool pocv_enabled_;
245241};
246242
@@ -469,7 +465,7 @@ ArnoldiDelayCalc::gateDelaySlew(const LibertyCell *drvr_cell,
469465 return dcalc_result;
470466}
471467
472- string
468+ std:: string
473469ArnoldiDelayCalc::reportGateDelay (const Pin *drvr_pin,
474470 const TimingArc *arc,
475471 const Slew &in_slew,
@@ -610,7 +606,8 @@ delay_work_get_residues(delay_work *D,int term_index)
610606// calculate_poles_res
611607//
612608
613- void arnoldi1::calculate_poles_res (delay_work *D,double rdrive)
609+ void arnoldi1::calculate_poles_res (delay_work *D,
610+ double rdrive)
614611{
615612 if (n > D->nmax ) delay_work_alloc (D,n);
616613 double *p = D->poles ;
@@ -689,7 +686,7 @@ tridiagEV(int n,double *din,double *ein,double *d,double **v)
689686 e[0 ] = 0.0 ;
690687 for (h=n-1 ;h>=1 ;h--) {
691688 iter = 0 ;
692- while (abs (e[h])>1e-18 ) { // 1e-6ps
689+ while (std:: abs (e[h])>1e-18 ) { // 1e-6ps
693690 m=0 ;
694691 if (m != h) {
695692 if (iter++ == 20 )
@@ -819,14 +816,14 @@ solve_t_bracketed(double s,int order,double *p,double *rr,
819816 if (0.0 <f2) return x2;
820817 if (f1<0.0 ) return x1;
821818 }
822- dxold = abs (x2-x1);
819+ dxold = std:: abs (x2-x1);
823820 dx = dxold;
824821 get_dv (rts,s,order,p,rr,&f,&df);
825822 f -= val;
826823 double flast = 0.0 ;
827824 for (j=1 ;j<10 ;j++) {
828825 if ((((rts-xh)*df-f)*((rts-xl)*df-f) >= 0.0 )
829- || (abs (2.0 *f) > abs (dxold*df))) {
826+ || (std:: abs (2.0 *f) > std:: abs (dxold*df))) {
830827 dxold = dx;
831828 dx = 0.5 *(xh-xl);
832829 if (flast*f >0.0 ) {
@@ -850,7 +847,7 @@ solve_t_bracketed(double s,int order,double *p,double *rr,
850847 return rts;
851848 }
852849 }
853- if (abs (dx) < xacc) {
850+ if (std:: abs (dx) < xacc) {
854851 return rts;
855852 }
856853 get_dv (rts,s,order,p,rr,&f,&df); f -= val;
@@ -859,7 +856,7 @@ solve_t_bracketed(double s,int order,double *p,double *rr,
859856 else
860857 xh = rts;
861858 }
862- if (abs (f)<1e-6 ) // 1uV
859+ if (std:: abs (f)<1e-6 ) // 1uV
863860 return rts;
864861 return 0.5 *(xl+xh);
865862}
@@ -1265,36 +1262,36 @@ ArnoldiDelayCalc::ra_solve_for_s(delay_work *D,
12651262 f = (ptlo-pthi)/p - tlohi;
12661263 df = dlo-dhi;
12671264 s = s - f/df;
1268- if (abs (f)<.001e-12 ) return ; // .001ps
1265+ if (std:: abs (f)<.001e-12 ) return ; // .001ps
12691266
12701267 ra_solve_for_pt (p*s,vlo,&ptlo,&dlo);
12711268 ra_solve_for_pt (p*s,vhi,&pthi,&dhi);
12721269 f = (ptlo-pthi)/p - tlohi;
12731270 df = dlo-dhi;
12741271 s = s - f/df;
1275- if (abs (f)<.001e-12 ) return ; // .001ps
1272+ if (std:: abs (f)<.001e-12 ) return ; // .001ps
12761273
12771274 ra_solve_for_pt (p*s,vlo,&ptlo,&dlo);
12781275 ra_solve_for_pt (p*s,vhi,&pthi,&dhi);
12791276 f = (ptlo-pthi)/p - tlohi;
12801277 df = dlo-dhi;
12811278 s = s - f/df;
1282- if (abs (f)<.001e-12 ) return ; // .001ps
1279+ if (std:: abs (f)<.001e-12 ) return ; // .001ps
12831280
12841281 ra_solve_for_pt (p*s,vlo,&ptlo,&dlo);
12851282 ra_solve_for_pt (p*s,vhi,&pthi,&dhi);
12861283 f = (ptlo-pthi)/p - tlohi;
12871284 df = dlo-dhi;
12881285 s = s - f/df;
1289- if (abs (f)<.001e-12 ) return ; // .001ps
1286+ if (std:: abs (f)<.001e-12 ) return ; // .001ps
12901287
12911288 ra_solve_for_pt (p*s,vlo,&ptlo,&dlo);
12921289 ra_solve_for_pt (p*s,vhi,&pthi,&dhi);
12931290 f = (ptlo-pthi)/p - tlohi;
12941291 df = dlo-dhi;
12951292 s = s - f/df;
12961293
1297- if (abs (f)>.5e-12 ) // .5ps
1294+ if (std:: abs (f)>.5e-12 ) // .5ps
12981295 debugPrint (debug_, " arnoldi" , 1 , " ra_solve_for_s p %g tlohi %s err %s" ,
12991296 p,
13001297 units_->timeUnit ()->asString (tlohi),
0 commit comments