imax(9) - NetBSD Manual Pages

Command: Section: Arch: Collection:  
IMAX(9)                NetBSD Kernel Developer's Manual                IMAX(9)

imax, imin, lmax, lmin, uimax, uimin, ulmax, ulmin -- compare integers
int imax(int a, int b); int imin(int a, int b); long lmax(long a, long b); long lmin(long a, long b); u_int uimax(u_int a, u_int b); u_int uimin(u_int a, u_int b); u_long ulmax(u_long a, u_long b); u_long ulmin(u_long a, u_long b);
The imin(), lmin(), uimin(), and ulmin() functions return whichever argu- ment is algebraically smaller, differing only in their argument and return types: these functions operate on, respectively, natural size, long, unsigned and unsigned long integers. The imax(), lmax(), uimax(), and ulmax() functions are identical except that they return the algebraically larger argument between a and b.
ilog2(3) NetBSD 10.99 July 10, 2024 NetBSD 10.99
Powered by man-cgi (2024-03-20). Maintained for NetBSD by Kimmo Suominen. Based on man-cgi by Panagiotis Christias.