Next: LargePositiveInteger-numeric testing, Previous: LargePositiveInteger-converting, Up: LargePositiveInteger [Index]
Private - Answer the sign of byteArray2 - byteArray1; the j-th byte of byteArray1 is compared with the first of byteArray2, the j+1-th with the second, and so on.
Private - Sutract the bytes in byteArray2 from those in byteArray1
Private - Multiply the bytes in bytes by anInteger, which must be < 255. Put the result back in bytes.
Private - Left shift by 1 place the bytes in aByteArray
Private - Left shift the bytes in aByteArray by totalShift places
Private - Left shift by shift places the bytes in aByteArray (shift <= 7)
Private - Right shift the bytes in aByteArray by totalShift places
Private - Right shift the bytes in ‘bytes’ by ’aNumber’ places (shift <= 7)
Private - Answer the number of trailing zero bits in the receiver
Private - Implements Knuth’s divide and correct algorithm from ‘Seminumerical Algorithms’ 3rd Edition, section 4.3.1 (which is basically an enhanced version of the divide ‘algorithm’ for two-digit divisors which is taught in primary school!!!)