Home
last modified time | relevance | path

Searched full:carry (Results 1 – 25 of 1018) sorted by relevance

12345678910>>...41

/openbmc/linux/net/ipv6/
H A Dip6_checksum.c13 int carry; in csum_ipv6_magic() local
19 carry = (sum < (__force u32)saddr->s6_addr32[0]); in csum_ipv6_magic()
20 sum += carry; in csum_ipv6_magic()
23 carry = (sum < (__force u32)saddr->s6_addr32[1]); in csum_ipv6_magic()
24 sum += carry; in csum_ipv6_magic()
27 carry = (sum < (__force u32)saddr->s6_addr32[2]); in csum_ipv6_magic()
28 sum += carry; in csum_ipv6_magic()
31 carry = (sum < (__force u32)saddr->s6_addr32[3]); in csum_ipv6_magic()
32 sum += carry; in csum_ipv6_magic()
35 carry = (sum < (__force u32)daddr->s6_addr32[0]); in csum_ipv6_magic()
[all …]
/openbmc/linux/arch/alpha/lib/
H A Dcsum_partial_copy.c88 unsigned long carry = 0; in csum_partial_cfu_aligned() local
94 checksum += carry; in csum_partial_cfu_aligned()
98 carry = checksum < word; in csum_partial_cfu_aligned()
103 checksum += carry; in csum_partial_cfu_aligned()
112 carry = checksum < word; in csum_partial_cfu_aligned()
114 checksum += carry; in csum_partial_cfu_aligned()
130 unsigned long word, carry; in csum_partial_cfu_dest_aligned() local
136 carry = 0; in csum_partial_cfu_dest_aligned()
146 checksum += carry; in csum_partial_cfu_dest_aligned()
152 carry = checksum < word; in csum_partial_cfu_dest_aligned()
[all …]
H A Dchecksum.c77 * ways to do the carry, but this is reasonable.
110 unsigned long carry = 0; in do_csum() local
115 result += carry; in do_csum()
117 carry = (w > result); in do_csum()
119 result += carry; in do_csum()
167 /* add in old sum, and carry.. */ in csum_partial()
/openbmc/qemu/include/crypto/
H A Dclmul.h2 * Carry-less multiply operations.
17 * Perform eight 8x8->8 carry-less multiplies.
24 * Perform four 8x8->16 carry-less multiplies.
32 * Perform four 8x8->16 carry-less multiplies.
40 * Perform four 8x8->16 carry-less multiplies.
47 * Perform two 16x16->32 carry-less multiplies.
55 * Perform two 16x16->32 carry-less multiplies.
63 * Perform a 32x32->64 carry-less multiply.
70 * Perform a 64x64->128 carry-less multiply.
/openbmc/linux/crypto/
H A Decc.c255 /* Computes result = in << c, returning carry. Can modify in place
261 u64 carry = 0; in vli_lshift() local
267 result[i] = (temp << shift) | carry; in vli_lshift()
268 carry = temp >> (64 - shift); in vli_lshift()
271 return carry; in vli_lshift()
278 u64 carry = 0; in vli_rshift1() local
284 *vli = (temp >> 1) | carry; in vli_rshift1()
285 carry = temp << 63; in vli_rshift1()
289 /* Computes result = left + right, returning carry. Can modify in place. */
293 u64 carry = 0; in vli_add() local
[all …]
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Dpio_copy.c128 * Handle carry bytes using shifts and masks.
130 * NOTE: the value the unused portion of carry is expected to always be zero.
140 * "merge" shift - bit shift used to merge with carry bytes. Input is
176 * of pbuf->carry. Other bytes are left as-is. Any previous
177 * value in pbuf->carry is lost.
186 pbuf->carry.val64 = 0; in read_low_bytes()
187 jcopy(&pbuf->carry.val8[0], from, nbytes); in read_low_bytes()
192 * Read nbytes bytes from "from" and put them at the end of pbuf->carry.
193 * It is expected that the extra read does not overfill carry.
202 jcopy(&pbuf->carry.val8[pbuf->carry_bytes], from, nbytes); in read_extra_bytes()
[all …]
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-grpcio/
H A D0001-crypto-use-_Generic-only-if-defined-__cplusplus.patch25 1166 | return CRYPTO_GENERIC_ADDC(x, y, carry, out_carry);
31 1166 | return CRYPTO_GENERIC_ADDC(x, y, carry, out_carry);
34 1161 | unsigned long long: __builtin_addcll))((x), (y), (carry), (out_carry))
37 1166 | return CRYPTO_GENERIC_ADDC(x, y, carry, out_carry);
43 1166 | return CRYPTO_GENERIC_ADDC(x, y, carry, out_carry);
58 // CRYPTO_addc_* returns |x + y + carry|, and sets |*out_carry| to the carry
59 // bit. |carry| must be zero or one.
63 #define CRYPTO_GENERIC_ADDC(x, y, carry, out_carry) \
65 @@ -1258,7 +1258,7 @@ static inline uint64_t CRYPTO_addc_u64(uint64_t x, uint64_t y, uint64_t carry,
/openbmc/linux/arch/sparc/lib/
H A Dudivdi3.S26 addx %i0,%i0,%i0 ! so this cannot give carry
38 ! Got carry from n. Subtract next step to cancel this carry.
64 addx %o4,%o4,%o4 ! so this cannot give carry
76 ! Got carry from n. Subtract next step to cancel this carry.
90 addx %i0,%i0,%i0 ! so this cannot give carry
102 ! Got carry from n. Subtract next step to cancel this carry.
169 addx %o4,%o4,%o4 ! so this cannot give carry
181 ! Got carry from n. Subtract next step to cancel this carry.
H A Ddivdi3.S50 addx %i0,%i0,%i0 ! so this cannot give carry
62 ! Got carry from n. Subtract next step to cancel this carry.
86 addx %g3,%g3,%g3 ! so this cannot give carry
98 ! Got carry from n. Subtract next step to cancel this carry.
110 addx %i0,%i0,%i0 ! so this cannot give carry
122 ! Got carry from n. Subtract next step to cancel this carry.
185 addx %o2,%o2,%o2 ! so this cannot give carry
197 ! Got carry from n. Subtract next step to cancel this carry.
/openbmc/linux/arch/mips/include/asm/
H A Dchecksum.h102 int carry; in ip_fast_csum() local
106 carry = (csum < word[1]); in ip_fast_csum()
107 csum += carry; in ip_fast_csum()
110 carry = (csum < word[2]); in ip_fast_csum()
111 csum += carry; in ip_fast_csum()
114 carry = (csum < word[3]); in ip_fast_csum()
115 csum += carry; in ip_fast_csum()
120 carry = (csum < *word); in ip_fast_csum()
121 csum += carry; in ip_fast_csum()
240 " addu %0, $1 # Add final carry\n" in csum_ipv6_magic()
/openbmc/linux/lib/
H A Dchecksum.c41 /* add up carry.. */ in from32to16()
71 unsigned int carry = 0; in do_csum() local
75 result += carry; in do_csum()
77 carry = (w > result); in do_csum()
79 result += carry; in do_csum()
130 /* add in old sum, and carry.. */ in csum_partial()
153 /* add up carry.. */ in from64to32()
/openbmc/linux/tools/memory-model/
H A Dlinux-kernel.bell61 let carry-srcu-data = (data ; [~ Srcu-unlock] ; rf)*
62 let srcu-rscs = ([Srcu-lock] ; carry-srcu-data ; data ; [Srcu-unlock]) & loc
81 let carry-dep = (data ; [~ Srcu-unlock] ; rfi)*
82 let addr = carry-dep ; addr
83 let ctrl = carry-dep ; ctrl
84 let data = carry-dep ; data
/openbmc/linux/arch/x86/mm/
H A Dphysaddr.c19 /* use the carry flag to determine if x was < __START_KERNEL_map */ in __phys_addr()
27 /* carry flag will be set if starting x was >= PAGE_OFFSET */ in __phys_addr()
39 /* only check upper bounds since lower bounds will trigger carry */ in __phys_addr_symbol()
51 /* use the carry flag to determine if x was < __START_KERNEL_map */ in __virt_addr_valid()
60 /* carry flag will be set if starting x was >= PAGE_OFFSET */ in __virt_addr_valid()
/openbmc/linux/arch/parisc/include/asm/
H A Dchecksum.h67 a possible carry from adding the two 16-bit halves, in csum_fold()
68 will carry from the lower half into the upper half, in csum_fold()
125 ** But add insn's get serialized waiting for the carry bit. in csum_ipv6_magic()
138 " add,dc %3, %0, %0\n" /* fold in proto+len | carry bit */ in csum_ipv6_magic()
141 " add,dc %4, %0, %0\n" /* fold into 32-bits, plus carry */ in csum_ipv6_magic()
142 " addc 0, %0, %0\n" /* add final carry */ in csum_ipv6_magic()
148 ** Insn stream is serialized on the carry bit here too. in csum_ipv6_magic()
168 " addc 0, %0, %0\n" /* add carry */ in csum_ipv6_magic()
/openbmc/linux/arch/ia64/lib/
H A Dcsum_partial_copy.c29 /* add up carry.. */ in from64to16()
66 unsigned long carry = 0; in do_csum_c() local
71 result += carry; in do_csum_c()
73 carry = (w > result); in do_csum_c()
75 result += carry; in do_csum_c()
/openbmc/linux/arch/m68k/fpsp040/
H A Dsrem_mod.S206 clrl %d6 | ...D6 := carry <- 0
210 |..(Carry,D1,D2) is R
223 tstl %d6 | ...test carry bit
226 |..At this point carry = 0, R = (D1,D2), Y = (D4,D5)
240 |..If Carry is set, then Y < (Carry,D1,D2) < 2Y. Otherwise, Carry = 0
244 clrl %d6 | ...clear carry
248 |..At this point, Carry=0, R < Y. R = 2^(k-L)X - QY; k+j = L; j >= 0.
254 roxll #1,%d1 | ...hi(R) = 2hi(R) + carry
255 scs %d6 | ...set Carry if 2(R) overflows
258 |..At this point, R=(Carry,D1,D2) = 2^(k-L)X - QY, j+k=L, j >= 0, R < 2Y.
[all …]
/openbmc/linux/block/
H A Dblk-crypto.c135 * carry 1 into the next limb. Else the carry is 0. in bio_crypt_dun_increment()
161 unsigned int carry = bytes >> bc->bc_key->data_unit_size_bits; in bio_crypt_dun_is_contiguous() local
164 if (bc->bc_dun[i] + carry != next_dun[i]) in bio_crypt_dun_is_contiguous()
168 * carry 1 into the next limb. Else the carry is 0. in bio_crypt_dun_is_contiguous()
170 if ((bc->bc_dun[i] + carry) < carry) in bio_crypt_dun_is_contiguous()
171 carry = 1; in bio_crypt_dun_is_contiguous()
173 carry = 0; in bio_crypt_dun_is_contiguous()
177 return carry == 0; in bio_crypt_dun_is_contiguous()
/openbmc/qemu/tests/tcg/sh4/
H A Dtest-addv.c7 static void addv(const int a, const int b, const int res, const int carry) in addv() argument
15 if (c != carry || o != res) { in addv()
16 printf("ADDV %d, %d = %d/%d [T = %d/%d]\n", a, b, o, res, c, carry); in addv()
H A Dtest-subv.c7 static void subv(const int a, const int b, const int res, const int carry) in subv() argument
15 if (c != carry || o != res) { in subv()
16 printf("SUBV %d, %d = %d/%d [T = %d/%d]\n", a, b, o, res, c, carry); in subv()
/openbmc/linux/lib/crypto/mpi/
H A Dmpi-inline.h32 if (s2_limb < x) { /* sum is less than the left operand: handle carry */ in mpihelp_add_1()
34 x = *s1_ptr++ + 1; /* add carry */ in mpihelp_add_1()
39 return 1; /* return carry (size of s1 to small) */ in mpihelp_add_1()
48 return 0; /* no carry */ in mpihelp_add_1()
H A Dgeneric_mpih-add1.c40 y += cy; /* add previous carry to one addend */ in mpihelp_add_n()
41 cy = y < cy; /* get out carry from that addition */ in mpihelp_add_n()
43 cy += y < x; /* get out carry from that add, combine */ in mpihelp_add_n()
H A Dgeneric_mpih-sub1.c39 y += cy; /* add previous carry to subtrahend */ in mpihelp_sub_n()
40 cy = y < cy; /* get out carry from that addition */ in mpihelp_sub_n()
42 cy += y > x; /* get out carry from the subtract, combine */ in mpihelp_sub_n()
/openbmc/linux/arch/hexagon/lib/
H A Dchecksum.c22 #define CARRY(x, y) ((0x0002ULL*x)<<y) macro
27 #define VR_CARRY(a, b, c, d) (CARRY(a, 48) + CARRY(b, 32) + CARRY(c, 16) \
28 + CARRY(d, 0))
81 * ways to do the carry, but this is reasonable.
/openbmc/linux/arch/x86/crypto/
H A Dcurve25519-x86_64.c42 * and returns the carry (if any) */
48 /* Clear registers to propagate the carry bit */ in add_scalar()
65 /* Return the carry bit in a register */ in add_scalar()
90 /* Step 1: Compute carry*38 */ in fadd()
95 /* Step 2: Add carry*38 to the original sum */ in fadd()
105 /* Step 3: Fold the carry bit back in; guaranteed not to carry at this point */ in fadd()
131 /* Step 1: Compute carry*38 */ in fsub()
136 /* Step 2: Subtract carry*38 from the original difference */ in fsub()
142 /* Step 3: Fold the carry bit back in; guaranteed not to carry at this point */ in fsub()
252 /* Step 1: Compute dst + carry == tmp_hi * 38 + tmp_lo */ in fmul()
[all …]
/openbmc/linux/arch/nios2/include/asm/
H A Dchecksum.h47 "add %0, %0, r8\n" /* add carry */ in csum_tcpudp_nofold()
50 "add %0, %0, r8\n" /* add carry */ in csum_tcpudp_nofold()
53 "add %0, %0, r8\n" /* add carry */ in csum_tcpudp_nofold()

12345678910>>...41