Re: [PATCH] trivial: the memset operation on a automatic array variable should be optimized out by data initialization
- From: Arjan van de Ven <arjan@xxxxxxxxxxxxx>
- Date: Sun, 24 Jun 2007 15:15:17 -0700
I think all these benefits are the gcc's __builtin_memset optimization
than the explicit call to memset.
... or from complex memset() implementation (some chips even didn't do
`rep' fast enough somehow). Maybe code like below will be acceptable for
both optimizers and maintainers?
we should just alias our memset to the __builtin one, and then provide a
generic one from lib/ for the cases gcc needs to do a fallback.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH] trivial: the memset operation on a automatic array variable should be optimized out by data initialization
- From: Benjamin LaHaise
- memset() with zeroes (Re: [PATCH] trivial: the memset operation on a automatic array variable should be optimized out by data initialization)
- From: Oleg Verych
- Re: [PATCH] trivial: the memset operation on a automatic array variable should be optimized out by data initialization
- References:
- [PATCH] trivial: the memset operation on a automatic array variable should be optimized out by data initialization
- From: Denis Cheng
- Re: [PATCH] trivial: the memset operation on a automatic array variable should be optimized out by data initialization
- From: Oleg Verych
- Re: [PATCH] trivial: the memset operation on a automatic array variable should be optimized out by data initialization
- From: rae l
- Re: [PATCH] trivial: the memset operation on a automatic array variable should be optimized out by data initialization
- From: Oleg Verych
- [PATCH] trivial: the memset operation on a automatic array variable should be optimized out by data initialization
- Prev by Date: Re: [PATCH] trivial: the memset operation on a automatic array variable should be optimized out by data initialization
- Next by Date: Re: [PATCH] Update the alignment for 4K stacks.
- Previous by thread: Re: [PATCH] trivial: the memset operation on a automatic array variable should be optimized out by data initialization
- Next by thread: memset() with zeroes (Re: [PATCH] trivial: the memset operation on a automatic array variable should be optimized out by data initialization)
- Index(es):
Loading