memscan_32.S (e5451c8f8330e03ad3cfa16048b4daf961af434f) | memscan_32.S (d3867f0483103b8ff7edfdea3ef1981c03d96891) |
---|---|
1/* 2 * memscan.S: Optimized memscan for the Sparc. 3 * 4 * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu) 5 */ 6 | 1/* 2 * memscan.S: Optimized memscan for the Sparc. 3 * 4 * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu) 5 */ 6 |
7#include <asm/export.h> 8 |
|
7/* In essence, this is just a fancy strlen. */ 8 9#define LO_MAGIC 0x01010101 10#define HI_MAGIC 0x80808080 11 12 .text 13 .align 4 14 .globl __memscan_zero, __memscan_generic 15 .globl memscan | 9/* In essence, this is just a fancy strlen. */ 10 11#define LO_MAGIC 0x01010101 12#define HI_MAGIC 0x80808080 13 14 .text 15 .align 4 16 .globl __memscan_zero, __memscan_generic 17 .globl memscan |
18EXPORT_SYMBOL(__memscan_zero) 19EXPORT_SYMBOL(__memscan_generic) |
|
16__memscan_zero: 17 /* %o0 = addr, %o1 = size */ 18 cmp %o1, 0 19 bne,a 1f 20 andcc %o0, 3, %g0 21 22 retl 23 nop --- 110 unchanged lines hidden --- | 20__memscan_zero: 21 /* %o0 = addr, %o1 = size */ 22 cmp %o1, 0 23 bne,a 1f 24 andcc %o0, 3, %g0 25 26 retl 27 nop --- 110 unchanged lines hidden --- |