IMAX(9)

πŸ“¦
version 11.0 Β· 2 versions
, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so bestie, this is the IMAX(9) page from the Kernel Developer's Manual, section 9 energy ✨. The whole squad is imax, imin, lmax, lmin, uimax, uimin, ulmax, ulmin β€” and their whole thing is compare integers. periodt πŸ’….

✨ SYNOPSIS ✨

here's the exact signature lineup, no cap β€” copy-paste clean and everything 🫢:

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);

πŸ’– DESCRIPTION πŸ’–

okay so the min girlies β€” imin(), lmin(), uimin(), and ulmin() β€” are literally here to return whichever argument is algebraically smaller 🌱. They only differ in their argument and return types, bestie: these functions operate on, respectively, natural size, long, unsigned, and unsigned long integers. cute, consistent, iconic πŸ’–.

the max crew β€” imax(), lmax(), uimax(), and ulmax() β€” are identical except that they return the algebraically larger argument between a and b πŸ”₯. same energy, opposite direction, slay πŸ‘‘.

🌈 SEE ALSO 🌈

also go peek at ilog2(3) β€” that's the whole SEE ALSO moment, iykyk πŸ¦‹.

mwah πŸ’‹ β€” this lil beauty comes from Debian, dated July 10, 2024, and it's the IMAX(9) page. byeee 🫢

πŸ“¦ where this page comes from