If compiling standalone with Thumb, use the thumb version instead of the

naive version.
This commit is contained in:
matt 2013-08-20 21:35:24 +00:00
parent bb45e513c6
commit 61e4023f77
3 changed files with 15 additions and 3 deletions

View File

@ -1,7 +1,11 @@
/* $NetBSD: strcpy.S,v 1.4 2013/01/10 02:13:49 matt Exp $ */
/* $NetBSD: strcpy.S,v 1.5 2013/08/20 21:35:24 matt Exp $ */
#if defined(_STANDALONE)
#ifdef __thumb__
#include "strcpy_thumb.S"
#else
#include "strcpy_naive.S"
#endif
#else
#include "strcpy_arm.S"
#endif

View File

@ -1,9 +1,13 @@
/* $NetBSD: strlcpy.S,v 1.4 2013/01/10 06:52:35 matt Exp $ */
/* $NetBSD: strlcpy.S,v 1.5 2013/08/20 21:35:24 matt Exp $ */
#define STRLCPY
#if defined(_STANDALONE)
#if defined(__thumb__)
#include "strcpy_thumb.S"
#else
#include "strcpy_naive.S"
#endif
#else
#include "strcpy_arm.S"
#endif

View File

@ -1,9 +1,13 @@
/* $NetBSD: strncpy.S,v 1.2 2013/01/10 02:13:49 matt Exp $ */
/* $NetBSD: strncpy.S,v 1.3 2013/08/20 21:35:24 matt Exp $ */
#define STRNCPY
#if defined(_STANDALONE)
#if defined(__thumb__)
#include "strcpy_thumb.S"
#else
#include "strcpy_naive.S"
#endif
#else
#include "strcpy_arm.S"
#endif