summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/word-at-a-time.h
Commit message (Collapse)AuthorAgeFilesLines
* arm64: dcache: select DCACHE_WORD_ACCESS for little-endian CPUsWill Deacon2013-12-191-0/+40
| | | | | | | | | | | | DCACHE_WORD_ACCESS uses the word-at-a-time API for optimised string comparisons in the vfs layer. This patch implements support for load_unaligned_zeropad in much the same way as has been done for ARM, although big-endian systems are also supported. Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
* arm64: use generic strnlen_user and strncpy_from_user functionsWill Deacon2013-12-191-0/+54
This patch implements the word-at-a-time interface for arm64 using the same algorithm as ARM. We use the fls64 macro, which expands to a clz instruction via a compiler builtin. Big-endian configurations make use of the implementation from asm-generic. With this implemented, we can replace our byte-at-a-time strnlen_user and strncpy_from_user functions with the optimised generic versions. Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
OpenPOWER on IntegriCloud