Differences From Artifact [56d99bc409]:
- File src/atomic_powerpc.h — part of check-in [6f9c0e8eb2] at 2017-04-14 05:13:09 on branch trunk — atomic_*.h: Add missing _Nullable (user: js, size: 6750) [annotate] [blame] [check-ins using]
To Artifact [1547de0695]:
- File
src/atomic_powerpc.h
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 6752) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
55 56 57 58 59 60 61 | "add %0, %0, %1\n\t" "stwcx. %0, 0, %2\n\t" "bne- 0b" : "=&r"(i) : "r"(i), "r"(p) ); | | | 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | "add %0, %0, %1\n\t" "stwcx. %0, 0, %2\n\t" "bne- 0b" : "=&r"(i) : "r"(i), "r"(p) ); return (void *)i; } static OF_INLINE int of_atomic_int_sub(volatile int *_Nonnull p, int i) { __asm__ __volatile__ ( "0:\n\t" |
︙ | ︙ | |||
103 104 105 106 107 108 109 | "sub %0, %0, %1\n\t" "stwcx. %0, 0, %2\n\t" "bne- 0b" : "=&r"(i) : "r"(i), "r"(p) ); | | | 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | "sub %0, %0, %1\n\t" "stwcx. %0, 0, %2\n\t" "bne- 0b" : "=&r"(i) : "r"(i), "r"(p) ); return (void *)i; } static OF_INLINE int of_atomic_int_inc(volatile int *_Nonnull p) { int i; |
︙ | ︙ |