Legacy Mac OS X Reference Library Apple Developer Connection

Version: 1.0

Posted: 2006-06-09

Build Requirements: Xcode 2.x or GCC 3.0 (makefile included)

Runtime Requirements: Mac OS X

View Source Code:

Download Sample Code (“Test64BitMultiprec.zip”, 154.1K)



Description

The samples in this project are explained by "Special applications of 64-bit arithetic: Acceleration on the Apple G5." (enclosed as: 64bit_multiprec.pdf).

addmul3asm.S, addmul4asm.S are two different 64-bit PowerPC G5 implementations of the operation A*Y+B, where A and B are arrays of 64-bit words and Y is a 64-bit integer. These routines are described in more detail in the paper.

addmulv2.c illustrates using vecLib as a straightforward alternative to the 64-bit optimized multi-precision multiplication routine described in the paper.

modmul64asm_2.S is a 64-bit routine to compute A*B (mod C) where A, B, and C are 64-bit quantities and a reciprocal for C has been precomputed.

Document Revision History

Date Notes
2006-06-09Implements (PPC) A*Y+B where A & B are arrays of 64-bit words and Y is a 64-bit integer
Did this document help you? Yes It's good, but... Not helpful...