| /OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/ |
| H A D | sm4_xts.c | 48 unsigned int carry,res; in aes_xts128_encrypt() local 51 carry = (unsigned int)(tweak.u[0] >> 63); in aes_xts128_encrypt() 53 tweak.u[1] = (tweak.u[1] << 1) | carry; in aes_xts128_encrypt() 84 unsigned int carry,res; in aes_xts128_encrypt() local 87 carry = (unsigned int)(tweak.u[0] >> 63); in aes_xts128_encrypt() 89 tweak1.u[1] = (tweak.u[1] << 1) | carry; in aes_xts128_encrypt()
|
| /OK3568_Linux_fs/kernel/lib/mpi/ |
| H A D | mpi-inline.h | 32 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 D | generic_mpih-add1.c | 40 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 D | generic_mpih-sub1.c | 39 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()
|
| /OK3568_Linux_fs/kernel/arch/hexagon/lib/ |
| H A D | checksum.c | 22 #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.
|
| /OK3568_Linux_fs/kernel/arch/sparc/lib/ |
| H A D | checksum_32.S | 50 addx %g0, %o2, %o2 ! add in final carry 57 addx %g0, %o2, %o2 ! add in final carry 74 addx %g0, %o2, %o0 ! add final carry into retval 116 andcc %o1, 0x70, %g1 ! clears carry flag too 121 addx %g0, %o2, %o2 ! sink in final carry 125 andcc %o1, 0x70, %g1 ! clears carry flag too 140 addx %g0, %o2, %o2 ! fetch final carry 336 addx %g0, %g7, %g7 ! add in last carry bit 343 andcc %g1, 0xf, %o3 ! get low bits of length (clears carry btw) 351 add %o1, %o2, %o1 ! advance dest ptr (carry is clear btw) [all …]
|
| /OK3568_Linux_fs/kernel/arch/alpha/lib/ |
| H A D | ev6-csum_ipv6_magic.S | 40 * add 4 ushorts, resulting in ushort/carry 41 * add carry bits + ushort --> ushort 42 * add carry bits + ushort --> ushort (in case the carry results in an overflow) 146 addq $1,$3,$0 # E : Final carry
|
| /OK3568_Linux_fs/kernel/arch/nios2/include/asm/ |
| H A D | checksum.h | 47 "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()
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/x86emu/ |
| H A D | prim_ops.c | 38 * Carry Chain Calculation 43 * flag is the XOR of the top two bits of the carry chain for an 46 * carry chain given the two operands and the result. 49 * bits, we can derive a formula for the carry chain. 246 /* calculate the carry chain SEE NOTE AT TOP. */ in adc_byte() 273 /* calculate the carry chain SEE NOTE AT TOP. */ in adc_word() 307 /* calculate the carry chain SEE NOTE AT TOP. */ in adc_long() 330 /* calculate the carry chain SEE NOTE AT TOP. */ in add_byte() 353 /* calculate the carry chain SEE NOTE AT TOP. */ in add_word() 381 /* calculate the carry chain SEE NOTE AT TOP. */ in add_long() [all …]
|
| /OK3568_Linux_fs/kernel/net/netfilter/ |
| H A D | nft_bitwise.c | 42 u32 carry = 0; in nft_bitwise_eval_lshift() local 45 dst[i - 1] = (src[i - 1] << shift) | carry; in nft_bitwise_eval_lshift() 46 carry = src[i - 1] >> (BITS_PER_TYPE(u32) - shift); in nft_bitwise_eval_lshift() 55 u32 carry = 0; in nft_bitwise_eval_rshift() local 58 dst[i] = carry | (src[i] >> shift); in nft_bitwise_eval_rshift() 59 carry = src[i] << (BITS_PER_TYPE(u32) - shift); in nft_bitwise_eval_rshift()
|
| /OK3568_Linux_fs/kernel/arch/c6x/lib/ |
| H A D | csum_64plus.S | 250 ; unsigned int carry = 0; 255 ; result += carry; 257 ; carry = (w > result); 259 ; result += carry; 274 ; /* add up carry.. */ 384 ; /* add in old sum, and carry.. */
|
| /OK3568_Linux_fs/kernel/arch/x86/lib/ |
| H A D | csum-copy_64.S | 147 leaq 8(%rsi), %rsi /* preserve carry */ 150 adcq %r9, %rax /* add in carry */ 180 adcl %r9d, %eax /* add in carry */ 192 adcl %r9d, %eax /* carry */
|
| /OK3568_Linux_fs/kernel/arch/parisc/lib/ |
| H A D | checksum.c | 30 /* 32 bits --> 16 bits + carry */ in from32to16() 32 /* 16 bits + carry --> 16 bits including carry */ in from32to16()
|
| /OK3568_Linux_fs/kernel/drivers/rtc/ |
| H A D | rtc-sh.c | 83 #define RCR1_CF 0x80 /* Carry Flag */ 84 #define RCR1_CIE 0x10 /* Carry Interrupt Enable */ 323 /* only keep the carry interrupt enabled if UIE is on */ in sh_rtc_read_time() 481 /* get periodic/carry/alarm irqs */ in sh_rtc_probe() 554 /* register shared periodic/carry/alarm irq */ in sh_rtc_probe() 564 /* register periodic/carry/alarm irqs */ in sh_rtc_probe() 575 sh_rtc_interrupt, 0, "sh-rtc carry", rtc); in sh_rtc_probe() 578 "request carry IRQ failed with %d, IRQ %d\n", in sh_rtc_probe()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-tegra/tegra20/ |
| H A D | crypto.c | 31 int carry = 0; in left_shift_vector() local 35 out[i] = (in[i] << 1) | carry; in left_shift_vector() 36 carry = in[i] >> 7; /* get most significant bit */ in left_shift_vector()
|
| /OK3568_Linux_fs/u-boot/drivers/bios_emulator/x86emu/ |
| H A D | prim_ops.c | 38 * Carry Chain Calculation 43 * flag is the XOR of the top two bits of the carry chain for an 46 * carry chain given the two operands and the result. 49 * bits, we can derive a formula for the carry chain. 733 want to rotate through the carry by "s" bits. We could in rcl_byte() 737 The new carry flag (was B_n) in rcl_byte() 742 for a rotation of n bits (mod 9) the new carry flag is in rcl_byte() 756 /* extract the new CARRY FLAG. */ in rcl_byte() 775 /* if the carry flag was set, or it in. */ in rcl_byte() 776 if (ACCESS_FLAG(F_CF)) { /* carry flag is set */ in rcl_byte() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/multiprecision/cpp_int/ |
| H A D | divide.hpp | 221 double_limb_type carry = 0; in divide_unsigned_helper() local 229 carry += static_cast<double_limb_type>(py[i]) * static_cast<double_limb_type>(guess); in divide_unsigned_helper() 231 pt[i + shift] = static_cast<limb_type>(carry & ~static_cast<limb_type>(0)); in divide_unsigned_helper() 233 pt[i + shift] = static_cast<limb_type>(carry); in divide_unsigned_helper() 235 carry >>= CppInt1::limb_bits; in divide_unsigned_helper() 237 if(carry && !truncated_t) in divide_unsigned_helper() 240 pt[t.size() - 1] = static_cast<limb_type>(carry & ~static_cast<limb_type>(0)); in divide_unsigned_helper() 242 pt[t.size() - 1] = static_cast<limb_type>(carry); in divide_unsigned_helper() 253 if(truncated_t && carry) in divide_unsigned_helper()
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/include/ |
| H A D | mpa.h | 144 mpa_word_t b, mpa_word_t *sum, mpa_word_t *carry); 147 mpa_word_t b, mpa_word_t *diff, mpa_word_t *carry); 149 void __mpa_full_adder_ackum(mpa_word_t *d, mpa_word_t e, mpa_word_t *carry); 183 mpa_word_t b, mpa_word_t *p, mpa_word_t *carry); 186 mpa_word_t b, mpa_word_t *p, mpa_word_t *carry);
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/host_include/ |
| H A D | mpa.h | 144 mpa_word_t b, mpa_word_t *sum, mpa_word_t *carry); 147 mpa_word_t b, mpa_word_t *diff, mpa_word_t *carry); 149 void __mpa_full_adder_ackum(mpa_word_t *d, mpa_word_t e, mpa_word_t *carry); 183 mpa_word_t b, mpa_word_t *p, mpa_word_t *carry); 186 mpa_word_t b, mpa_word_t *p, mpa_word_t *carry);
|
| /OK3568_Linux_fs/kernel/drivers/counter/ |
| H A D | 104-quad-8.c | 67 /* Carry Toggle flip-flop */ 85 /* Reset Borrow Toggle, Carry Toggle, Compare Toggle, and Sign flags */ 109 unsigned int carry; in quad8_read_raw() local 122 carry = !!(flags & QUAD8_FLAG_CT); in quad8_read_raw() 124 /* Borrow XOR Carry effectively doubles count range */ in quad8_read_raw() 125 *val = (borrow ^ carry) << 24; in quad8_read_raw() 188 /* Reset Borrow, Carry, Compare, and Sign flags */ in quad8_write_raw() 648 unsigned int carry; in quad8_count_read() local 653 carry = !!(flags & QUAD8_FLAG_CT); in quad8_count_read() 655 /* Borrow XOR Carry effectively doubles count range */ in quad8_count_read() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/nios2/lib/ |
| H A D | longlong.h | 69 (i.e. carry out) is not stored anywhere, and is lost. 75 and LOW_DIFFERENCE. Overflow (i.e. carry out) is not stored anywhere, 141 __x1 += __ll_highpart (__x0);/* this can't give carry */ \ 173 if (__r1 >= (d)) /* i.e. we didn't get carry when adding to __r1 */\
|
| /OK3568_Linux_fs/kernel/sound/firewire/digi00x/ |
| H A D | amdtp-dot.c | 38 u8 carry; member 107 state->idx = data[MAGIC_DOT_BYTE] ^ state->carry; in dot_encode_step() 109 data[MAGIC_DOT_BYTE] ^= state->carry; in dot_encode_step() 110 state->carry = dot_scrt(state->idx, ++(state->off)); in dot_encode_step() 418 p->state.carry = 0x00; in amdtp_dot_reset()
|
| /OK3568_Linux_fs/kernel/arch/m68k/math-emu/ |
| H A D | multi_arith.h | 83 int carry; in fp_addmant() local 92 asm volatile ("addx.l %0,%0" : "=d" (carry) : "0" (0)); in fp_addmant() 94 return carry; in fp_addmant() 155 char carry; \ 160 asm ("subx.l %2,%1; scs %0" : "=d" (carry), "=d" (dest.m32[0]) \ 162 carry; \
|
| /OK3568_Linux_fs/kernel/arch/powerpc/lib/ |
| H A D | checksum_32.S | 28 srawi. r6,r4,2 /* Divide len by 4 and also clear carry */ 75 5: addze r3,r5 /* add in final carry */ 129 addic r0,r0,0 /* clear carry */ 303 add r5, r5, r6 /* assumption: len + proto doesn't carry */
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/core/crypto/ |
| H A D | aes-siv.c | 22 int i, carry; in dbl() local 24 carry = pad[0] & 0x80; in dbl() 28 if (carry) in dbl()
|