~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to strings/strend-sparc.s

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
! Copyright (C) 2000, 2002 MySQL AB
 
2
 
3
! This library is free software; you can redistribute it and/or
 
4
! modify it under the terms of the GNU Library General Public
 
5
! License as published by the Free Software Foundation; version 2
 
6
! of the License.
 
7
 
8
! This library is distributed in the hope that it will be useful,
 
9
! but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11
! Library General Public License for more details.
 
12
 
13
! You should have received a copy of the GNU Library General Public
 
14
! License along with this library; if not, write to the Free
 
15
! Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 
16
! MA 02111-1307, USA
 
17
 
 
18
        .file   "strend-sparc.s"
 
19
.section        ".text"
 
20
        .align 4
 
21
        .global strend
 
22
        .type    strend,#function
 
23
        .proc   0102
 
24
strend:
 
25
        ldsb    [%o0], %o3              ! Handle first char differently to make
 
26
.loop:                                  ! a faster loop
 
27
        add     %o0, 1, %o0
 
28
        cmp     %o3, 0
 
29
        bne,a   .loop
 
30
        ldsb    [%o0], %o3
 
31
        retl
 
32
        sub     %o0,1,%o0
 
33
.strend_end:
 
34
        .size    strend,.strend_end-strend
 
35
        .ident  "Matt Wagner & Monty"