1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Simplistic strlen() implementation for SHmedia.
5 * Copyright (C) 2003 Paul Mundt <lethal@linux-sh.org>
8 .section .text..SHmedia32,"ax"
10 .type strlen,@function
17 * Note: We could easily deal with the NULL case here with a simple
18 * sanity check, though it seems that the behavior we want is to fault
19 * in the event that r2 == NULL, so we don't bother.
21 /* beqi r2, 0, tr4 */ ! Sanity check