tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: introducing flags_t



> Assuming int is a 32-bit type, (1 << 31) is formally undefined, [...]

> However, if [...], and [...], and [...], then [...].  That may
> involve a few too many "if"s for comfort.

I doubt it, given the various other nonportable assumptions NetBSD
already makes, such as all-0-bits being a nil pointer (xprt_register()
in lib/libc/rpc/svc.c, or the example in getaddrinfo(3)), or char being
8 bits (the widespread use of uint8_t, which I don't think can exist
unless char is 8 bits).

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML                mouse%rodents-montreal.org@localhost
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index