Use the arm versions of strlen/strchr/strrchr if compiling thumb2
This commit is contained in:
parent
7477ad6ac7
commit
04d357d985
@ -1,10 +1,10 @@
|
||||
/* $NetBSD: strchr.S,v 1.3 2013/08/19 01:08:29 matt Exp $ */
|
||||
/* $NetBSD: strchr.S,v 1.4 2013/08/20 08:07:30 matt Exp $ */
|
||||
|
||||
#include <machine/asm.h>
|
||||
|
||||
STRONG_ALIAS(index, strchr)
|
||||
|
||||
#if defined(_STANDALONE) || defined(__thumb__)
|
||||
#if defined(_STANDALONE) || (defined(__thumb__) && !defined(_ARM_ARCH_T2))
|
||||
#include "strchr_naive.S"
|
||||
#else
|
||||
#include "strchr_arm.S"
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: strlen.S,v 1.3 2013/08/19 01:08:29 matt Exp $ */
|
||||
/* $NetBSD: strlen.S,v 1.4 2013/08/20 08:07:30 matt Exp $ */
|
||||
|
||||
#if defined(_STANDALONE) || defined(__thumb__)
|
||||
#include <arm/cdefs.h>
|
||||
|
||||
#if defined(_STANDALONE) || (defined(__thumb__) && !defined(_ARM_ARCH_T2))
|
||||
#include "strlen_naive.S"
|
||||
#else
|
||||
#include "strlen_arm.S"
|
||||
|
@ -1,10 +1,10 @@
|
||||
/* $NetBSD: strrchr.S,v 1.3 2013/08/19 01:08:29 matt Exp $ */
|
||||
/* $NetBSD: strrchr.S,v 1.4 2013/08/20 08:07:30 matt Exp $ */
|
||||
|
||||
#include <machine/asm.h>
|
||||
|
||||
STRONG_ALIAS(rindex, strrchr)
|
||||
|
||||
#if defined(_STANDALONE) || defined(__thumb__)
|
||||
#if defined(_STANDALONE) || (defined(__thumb__) && !defined(_ARM_ARCH_T2))
|
||||
#include "strrchr_naive.S"
|
||||
#else
|
||||
#include "strrchr_arm.S"
|
||||
|
Loading…
Reference in New Issue
Block a user