Lines Matching refs:val64
592 uint64_t val64 = 1, ret64 = 0; in test_atomic() local
615 if (CRYPTO_atomic_or(&val64, 2, &ret64, NULL)) { in test_atomic()
617 if (!TEST_uint_eq((unsigned int)val64, 3) in test_atomic()
618 || !TEST_uint_eq((unsigned int)val64, (unsigned int)ret64)) in test_atomic()
622 if (!TEST_uint_eq((unsigned int)val64, 1) in test_atomic()
626 val64 = 1; in test_atomic()
629 if (!TEST_true(CRYPTO_atomic_or(&val64, 2, &ret64, lock))) in test_atomic()
632 if (!TEST_uint_eq((unsigned int)val64, 3) in test_atomic()
633 || !TEST_uint_eq((unsigned int)val64, (unsigned int)ret64)) in test_atomic()
637 if (CRYPTO_atomic_load(&val64, &ret64, NULL)) { in test_atomic()
639 if (!TEST_uint_eq((unsigned int)val64, 3) in test_atomic()
640 || !TEST_uint_eq((unsigned int)val64, (unsigned int)ret64)) in test_atomic()
644 if (!TEST_uint_eq((unsigned int)val64, 3) in test_atomic()
650 if (!TEST_true(CRYPTO_atomic_load(&val64, &ret64, lock))) in test_atomic()
653 if (!TEST_uint_eq((unsigned int)val64, 3) in test_atomic()
654 || !TEST_uint_eq((unsigned int)val64, (unsigned int)ret64)) in test_atomic()
659 if (CRYPTO_atomic_and(&val64, 5, &ret64, NULL)) { in test_atomic()
661 if (!TEST_uint_eq((unsigned int)val64, 1) in test_atomic()
662 || !TEST_uint_eq((unsigned int)val64, (unsigned int)ret64)) in test_atomic()
666 if (!TEST_uint_eq((unsigned int)val64, 3) in test_atomic()
670 val64 = 3; in test_atomic()
673 if (!TEST_true(CRYPTO_atomic_and(&val64, 5, &ret64, lock))) in test_atomic()
676 if (!TEST_uint_eq((unsigned int)val64, 1) in test_atomic()
677 || !TEST_uint_eq((unsigned int)val64, (unsigned int)ret64)) in test_atomic()
682 if (CRYPTO_atomic_add64(&val64, 2, &ret64, NULL)) { in test_atomic()
684 if (!TEST_uint_eq((unsigned int)val64, 3) in test_atomic()
685 || !TEST_uint_eq((unsigned int)val64, (unsigned int)ret64)) in test_atomic()
689 if (!TEST_uint_eq((unsigned int)val64, 1) in test_atomic()
693 val64 = 1; in test_atomic()
696 if (!TEST_true(CRYPTO_atomic_add64(&val64, 2, &ret64, lock))) in test_atomic()
699 if (!TEST_uint_eq((unsigned int)val64, 3) in test_atomic()
700 || !TEST_uint_eq((unsigned int)val64, (unsigned int)ret64)) in test_atomic()