lkml.org 
[lkml]   [2008]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [2.6 patch] asm-generic/int-ll64.h: always provide __{s,u}64
On Mon, May 19, 2008 at 04:51:53PM -0700, H. Peter Anvin wrote:
> Adrian Bunk wrote:
>>>>
>>> If it is going to be unconditionally offered, we could get rid of
>>> __BYTEORDER_HAS_U64__ as a next step. Unless there is something I've
>>> missed.
>>
>> Why do we need the byteorder headers in userspace at all?
>>
>
> Because Linux-specific software has depended on them for over 15 years
> (they are a much better API than anything POSIX provides.) We can't
> just yank them, and so it's better if they actually work.
>
> Yes, you can argue it should be glibc's job to provide them, but well,
> why duplicate work when we already have a nicely working set.

The worst thing is how many CONFIG_'s they currently leak to userspace.

And e.g. the versions in the x86 header are therefore not the fastest
ones (unless the userspace software #define's CONFIG_X86_BSWAP)...

> -hpa

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed



\
 
 \ /
  Last update: 2008-05-20 02:19    [W:0.037 / U:2.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site