1. 17 8月, 2020 1 次提交
  2. 28 8月, 2013 1 次提交
    • R
      optimized C memcpy · 90edf1cc
      Rich Felker 提交于
      unlike the old C memcpy, this version handles word-at-a-time reads and
      writes even for misaligned copies. it does not require that the cpu
      support misaligned accesses; instead, it performs bit shifts to
      realign the bytes for the destination.
      
      essentially, this is the C version of the ARM assembly language
      memcpy. the ideas are all the same, and it should perform well on any
      arch with a decent number of general-purpose registers that has a
      barrel shift operation. since the barrel shifter is an optional cpu
      feature on microblaze, it may be desirable to provide an alternate asm
      implementation on microblaze, but otherwise the C code provides a
      competitive implementation for "generic risc-y" cpu archs that should
      alleviate the urgent need for arch-specific memcpy asm.
      90edf1cc
  3. 07 9月, 2012 1 次提交
    • R
      use restrict everywhere it's required by c99 and/or posix 2008 · 400c5e5c
      Rich Felker 提交于
      to deal with the fact that the public headers may be used with pre-c99
      compilers, __restrict is used in place of restrict, and defined
      appropriately for any supported compiler. we also avoid the form
      [restrict] since older versions of gcc rejected it due to a bug in the
      original c99 standard, and instead use the form *restrict.
      400c5e5c
  4. 12 2月, 2011 1 次提交