/netbsd/external/gpl3/gcc.old/dist/libgcc/config/nds32/ |
H A D | linux-atomic.c | 163 int actual_oldval, fail; in __sync_val_compare_and_swap_4() local 167 actual_oldval = __atomic_load_n (ptr, __ATOMIC_SEQ_CST); in __sync_val_compare_and_swap_4() 169 if (oldval != actual_oldval) in __sync_val_compare_and_swap_4() 170 return actual_oldval; in __sync_val_compare_and_swap_4() 172 fail = __kernel_cmpxchg (actual_oldval, newval, ptr); in __sync_val_compare_and_swap_4() 185 unsigned int mask, shift, actual_oldval, actual_newval; \ 195 return (actual_oldval & mask) >> shift; \ 197 actual_newval = (actual_oldval & ~mask) \ 200 fail = __kernel_cmpxchg (actual_oldval, actual_newval, \ 225 TYPE actual_oldval \ [all …]
|
/netbsd/external/gpl3/gcc.old/dist/libgcc/config/nios2/ |
H A D | linux-atomic.c | 162 int actual_oldval, fail; in __sync_val_compare_and_swap_4() local 166 actual_oldval = *ptr; in __sync_val_compare_and_swap_4() 168 if (oldval != actual_oldval) in __sync_val_compare_and_swap_4() 169 return actual_oldval; in __sync_val_compare_and_swap_4() 171 fail = __kernel_cmpxchg (actual_oldval, newval, ptr); in __sync_val_compare_and_swap_4() 191 actual_oldval = *wordptr; \ 194 return (actual_oldval & mask) >> shift; \ 196 actual_newval = (actual_oldval & ~mask) \ 199 fail = __kernel_cmpxchg (actual_oldval, actual_newval, \ 224 TYPE actual_oldval \ [all …]
|
/netbsd/external/gpl3/gcc.old/dist/libgcc/config/csky/ |
H A D | linux-atomic.c | 170 int actual_oldval, fail; in __sync_val_compare_and_swap_4() local 174 actual_oldval = *ptr; in __sync_val_compare_and_swap_4() 176 if (oldval != actual_oldval) in __sync_val_compare_and_swap_4() 177 return actual_oldval; in __sync_val_compare_and_swap_4() 179 fail = __kernel_cmpxchg (actual_oldval, newval, ptr); in __sync_val_compare_and_swap_4() 199 actual_oldval = *wordptr; \ 202 return (actual_oldval & mask) >> shift; \ 204 actual_newval = (actual_oldval & ~mask) \ 207 fail = __kernel_cmpxchg (actual_oldval, actual_newval, \ 232 TYPE actual_oldval \ [all …]
|
/netbsd/external/gpl3/gcc/dist/libgcc/config/nds32/ |
H A D | linux-atomic.c | 163 int actual_oldval, fail; in __sync_val_compare_and_swap_4() local 167 actual_oldval = __atomic_load_n (ptr, __ATOMIC_SEQ_CST); in __sync_val_compare_and_swap_4() 169 if (oldval != actual_oldval) in __sync_val_compare_and_swap_4() 170 return actual_oldval; in __sync_val_compare_and_swap_4() 172 fail = __kernel_cmpxchg (actual_oldval, newval, ptr); in __sync_val_compare_and_swap_4() 185 unsigned int mask, shift, actual_oldval, actual_newval; \ 195 return (actual_oldval & mask) >> shift; \ 197 actual_newval = (actual_oldval & ~mask) \ 200 fail = __kernel_cmpxchg (actual_oldval, actual_newval, \ 225 TYPE actual_oldval \ [all …]
|
/netbsd/external/gpl3/gcc/dist/libgcc/config/nios2/ |
H A D | linux-atomic.c | 162 int actual_oldval, fail; in __sync_val_compare_and_swap_4() local 166 actual_oldval = *ptr; in __sync_val_compare_and_swap_4() 168 if (oldval != actual_oldval) in __sync_val_compare_and_swap_4() 169 return actual_oldval; in __sync_val_compare_and_swap_4() 171 fail = __kernel_cmpxchg (actual_oldval, newval, ptr); in __sync_val_compare_and_swap_4() 191 actual_oldval = *wordptr; \ 194 return (actual_oldval & mask) >> shift; \ 196 actual_newval = (actual_oldval & ~mask) \ 199 fail = __kernel_cmpxchg (actual_oldval, actual_newval, \ 224 TYPE actual_oldval \ [all …]
|
/netbsd/external/gpl3/gcc/dist/libgcc/config/csky/ |
H A D | linux-atomic.c | 170 int actual_oldval, fail; in __sync_val_compare_and_swap_4() local 174 actual_oldval = *ptr; in __sync_val_compare_and_swap_4() 176 if (oldval != actual_oldval) in __sync_val_compare_and_swap_4() 177 return actual_oldval; in __sync_val_compare_and_swap_4() 179 fail = __kernel_cmpxchg (actual_oldval, newval, ptr); in __sync_val_compare_and_swap_4() 199 actual_oldval = *wordptr; \ 202 return (actual_oldval & mask) >> shift; \ 204 actual_newval = (actual_oldval & ~mask) \ 207 fail = __kernel_cmpxchg (actual_oldval, actual_newval, \ 232 TYPE actual_oldval \ [all …]
|
/netbsd/external/gpl3/gcc.old/dist/libgcc/config/arm/ |
H A D | linux-atomic.c | 203 int actual_oldval, fail; in __sync_val_compare_and_swap_4() local 207 actual_oldval = *ptr; in __sync_val_compare_and_swap_4() 209 if (__builtin_expect (oldval != actual_oldval, 0)) in __sync_val_compare_and_swap_4() 210 return actual_oldval; in __sync_val_compare_and_swap_4() 212 fail = __kernel_cmpxchg (actual_oldval, newval, ptr); in __sync_val_compare_and_swap_4() 232 actual_oldval = *wordptr; \ 236 return (actual_oldval & mask) >> shift; \ 238 actual_newval = (actual_oldval & ~mask) \ 241 fail = __kernel_cmpxchg (actual_oldval, actual_newval, \ 266 TYPE actual_oldval \ [all …]
|
H A D | linux-atomic-64bit.c | 128 long long actual_oldval; in __sync_val_compare_and_swap_8() local 132 actual_oldval = *ptr; in __sync_val_compare_and_swap_8() 134 if (__builtin_expect (oldval != actual_oldval, 0)) in __sync_val_compare_and_swap_8() 135 return actual_oldval; in __sync_val_compare_and_swap_8() 137 failure = __kernel_cmpxchg64 (&actual_oldval, &newval, ptr); in __sync_val_compare_and_swap_8()
|
H A D | freebsd-atomic.c | 137 TYPE actual_oldval \ 139 return (oldval == actual_oldval); \
|
/netbsd/external/gpl3/gcc/dist/libgcc/config/arm/ |
H A D | linux-atomic.c | 203 int actual_oldval, fail; in __sync_val_compare_and_swap_4() local 207 actual_oldval = *ptr; in __sync_val_compare_and_swap_4() 209 if (__builtin_expect (oldval != actual_oldval, 0)) in __sync_val_compare_and_swap_4() 210 return actual_oldval; in __sync_val_compare_and_swap_4() 212 fail = __kernel_cmpxchg (actual_oldval, newval, ptr); in __sync_val_compare_and_swap_4() 232 actual_oldval = *wordptr; \ 236 return (actual_oldval & mask) >> shift; \ 238 actual_newval = (actual_oldval & ~mask) \ 241 fail = __kernel_cmpxchg (actual_oldval, actual_newval, \ 266 TYPE actual_oldval \ [all …]
|
H A D | linux-atomic-64bit.c | 128 long long actual_oldval; in __sync_val_compare_and_swap_8() local 132 actual_oldval = *ptr; in __sync_val_compare_and_swap_8() 134 if (__builtin_expect (oldval != actual_oldval, 0)) in __sync_val_compare_and_swap_8() 135 return actual_oldval; in __sync_val_compare_and_swap_8() 137 failure = __kernel_cmpxchg64 (&actual_oldval, &newval, ptr); in __sync_val_compare_and_swap_8()
|
H A D | freebsd-atomic.c | 137 TYPE actual_oldval \ 139 return (oldval == actual_oldval); \
|
/netbsd/external/gpl3/gcc.old/dist/libgcc/config/pa/ |
H A D | linux-atomic.c | 239 TYPE actual_oldval; \ 244 actual_oldval = __atomic_load_n ((volatile TYPE *)ptr, \ 247 if (__builtin_expect (oldval != actual_oldval, 0)) \ 248 return actual_oldval; \ 250 fail = __kernel_cmpxchg2 (ptr, &actual_oldval, &newval, INDEX); \ 253 return actual_oldval; \ 274 unsigned int actual_oldval; in __sync_val_compare_and_swap_4() local 281 if (__builtin_expect (oldval != actual_oldval, 0)) in __sync_val_compare_and_swap_4() 282 return actual_oldval; in __sync_val_compare_and_swap_4() 284 fail = __kernel_cmpxchg (ptr, actual_oldval, newval); in __sync_val_compare_and_swap_4() [all …]
|
/netbsd/external/gpl3/gcc/dist/libgcc/config/pa/ |
H A D | linux-atomic.c | 245 TYPE actual_oldval; \ 250 actual_oldval = __atomic_load_n ((volatile TYPE *)ptr, \ 253 if (__builtin_expect (oldval != actual_oldval, 0)) \ 254 return actual_oldval; \ 256 fail = __kernel_cmpxchg2 (ptr, &actual_oldval, &newval, INDEX); \ 259 return actual_oldval; \ 280 unsigned int actual_oldval; in __sync_val_compare_and_swap_4() local 287 if (__builtin_expect (oldval != actual_oldval, 0)) in __sync_val_compare_and_swap_4() 288 return actual_oldval; in __sync_val_compare_and_swap_4() 290 fail = __kernel_cmpxchg (ptr, actual_oldval, newval); in __sync_val_compare_and_swap_4() [all …]
|
/netbsd/external/gpl3/gcc/dist/gcc/ |
H A D | ChangeLog-2010 | 10384 actual_oldval. Use __builtin_expect.
|