/lib/crypto/ |
D | des.c | 609 #define DES_PC2(a, b, c, d) (T4(d) | T3(c) | T2(b) | T1(a)) argument 626 unsigned long a, b, c, d, w; in des_ekey() local 630 c = k[5]; c &= 0x0e; c <<= 4; c |= k[1] & 0x1e; c = pc1[c]; in des_ekey() 634 pe[15 * 2 + 0] = DES_PC2(a, b, c, d); d = rs[d]; in des_ekey() 635 pe[14 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey() 636 pe[13 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey() 637 pe[12 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey() 638 pe[11 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey() 639 pe[10 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey() 640 pe[ 9 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey() [all …]
|
D | poly1305-donna64.c | 43 u64 c; in poly1305_core_blocks() local 91 c = (u64)(d0 >> 44); in poly1305_core_blocks() 93 d1 += c; in poly1305_core_blocks() 94 c = (u64)(d1 >> 44); in poly1305_core_blocks() 96 d2 += c; in poly1305_core_blocks() 97 c = (u64)(d2 >> 42); in poly1305_core_blocks() 99 h0 += c * 5; in poly1305_core_blocks() 100 c = h0 >> 44; in poly1305_core_blocks() 102 h1 += c; in poly1305_core_blocks() 117 u64 h0, h1, h2, c; in poly1305_core_emit() local [all …]
|
D | poly1305-donna32.c | 40 u32 c; in poly1305_core_blocks() local 90 c = (u32)(d0 >> 26); in poly1305_core_blocks() 92 d1 += c; in poly1305_core_blocks() 93 c = (u32)(d1 >> 26); in poly1305_core_blocks() 95 d2 += c; in poly1305_core_blocks() 96 c = (u32)(d2 >> 26); in poly1305_core_blocks() 98 d3 += c; in poly1305_core_blocks() 99 c = (u32)(d3 >> 26); in poly1305_core_blocks() 101 d4 += c; in poly1305_core_blocks() 102 c = (u32)(d4 >> 26); in poly1305_core_blocks() [all …]
|
D | sha256.c | 66 #define SHA256_ROUND(i, a, b, c, d, e, f, g, h) do { \ argument 69 t2 = e0(a) + Maj(a, b, c); \ 76 u32 a, b, c, d, e, f, g, h; in sha256_transform() local 104 a = state[0]; b = state[1]; c = state[2]; d = state[3]; in sha256_transform() 109 SHA256_ROUND(i + 0, a, b, c, d, e, f, g, h); in sha256_transform() 110 SHA256_ROUND(i + 1, h, a, b, c, d, e, f, g); in sha256_transform() 111 SHA256_ROUND(i + 2, g, h, a, b, c, d, e, f); in sha256_transform() 112 SHA256_ROUND(i + 3, f, g, h, a, b, c, d, e); in sha256_transform() 113 SHA256_ROUND(i + 4, e, f, g, h, a, b, c, d); in sha256_transform() 114 SHA256_ROUND(i + 5, d, e, f, g, h, a, b, c); in sha256_transform() [all …]
|
/lib/raid6/ |
D | Makefile | 53 targets += int1.c int2.c int4.c int8.c int16.c int32.c 54 $(obj)/int%.c: $(src)/int.uc $(src)/unroll.awk FORCE 61 targets += altivec1.c altivec2.c altivec4.c altivec8.c 62 $(obj)/altivec%.c: $(src)/altivec.uc $(src)/unroll.awk FORCE 69 targets += vpermxor1.c vpermxor2.c vpermxor4.c vpermxor8.c 70 $(obj)/vpermxor%.c: $(src)/vpermxor.uc $(src)/unroll.awk FORCE 77 targets += neon1.c neon2.c neon4.c neon8.c 78 $(obj)/neon%.c: $(src)/neon.uc $(src)/unroll.awk FORCE 81 targets += s390vx8.c 82 $(obj)/s390vx%.c: $(src)/s390vx.uc $(src)/unroll.awk FORCE [all …]
|
D | .gitignore | 3 altivec*.c 4 int*.c 5 tables.c 6 neon?.c 7 s390vx?.c 8 vpermxor*.c
|
/lib/raid6/test/ |
D | Makefile | 48 gcc -c -x c - >/dev/null && rm ./-.o && echo yes) 57 .c.o: 60 %.c: ../%.c 73 raid6test: test.c raid6.a 76 neon1.c: neon.uc ../unroll.awk 79 neon2.c: neon.uc ../unroll.awk 82 neon4.c: neon.uc ../unroll.awk 85 neon8.c: neon.uc ../unroll.awk 88 altivec1.c: altivec.uc ../unroll.awk 91 altivec2.c: altivec.uc ../unroll.awk [all …]
|
/lib/ |
D | ucs2_string.c | 61 u16 c = src[i]; in ucs2_utf8size() local 63 if (c >= 0x800) in ucs2_utf8size() 65 else if (c >= 0x80) in ucs2_utf8size() 90 u16 c = src[i]; in ucs2_as_utf8() local 92 if (c >= 0x800) { in ucs2_as_utf8() 96 dest[j++] = 0xe0 | (c & 0xf000) >> 12; in ucs2_as_utf8() 97 dest[j++] = 0x80 | (c & 0x0fc0) >> 6; in ucs2_as_utf8() 98 dest[j++] = 0x80 | (c & 0x003f); in ucs2_as_utf8() 99 } else if (c >= 0x80) { in ucs2_as_utf8() 103 dest[j++] = 0xc0 | (c & 0x7c0) >> 6; in ucs2_as_utf8() [all …]
|
D | string_helpers.c | 303 static bool escape_passthrough(unsigned char c, char **dst, char *end) in escape_passthrough() argument 308 *out = c; in escape_passthrough() 313 static bool escape_space(unsigned char c, char **dst, char *end) in escape_space() argument 318 switch (c) { in escape_space() 349 static bool escape_special(unsigned char c, char **dst, char *end) in escape_special() argument 354 switch (c) { in escape_special() 382 static bool escape_null(unsigned char c, char **dst, char *end) in escape_null() argument 386 if (c) in escape_null() 400 static bool escape_octal(unsigned char c, char **dst, char *end) in escape_octal() argument 408 *out = ((c >> 6) & 0x07) + '0'; in escape_octal() [all …]
|
D | strncpy_from_user.c | 38 unsigned long c, data, mask; in do_strncpy_from_user() local 41 unsafe_get_user(c, (unsigned long __user *)(src+res), byte_at_a_time); in do_strncpy_from_user() 54 if (has_zero(c, &data, &constants)) { in do_strncpy_from_user() 55 data = prep_zero_mask(c, data, &constants); in do_strncpy_from_user() 58 *(unsigned long *)(dst+res) = c & mask; in do_strncpy_from_user() 62 *(unsigned long *)(dst+res) = c; in do_strncpy_from_user() 70 char c; in do_strncpy_from_user() local 72 unsafe_get_user(c,src+res, efault); in do_strncpy_from_user() 73 dst[res] = c; in do_strncpy_from_user() 74 if (!c) in do_strncpy_from_user()
|
D | bch.c | 105 unsigned int c[]; /* polynomial terms */ member 114 unsigned int c[2]; member 458 pelp->c[0] = 1; in compute_error_locator_polynomial() 460 elp->c[0] = 1; in compute_error_locator_polynomial() 470 if (pelp->c[j]) { in compute_error_locator_polynomial() 471 l = a_log(bch, pelp->c[j]); in compute_error_locator_polynomial() 472 elp->c[j+k] ^= a_pow(bch, tmp+l); in compute_error_locator_polynomial() 488 d ^= gf_mul(bch, elp->c[j], syn[2*i+2-j]); in compute_error_locator_polynomial() 504 int rem, c, r, p, k, param[BCH_MAX_M]; in solve_linear_system() local 510 for (c = 0; c < m; c++) { in solve_linear_system() [all …]
|
D | test_meminit.c | 199 struct kmem_cache *c; in do_kmem_cache_size() local 205 c = kmem_cache_create("test_cache", size, 1, in do_kmem_cache_size() 213 ret = kmem_cache_alloc_bulk(c, alloc_mask, BULK_SIZE, bulk_array); in do_kmem_cache_size() 220 kmem_cache_free_bulk(c, ret, bulk_array); in do_kmem_cache_size() 224 buf = kmem_cache_alloc(c, alloc_mask); in do_kmem_cache_size() 230 kmem_cache_free(c, buf); in do_kmem_cache_size() 247 kmem_cache_free(c, buf); in do_kmem_cache_size() 261 kmem_cache_destroy(c); in do_kmem_cache_size() 273 struct kmem_cache *c; in do_kmem_cache_rcu_persistent() local 279 c = kmem_cache_create("test_cache", size, size, SLAB_TYPESAFE_BY_RCU, in do_kmem_cache_rcu_persistent() [all …]
|
D | bootconfig.c | 498 int c, quotes = 0; in __xbc_parse_value() local 510 while ((c = *++p)) { in __xbc_parse_value() 511 if (!isprint(c) && !isspace(c)) in __xbc_parse_value() 514 if (c != quotes) in __xbc_parse_value() 519 c = *p; in __xbc_parse_value() 520 if (c && !strchr(",;\n#}", c)) in __xbc_parse_value() 526 if (strchr(",;\n#}", c)) { in __xbc_parse_value() 534 if (c == '#') { in __xbc_parse_value() 536 c = '\n'; /* A comment must be treated as a newline */ in __xbc_parse_value() 541 return c; in __xbc_parse_value() [all …]
|
D | string.c | 206 unsigned long c, data; in strscpy() local 208 c = read_word_at_a_time(src+res); in strscpy() 209 if (has_zero(c, &data, &constants)) { in strscpy() 210 data = prep_zero_mask(c, data, &constants); in strscpy() 212 *(unsigned long *)(dest+res) = c & zero_bytemask(data); in strscpy() 215 *(unsigned long *)(dest+res) = c; in strscpy() 222 char c; in strscpy() local 224 c = src[res]; in strscpy() 225 dest[res] = c; in strscpy() 226 if (!c) in strscpy() [all …]
|
D | glob.c | 56 unsigned char c = *str++; in glob_match() local 61 if (c == '\0') in glob_match() 95 match |= (a <= c && c <= b); in glob_match() 108 if (c == d) { in glob_match() 114 if (c == '\0' || !back_pat) in glob_match()
|
D | strnlen_user.c | 27 unsigned long c; in do_strnlen_user() local 37 unsafe_get_user(c, (unsigned long __user *)src, efault); in do_strnlen_user() 38 c |= aligned_byte_mask(align); in do_strnlen_user() 42 if (has_zero(c, &data, &constants)) { in do_strnlen_user() 43 data = prep_zero_mask(c, data, &constants); in do_strnlen_user() 52 unsafe_get_user(c, (unsigned long __user *)(src+res), efault); in do_strnlen_user()
|
D | build_OID_registry | 58 my $c = $components[$loop]; 61 my $tmp = ($c == 0) ? 0 : int(log($c)/log(2)); 98 my $c = $components[$loop]; 101 my $tmp = ($c == 0) ? 0 : int(log($c)/log(2)); 105 push @octets, (($c >> $tmp * 7) & 0x7f) | 0x80; 107 push @octets, $c & 0x7f;
|
D | crc4.c | 25 uint8_t crc4(uint8_t c, uint64_t x, int bits) in crc4() argument 37 c = crc4_tab[c ^ ((x >> i) & 0xf)]; in crc4() 39 return c; in crc4()
|
D | gen_crc64table.c | 25 uint64_t i, j, c, crc; in generate_crc64_table() local 29 c = i << 56; in generate_crc64_table() 32 if ((crc ^ c) & 0x8000000000000000ULL) in generate_crc64_table() 36 c <<= 1; in generate_crc64_table()
|
D | inflate.c | 353 unsigned c[BMAX+1]; /* bit length count table */ in huft_build() member 358 unsigned *c, *v, *x; in huft_build() local 368 c = stk->c; in huft_build() 374 memzero(stk->c, sizeof(stk->c)); in huft_build() 379 c[*p]++; /* assume all entries <= BMAX */ in huft_build() 382 if (c[0] == n) /* null input--all zero length codes */ in huft_build() 395 if (c[j]) in huft_build() 401 if (c[i]) in huft_build() 412 if ((y -= c[j]) < 0) { in huft_build() 416 if ((y -= c[i]) < 0) { in huft_build() [all …]
|
D | sort.c | 228 size_t b, c, d; in sort_r() local 249 for (b = a; c = 2*b + size, (d = c + size) < n;) in sort_r() 250 b = do_cmp(base + c, base + d, cmp_func, priv) >= 0 ? c : d; in sort_r() 252 b = c; in sort_r() 257 c = b; /* Where "a" belongs */ in sort_r() 260 do_swap(base + b, base + c, size, swap_func); in sort_r()
|
D | test_fpu.c | 30 volatile double a, b, c, d, e, f, g; in test_fpu() local 34 c = 1e-310; in test_fpu() 43 f = b / c; in test_fpu() 46 g = a + c * f; in test_fpu()
|
/lib/fonts/ |
D | fonts.c | 112 int i, c, cc, res; in get_default_font() local 119 c = f->pref; in get_default_font() 123 c = 100; in get_default_font() 127 c = 100; in get_default_font() 131 c += 1000; in get_default_font() 136 c += 20 - res; in get_default_font() 140 c += 1000; in get_default_font() 142 if (c > cc) { in get_default_font() 143 cc = c; in get_default_font()
|
/lib/reed_solomon/ |
D | test_rslib.c | 77 uint16_t *c; /* sent codeword */ member 104 kfree(ws->c); in free_ws() 118 ws->c = kmalloc_array(2 * (nn + nroots), in alloc_ws() 120 if (!ws->c) in alloc_ws() 123 ws->r = ws->c + nn; in alloc_ws() 159 uint16_t *c = ws->c; in get_rcw_we() local 167 c[i] = prandom_u32() & nn; in get_rcw_we() 169 memset(c + dlen, 0, nroots * sizeof(*c)); in get_rcw_we() 170 encode_rs16(rs, c, dlen, c + dlen, 0); in get_rcw_we() 173 memcpy(r, c, len * sizeof(*r)); in get_rcw_we() [all …]
|
/lib/zstd/ |
D | fse_compress.c | 58 #define FSE_STATIC_ASSERT(c) \ argument 60 enum { FSE_static_assert = 1 / (int)(!!(c)) }; \ 385 U32 c = cached; in FSE_count_parallel_wksp() local 388 Counting1[(BYTE)c]++; in FSE_count_parallel_wksp() 389 Counting2[(BYTE)(c >> 8)]++; in FSE_count_parallel_wksp() 390 Counting3[(BYTE)(c >> 16)]++; in FSE_count_parallel_wksp() 391 Counting4[c >> 24]++; in FSE_count_parallel_wksp() 392 c = cached; in FSE_count_parallel_wksp() 395 Counting1[(BYTE)c]++; in FSE_count_parallel_wksp() 396 Counting2[(BYTE)(c >> 8)]++; in FSE_count_parallel_wksp() [all …]
|