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 (“Test64BitMultiprec.zip”, 155.3K)
Download Sample (“Test64BitMultiprec.dmg”, 211.8K)



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: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.