[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-kernel
Subject: Re: const from include/asm-i386/byteorder.h
From: William Lee Irwin III <wli () holomorphy ! com>
Date: 2003-05-31 18:57:09
[Download RAW message or body]
On Sat, 2003-05-31 at 15:10, Nikita Danilov wrote:
>> Hello,
>> include/asm-i386/byteorder.h contains strange __const__'s in function
>> definitions that have no effect:
>> static __inline__ __const__ __u32 ___arch__swab32(__u32 x)
>> static __inline__ __const__ __u16 ___arch__swab16(__u16 x)
On Sat, May 31, 2003 at 07:49:53PM +0100, Gianni Tedesco wrote:
> shouldn't it be __attribute__((const)) to designate a pure function?
There is an __attribute__((pure)) IIRC.
-- wli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic