Francois-Rene Rideau <fare@tunes.org> said:
[...]
> Such optimization as hpa@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@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@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:25 EST