~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/corelib/arch/mips/qatomic32.s

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
        .set nobopt
 
2
        .set noreorder
 
3
        .option pic2
 
4
        .text
 
5
 
 
6
        .globl  q_atomic_test_and_set_int
 
7
        .ent    q_atomic_test_and_set_int
 
8
q_atomic_test_and_set_int:
 
9
1:      ll   $8,0($4)
 
10
        bne  $8,$5,2f
 
11
        move $2,$6
 
12
        sc   $2,0($4)
 
13
        beqz $2,1b
 
14
        nop
 
15
        jr   $31
 
16
        nop
 
17
2:      jr   $31
 
18
        move $2,$0
 
19
        .end    q_atomic_test_and_set_int
 
20
 
 
21
        .globl  q_atomic_test_and_set_ptr
 
22
        .ent    q_atomic_test_and_set_ptr
 
23
q_atomic_test_and_set_ptr:
 
24
1:      ll   $8,0($4)
 
25
        bne  $8,$5,2f
 
26
        move $2,$6
 
27
        sc   $2,0($4)
 
28
        beqz $2,1b
 
29
        nop
 
30
        jr   $31
 
31
        nop
 
32
2:      jr   $31
 
33
        move $2,$0
 
34
        .end    q_atomic_test_and_set_ptr