Re: [U-Boot] [PATCH 2/3] string: Provide a slimmed-down memset()

2017-03-28 Thread Heiko Stuebner
Am Montag, 27. März 2017, 23:16:45 CEST schrieb Alexander Graf: > > On 27/03/2017 17:17, Heiko Stuebner wrote: > > Am Montag, 27. März 2017, 09:14:47 CEST schrieb Alexander Graf: > >> > >> On 27/03/2017 01:38, Simon Glass wrote: > >>> Most of the time the optimised memset() is what we want. For

Re: [U-Boot] [PATCH 2/3] string: Provide a slimmed-down memset()

2017-03-27 Thread Alexander Graf
On 27/03/2017 17:17, Heiko Stuebner wrote: Am Montag, 27. März 2017, 09:14:47 CEST schrieb Alexander Graf: On 27/03/2017 01:38, Simon Glass wrote: Most of the time the optimised memset() is what we want. For extreme situations such as TPL it may be too large. For example on the 'rock'

Re: [U-Boot] [PATCH 2/3] string: Provide a slimmed-down memset()

2017-03-27 Thread Heiko Stuebner
Am Sonntag, 26. März 2017, 17:38:16 CEST schrieb Simon Glass: > Most of the time the optimised memset() is what we want. For extreme > situations such as TPL it may be too large. For example on the 'rock' > board, using a simple loop saves a useful 48 bytes. With gcc 4.9 and > the rodata bug, this

Re: [U-Boot] [PATCH 2/3] string: Provide a slimmed-down memset()

2017-03-27 Thread Heiko Stuebner
Am Montag, 27. März 2017, 09:14:47 CEST schrieb Alexander Graf: > > On 27/03/2017 01:38, Simon Glass wrote: > > Most of the time the optimised memset() is what we want. For extreme > > situations such as TPL it may be too large. For example on the 'rock' > > board, using a simple loop saves a

Re: [U-Boot] [PATCH 2/3] string: Provide a slimmed-down memset()

2017-03-27 Thread Alexander Graf
On 27/03/2017 01:38, Simon Glass wrote: Most of the time the optimised memset() is what we want. For extreme situations such as TPL it may be too large. For example on the 'rock' board, using a simple loop saves a useful 48 bytes. With gcc 4.9 and the rodata bug, this patch is enough to reduce

[U-Boot] [PATCH 2/3] string: Provide a slimmed-down memset()

2017-03-26 Thread Simon Glass
Most of the time the optimised memset() is what we want. For extreme situations such as TPL it may be too large. For example on the 'rock' board, using a simple loop saves a useful 48 bytes. With gcc 4.9 and the rodata bug, this patch is enough to reduce the TPL image below the limit.