#ifndef _MATH_H_87af1aed_ #define _MATH_H_87af1aed_ /* * APIs exported by math.c These are various mathematical or * semimathematical utility routines. */ /* * Return (what a mathematician would call) ceil(sqrt(N)). The * argument and return value are both integers. An argument of 0 or * less is an error; it will return something, but it will not be * useful. */ extern int isqrt(int); /* * how_many(X,Y) returns (what a mathematician would call) ceil(X/Y): * the number of Y-sized blocks needed to add up to at least X, * rounded up to an integer. */ extern unsigned int how_many(unsigned int, unsigned int); #endif