strlen.S (e5451c8f8330e03ad3cfa16048b4daf961af434f) strlen.S (d3867f0483103b8ff7edfdea3ef1981c03d96891)
1/* strlen.S: Sparc optimized strlen code
2 * Hand optimized from GNU libc's strlen
3 * Copyright (C) 1991,1996 Free Software Foundation
4 * Copyright (C) 1996,2008 David S. Miller (davem@davemloft.net)
5 * Copyright (C) 1996, 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
6 */
7
8#include <linux/linkage.h>
9#include <asm/asm.h>
1/* strlen.S: Sparc optimized strlen code
2 * Hand optimized from GNU libc's strlen
3 * Copyright (C) 1991,1996 Free Software Foundation
4 * Copyright (C) 1996,2008 David S. Miller (davem@davemloft.net)
5 * Copyright (C) 1996, 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
6 */
7
8#include <linux/linkage.h>
9#include <asm/asm.h>
10#include <asm/export.h>
10
11#define LO_MAGIC 0x01010101
12#define HI_MAGIC 0x80808080
13
14 .text
15ENTRY(strlen)
16 mov %o0, %o1
17 andcc %o0, 3, %g0

--- 55 unchanged lines hidden (view full) ---

73 mov 0, %o0
7412:
75 retl
76 mov 1, %o0
7713:
78 retl
79 mov 2, %o0
80ENDPROC(strlen)
11
12#define LO_MAGIC 0x01010101
13#define HI_MAGIC 0x80808080
14
15 .text
16ENTRY(strlen)
17 mov %o0, %o1
18 andcc %o0, 3, %g0

--- 55 unchanged lines hidden (view full) ---

74 mov 0, %o0
7512:
76 retl
77 mov 1, %o0
7813:
79 retl
80 mov 2, %o0
81ENDPROC(strlen)
82EXPORT_SYMBOL(strlen)