~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to strings/strinstr-sparc.s

  • Committer: Monty Taylor
  • Date: 2008-07-14 01:11:02 UTC
  • mto: (77.6.2 glibclient-merge)
  • mto: This revision was merged to the branch mainline in revision 159.
  • Revision ID: monty@inaugust.com-20080714011102-am01v2f9xfpag7ua
Removed strinstr. It was only used twice in once place in mf_pack... and there
for a very small purpose. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
! Copyright (C) 2000 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   "strinstr-sparc.s"
19
 
.section        ".text"
20
 
        .align 4
21
 
        .global strinstr
22
 
        .type    strinstr,#function
23
 
        .proc   0102
24
 
strinstr:
25
 
        save    %sp,-96,%sp
26
 
        or      %g0,%i1,%o1
27
 
        call    strstr,2        ! Result = %o0
28
 
        or      %g0,%i0,%o0
29
 
        orcc    %g0,%o0,%o0
30
 
        bne     .end
31
 
        sub     %o0,%i0,%i0
32
 
        ret
33
 
        restore %g0,%g0,%o0
34
 
.end:
35
 
        ret
36
 
        restore %i0,1,%o0       ! Offset for return value is from 1 
37
 
 
38
 
.strinstr_end:
39
 
        .size    strinstr,.strinstr_end-strinstr
40
 
        .ident  "Matt Wagner & Monty"
41
 
 
42
 
 
43