Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19915
b: refs/heads/master
c: 7e5b24a
h: refs/heads/master
i:
  19913: 51149ca
  19911: 80766a0
v: v3
  • Loading branch information
Ralf Baechle committed Feb 7, 2006
1 parent fa4aff8 commit e7b90af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9bbf28a36cae08817ac3a3f98fde329b02c89f4a
refs/heads/master: 7e5b24ac759176e55c8a535fff6533366168cbe9
22 changes: 0 additions & 22 deletions trunk/include/asm-mips/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,26 +141,4 @@ extern void *memcpy(void *__to, __const__ void *__from, size_t __n);
#define __HAVE_ARCH_MEMMOVE
extern void *memmove(void *__dest, __const__ void *__src, size_t __n);

#ifdef CONFIG_32BIT
#define __HAVE_ARCH_MEMSCAN
static __inline__ void *memscan(void *__addr, int __c, size_t __size)
{
char *__end = (char *)__addr + __size;
unsigned char __uc = (unsigned char) __c;

__asm__(".set\tpush\n\t"
".set\tnoat\n\t"
".set\treorder\n\t"
"1:\tbeq\t%0,%1,2f\n\t"
"addiu\t%0,1\n\t"
"lbu\t$1,-1(%0)\n\t"
"bne\t$1,%z4,1b\n"
"2:\t.set\tpop"
: "=r" (__addr), "=r" (__end)
: "0" (__addr), "1" (__end), "Jr" (__uc));

return __addr;
}
#endif /* CONFIG_32BIT */

#endif /* _ASM_STRING_H */

0 comments on commit e7b90af

Please sign in to comment.