summaryrefslogtreecommitdiffstats
path: root/src/map/scl
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2018-02-19 09:07:44 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2018-02-19 09:07:44 -0800
commit76b00a2d3e14efe21a086ec401db4ab08a6f287a (patch)
treecb95ceedd233b882e246a5298994b769d7d21d27 /src/map/scl
parent1d1b11cb65aa3c7811fe81e45c6870018bf25a95 (diff)
downloadabc-76b00a2d3e14efe21a086ec401db4ab08a6f287a.tar.gz
abc-76b00a2d3e14efe21a086ec401db4ab08a6f287a.tar.bz2
abc-76b00a2d3e14efe21a086ec401db4ab08a6f287a.zip
Compilation problem with pow().
Diffstat (limited to 'src/map/scl')
-rw-r--r--src/map/scl/sclBufSize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/scl/sclBufSize.c b/src/map/scl/sclBufSize.c
index 7707704d..be9cc3bd 100644
--- a/src/map/scl/sclBufSize.c
+++ b/src/map/scl/sclBufSize.c
@@ -401,8 +401,8 @@ void Abc_SclBufSize( Bus_Man_t * p, float Gain )
abctime clk = Abc_Clock();
int i, k, nObjsOld = Abc_NtkObjNumMax(p->pNtk);
float GainGate, GainInv, Load, LoadNew, Cin, DeptMax = 0;
- GainGate = p->pPars->fAddBufs ? pow( Gain, 2.0 ) : Gain;
- GainInv = p->pPars->fAddBufs ? pow( Gain, 2.0 ) : Gain;
+ GainGate = p->pPars->fAddBufs ? (float)pow( (double)Gain, (double)2.0 ) : Gain;
+ GainInv = p->pPars->fAddBufs ? (float)pow( (double)Gain, (double)2.0 ) : Gain;
Abc_NtkForEachObjReverse( p->pNtk, pObj, i )
{
if ( !((Abc_ObjIsNode(pObj) && Abc_ObjFaninNum(pObj) > 0) || (Abc_ObjIsCi(pObj) && p->pPiDrive)) )