lkml.org 
[lkml]   [2003]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [BK+PATCH] remove __constant_memcpy
J.A. Magallon wrote:
> On 04.17, Jeff Garzik wrote:
>
>>On Thu, Apr 17, 2003 at 09:07:45AM -0700, Linus Torvalds wrote:
>
> [...]
>
>> #define memcpy(t, f, n) \
>> (__builtin_constant_p(n) ? \
>> __constant_memcpy3d((t),(f),(n)) : \
>> __memcpy3d((t),(f),(n)))
>>
>
>
> Do you know if this is more efficient ? :
>
> __builtin_choose_expr(__builtin_constant_p(n), ... , ....)
>
> Perhaps ?: reaches runtime, and __builtin doesn't.


No. The existing code (quoted above) is properly evaluated at
compile-time...

Jeff



-
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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.147 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site