[lkml]   [2000]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Constant byteorder macros.
    Francois-Rene Rideau <> 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
    Dr. Horst H. von Brand
    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
    Please read the FAQ at

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