ggidev-eq_33
Triple-int comparisons
Usage
#include <ggi/internal/triple-int.h> int eq_3(unsigned l[3], unsigned r[3]); int ge_3(unsigned l[3], unsigned r[3]);
Overview
eq_3 tests if l and r are equal. Equivalent to l==r.
ge_3 tests if l is greater than or equal to l. Equivalent to l>=r.
Return value
eq_3 and ge_3 returns non-zero if the relation is true, and zero otherwise.
Examples
Some triple-int comparisons:
unsigned x[3], y[3], z[3]; assign_int_3(x, 5); assign_int_3(y, 6); assign_int_3(z, 6); ASSERT(!eq_3(x, y)); ASSERT(eq_3(y, z)); ASSERT(ge_3(x, y)); ASSERT(ge_3(y, z)); ASSERT(!ge_3(y, x));
Releases
3 releases since Debian 4.0 (Etch); the text changed 1 time.