triple-int General Information

Name

ggidev-triple-int : triple-int General Information

Synopsis

#include <ggi/internal/triple-int.h>

Description

triple-int is a collection of math routines that operates on an array of 3 unsigned integers, treating them as a single integer with triple precision.

triple-int uses a 2-complement representation for negative values.

The most significant part of the triple-int is stored at the highest index in the array representation.

A triple-int is typically declared as follows:

unsigned x[3];

Don't let the above unsigned keyword fool you, all the routines operate as if the triple-int is signed.

See Also