1. 24 Feb, 2021 1 commit
    • Andre Przywara's avatar
      libc: memset: Fix MISRA issues · 005415a3
      Andre Przywara authored
      
      
      MISRA complained about "0"s not being followed by an "U" (please note
      my protest about this!) and about values not being explicitly compared
      to 0 (fair enough).
      Also use explicit pointer types.
      
      Fix those issues to make the CI happy.
      
      Change-Id: I4d11e49c14f16223a71c78b0fc3e68ba9a1382d3
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      005415a3
  2. 03 Sep, 2020 1 commit
    • Andre Przywara's avatar
      libc: memset: improve performance by avoiding single byte writes · 75fab649
      Andre Przywara authored
      
      
      Currently our memset() implementation is safe, but slow. The main reason
      for that seems to be the single byte writes that it issues, which can
      show horrible performance, depending on the implementation of the
      load/store subsystem.
      
      Improve the algorithm by trying to issue 64-bit writes. As this only
      works with aligned pointers, have a head and a tail section which
      covers unaligned pointers, and leave the bulk of the work to the middle
      section that does use 64-bit writes.
      
      Put through some unit tests, which exercise all combinations of nasty
      input parameters (pointers with various alignments, various odd and even
      sizes, corner cases of content to write (-1, 256)).
      
      Change-Id: I28ddd3d388cc4989030f1a70447581985368d5bb
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      75fab649
  3. 21 Aug, 2020 1 commit
  4. 01 Apr, 2019 1 commit
    • Ambroise Vincent's avatar
      Remove several warnings reported with W=1 · 609e053c
      Ambroise Vincent authored
      
      
      Improved support for W=1 compilation flag by solving missing-prototypes
      and old-style-definition warnings.
      
      The libraries are compiling with warnings (which turn into errors with
      the Werror flag).
      
      Outside of libraries, some warnings cannot be fixed without heavy
      structural changes.
      
      Change-Id: I1668cf99123ac4195c2a6a1d48945f7a64c67f16
      Signed-off-by: default avatarAmbroise Vincent <ambroise.vincent@arm.com>
      609e053c
  5. 22 Aug, 2018 1 commit