Home
last modified time | relevance | path

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

12345678910>>...44

/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/multiprecision/cpp_int/
H A Dmultiply.hpp32 double_limb_type carry = 0; in eval_multiply() local
38 carry += static_cast<double_limb_type>(*pa) * static_cast<double_limb_type>(val); in eval_multiply()
40 *p = static_cast<limb_type>(carry & ~static_cast<limb_type>(0)); in eval_multiply()
42 *p = static_cast<limb_type>(carry); in eval_multiply()
44 carry >>= cpp_int_backend<MinBits1, MaxBits1, SignType1, Checked1, Allocator1>::limb_bits; in eval_multiply()
47 if(carry) in eval_multiply()
52 result.limbs()[i] = static_cast<limb_type>(carry); in eval_multiply()
134 double_limb_type carry = 0; in eval_multiply() local
145 || ((std::numeric_limits<double_limb_type>::max)() - carry in eval_multiply()
149 carry += static_cast<double_limb_type>(pa[i]) * static_cast<double_limb_type>(pb[j]); in eval_multiply()
[all …]
H A Dadd.hpp27 double_limb_type carry = 0; in add_unsigned() local
51 carry += static_cast<double_limb_type>(*pa) + static_cast<double_limb_type>(*pb); in add_unsigned()
53 *pr = static_cast<limb_type>(carry & ~static_cast<limb_type>(0)); in add_unsigned()
55 *pr = static_cast<limb_type>(carry); in add_unsigned()
57 carry >>= CppInt1::limb_bits; in add_unsigned()
64 if(!carry) in add_unsigned()
74 carry += static_cast<double_limb_type>(*pa); in add_unsigned()
76 *pr = static_cast<limb_type>(carry & ~static_cast<limb_type>(0)); in add_unsigned()
78 *pr = static_cast<limb_type>(carry); in add_unsigned()
80 carry >>= CppInt1::limb_bits; in add_unsigned()
[all …]
H A Dbitwise.hpp95 double_limb_type carry = 1; in bitwise_op() local
98 carry += static_cast<double_limb_type>(~po[i]); in bitwise_op()
99 pr[i] = op(pr[i], static_cast<limb_type>(carry)); in bitwise_op()
100 carry >>= CppInt1::limb_bits; in bitwise_op()
104 carry += static_cast<double_limb_type>(~limb_type(0)); in bitwise_op()
105 pr[i] = op(pr[i], static_cast<limb_type>(carry)); in bitwise_op()
106 carry >>= CppInt1::limb_bits; in bitwise_op()
109 carry += static_cast<double_limb_type>(~limb_type(0)); in bitwise_op()
110 next_limb = op(limb_type(0), static_cast<limb_type>(carry)); in bitwise_op()
118 double_limb_type carry = 1; in bitwise_op() local
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/arch/alpha/lib/
H A Dcsum_partial_copy.c87 unsigned long carry = 0; in csum_partial_cfu_aligned() local
93 checksum += carry; in csum_partial_cfu_aligned()
97 carry = checksum < word; in csum_partial_cfu_aligned()
102 checksum += carry; in csum_partial_cfu_aligned()
111 carry = checksum < word; in csum_partial_cfu_aligned()
113 checksum += carry; in csum_partial_cfu_aligned()
129 unsigned long word, carry; in csum_partial_cfu_dest_aligned() local
135 carry = 0; in csum_partial_cfu_dest_aligned()
145 checksum += carry; in csum_partial_cfu_dest_aligned()
151 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()
/OK3568_Linux_fs/kernel/crypto/
H A Decc.c219 /* Computes result = in << c, returning carry. Can modify in place
225 u64 carry = 0; in vli_lshift() local
231 result[i] = (temp << shift) | carry; in vli_lshift()
232 carry = temp >> (64 - shift); in vli_lshift()
235 return carry; in vli_lshift()
242 u64 carry = 0; in vli_rshift1() local
248 *vli = (temp >> 1) | carry; in vli_rshift1()
249 carry = temp << 63; in vli_rshift1()
253 /* Computes result = left + right, returning carry. Can modify in place. */
257 u64 carry = 0; in vli_add() local
[all …]
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/hfi1/
H A Dpio_copy.c169 * Handle carry bytes using shifts and masks.
171 * NOTE: the value the unused portion of carry is expected to always be zero.
181 * "merge" shift - bit shift used to merge with carry bytes. Input is
217 * of pbuf->carry. Other bytes are left as-is. Any previous
218 * value in pbuf->carry is lost.
227 pbuf->carry.val64 = 0; in read_low_bytes()
228 jcopy(&pbuf->carry.val8[0], from, nbytes); in read_low_bytes()
233 * Read nbytes bytes from "from" and put them at the end of pbuf->carry.
234 * It is expected that the extra read does not overfill carry.
243 jcopy(&pbuf->carry.val8[pbuf->carry_bytes], from, nbytes); in read_extra_bytes()
[all …]
/OK3568_Linux_fs/kernel/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.
/OK3568_Linux_fs/kernel/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()
241 " addu %0, $1 # Add final carry\n" in csum_ipv6_magic()
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-armhf/include/opencv2/core/cuda/
H A Dsimd_functions.hpp101 s = s ^ r; // determine carry-ins for each bit position in vadd2()
102 s = s & 0x00010000; // carry-in to high word (= carry-out from low word) in vadd2()
103 r = r - s; // subtract out carry-out from low word in vadd2()
122 s = s ^ r; // determine carry-ins for each bit position in vsub2()
203 c = r | 0x80008000; // set msbs, to catch carry out in vseteq2()
225 c = r | 0x80008000; // set msbs, to catch carry out in vcmpeq2()
247 c = c & 0x80008000; // msb = carry-outs in vsetge2()
265 c = c & 0x80008000; // msb = carry-outs in vcmpge2()
284 c = c & 0x80008000; // msbs = carry-outs in vsetgt2()
302 c = c & 0x80008000; // msbs = carry-outs in vcmpgt2()
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-aarch64/include/opencv2/core/cuda/
H A Dsimd_functions.hpp101 s = s ^ r; // determine carry-ins for each bit position in vadd2()
102 s = s & 0x00010000; // carry-in to high word (= carry-out from low word) in vadd2()
103 r = r - s; // subtract out carry-out from low word in vadd2()
122 s = s ^ r; // determine carry-ins for each bit position in vsub2()
203 c = r | 0x80008000; // set msbs, to catch carry out in vseteq2()
225 c = r | 0x80008000; // set msbs, to catch carry out in vcmpeq2()
247 c = c & 0x80008000; // msb = carry-outs in vsetge2()
265 c = c & 0x80008000; // msb = carry-outs in vcmpge2()
284 c = c & 0x80008000; // msbs = carry-outs in vsetgt2()
302 c = c & 0x80008000; // msbs = carry-outs in vcmpgt2()
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/OpenCV-android-sdk/sdk/native/jni/include/opencv2/core/cuda/
H A Dsimd_functions.hpp101 s = s ^ r; // determine carry-ins for each bit position in vadd2()
102 s = s & 0x00010000; // carry-in to high word (= carry-out from low word) in vadd2()
103 r = r - s; // subtract out carry-out from low word in vadd2()
122 s = s ^ r; // determine carry-ins for each bit position in vsub2()
203 c = r | 0x80008000; // set msbs, to catch carry out in vseteq2()
225 c = r | 0x80008000; // set msbs, to catch carry out in vcmpeq2()
247 c = c & 0x80008000; // msb = carry-outs in vsetge2()
265 c = c & 0x80008000; // msb = carry-outs in vcmpge2()
284 c = c & 0x80008000; // msbs = carry-outs in vsetgt2()
302 c = c & 0x80008000; // msbs = carry-outs in vcmpgt2()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/math/tools/
H A Dseries.hpp111 result_type carry = 0; in kahan_sum_series() local
114 y = next_term - carry; in kahan_sum_series()
116 carry = t - result; in kahan_sum_series()
117 carry -= y; in kahan_sum_series()
136 result_type carry = 0; in kahan_sum_series() local
139 y = next_term - carry; in kahan_sum_series()
141 carry = t - result; in kahan_sum_series()
142 carry -= y; in kahan_sum_series()
/OK3568_Linux_fs/buildroot/dl/sox/git/src/
H A Ddownsample.c26 unsigned int carry; /* number of samples still to be discarded, member
55 t = min(p->carry, ilen); in flow()
56 p->carry -= t; in flow()
59 /* NB: either p->carry (usually) or ilen is now zero; hence, a in flow()
60 non-zero value of ilen implies p->carry == 0, and there is no in flow()
71 p->carry = p->factor - ilen; in flow()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/block/
H A Dblk-crypto.c127 * carry 1 into the next limb. Else the carry is 0. in bio_crypt_dun_increment()
153 unsigned int carry = bytes >> bc->bc_key->data_unit_size_bits; in bio_crypt_dun_is_contiguous() local
156 if (bc->bc_dun[i] + carry != next_dun[i]) in bio_crypt_dun_is_contiguous()
160 * carry 1 into the next limb. Else the carry is 0. in bio_crypt_dun_is_contiguous()
162 if ((bc->bc_dun[i] + carry) < carry) in bio_crypt_dun_is_contiguous()
163 carry = 1; in bio_crypt_dun_is_contiguous()
165 carry = 0; in bio_crypt_dun_is_contiguous()
169 return carry == 0; in bio_crypt_dun_is_contiguous()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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()
137 " add,dc %3, %0, %0\n" /* fold in proto+len | carry bit */ in csum_ipv6_magic()
141 " addc 0, %0, %0\n" /* add carry */ in csum_ipv6_magic()
147 ** Insn stream is serialized on the carry bit here too. in csum_ipv6_magic()
166 " addc %3, %0, %0\n" /* fold in proto+len, catch carry */ in csum_ipv6_magic()
/OK3568_Linux_fs/external/xserver/hw/xfree86/int10/
H A Dxf86int10.c706 X86_EFLAGS &= ~((unsigned long) 0x01); /* clear carry flag */ in int1A_handler()
717 X86_EFLAGS &= ~((unsigned long) 0x01); /* clear carry flag */ in int1A_handler()
723 X86_EFLAGS &= ~((unsigned long) 0x01); /* clear carry flag */ in int1A_handler()
729 X86_EFLAGS |= ((unsigned long) 0x01); /* set carry flag */ in int1A_handler()
739 X86_EFLAGS &= ~((unsigned long) 0x01); /* clear carry flag */ in int1A_handler()
746 X86_EFLAGS &= ~((unsigned long) 0x01); /* clear carry flag */ in int1A_handler()
752 X86_EFLAGS |= ((unsigned long) 0x01); /* set carry flag */ in int1A_handler()
762 X86_EFLAGS &= ~((unsigned long) 0x01); /* clear carry flag */ in int1A_handler()
766 X86_EFLAGS |= ((unsigned long) 0x01); /* set carry flag */ in int1A_handler()
776 X86_EFLAGS &= ~((unsigned long) 0x01); /* clear carry flag */ in int1A_handler()
[all …]
/OK3568_Linux_fs/kernel/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()
91 /* Step 1: Compute carry*38 */ in fadd()
96 /* Step 2: Add carry*38 to the original sum */ in fadd()
106 /* Step 3: Fold the carry bit back in; guaranteed not to carry at this point */ in fadd()
133 /* Step 1: Compute carry*38 */ in fsub()
138 /* Step 2: Substract carry*38 from the original difference */ in fsub()
144 /* Step 3: Fold the carry bit back in; guaranteed not to carry at this point */ in fsub()
201 /* Step 1: Compute dst + carry == tmp_hi * 38 + tmp_lo */ in fmul()
[all …]
/OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/
H A Daes_xts.c49 unsigned int carry,res; in aes_xts128_encrypt() local
52 carry = (unsigned int)(tweak.u[0] >> 63); in aes_xts128_encrypt()
54 tweak.u[1] = (tweak.u[1] << 1) | carry; in aes_xts128_encrypt()
85 unsigned int carry,res; in aes_xts128_encrypt() local
88 carry = (unsigned int)(tweak.u[0] >> 63); in aes_xts128_encrypt()
90 tweak1.u[1] = (tweak.u[1] << 1) | carry; in aes_xts128_encrypt()

12345678910>>...44