C# 클래스 IntXLib.NewtonHelper

Contains helping methods for fast division using Newton approximation approach and fast multiplication.
파일 보기 프로젝트 열기: devoyster/IntXLib

공개 메소드들

메소드 설명
GetIntegerOpposite ( uint digitsPtr, uint length, uint maxLength, uint bufferPtr, uint &newLength, ulong &rightShift ) : uint[]

Generates integer opposite to the given one using approximation. Uses algorithm from Khuth vol. 2 3rd Edition (4.3.3).

메소드 상세

GetIntegerOpposite() 공개 정적인 메소드

Generates integer opposite to the given one using approximation. Uses algorithm from Khuth vol. 2 3rd Edition (4.3.3).
public static GetIntegerOpposite ( uint digitsPtr, uint length, uint maxLength, uint bufferPtr, uint &newLength, ulong &rightShift ) : uint[]
digitsPtr uint Initial big integer digits.
length uint Initial big integer length.
maxLength uint Precision length.
bufferPtr uint Buffer in which shifted big integer may be stored.
newLength uint Resulting big integer length.
rightShift ulong How much resulting big integer is shifted to the left (or: must be shifted to the right).
리턴 uint[]