Auth_OpenID_BcMathWrapper 클래스 참조

Auth_OpenID_BcMathWrapper에 대한 상속 다이어그램 :
Inheritance graph
Auth_OpenID_BcMathWrapper에 대한 협력 다이어그램:
Collaboration graph

모든 멤버 목록

Public 멤버 함수

 add ($x, $y)
 sub ($x, $y)
 pow ($base, $exponent)
 cmp ($x, $y)
 init ($number, $base=10)
 mod ($base, $modulus)
 mul ($x, $y)
 div ($x, $y)
 _powmod ($base, $exponent, $modulus)
 powmod ($base, $exponent, $modulus)
 toString ($num)

Public 속성

 $type = 'bcmath'

상세한 설명

BigMath.php 파일의 185 번째 라인에서 정의되었습니다.


멤버 함수 문서화

Auth_OpenID_BcMathWrapper::_powmod ( base,
exponent,
modulus 
)

Same as bcpowmod when bcpowmod is missing

private

BigMath.php 파일의 233 번째 라인에서 정의되었습니다.

다음을 참조함 : cmp(), div(), mod(), mul().

다음에 의해서 참조됨 : powmod().

00234     {
00235         $square = $this->mod($base, $modulus);
00236         $result = 1;
00237         while($this->cmp($exponent, 0) > 0) {
00238             if ($this->mod($exponent, 2)) {
00239                 $result = $this->mod($this->mul($result, $square), $modulus);
00240             }
00241             $square = $this->mod($this->mul($square, $square), $modulus);
00242             $exponent = $this->div($exponent, 2);
00243         }
00244         return $result;
00245     }

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

Auth_OpenID_BcMathWrapper::add ( x,
y 
)

BigMath.php 파일의 188 번째 라인에서 정의되었습니다.

00189     {
00190         return bcadd($x, $y);
00191     }

Auth_OpenID_BcMathWrapper::cmp ( x,
y 
)

BigMath.php 파일의 203 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : _powmod().

00204     {
00205         return bccomp($x, $y);
00206     }

Auth_OpenID_BcMathWrapper::div ( x,
y 
)

BigMath.php 파일의 223 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : _powmod().

00224     {
00225         return bcdiv($x, $y);
00226     }

Auth_OpenID_BcMathWrapper::init ( number,
base = 10 
)

BigMath.php 파일의 208 번째 라인에서 정의되었습니다.

00209     {
00210         return $number;
00211     }

Auth_OpenID_BcMathWrapper::mod ( base,
modulus 
)

BigMath.php 파일의 213 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : _powmod().

00214     {
00215         return bcmod($base, $modulus);
00216     }

Auth_OpenID_BcMathWrapper::mul ( x,
y 
)

BigMath.php 파일의 218 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : _powmod().

00219     {
00220         return bcmul($x, $y);
00221     }

Auth_OpenID_BcMathWrapper::pow ( base,
exponent 
)

BigMath.php 파일의 198 번째 라인에서 정의되었습니다.

00199     {
00200         return bcpow($base, $exponent);
00201     }

Auth_OpenID_BcMathWrapper::powmod ( base,
exponent,
modulus 
)

BigMath.php 파일의 247 번째 라인에서 정의되었습니다.

다음을 참조함 : _powmod().

00248     {
00249         if (function_exists('bcpowmod')) {
00250             return bcpowmod($base, $exponent, $modulus);
00251         } else {
00252             return $this->_powmod($base, $exponent, $modulus);
00253         }
00254     }

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

Auth_OpenID_BcMathWrapper::sub ( x,
y 
)

BigMath.php 파일의 193 번째 라인에서 정의되었습니다.

00194     {
00195         return bcsub($x, $y);
00196     }

Auth_OpenID_BcMathWrapper::toString ( num  ) 

BigMath.php 파일의 256 번째 라인에서 정의되었습니다.

00257     {
00258         return $num;
00259     }


멤버 데이타 문서화

Auth_OpenID_BcMathWrapper::$type = 'bcmath'

BigMath.php 파일의 186 번째 라인에서 정의되었습니다.


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.:

생성시간 : Wed Oct 28 22:59:44 2009, 프로젝트명 : XpressEngine, 생성자 :   doxygen 1.6.1