Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 41) sorted by relevance

12

/lib/mpi/
Dmpi-inline.h40 mpi_limb_t x; in mpihelp_add_1() local
42 x = *s1_ptr++; in mpihelp_add_1()
43 s2_limb += x; in mpihelp_add_1()
45 if (s2_limb < x) { /* sum is less than the left operand: handle carry */ in mpihelp_add_1()
47 x = *s1_ptr++ + 1; /* add carry */ in mpihelp_add_1()
48 *res_ptr++ = x; /* and store */ in mpihelp_add_1()
49 if (x) /* not 0 (no overflow): we can stop */ in mpihelp_add_1()
83 mpi_limb_t x; in mpihelp_sub_1() local
85 x = *s1_ptr++; in mpihelp_sub_1()
86 s2_limb = x - s2_limb; in mpihelp_sub_1()
[all …]
Dgeneric_mpih-sub1.c36 mpi_limb_t x, y, cy; in mpihelp_sub_n() local
51 x = s1_ptr[j]; in mpihelp_sub_n()
54 y = x - y; /* main subtract */ in mpihelp_sub_n()
55 cy += y > x; /* get out carry from the subtract, combine */ in mpihelp_sub_n()
Dgeneric_mpih-add1.c37 mpi_limb_t x, y, cy; in mpihelp_add_n() local
52 x = s1_ptr[j]; in mpihelp_add_n()
55 y += x; /* add other addend */ in mpihelp_add_n()
56 cy += y < x; /* get out carry from that add, combine */ in mpihelp_add_n()
Dgeneric_mpih-mul3.c39 mpi_limb_t x; in mpihelp_submul_1() local
54 x = res_ptr[j]; in mpihelp_submul_1()
55 prod_low = x - prod_low; in mpihelp_submul_1()
56 cy_limb += prod_low > x ? 1 : 0; in mpihelp_submul_1()
Dgeneric_mpih-mul2.c39 mpi_limb_t x; in mpihelp_addmul_1() local
54 x = res_ptr[j]; in mpihelp_addmul_1()
55 prod_low = x + prod_low; in mpihelp_addmul_1()
56 cy_limb += prod_low < x ? 1 : 0; in mpihelp_addmul_1()
/lib/
Dchecksum.c41 static inline unsigned short from32to16(unsigned int x) in from32to16() argument
44 x = (x & 0xffff) + (x >> 16); in from32to16()
46 x = (x & 0xffff) + (x >> 16); in from32to16()
47 return x; in from32to16()
184 static inline u32 from64to32(u64 x) in from64to32() argument
187 x = (x & 0xffffffff) + (x >> 32); in from64to32()
189 x = (x & 0xffffffff) + (x >> 32); in from64to32()
190 return (u32)x; in from64to32()
Dbitrev.c45 u16 bitrev16(u16 x) in bitrev16() argument
47 return (bitrev8(x & 0xff) << 8) | bitrev8(x >> 8); in bitrev16()
55 u32 bitrev32(u32 x) in bitrev32() argument
57 return (bitrev16(x & 0xffff) << 16) | bitrev16(x >> 16); in bitrev32()
Dint_sqrt.c17 unsigned long int_sqrt(unsigned long x) in int_sqrt() argument
21 if (x <= 1) in int_sqrt()
22 return x; in int_sqrt()
29 if (x >= b) { in int_sqrt()
30 x -= b; in int_sqrt()
Dlocking-selftest.c178 #define L(x) raw_spin_lock(&lock_##x) argument
179 #define U(x) raw_spin_unlock(&lock_##x) argument
180 #define LU(x) L(x); U(x) argument
181 #define SI(x) raw_spin_lock_init(&lock_##x) argument
183 #define WL(x) write_lock(&rwlock_##x) argument
184 #define WU(x) write_unlock(&rwlock_##x) argument
185 #define WLU(x) WL(x); WU(x) argument
187 #define RL(x) read_lock(&rwlock_##x) argument
188 #define RU(x) read_unlock(&rwlock_##x) argument
189 #define RLU(x) RL(x); RU(x) argument
[all …]
Dearlycpio.c74 unsigned char c, x; in find_cpio_data() local
96 x = c - '0'; in find_cpio_data()
97 if (x < 10) { in find_cpio_data()
98 v += x; in find_cpio_data()
102 x = (c | 0x20) - 'a'; in find_cpio_data()
103 if (x < 6) { in find_cpio_data()
104 v += x + 10; in find_cpio_data()
Dhalfmd4.c6 #define F(x, y, z) ((z) ^ ((x) & ((y) ^ (z)))) argument
7 #define G(x, y, z) (((x) & (y)) + (((x) ^ (y)) & (z))) argument
8 #define H(x, y, z) ((x) ^ (y) ^ (z)) argument
16 #define ROUND(f, a, b, c, d, x, s) \ argument
17 (a += f(b, c, d) + x, a = (a << s) | (a >> (32 - s)))
Dcmdline.c27 int x, inc_counter, upper_range; in get_range() local
32 for (x = *pint; n && x < upper_range; x++, n--) in get_range()
33 *pint++ = x; in get_range()
Dmd5.c5 #define F1(x, y, z) (z ^ (x & (y ^ z))) argument
6 #define F2(x, y, z) F1(z, x, y) argument
7 #define F3(x, y, z) (x ^ y ^ z) argument
8 #define F4(x, y, z) (y ^ (x | ~z)) argument
10 #define MD5STEP(f, w, x, y, z, in, s) \ argument
11 (w += f(x, y, z) + in, w = (w<<s | w>>(32-s)) + x)
Dcrc32.c36 # define tole(x) ((__force u32) cpu_to_le32(x)) argument
38 # define tole(x) (x) argument
42 # define tobe(x) ((__force u32) cpu_to_be32(x)) argument
44 # define tobe(x) (x) argument
60 # define DO_CRC(x) crc = t0[(crc ^ (x)) & 255] ^ (crc >> 8) argument
66 # define DO_CRC(x) crc = t0[((crc >> 24) ^ (x)) & 255] ^ (crc << 8)
213 static u32 __attribute_const__ gf2_multiply(u32 x, u32 y, u32 modulus) argument
215 u32 product = x & 1 ? y : 0;
220 x >>= 1;
221 product ^= x & 1 ? y : 0;
Dextable.c26 const struct exception_table_entry *x = a, *y = b; in cmp_ex() local
29 if (x->insn > y->insn) in cmp_ex()
31 if (x->insn < y->insn) in cmp_ex()
Dbch.c281 static inline int parity(unsigned int x) in parity() argument
287 x ^= x >> 1; in parity()
288 x ^= x >> 2; in parity()
289 x = (x & 0x11111111U) * 0x11111111U; in parity()
290 return (x >> 28) & 1; in parity()
324 static inline int a_log(struct bch_control *bch, unsigned int x) in a_log() argument
326 return bch->a_log_tab[x]; in a_log()
329 static inline int a_ilog(struct bch_control *bch, unsigned int x) in a_ilog() argument
331 return mod_s(bch, GF_N(bch)-bch->a_log_tab[x]); in a_ilog()
1053 unsigned int i, x = 1; in build_gf_tables() local
[all …]
Dsha1.c37 #define setW(x, val) (*(volatile __u32 *)&W(x) = (val)) argument
39 #define setW(x, val) do { W(x) = (val); __asm__("":::"memory"); } while (0) argument
41 #define setW(x, val) (W(x) = (val)) argument
45 #define W(x) (array[(x)&15]) argument
Dinflate.c1 #define DEBG(x) argument
2 #define DEBG1(x) argument
355 unsigned x[BMAX+1]; /* bit offsets, then code stack */ in huft_build() member
357 unsigned *c, *v, *x; in huft_build() local
369 x = stk->x; in huft_build()
424 x[1] = j = 0; in huft_build()
425 p = c + 1; xp = x + 2; in huft_build()
436 v[x[j]++] = i; in huft_build()
438 n = x[g]; /* set n to length of v */ in huft_build()
443 x[0] = i = 0; /* first Huffman code is zero */ in huft_build()
[all …]
Ddecompress_unxz.c179 const uint8_t *x = a; in memeq() local
184 if (x[i] != y[i]) in memeq()
255 void (*error)(char *x)) in unxz() argument
/lib/raid6/
Dneon.uc30 #define NBYTES(x) ((unative_t){x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x})
Daltivec.uc40 #define NBYTES(x) ((vector signed char) {x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x})
Dx86.h38 #define __aligned(x) __attribute__((aligned(x))) argument
Dint.uc29 # define NBYTES(x) ((x) * 0x0101010101010101UL)
35 # define NBYTES(x) ((x) * 0x01010101U)
113 "int" NSTRING "x$#",
/lib/lz4/
Dlz4defs.h31 #define A16(x) (((U16_S *)(x))->v) argument
32 #define A32(x) (((U32_S *)(x))->v) argument
33 #define A64(x) (((U64_S *)(x))->v) argument
48 #define A64(x) get_unaligned((u64 *)&(((U16_S *)(x))->v)) argument
49 #define A32(x) get_unaligned((u32 *)&(((U16_S *)(x))->v)) argument
50 #define A16(x) get_unaligned((u16 *)&(((U16_S *)(x))->v)) argument
/lib/lzo/
Dlzo1x_decompress_safe.c22 #define HAVE_IP(x) ((size_t)(ip_end - ip) >= (size_t)(x)) argument
23 #define HAVE_OP(x) ((size_t)(op_end - op) >= (size_t)(x)) argument
24 #define NEED_IP(x) if (!HAVE_IP(x)) goto input_overrun argument
25 #define NEED_OP(x) if (!HAVE_OP(x)) goto output_overrun argument

12