strlen.S (498495dba268b20e8eadd7fe93c140c68b6cc9d2) strlen.S (f3c78e949d3fb0afcc1bdd8e44b0902897fc2f84)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * strlen.S (c) 1995 David Mosberger (davidm@cs.arizona.edu)
4 *
5 * Finds length of a 0-terminated string. Optimized for the
6 * Alpha architecture:
7 *
8 * - memory accessed as aligned quadwords only
9 * - uses bcmpge to compare 8 bytes in parallel
10 * - does binary search to find 0 byte in last
11 * quadword (HAKMEM needed 12 instructions to
12 * do this instead of the 9 instructions that
13 * binary search needs).
14 */
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * strlen.S (c) 1995 David Mosberger (davidm@cs.arizona.edu)
4 *
5 * Finds length of a 0-terminated string. Optimized for the
6 * Alpha architecture:
7 *
8 * - memory accessed as aligned quadwords only
9 * - uses bcmpge to compare 8 bytes in parallel
10 * - does binary search to find 0 byte in last
11 * quadword (HAKMEM needed 12 instructions to
12 * do this instead of the 9 instructions that
13 * binary search needs).
14 */
15#include <asm/export.h>
15#include <linux/export.h>
16 .set noreorder
17 .set noat
18
19 .align 3
20
21 .globl strlen
22 .ent strlen
23

--- 36 unchanged lines hidden ---
16 .set noreorder
17 .set noat
18
19 .align 3
20
21 .globl strlen
22 .ent strlen
23

--- 36 unchanged lines hidden ---