lkml.org 
[lkml]   [2003]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: const from include/asm-i386/byteorder.h
From
Date
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)

shouldn't it be __attribute__((const)) to designate a pure function?

--
// Gianni Tedesco (gianni at scaramanga dot co dot uk)
lynx --source www.scaramanga.co.uk/gianni-at-ecsc.asc | gpg --import
8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.258 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site