mpFactorial2 method

void mpFactorial2(
  1. MPData ret,
  2. int x
)

Implementation

void mpFactorial2( MPData ret, int x ){
  bool m = false;
  if( x < 0 ){
    m = true;
    x = 0 - x;
  }
  mp.set( ret, _mpFactorial( x ) );
  if( m ){
    mp.neg( ret );
  }
}