Lines Matching refs:r2
38 strex r3, r2, [r0] // Writes swap to *pTarget in CompareAndSwap()
58 ldrex r2, [r0] // Loads the *pTarget value to r2 in Swap()
64 …mov r0, r2 // Return value is the *pTarget value immediately before writing succe… in Swap()
73 ldrex r2, [r0] // Loads the *pTarget value to r2 in Increment()
74 add r2, r2, #1 // Increment r2 in Increment()
75 strex r3, r2, [r0] // Writes the r2 value to *pTarget in Increment()
80 mov r0, r2 // Return value is the *pTarget value when writing succeeds in Increment()
89 ldrex r2, [r0] // Loads the *pTarget value to r2 in Decrement()
90 sub r2, r2, #1 // Decrement r2 in Decrement()
91 strex r3, r2, [r0] // Writes the r2 value to *pTarget in Decrement()
96 mov r0, r2 // Return value is the *pTarget value when writing succeeds in Decrement()
105 ldrex r2, [r0] // Loads the *pTarget value to r2 in Add()
106 add r2, r2, r1 // Adds value to r2 in Add()
107 strex r3, r2, [r0] // Writes the r2 value to *pTarget in Add()
112 mov r0, r2 // Return value is the *pTarget value when writing succeeds in Add()
121 ldrex r2, [r0] // Loads the *pTarget value to r2 in Substract()
122 sub r2, r2, r1 // Subtracts value from r2 in Substract()
123 strex r3, r2, [r0] // Writes the r2 value to *pTarget in Substract()
128 mov r0, r2 // Return value is the *pTarget value when writing succeeds in Substract()
137 ldrex r2, [r0] // Loads the *pTarget value to r2 in BitwiseOr()
138 orr r2, r2, r1 // OR of r2 and value in BitwiseOr()
139 strex r3, r2, [r0] // Writes the r2 value to *pTarget in BitwiseOr()
144 mov r0, r2 // Return value is the *pTarget value when writing succeeds in BitwiseOr()
153 ldrex r2, [r0] // Loads the *pTarget value to r2 in BitwiseAnd()
154 and r2, r2, r1 // AND of r2 and value in BitwiseAnd()
155 strex r3, r2, [r0] // Writes the r2 value to *pTarget in BitwiseAnd()
160 mov r0, r2 // Return value is the *pTarget value when writing succeeds in BitwiseAnd()
169 ldrex r2, [r0] // Loads the *pTarget value to r2 in BitwiseXor()
170 eor r2, r2, r1 // XOR of r2 and value in BitwiseXor()
171 strex r3, r2, [r0] // Writes the r2 value to *pTarget in BitwiseXor()
176 mov r0, r2 // Return value is the *pTarget value when writing succeeds in BitwiseXor()
185 ldrex r2, [r0] // Loads the *pTarget value to r2 in BitwiseNot()
186 mvn r2, r2 // NOT r2 in BitwiseNot()
187 strex r3, r2, [r0] // Writes the r2 value to *pTarget in BitwiseNot()
192 mov r0, r2 // Return value is the *pTarget value when writing succeeds in BitwiseNot()