memscan_64.S (e5451c8f8330e03ad3cfa16048b4daf961af434f) memscan_64.S (d3867f0483103b8ff7edfdea3ef1981c03d96891)
1/*
2 * memscan.S: Optimized memscan for Sparc64.
3 *
4 * Copyright (C) 1997,1998 Jakub Jelinek (jj@ultra.linux.cz)
5 * Copyright (C) 1998 David S. Miller (davem@redhat.com)
6 */
7
1/*
2 * memscan.S: Optimized memscan for Sparc64.
3 *
4 * Copyright (C) 1997,1998 Jakub Jelinek (jj@ultra.linux.cz)
5 * Copyright (C) 1998 David S. Miller (davem@redhat.com)
6 */
7
8 #include <asm/export.h>
9
8#define HI_MAGIC 0x8080808080808080
9#define LO_MAGIC 0x0101010101010101
10#define ASI_PL 0x88
11
12 .text
13 .align 32
14 .globl __memscan_zero, __memscan_generic
15 .globl memscan
10#define HI_MAGIC 0x8080808080808080
11#define LO_MAGIC 0x0101010101010101
12#define ASI_PL 0x88
13
14 .text
15 .align 32
16 .globl __memscan_zero, __memscan_generic
17 .globl memscan
18 EXPORT_SYMBOL(__memscan_zero)
19 EXPORT_SYMBOL(__memscan_generic)
16
17__memscan_zero:
18 /* %o0 = bufp, %o1 = size */
19 brlez,pn %o1, szzero
20 andcc %o0, 7, %g0
21 be,pt %icc, we_are_aligned
22 sethi %hi(HI_MAGIC), %o4
23 ldub [%o0], %o5

--- 106 unchanged lines hidden ---
20
21__memscan_zero:
22 /* %o0 = bufp, %o1 = size */
23 brlez,pn %o1, szzero
24 andcc %o0, 7, %g0
25 be,pt %icc, we_are_aligned
26 sethi %hi(HI_MAGIC), %o4
27 ldub [%o0], %o5

--- 106 unchanged lines hidden ---