If compiling standalone with Thumb, use the thumb version instead of the
naive version.
This commit is contained in:
parent
bb45e513c6
commit
61e4023f77
|
@ -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)
|
#if defined(_STANDALONE)
|
||||||
|
#ifdef __thumb__
|
||||||
|
#include "strcpy_thumb.S"
|
||||||
|
#else
|
||||||
#include "strcpy_naive.S"
|
#include "strcpy_naive.S"
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#include "strcpy_arm.S"
|
#include "strcpy_arm.S"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -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
|
#define STRLCPY
|
||||||
|
|
||||||
#if defined(_STANDALONE)
|
#if defined(_STANDALONE)
|
||||||
|
#if defined(__thumb__)
|
||||||
|
#include "strcpy_thumb.S"
|
||||||
|
#else
|
||||||
#include "strcpy_naive.S"
|
#include "strcpy_naive.S"
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#include "strcpy_arm.S"
|
#include "strcpy_arm.S"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -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
|
#define STRNCPY
|
||||||
|
|
||||||
#if defined(_STANDALONE)
|
#if defined(_STANDALONE)
|
||||||
|
#if defined(__thumb__)
|
||||||
|
#include "strcpy_thumb.S"
|
||||||
|
#else
|
||||||
#include "strcpy_naive.S"
|
#include "strcpy_naive.S"
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#include "strcpy_arm.S"
|
#include "strcpy_arm.S"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue