Re: [PATCH, SH] inline builtin_memset

2014-03-26 Thread Kaz Kojima
Christian Bruel wrote: > This patch inlines builtin_memset whose size is a constant 128 < size < > 15. Small sizes are better unrolled with mov_insn sequences. Big size > (or non constants) are better handled with a libc implementation that > does cache line aligned copying and unrolling or prefet

Re: [PATCH, SH] inline builtin_memset

2014-03-26 Thread Christian Bruel
On 03/26/2014 11:22 AM, Christian Bruel wrote: > Hello, > > This patch inlines builtin_memset whose size is a constant 128 < size < > 15. Small sizes are better unrolled with mov_insn sequences. Big size > (or non constants) are better handled with a libc implementation that > does cache line alig

[PATCH, SH] inline builtin_memset

2014-03-26 Thread Christian Bruel
Hello, This patch inlines builtin_memset whose size is a constant 128 < size < 15. Small sizes are better unrolled with mov_insn sequences. Big size (or non constants) are better handled with a libc implementation that does cache line aligned copying and unrolling or prefetching. No new regressio