How does one construct a mask for the MS bit?

John Bass bass at dmsd.UUCP
Fri Mar 8 08:12:43 AEST 1985


seems that this should work:

#define MSB(a)		(1<<((sizeof a) * 8 - 1))

for most unix machines.
-- 
John Bass
DMS Design (System Performance and Arch Consultants)
{dual,fortune,idi,hpda}!dmsd!bass     (408) 996-0557



More information about the Comp.lang.c mailing list