lkml.org 
[lkml]   [2000]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: Constant byteorder macros.
    Date
    From
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:56    [W:0.018 / U:58.388 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site