]> git.ipfire.org Git - thirdparty/zstd.git/commit
Changed memory strategy to __packed for gcc 640/head
authorYann Collet <cyan@fb.com>
Thu, 30 Mar 2017 19:52:14 +0000 (12:52 -0700)
committerYann Collet <cyan@fb.com>
Thu, 30 Mar 2017 19:52:14 +0000 (12:52 -0700)
commit274f59919db06b63c021a3a949076c59643ad355
tree4338e8a076d9692e044256789312d9ee7cc50afc
parent6851db48e00452c4228f8ea2d0c5bda5df9f8e42
Changed memory strategy to __packed for gcc

Method 1 __packed is always as good or better than memcpy().
But it's not portable, as it depends on compiler extension.

For gcc, __pakced directive works fine.
Furthermore, gcc has serious performance issues with memcpy() on ARM 32 bits.
See #620
lib/common/mem.h