Quantcast
Channel: lkml.org : Ganesh Sittampalam
Viewing all articles
Browse latest Browse all 627

Re: [PATCH] kernel.h: Skip single-eval logic on literals in min()/ ...

$
0
0
Linus Torvalds writes: (Summary) wrote:

[...]

tree.
Yes, but I also didn't want to add any new cases in case people add new min/max() users.
new min/max() users.
But:
But:

[...]

=99:

[...]

pointer types lacks a cast
Oh, ok, in that case, just drop the __builtin_types_compatible_p() entirely. (t1)(x) : (t2)(y), \
__single_eval_min(t1, t2, \
...
...
would seem to be sufficient?
would seem to be sufficient?
Because logically, the only thing that matters is that x and y don't have any side effects and can be evaluated twice, and "__builtin_constant_p()" is already a much stronger version of that.

Viewing all articles
Browse latest Browse all 627

Trending Articles