equal
deleted
inserted
replaced
1530 return TypeD::make( StubRoutines::intrinsic_log10( d ) ); |
1530 return TypeD::make( StubRoutines::intrinsic_log10( d ) ); |
1531 } |
1531 } |
1532 |
1532 |
1533 //============================================================================= |
1533 //============================================================================= |
1534 //------------------------------Value------------------------------------------ |
1534 //------------------------------Value------------------------------------------ |
1535 // Compute exp |
|
1536 const Type *ExpDNode::Value( PhaseTransform *phase ) const { |
|
1537 const Type *t1 = phase->type( in(1) ); |
|
1538 if( t1 == Type::TOP ) return Type::TOP; |
|
1539 if( t1->base() != Type::DoubleCon ) return Type::DOUBLE; |
|
1540 double d = t1->getd(); |
|
1541 return TypeD::make( StubRoutines::intrinsic_exp( d ) ); |
|
1542 } |
|
1543 |
|
1544 |
|
1545 //============================================================================= |
|
1546 //------------------------------Value------------------------------------------ |
|
1547 // Compute pow |
1535 // Compute pow |
1548 const Type *PowDNode::Value( PhaseTransform *phase ) const { |
1536 const Type *PowDNode::Value( PhaseTransform *phase ) const { |
1549 const Type *t1 = phase->type( in(1) ); |
1537 const Type *t1 = phase->type( in(1) ); |
1550 if( t1 == Type::TOP ) return Type::TOP; |
1538 if( t1 == Type::TOP ) return Type::TOP; |
1551 if( t1->base() != Type::DoubleCon ) return Type::DOUBLE; |
1539 if( t1->base() != Type::DoubleCon ) return Type::DOUBLE; |