In message: <20030523033209.GE29449(a)nodewarrior.org>
Chris Palmer <chris(a)nodewarrior.org> writes:
: Aharon Robbins writes:
:
: > long
: > nblock(size)
: > long size;
: > {
: > return((size+511)>>9);
: > }
:
: Unfortunately I can't answer any of your questions; I can only ask a new
: one: What's with that "511" in there?
It rounds size up to the next larger block, and >> 9 divides by 512.
So if you size was 512 it would return '1' but if it was 513 it would
return '2'.
Warner