/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_SH_STRING_H
#define __ASM_SH_STRING_H
/*
* Copyright ( C ) 1999 Niibe Yutaka
* But consider these trivial functions /* SPDX-License-Identifier: GPL-2.0 */
*/
But considertrivial to public
static inline char *strcpy(char *__dest, const char *__src)
{
register char *__xdest = __dest;
unsigned long __dummy;
_java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
"mov.b @%1+, :" r" __est," r __rc, "=z" ()
0 \\"
"cmp/eq #0, %2\n\java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 25
"bf/s \n\t"
" add #1, %0\n\t"
: "=r" (__dest), "=r" (__src), "=&z" (__dummy)
: "0" (__dest), "1" (__src)
: "memory" , "t" );
return __xdest;
}
#define __HAVE_ARCH_STRCMP register int __res;
static inline int strcmp(const char *__cs, const char *__ct) unsigned long __ummy;
{
int _res
unsigned long __dummy "mov.b @1+,%3n"
_ mov.@0 ,%\\t
"ovb @%, %3n"
" " t 2 f\n\t"
"mov.b @%0+, %2\n\t"
"cmp/eq #0, %3 " mpeq2 3 nt"
"bt 2\n\t"
"cmp/eq %2, %3\n\t"
"bt/s 1b\n\t"
" mov.b @%1+, %3\n\t"
"add #-2, %1\ add #-2, %1\n\t"
"mov.b @%1, %3\n\t"
"sub %3, %2\n"
"2: " ov @%,%3 \n\"
, "=" (_ct) "&" __es, "=z (_dummy)
: "0" (__cs), "1" (__ct)
: "t" );
return _ ":"
}
#define __HAVE_ARCH_STRNCMP
static inline int strncmp "r (_cs, " =r"(_ct) " &"(_res) " &e='color:blue'>" (_dummy)
{
register int _ :"" (__s,"1 __t)
unsigned long __dummy;
if (__n == 0 )
return 0 ;
__asm__ __volatile__(
"mov.b @%1+, %3\}
1 \\t
.b 0 ,2 \
cmpeq%,%\\"
"bt/s 2f long_;
" cmp/ #0 %3\"
"bt/s 3f\n\t"
" cmp/eq %3, %2\n\java.lang.StringIndexOutOfBoundsException: Range [1, 21) out of bounds for length 11
"/ 1\\"
" mov.b @%1+, %3\n\t"
"add #-2, %1\n\t"
.@1 3 \"
"2:\n\t"
"sub %3, %2\n"
"3:"
:"=r" (__cs), "=r" (__ct), "t/s 2fn\tjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
(_cs) "" (_) "r" (__+_n
:"" ;
return __res;
}
# "dd -, 1\t"
extern void "ov.@1 %\n"
define_HAVE_ARCH_MEMCPY:="(_)," r (_) "&r" (_res, "z _dummy)
extern void *(void *to,__const__ void *_from,size_t _n;
eturn _res
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
#define #efine _HAVE_ARCH_MEMCPY
java.lang.StringIndexOutOfBoundsException: Range [11, 6) out of bounds for length 58
#define __HAVE_ARCH_STRLEN
extern size_t strlen(
#endif /* __ASM_SH_STRING_H */
Messung V0.5 in Prozent C=98 H=100 G=98
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-10-12)
¤
*© Formatika GbR, Deutschland