47 ( (
const void * ) multiplicand0 );
49 ( (
const void * ) multiplier0 );
51 ( (
void * ) result0 );
65 for ( i = 0 ; i <
size ; i++ ) {
66 multiplicand_element = multiplicand->element[i];
67 for ( j = 0 ; j <
size ; j++ ) {
69 result_elements = &
result->element[ i + j ];
79 "addl %%eax, (%6,%2,4)\n\t" 80 "adcl %%edx, 4(%6,%2,4)\n\t" 82 "adcl $0, 8(%6,%2,4)\n\t" 86 :
"=&a" ( discard_a ),
90 :
"0" ( multiplicand_element ),
91 "g" ( multiplier_element ),
92 "r" ( result_elements ),
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
uint8_t multiplier
Port multiplier number.
void bigint_multiply_raw(const uint32_t *multiplicand0, const uint32_t *multiplier0, uint32_t *result0, unsigned int size)
Multiply big integers.
#define bigint_t(size)
Define a big-integer type.
__asm__ __volatile__("\n1:\n\t" "movb -1(%3,%1), %%al\n\t" "stosb\n\t" "loop 1b\n\t" "xorl %%eax, %%eax\n\t" "mov %4, %1\n\t" "rep stosb\n\t" :"=&D"(discard_D), "=&c"(discard_c), "+m"(*value) :"r"(data), "g"(pad_len), "0"(value0), "1"(len) :"eax")
__asm__(".section \".rodata\", \"a\", " PROGBITS "\n\t" "\nprivate_key_data:\n\t" ".size private_key_data, ( . - private_key_data )\n\t" ".equ private_key_len, ( . - private_key_data )\n\t" ".previous\n\t")
uint8_t size
Entry size (in 32-bit words)
uint64_t index
Index of the first segment within the content.
void * memset(void *dest, int character, size_t len) __nonnull