Lines Matching refs:ONES
139 #define ONES ((((uint128_t)0x0101010101010101) << 64) | 0x0101010101010101) macro
142 #define ONES 0x0101010101010101 macro
373 set_a_values(ONES); in test_compare_exchanges()
374 set_b_values(ONES * 2); in test_compare_exchanges()
378 if (a8 != U8(ONES) || b8 != U8(ONES)) in test_compare_exchanges()
382 if (a8 != U8(V + m1) || b8 != U8(ONES)) in test_compare_exchanges()
387 if (a16 != U16(ONES) || b16 != U16(ONES)) in test_compare_exchanges()
391 if (a16 != U16(V + m1) || b16 != U16(ONES)) in test_compare_exchanges()
396 if (a32 != U32(ONES) || b32 != U32(ONES)) in test_compare_exchanges()
400 if (a32 != U32(V + m1) || b32 != U32(ONES)) in test_compare_exchanges()
405 if (a64 != U64(ONES) || b64 != U64(ONES)) in test_compare_exchanges()
409 if (a64 != U64(V + m1) || b64 != U64(ONES)) in test_compare_exchanges()
415 if (a128 != ONES || b128 != ONES) in test_compare_exchanges()
419 if (a128 != V + m1 || b128 != ONES) in test_compare_exchanges()
443 b8 = __atomic_fetch_add_1(&a8, U8(ONES), model); in test_fetch_op()
444 if (b8 != U8(V + m) || a8 != U8(V + m + ONES)) in test_fetch_op()
446 b16 = __atomic_fetch_add_2(&a16, U16(ONES), model); in test_fetch_op()
447 if (b16 != U16(V + m) || a16 != U16(V + m + ONES)) in test_fetch_op()
449 b32 = __atomic_fetch_add_4(&a32, U32(ONES), model); in test_fetch_op()
450 if (b32 != U32(V + m) || a32 != U32(V + m + ONES)) in test_fetch_op()
452 b64 = __atomic_fetch_add_8(&a64, U64(ONES), model); in test_fetch_op()
453 if (b64 != U64(V + m) || a64 != U64(V + m + ONES)) in test_fetch_op()
456 b128 = __atomic_fetch_add_16(&a128, ONES, model); in test_fetch_op()
457 if (b128 != V + m || a128 != V + m + ONES) in test_fetch_op()
465 b8 = __atomic_fetch_sub_1(&a8, U8(ONES), model); in test_fetch_op()
466 if (b8 != U8(V + m) || a8 != U8(V + m - ONES)) in test_fetch_op()
468 b16 = __atomic_fetch_sub_2(&a16, U16(ONES), model); in test_fetch_op()
469 if (b16 != U16(V + m) || a16 != U16(V + m - ONES)) in test_fetch_op()
471 b32 = __atomic_fetch_sub_4(&a32, U32(ONES), model); in test_fetch_op()
472 if (b32 != U32(V + m) || a32 != U32(V + m - ONES)) in test_fetch_op()
474 b64 = __atomic_fetch_sub_8(&a64, U64(ONES), model); in test_fetch_op()
475 if (b64 != U64(V + m) || a64 != U64(V + m - ONES)) in test_fetch_op()
478 b128 = __atomic_fetch_sub_16(&a128, ONES, model); in test_fetch_op()
479 if (b128 != V + m || a128 != V + m - ONES) in test_fetch_op()
509 b8 = __atomic_fetch_or_1(&a8, U8(ONES), model); in test_fetch_op()
510 if (b8 != U8(V + m) || a8 != U8((V + m) | ONES)) in test_fetch_op()
512 b16 = __atomic_fetch_or_2(&a16, U16(ONES), model); in test_fetch_op()
513 if (b16 != U16(V + m) || a16 != U16((V + m) | ONES)) in test_fetch_op()
515 b32 = __atomic_fetch_or_4(&a32, U32(ONES), model); in test_fetch_op()
516 if (b32 != U32(V + m) || a32 != U32((V + m) | ONES)) in test_fetch_op()
518 b64 = __atomic_fetch_or_8(&a64, U64(ONES), model); in test_fetch_op()
519 if (b64 != U64(V + m) || a64 != U64((V + m) | ONES)) in test_fetch_op()
522 b128 = __atomic_fetch_or_16(&a128, ONES, model); in test_fetch_op()
523 if (b128 != V + m || a128 != ((V + m) | ONES)) in test_fetch_op()
531 b8 = __atomic_fetch_xor_1(&a8, U8(ONES), model); in test_fetch_op()
532 if (b8 != U8(V + m) || a8 != U8((V + m) ^ ONES)) in test_fetch_op()
534 b16 = __atomic_fetch_xor_2(&a16, U16(ONES), model); in test_fetch_op()
535 if (b16 != U16(V + m) || a16 != U16((V + m) ^ ONES)) in test_fetch_op()
537 b32 = __atomic_fetch_xor_4(&a32, U32(ONES), model); in test_fetch_op()
538 if (b32 != U32(V + m) || a32 != U32((V + m) ^ ONES)) in test_fetch_op()
540 b64 = __atomic_fetch_xor_8(&a64, U64(ONES), model); in test_fetch_op()
541 if (b64 != U64(V + m) || a64 != U64((V + m) ^ ONES)) in test_fetch_op()
544 b128 = __atomic_fetch_xor_16(&a128, ONES, model); in test_fetch_op()
545 if (b128 != (V + m) || a128 != ((V + m) ^ ONES)) in test_fetch_op()
553 b8 = __atomic_fetch_nand_1(&a8, U8(ONES), model); in test_fetch_op()
554 if (b8 != U8(V + m) || a8 != U8(~((V + m) & ONES))) in test_fetch_op()
556 b16 = __atomic_fetch_nand_2(&a16, U16(ONES), model); in test_fetch_op()
557 if (b16 != U16(V + m) || a16 != U16(~((V + m) & ONES))) in test_fetch_op()
559 b32 = __atomic_fetch_nand_4(&a32, U32(ONES), model); in test_fetch_op()
560 if (b32 != U32(V + m) || a32 != U32(~((V + m) & ONES))) in test_fetch_op()
562 b64 = __atomic_fetch_nand_8(&a64, U64(ONES), model); in test_fetch_op()
563 if (b64 != U64(V + m) || a64 != U64(~((V + m) & ONES))) in test_fetch_op()
566 b128 = __atomic_fetch_nand_16(&a128, ONES, model); in test_fetch_op()
567 if (b128 != (V + m) || a128 != ~((V + m) & ONES)) in test_fetch_op()