| /src/usr.bin/cmp/tests/ |
| H A D | cmp_test2.sh | 34 atf_check -s exit:0 -o empty -e empty cmp a - <a 35 atf_check -s exit:0 -o empty -e empty cmp - a <a 36 atf_check -s exit:1 -o not-empty -e empty cmp a - <b 37 atf_check -s exit:1 -o not-empty -e empty cmp - a <b 39 atf_check -s exit:0 -o empty -e empty cmp a a <&- 54 atf_check -s exit:0 cmp a a.lnk 55 atf_check -s exit:0 cmp a.lnk a 56 atf_check -s not-exit:0 -o ignore cmp a b.lnk 57 atf_check -s not-exit:0 -o ignore cmp b.lnk a 58 atf_check -s not-exit:0 -o ignore -e ignore cmp -h a a.lnk [all …]
|
| /src/sys/libkern/arm/ |
| H A D | divsi3.S | 60 cmp r0, #1 87 cmp r0, #1 183 cmp r1, r0 185 cmp r1, r0, lsl #1 187 cmp r1, r0, lsl #2 189 cmp r1, r0, lsl #3 191 cmp r1, r0, lsl #4 193 cmp r1, r0, lsl #5 195 cmp r1, r0, lsl #6 197 cmp r1, r0, lsl #7 [all …]
|
| /src/lib/libc/arm/gen/ |
| H A D | divsi3.S | 58 cmp r0, #1 81 cmp r0, #1 177 cmp r1, r0 179 cmp r1, r0, lsl #1 181 cmp r1, r0, lsl #2 183 cmp r1, r0, lsl #3 185 cmp r1, r0, lsl #4 187 cmp r1, r0, lsl #5 189 cmp r1, r0, lsl #6 191 cmp r1, r0, lsl #7 [all …]
|
| /src/crypto/libecc/src/tests/ |
| H A D | ec_self_tests_core.h | 130 int ret, cmp; in ecdsa_nn_random_secp224r1_sha3_224_test_vector() local 144 ret = nn_cmp(out, q, &cmp); EG(ret, err); in ecdsa_nn_random_secp224r1_sha3_224_test_vector() 146 ret = (cmp >= 0) ? -1 : 0; in ecdsa_nn_random_secp224r1_sha3_224_test_vector() 197 int ret, cmp; in ecdsa_nn_random_secp256r1_sha3_256_test_vector() local 211 ret = nn_cmp(out, q, &cmp); EG(ret, err); in ecdsa_nn_random_secp256r1_sha3_256_test_vector() 213 ret = (cmp >= 0) ? -1 : 0; in ecdsa_nn_random_secp256r1_sha3_256_test_vector() 270 int ret, cmp; in ecdsa_nn_random_secp256r1_sha3_512_test_vector() local 279 ret = nn_cmp(out, q, &cmp); EG(ret, err); in ecdsa_nn_random_secp256r1_sha3_512_test_vector() 281 ret = (cmp >= 0) ? -1 : 0; in ecdsa_nn_random_secp256r1_sha3_512_test_vector() 333 int ret, cmp; in ecdsa_nn_random_secp384r1_sha3_384_test_vector() local [all …]
|
| H A D | bign_test_vectors.h | 24 int ret, cmp; in bign_1_nn_random_belt_hash_test_vector() local 35 ret = nn_cmp(out, q, &cmp); EG(ret, err); in bign_1_nn_random_belt_hash_test_vector() 37 ret = (cmp >= 0) ? -1 : 0; in bign_1_nn_random_belt_hash_test_vector() 73 int ret, cmp; in bign_2_nn_random_belt_hash_test_vector() local 86 ret = nn_cmp(out, q, &cmp); EG(ret, err); in bign_2_nn_random_belt_hash_test_vector() 88 ret = (cmp >= 0) ? -1 : 0; in bign_2_nn_random_belt_hash_test_vector() 124 int ret, cmp; in bign_3_nn_random_belt_hash_test_vector() local 134 ret = nn_cmp(out, q, &cmp); EG(ret, err); in bign_3_nn_random_belt_hash_test_vector() 136 ret = (cmp >= 0) ? -1 : 0; in bign_3_nn_random_belt_hash_test_vector() 172 int ret, cmp; in bign_4_nn_random_belt_hash_test_vector() local [all …]
|
| /src/crypto/libecc/src/fp/ |
| H A D | fp_add.c | 27 int ret, cmp; in fp_add() local 35 FORCE_USED_VAR(cmp); /* silence warning when macro results in nothing */ in fp_add() 36 SHOULD_HAVE(!nn_cmp(&in1->fp_val, &(in1->ctx->p), &cmp) && (cmp < 0), ret, err); in fp_add() 37 SHOULD_HAVE(!nn_cmp(&in2->fp_val, &(in2->ctx->p), &cmp) && (cmp < 0), ret, err); in fp_add() 54 int ret, cmp; in fp_inc() local 60 FORCE_USED_VAR(cmp); /* silence warning when macro results in nothing */ in fp_inc() 61 SHOULD_HAVE(!nn_cmp(&in->fp_val, &(in->ctx->p), &cmp) && (cmp < 0), ret, err); in fp_inc() 77 int ret, cmp; in fp_sub() local 85 FORCE_USED_VAR(cmp); /* silence warning when macro results in nothing */ in fp_sub() 86 SHOULD_HAVE(!nn_cmp(&in1->fp_val, &(in1->ctx->p), &cmp) && (cmp < 0), ret, err); in fp_sub() [all …]
|
| /src/sys/cddl/compat/opensolaris/sys/ |
| H A D | atomic.h | 50 extern uint64_t atomic_cas_64(volatile uint64_t *target, uint64_t cmp, 93 atomic_cas_32(volatile uint32_t *target, uint32_t cmp, uint32_t newval) in atomic_cas_32() argument 96 (void)atomic_fcmpset_32(target, &cmp, newval); in atomic_cas_32() 98 uint32_t expected = cmp; in atomic_cas_32() 101 if (atomic_fcmpset_32(target, &cmp, newval)) in atomic_cas_32() 103 } while (cmp == expected); in atomic_cas_32() 105 return (cmp); in atomic_cas_32() 124 atomic_cas_64(volatile uint64_t *target, uint64_t cmp, uint64_t newval) in atomic_cas_64() argument 127 (void)atomic_fcmpset_64(target, &cmp, newval); in atomic_cas_64() 129 uint64_t expected = cmp; in atomic_cas_64() [all …]
|
| /src/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
| H A D | atomic.h | 57 extern uint64_t atomic_cas_64(volatile uint64_t *target, uint64_t cmp, 103 atomic_cas_32(volatile uint32_t *target, uint32_t cmp, uint32_t newval) in atomic_cas_32() argument 106 (void) atomic_fcmpset_32(target, &cmp, newval); in atomic_cas_32() 108 uint32_t expected = cmp; in atomic_cas_32() 111 if (atomic_fcmpset_32(target, &cmp, newval)) in atomic_cas_32() 113 } while (cmp == expected); in atomic_cas_32() 115 return (cmp); in atomic_cas_32() 136 atomic_cas_64(volatile uint64_t *target, uint64_t cmp, uint64_t newval) in atomic_cas_64() argument 139 (void) atomic_fcmpset_64(target, &cmp, newval); in atomic_cas_64() 141 uint64_t expected = cmp; in atomic_cas_64() [all …]
|
| /src/usr.bin/tail/tests/ |
| H A D | tail_test.sh | 37 atf_check cmp expectfile outfile 38 atf_check cmp expectfile outpipe 60 atf_check cmp expectfile outfile 61 atf_check cmp expectfile outpipe 82 atf_check cmp expectfile outfile 83 atf_check cmp expectfile outpipe 103 atf_check cmp expectfile outfile 104 atf_check cmp expectfile outpipe 125 atf_check cmp expectfile outfile 126 atf_check cmp expectfile outpipe [all …]
|
| /src/sys/contrib/openzfs/scripts/ |
| H A D | update_authors.pl | 325 my $cmp; 349 my $cmp; 352 $cmp = (($b =~ tr/@//) == 1) <=> (($a =~ tr/@//) == 1); 353 return $cmp unless $cmp == 0; 356 $cmp = (($a =~ $internal_re) <=> ($b =~ $internal_re)); 357 return $cmp unless $cmp == 0; 360 $cmp = (($a =~ $noreply_re) <=> ($b =~ $noreply_re)); 361 return $cmp unless $cmp == 0; 364 $cmp = (($a =~ $freemail_re) <=> ($b =~ $freemail_re)); 365 return $cmp unless $cmp == 0; [all …]
|
| /src/crypto/openssl/crypto/ |
| H A D | x86cpuid.pl | 39 &cmp ("ebx",0x756e6547); # "Genu" 42 &cmp ("edx",0x49656e69); # "ineI" 45 &cmp ("ecx",0x6c65746e); # "ntel" 50 &cmp ("ebx",0x68747541); # "Auth" 53 &cmp ("edx",0x69746E65); # "enti" 56 &cmp ("ecx",0x444D4163); # "cAMD" 64 &cmp ("eax",0x80000001); 71 &cmp ("esi",0x80000008); 86 &cmp ("ebx","esi"); 92 &cmp ("edi",4); [all …]
|
| /src/lib/libc/stdlib/ |
| H A D | qsort.c | 71 #define CMP(t, x, y) (cmp((x), (y), (t))) 73 #define CMP(t, x, y) (cmp((t), (x), (y))) 75 #define CMP(t, x, y) (cmp((x), (y), (t))) 77 #define CMP(t, x, y) (cmp((x), (y))) 81 med3(char *a, char *b, char *c, cmp_t *cmp, void *thunk in med3() argument 104 local_qsort(void *a, size_t n, size_t es, cmp_t *cmp, void *thunk) in local_qsort() argument 129 pl = med3(pl, pl + d, pl + 2 * d, cmp, thunk); in local_qsort() 130 pm = med3(pm - d, pm, pm + d, cmp, thunk); in local_qsort() 131 pn = med3(pn - 2 * d, pn - d, pn, cmp, thunk); in local_qsort() 133 pm = med3(pl, pm, pn, cmp, thunk); in local_qsort() [all …]
|
| /src/contrib/arm-optimized-routines/math/aarch64/sve/ |
| H A D | sv_math.h | 57 sv_call_f64 (double (*f) (double), svfloat64_t x, svfloat64_t y, svbool_t cmp) in sv_call_f64() argument 59 svbool_t p = svpfirst (cmp, svpfalse ()); in sv_call_f64() 60 while (svptest_any (cmp, p)) in sv_call_f64() 66 p = svpnext_b64 (cmp, p); in sv_call_f64() 73 svfloat64_t y, svbool_t cmp) in sv_call2_f64() argument 75 svbool_t p = svpfirst (cmp, svpfalse ()); in sv_call2_f64() 76 while (svptest_any (cmp, p)) in sv_call2_f64() 83 p = svpnext_b64 (cmp, p); in sv_call2_f64() 115 sv_call_f32 (float (*f) (float), svfloat32_t x, svfloat32_t y, svbool_t cmp) in sv_call_f32() argument 117 svbool_t p = svpfirst (cmp, svpfalse ()); in sv_call_f32() [all …]
|
| /src/contrib/netbsd-tests/include/sys/ |
| H A D | t_socket.c | 32 struct cmsghdr *cmp; in ATF_TC_BODY() local 43 cmp = malloc(CMSG_SPACE(sizeof(int))); in ATF_TC_BODY() 48 cmp->cmsg_level = SOL_SOCKET; in ATF_TC_BODY() 49 cmp->cmsg_type = SCM_RIGHTS; in ATF_TC_BODY() 50 cmp->cmsg_len = CMSG_LEN(sizeof(int)); in ATF_TC_BODY() 56 msg.msg_control = cmp; in ATF_TC_BODY() 64 *(int *)CMSG_DATA(cmp) = 0x12345678; in ATF_TC_BODY() 83 struct cmsghdr *cmp; in ATF_TC_BODY() local 132 cmp = malloc(CMSG_SPACE(sizeof(int))); in ATF_TC_BODY() 137 cmp->cmsg_level = SOL_SOCKET; in ATF_TC_BODY() [all …]
|
| /src/contrib/ncurses/ncurses/ |
| H A D | wcwidth.h | 221 unsigned long cmp = (unsigned long) ucs; in mk_wcwidth() local 714 #define Lookup(cmp, table) \ in mk_wcwidth() argument 715 bisearch(cmp, table, \ in mk_wcwidth() 719 if (cmp == 0) { in mk_wcwidth() 721 } else if (cmp < 32 || (cmp >= 0x7f && cmp < 0xa0)) { in mk_wcwidth() 723 } else if (cmp == 0xad) { in mk_wcwidth() 725 } else if (Lookup(cmp, formatting)) { in mk_wcwidth() 728 } else if (Lookup(cmp, combining)) { in mk_wcwidth() 735 if (Lookup(cmp, doublewidth)) { in mk_wcwidth() 737 } else if (cmp >= 0xd800 && cmp <= 0xdfff) { in mk_wcwidth() [all …]
|
| /src/lib/libc/db/test/ |
| H A D | run.test | 72 if (cmp -s $TMP1 $TMP3) ; then : 86 if (cmp -s $TMP1 $TMP3) ; then : 111 if (cmp -s $TMP1 $TMP3) ; then : 124 if (cmp -s $TMP1 $TMP3) ; then : 147 if (cmp -s $TMP1 $TMP3) ; then : 166 if (cmp -s $TMP1 $TMP3) ; then : 183 if (cmp -s $TMP1 $TMP3) ; then : 248 if (cmp -s $TMP1 $TMP3) ; then : 284 if (cmp -s $TMP1 $TMP3) ; then : 336 if (cmp -s $TMP1 $TMP3) ; then : [all …]
|
| /src/contrib/sendmail/libsm/ |
| H A D | t-qic.c | 59 int cmp; local 70 cmp = strcmp(line_in, line_back); 71 SM_TEST(exp == cmp); 72 if (cmp != exp && !SmTestVerbose) 77 fprintf(stderr, "cmp=%d\n", cmp); 85 fprintf(stderr, "cmp=%d\n", cmp); 106 int i, los, cmp, mode; local 175 cmp = strcmp(inout[i].qic_out, obp); 176 SM_TEST(inout[i].qic_exp == cmp); 177 if (inout[i].qic_exp != cmp && !SmTestVerbose) [all …]
|
| /src/usr.bin/compress/tests/ |
| H A D | compress_test.sh | 41 atf_check cmp file1 expectfile1 60 atf_check cmp file1 expectfile1 137 atf_check -s exit:1 cmp -s file1.Z expectfile1 139 atf_check cmp file1 expectfile1 155 atf_check -s exit:1 cmp -s file1.Z expectfile1 156 atf_check -s exit:1 cmp -s file2.Z expectfile2 157 atf_check -s exit:1 cmp -s file1.Z file2.Z 159 atf_check cmp file1 expectfile1 160 atf_check cmp file2 expectfile2 176 atf_check -s exit:1 cmp -s file1.Z expectfile1 [all …]
|
| /src/crypto/openssl/test/ |
| H A D | params_api_test.c | 118 static int test_param_type_extra(OSSL_PARAM *param, const unsigned char *cmp, in test_param_type_extra() argument 152 if (!TEST_mem_eq(buf, sz, cmp, sz)) in test_param_type_extra() 157 if (!TEST_mem_eq(buf, sz, cmp, sz)) in test_param_type_extra() 162 if (!TEST_mem_eq(buf, sz, cmp, sz)) in test_param_type_extra() 200 unsigned char buf[MAX_LEN], cmp[sizeof(int)]; in test_param_int() local 213 le_copy(cmp, sizeof(out), &out, sizeof(out)); in test_param_int() 214 if (!TEST_mem_eq(cmp, len, raw_values[n].value, len)) in test_param_int() 219 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_int() 220 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_int() 229 unsigned char buf[MAX_LEN], cmp[sizeof(long int)]; in test_param_long() local [all …]
|
| /src/crypto/krb5/src/plugins/kdb/db2/libdb2/test/ |
| H A D | run.test | 99 if (cmp -s $TMP1 $TMP3) ; then : 112 if (cmp -s $TMP1 $TMP3) ; then : 137 if (cmp -s $TMP1 $TMP3) ; then : 150 if (cmp -s $TMP1 $TMP3) ; then : 173 if (cmp -s $TMP1 $TMP3) ; then : 192 if (cmp -s $TMP1 $TMP3) ; then : 208 if (cmp -s $TMP1 $TMP3) ; then : 273 if (cmp -s $TMP1 $TMP3) ; then : 309 if (cmp -s $TMP1 $TMP3) ; then : 361 if (cmp -s $TMP1 $TMP3) ; then : [all …]
|
| /src/sys/netinet/ |
| H A D | accf_http.c | 47 static int mbufstrcmp(struct mbuf *m, struct mbuf *npkt, int offset, char *cmp); 50 int max, char *cmp); 90 mbufstrcmp(struct mbuf *m, struct mbuf *npkt, int offset, char *cmp) in mbufstrcmp() argument 99 for (; offset < m->m_len; offset++, cmp++) { in mbufstrcmp() 100 if (*cmp == '\0') in mbufstrcmp() 102 else if (*cmp != *(mtod(m, char *) + offset)) in mbufstrcmp() 105 if (*cmp == '\0') in mbufstrcmp() 119 mbufstrncmp(struct mbuf *m, struct mbuf *npkt, int offset, int max, char *cmp) in mbufstrncmp() argument 128 for (; offset < m->m_len; offset++, cmp++, max--) { in mbufstrncmp() 129 if (max == 0 || *cmp == '\0') in mbufstrncmp() [all …]
|
| /src/sys/sys/ |
| H A D | queue_mergesort.h | 185 #define SLIST_MERGESORT(head, thunk, cmp, TYPE, NAME) \ argument 186 SYSQUEUE_MERGESORT((head), (thunk), (cmp), TYPE, NAME, SLIST_HEAD, \ 189 #define SLIST_MERGE(list1, list2, thunk, cmp, TYPE, NAME) \ argument 190 SYSQUEUE_MERGE((list1), (list2), (thunk), (cmp), TYPE, NAME, SLIST_FIRST, \ 193 #define LIST_MERGESORT(head, thunk, cmp, TYPE, NAME) \ argument 194 SYSQUEUE_MERGESORT((head), (thunk), (cmp), TYPE, NAME, LIST_HEAD, \ 197 #define LIST_MERGE(list1, list2, thunk, cmp, TYPE, NAME) \ argument 198 SYSQUEUE_MERGE((list1), (list2), (thunk), (cmp), TYPE, NAME, LIST_FIRST, \ 201 #define STAILQ_MERGESORT(head, thunk, cmp, TYPE, NAME) \ argument 202 SYSQUEUE_MERGESORT((head), (thunk), (cmp), TYPE, NAME, STAILQ_HEAD, \ [all …]
|
| /src/contrib/libdiff/compat/ |
| H A D | merge.c | 55 int (*cmp)(const void *, const void *)); 57 int (*cmp)(const void *, const void *)); 94 int (*cmp)(const void *, const void *)) in mergesort() 121 setup(list1, list2, nmemb, size, cmp); in mergesort() 135 if ((*cmp)(f1, f2) <= 0) { in mergesort() 145 while ((b += size) < t && cmp(q, b) >sense) in mergesort() 154 (*cmp)(q, p) <= sense) in mergesort() 159 } else if ((*cmp)(q, p) <= sense) { in mergesort() 168 if ((*cmp)(q, p = b + i) <= sense) in mergesort() 175 if ((*cmp)(q, in mergesort() [all …]
|
| /src/crypto/openssh/regress/ |
| H A D | sftp-cmds.sh | 71 cmp $DATA ${COPY} || fail "corrupted copy after get" 77 cmp $DATA ${COPY} || fail "corrupted copy after get" 84 cmp ${COPY} ${QUOTECOPY} || fail "corrupted copy after get with quotes" 92 cmp ${COPY} "$SPACECOPY" || fail "corrupted copy after get with spaces" 99 cmp ${COPY} "$GLOBMETACOPY" || \ 106 cmp $DATA ${COPY}.dd/${DATANAME} || fail "corrupted copy after get" 113 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after get" 120 cmp $DATA ${COPY}.dd/${DATANAME} || fail "corrupted copy after get" 127 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after get" 134 cmp $DATA ${COPY} || fail "corrupted copy after put" [all …]
|
| /src/lib/libc/aarch64/string/ |
| H A D | timingsafe_memcmp.S | 10 cmp x2, #16 // at least 17 bytes to process? 13 cmp x2, #8 // at least 9 bytes to process? 16 cmp x2, #4 // at least 5 bytes to process? 19 cmp x2, #2 // at least 3 bytes to process? 47 cmp w3, w4 61 cmp x3, x4 71 cmp x3, x4 // mismatch in first pair? 76 cmp x3, x4 84 cmp x3, x5 // mismatch in first pair? 92 cmp x4, x6 // mismatch in first pair? [all …]
|