Changeset 533540a for src/prelude/sync-builtins.cf
- Timestamp:
- May 28, 2018, 5:02:07 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- 17238fd, 4ee3b0c1
- Parents:
- 13e8427 (diff), 1f81d61 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/prelude/sync-builtins.cf
r13e8427 r533540a 7 7 long long int __sync_fetch_and_add(volatile long long int *, long long int,...); 8 8 long long int __sync_fetch_and_add_8(volatile long long int *, long long int,...); 9 #if defined(__SIZEOF_INT128__) 9 10 __int128 __sync_fetch_and_add(volatile __int128 *, __int128,...); 10 11 __int128 __sync_fetch_and_add_16(volatile __int128 *, __int128,...); 12 #endif 11 13 12 14 char __sync_fetch_and_sub(volatile char *, char,...); … … 18 20 long long int __sync_fetch_and_sub(volatile long long int *, long long int,...); 19 21 long long int __sync_fetch_and_sub_8(volatile long long int *, long long int,...); 22 #if defined(__SIZEOF_INT128__) 20 23 __int128 __sync_fetch_and_sub(volatile __int128 *, __int128,...); 21 24 __int128 __sync_fetch_and_sub_16(volatile __int128 *, __int128,...); 25 #endif 22 26 23 27 char __sync_fetch_and_or(volatile char *, char,...); … … 29 33 long long int __sync_fetch_and_or(volatile long long int *, long long int,...); 30 34 long long int __sync_fetch_and_or_8(volatile long long int *, long long int,...); 35 #if defined(__SIZEOF_INT128__) 31 36 __int128 __sync_fetch_and_or(volatile __int128 *, __int128,...); 32 37 __int128 __sync_fetch_and_or_16(volatile __int128 *, __int128,...); 38 #endif 33 39 34 40 char __sync_fetch_and_and(volatile char *, char,...); … … 40 46 long long int __sync_fetch_and_and(volatile long long int *, long long int,...); 41 47 long long int __sync_fetch_and_and_8(volatile long long int *, long long int,...); 48 #if defined(__SIZEOF_INT128__) 42 49 __int128 __sync_fetch_and_and(volatile __int128 *, __int128,...); 43 50 __int128 __sync_fetch_and_and_16(volatile __int128 *, __int128,...); 51 #endif 44 52 45 53 char __sync_fetch_and_xor(volatile char *, char,...); … … 51 59 long long int __sync_fetch_and_xor(volatile long long int *, long long int,...); 52 60 long long int __sync_fetch_and_xor_8(volatile long long int *, long long int,...); 61 #if defined(__SIZEOF_INT128__) 53 62 __int128 __sync_fetch_and_xor(volatile __int128 *, __int128,...); 54 63 __int128 __sync_fetch_and_xor_16(volatile __int128 *, __int128,...); 64 #endif 55 65 56 66 char __sync_fetch_and_nand(volatile char *, char,...); … … 62 72 long long int __sync_fetch_and_nand(volatile long long int *, long long int,...); 63 73 long long int __sync_fetch_and_nand_8(volatile long long int *, long long int,...); 74 #if defined(__SIZEOF_INT128__) 64 75 __int128 __sync_fetch_and_nand(volatile __int128 *, __int128,...); 65 76 __int128 __sync_fetch_and_nand_16(volatile __int128 *, __int128,...); 77 #endif 66 78 67 79 char __sync_add_and_fetch(volatile char *, char,...); … … 73 85 long long int __sync_add_and_fetch(volatile long long int *, long long int,...); 74 86 long long int __sync_add_and_fetch_8(volatile long long int *, long long int,...); 87 #if defined(__SIZEOF_INT128__) 75 88 __int128 __sync_add_and_fetch(volatile __int128 *, __int128,...); 76 89 __int128 __sync_add_and_fetch_16(volatile __int128 *, __int128,...); 90 #endif 77 91 78 92 char __sync_sub_and_fetch(volatile char *, char,...); … … 84 98 long long int __sync_sub_and_fetch(volatile long long int *, long long int,...); 85 99 long long int __sync_sub_and_fetch_8(volatile long long int *, long long int,...); 100 #if defined(__SIZEOF_INT128__) 86 101 __int128 __sync_sub_and_fetch(volatile __int128 *, __int128,...); 87 102 __int128 __sync_sub_and_fetch_16(volatile __int128 *, __int128,...); 103 #endif 88 104 89 105 char __sync_or_and_fetch(volatile char *, char,...); … … 95 111 long long int __sync_or_and_fetch(volatile long long int *, long long int,...); 96 112 long long int __sync_or_and_fetch_8(volatile long long int *, long long int,...); 113 #if defined(__SIZEOF_INT128__) 97 114 __int128 __sync_or_and_fetch(volatile __int128 *, __int128,...); 98 115 __int128 __sync_or_and_fetch_16(volatile __int128 *, __int128,...); 116 #endif 99 117 100 118 char __sync_and_and_fetch(volatile char *, char,...); … … 106 124 long long int __sync_and_and_fetch(volatile long long int *, long long int,...); 107 125 long long int __sync_and_and_fetch_8(volatile long long int *, long long int,...); 126 #if defined(__SIZEOF_INT128__) 108 127 __int128 __sync_and_and_fetch(volatile __int128 *, __int128,...); 109 128 __int128 __sync_and_and_fetch_16(volatile __int128 *, __int128,...); 129 #endif 110 130 111 131 char __sync_xor_and_fetch(volatile char *, char,...); … … 117 137 long long int __sync_xor_and_fetch(volatile long long int *, long long int,...); 118 138 long long int __sync_xor_and_fetch_8(volatile long long int *, long long int,...); 139 #if defined(__SIZEOF_INT128__) 119 140 __int128 __sync_xor_and_fetch(volatile __int128 *, __int128,...); 120 141 __int128 __sync_xor_and_fetch_16(volatile __int128 *, __int128,...); 142 #endif 121 143 122 144 char __sync_nand_and_fetch(volatile char *, char,...); … … 128 150 long long int __sync_nand_and_fetch(volatile long long int *, long long int,...); 129 151 long long int __sync_nand_and_fetch_8(volatile long long int *, long long int,...); 152 #if defined(__SIZEOF_INT128__) 130 153 __int128 __sync_nand_and_fetch(volatile __int128 *, __int128,...); 131 154 __int128 __sync_nand_and_fetch_16(volatile __int128 *, __int128,...); 155 #endif 132 156 133 157 _Bool __sync_bool_compare_and_swap(volatile char *, char, char,...); … … 139 163 _Bool __sync_bool_compare_and_swap(volatile long long int *, long long int, long long int,...); 140 164 _Bool __sync_bool_compare_and_swap_8(volatile long long int *, long long int, long long int,...); 165 #if defined(__SIZEOF_INT128__) 141 166 _Bool __sync_bool_compare_and_swap(volatile __int128 *, __int128, __int128,...); 142 167 _Bool __sync_bool_compare_and_swap_16(volatile __int128 *, __int128, __int128,...); 168 #endif 143 169 144 170 char __sync_val_compare_and_swap(volatile char *, char, char,...); … … 150 176 long long int __sync_val_compare_and_swap(volatile long long int *, long long int, long long int,...); 151 177 long long int __sync_val_compare_and_swap_8(volatile long long int *, long long int, long long int,...); 178 #if defined(__SIZEOF_INT128__) 152 179 __int128 __sync_val_compare_and_swap(volatile __int128 *, __int128, __int128,...); 153 180 __int128 __sync_val_compare_and_swap_16(volatile __int128 *, __int128, __int128,...); 181 #endif 154 182 155 183 char __sync_lock_test_and_set(volatile char *, char,...); … … 161 189 long long int __sync_lock_test_and_set(volatile long long int *, long long int,...); 162 190 long long int __sync_lock_test_and_set_8(volatile long long int *, long long int,...); 191 #if defined(__SIZEOF_INT128__) 163 192 __int128 __sync_lock_test_and_set(volatile __int128 *, __int128,...); 164 193 __int128 __sync_lock_test_and_set_16(volatile __int128 *, __int128,...); 194 #endif 165 195 166 196 void __sync_lock_release(volatile char *,...); … … 172 202 void __sync_lock_release(volatile long long int *,...); 173 203 void __sync_lock_release_8(volatile long long int *,...); 204 #if defined(__SIZEOF_INT128__) 174 205 void __sync_lock_release(volatile __int128 *,...); 175 206 void __sync_lock_release_16(volatile __int128 *,...); 207 #endif 176 208 177 209 void __sync_synchronize(); … … 185 217 _Bool __atomic_test_and_set(volatile int *, int); 186 218 _Bool __atomic_test_and_set(volatile long long int *, int); 219 #if defined(__SIZEOF_INT128__) 187 220 _Bool __atomic_test_and_set(volatile __int128 *, int); 221 #endif 222 188 223 void __atomic_clear(volatile _Bool *, int); 189 224 void __atomic_clear(volatile char *, int); … … 191 226 void __atomic_clear(volatile int *, int); 192 227 void __atomic_clear(volatile long long int *, int); 228 #if defined(__SIZEOF_INT128__) 193 229 void __atomic_clear(volatile __int128 *, int); 230 #endif 194 231 195 232 char __atomic_exchange_n(volatile char *, volatile char *, int); … … 205 242 long long int __atomic_exchange_8(volatile long long int *, long long int, int); 206 243 void __atomic_exchange(volatile long long int *, volatile long long int *, volatile long long int *, int); 244 #if defined(__SIZEOF_INT128__) 207 245 __int128 __atomic_exchange_n(volatile __int128 *, volatile __int128 *, int); 208 246 __int128 __atomic_exchange_16(volatile __int128 *, __int128, int); 209 247 void __atomic_exchange(volatile __int128 *, volatile __int128 *, volatile __int128 *, int); 248 #endif 210 249 211 250 char __atomic_load_n(const volatile char *, int); … … 221 260 long long int __atomic_load_8(const volatile long long int *, int); 222 261 void __atomic_load(const volatile long long int *, volatile long long int *, int); 262 #if defined(__SIZEOF_INT128__) 223 263 __int128 __atomic_load_n(const volatile __int128 *, int); 224 264 __int128 __atomic_load_16(const volatile __int128 *, int); 225 265 void __atomic_load(const volatile __int128 *, volatile __int128 *, int); 266 #endif 226 267 227 268 _Bool __atomic_compare_exchange_n(volatile char *, char *, char, _Bool, int, int); … … 237 278 _Bool __atomic_compare_exchange_8(volatile long long int *, long long int *, long long int, _Bool, int, int); 238 279 _Bool __atomic_compare_exchange (volatile long long int *, long long int *, long long int *, _Bool, int, int); 280 #if defined(__SIZEOF_INT128__) 239 281 _Bool __atomic_compare_exchange_n (volatile __int128 *, __int128 *, __int128, _Bool, int, int); 240 282 _Bool __atomic_compare_exchange_16(volatile __int128 *, __int128 *, __int128, _Bool, int, int); 241 283 _Bool __atomic_compare_exchange (volatile __int128 *, __int128 *, __int128 *, _Bool, int, int); 284 #endif 242 285 243 286 void __atomic_store_n(volatile _Bool *, _Bool, int); … … 256 299 void __atomic_store_8(volatile long long int *, long long int, int); 257 300 void __atomic_store(volatile long long int *, long long int *, int); 301 #if defined(__SIZEOF_INT128__) 258 302 void __atomic_store_n(volatile __int128 *, __int128, int); 259 303 void __atomic_store_16(volatile __int128 *, __int128, int); 260 304 void __atomic_store(volatile __int128 *, __int128 *, int); 305 #endif 261 306 262 307 char __atomic_add_fetch (volatile char *, char, int); … … 268 313 long long int __atomic_add_fetch (volatile long long int *, long long int, int); 269 314 long long int __atomic_add_fetch_8(volatile long long int *, long long int, int); 315 #if defined(__SIZEOF_INT128__) 270 316 __int128 __atomic_add_fetch (volatile __int128 *, __int128, int); 271 317 __int128 __atomic_add_fetch_16(volatile __int128 *, __int128, int); 318 #endif 272 319 273 320 char __atomic_sub_fetch (volatile char *, char, int); … … 279 326 long long int __atomic_sub_fetch (volatile long long int *, long long int, int); 280 327 long long int __atomic_sub_fetch_8(volatile long long int *, long long int, int); 328 #if defined(__SIZEOF_INT128__) 281 329 __int128 __atomic_sub_fetch (volatile __int128 *, __int128, int); 282 330 __int128 __atomic_sub_fetch_16(volatile __int128 *, __int128, int); 331 #endif 283 332 284 333 char __atomic_and_fetch (volatile char *, char, int); … … 290 339 long long int __atomic_and_fetch (volatile long long int *, long long int, int); 291 340 long long int __atomic_and_fetch_8(volatile long long int *, long long int, int); 341 #if defined(__SIZEOF_INT128__) 292 342 __int128 __atomic_and_fetch (volatile __int128 *, __int128, int); 293 343 __int128 __atomic_and_fetch_16(volatile __int128 *, __int128, int); 344 #endif 294 345 295 346 char __atomic_nand_fetch (volatile char *, char, int); … … 301 352 long long int __atomic_nand_fetch (volatile long long int *, long long int, int); 302 353 long long int __atomic_nand_fetch_8(volatile long long int *, long long int, int); 354 #if defined(__SIZEOF_INT128__) 303 355 __int128 __atomic_nand_fetch (volatile __int128 *, __int128, int); 304 356 __int128 __atomic_nand_fetch_16(volatile __int128 *, __int128, int); 357 #endif 305 358 306 359 char __atomic_xor_fetch (volatile char *, char, int); … … 312 365 long long int __atomic_xor_fetch (volatile long long int *, long long int, int); 313 366 long long int __atomic_xor_fetch_8(volatile long long int *, long long int, int); 367 #if defined(__SIZEOF_INT128__) 314 368 __int128 __atomic_xor_fetch (volatile __int128 *, __int128, int); 315 369 __int128 __atomic_xor_fetch_16(volatile __int128 *, __int128, int); 370 #endif 316 371 317 372 char __atomic_or_fetch (volatile char *, char, int); … … 323 378 long long int __atomic_or_fetch (volatile long long int *, long long int, int); 324 379 long long int __atomic_or_fetch_8(volatile long long int *, long long int, int); 380 #if defined(__SIZEOF_INT128__) 325 381 __int128 __atomic_or_fetch (volatile __int128 *, __int128, int); 326 382 __int128 __atomic_or_fetch_16(volatile __int128 *, __int128, int); 383 #endif 327 384 328 385 char __atomic_fetch_add (volatile char *, char, int); … … 334 391 long long int __atomic_fetch_add (volatile long long int *, long long int, int); 335 392 long long int __atomic_fetch_add_8(volatile long long int *, long long int, int); 393 #if defined(__SIZEOF_INT128__) 336 394 __int128 __atomic_fetch_add (volatile __int128 *, __int128, int); 337 395 __int128 __atomic_fetch_add_16(volatile __int128 *, __int128, int); 396 #endif 338 397 339 398 char __atomic_fetch_sub (volatile char *, char, int); … … 345 404 long long int __atomic_fetch_sub (volatile long long int *, long long int, int); 346 405 long long int __atomic_fetch_sub_8(volatile long long int *, long long int, int); 406 #if defined(__SIZEOF_INT128__) 347 407 __int128 __atomic_fetch_sub (volatile __int128 *, __int128, int); 348 408 __int128 __atomic_fetch_sub_16(volatile __int128 *, __int128, int); 409 #endif 349 410 350 411 char __atomic_fetch_and (volatile char *, char, int); … … 356 417 long long int __atomic_fetch_and (volatile long long int *, long long int, int); 357 418 long long int __atomic_fetch_and_8(volatile long long int *, long long int, int); 419 #if defined(__SIZEOF_INT128__) 358 420 __int128 __atomic_fetch_and (volatile __int128 *, __int128, int); 359 421 __int128 __atomic_fetch_and_16(volatile __int128 *, __int128, int); 422 #endif 360 423 361 424 char __atomic_fetch_nand (volatile char *, char, int); … … 367 430 long long int __atomic_fetch_nand (volatile long long int *, long long int, int); 368 431 long long int __atomic_fetch_nand_8(volatile long long int *, long long int, int); 432 #if defined(__SIZEOF_INT128__) 369 433 __int128 __atomic_fetch_nand (volatile __int128 *, __int128, int); 370 434 __int128 __atomic_fetch_nand_16(volatile __int128 *, __int128, int); 435 #endif 371 436 372 437 char __atomic_fetch_xor (volatile char *, char, int); … … 378 443 long long int __atomic_fetch_xor (volatile long long int *, long long int, int); 379 444 long long int __atomic_fetch_xor_8(volatile long long int *, long long int, int); 445 #if defined(__SIZEOF_INT128__) 380 446 __int128 __atomic_fetch_xor (volatile __int128 *, __int128, int); 381 447 __int128 __atomic_fetch_xor_16(volatile __int128 *, __int128, int); 448 #endif 382 449 383 450 char __atomic_fetch_or (volatile char *, char, int); … … 389 456 long long int __atomic_fetch_or (volatile long long int *, long long int, int); 390 457 long long int __atomic_fetch_or_8(volatile long long int *, long long int, int); 458 #if defined(__SIZEOF_INT128__) 391 459 __int128 __atomic_fetch_or (volatile __int128 *, __int128, int); 392 460 __int128 __atomic_fetch_or_16(volatile __int128 *, __int128, int); 461 #endif 393 462 394 463 _Bool __atomic_always_lock_free(unsigned long, const volatile void *);
Note: See TracChangeset
for help on using the changeset viewer.