Constant byteorder macros.
Horst von Brand
vonbrand en pincoya.inf.utfsm.cl
Vie Ene 21 23:59:19 CST 2000
Francois-Rene Rideau <fare en tunes.org> said:
[...]
> Such optimization as hpa en foo proposes is already done, at a lower level
> (see include/linux/swab.h). However, the whole point of a __constant_FOO
> macros is to stay independent from GCC proper (since __builtin_constant_p
> is GNU C specific). If this is a goal (and I guess it is, since we do have
> such interface in the htonl case), then indeed, new interfaces have to be
> provided.
The linux kernel is so tightly bound to gcc that this portability is
moot. Perhaps the pervious ones are remnants from times where the kernel
headers where directly used by userland, or workarounds for broken gcc
versions?
--
Dr. Horst H. von Brand mailto:vonbrand en inf.utfsm.cl
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Más información sobre la lista de distribución Ayuda