equal
deleted
inserted
replaced
1517 if( t1->base() != Type::DoubleCon ) return Type::DOUBLE; |
1517 if( t1->base() != Type::DoubleCon ) return Type::DOUBLE; |
1518 double d = t1->getd(); |
1518 double d = t1->getd(); |
1519 return TypeD::make( StubRoutines::intrinsic_log10( d ) ); |
1519 return TypeD::make( StubRoutines::intrinsic_log10( d ) ); |
1520 } |
1520 } |
1521 |
1521 |
1522 //============================================================================= |
|
1523 //------------------------------Value------------------------------------------ |
|
1524 // Compute pow |
|
1525 const Type *PowDNode::Value( PhaseTransform *phase ) const { |
|
1526 const Type *t1 = phase->type( in(1) ); |
|
1527 if( t1 == Type::TOP ) return Type::TOP; |
|
1528 if( t1->base() != Type::DoubleCon ) return Type::DOUBLE; |
|
1529 const Type *t2 = phase->type( in(2) ); |
|
1530 if( t2 == Type::TOP ) return Type::TOP; |
|
1531 if( t2->base() != Type::DoubleCon ) return Type::DOUBLE; |
|
1532 double d1 = t1->getd(); |
|
1533 double d2 = t2->getd(); |
|
1534 return TypeD::make( StubRoutines::intrinsic_pow( d1, d2 ) ); |
|
1535 } |
|