commit | ab4458bdb5074ababe09f2538cb9f25901121ebb | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Apr 02 09:50:28 2017 -0600 |
committer | Simon Glass <sjg@chromium.org> | Tue Apr 04 20:01:57 2017 -0600 |
tree | a995262be8e740ca6964852434e81c599e753be7 | |
parent | 3c00a2c8b5e22e3eff9afb291e555b4bcba17d77 [diff] |
string: Provide a slimmed-down memset() 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. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Stuebner <heiko@sntech.de>