tile: optimize strnlen using SIMD instructions
authorKen Steele <ken@tilera.com>
Thu, 1 Aug 2013 19:55:07 +0000 (15:55 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Fri, 2 Aug 2013 00:08:51 +0000 (20:08 -0400)
commit5916700c768803546b6fe7d093dcba40d22fcf57
tree07bbeb368b246e82ad23c6af151f4408f7be1cb0
parentc53c70a90fdce3e7a53a0412abf7cc2b2a645988
tile: optimize strnlen using SIMD instructions

Using strlen as a model, add length checking to create strnlen.

Signed-off-by: Ken Steele <ken@tilera.com>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/include/asm/string.h
arch/tile/lib/Makefile
arch/tile/lib/strnlen_32.c [new file with mode: 0644]
arch/tile/lib/strnlen_64.c [new file with mode: 0644]