Home
last modified time | relevance | path

Searched refs:borrow (Results 1 – 5 of 5) sorted by relevance

/hal_espressif-3.6.0/components/bt/host/bluedroid/stack/smp/
Dp_256_multprecision.c121 DWORD borrow; in multiprecision_sub() local
124 borrow = 0; in multiprecision_sub()
126 temp = a[i] - borrow; in multiprecision_sub()
127 borrow = (temp > a[i]); in multiprecision_sub()
129 borrow |= (c[i] > temp); in multiprecision_sub()
132 return borrow; in multiprecision_sub()
218 DWORD borrow; in multiprecision_sub_mod() local
229 borrow = multiprecision_sub(c, a, b, keyLength); in multiprecision_sub_mod()
230 if (borrow) { in multiprecision_sub_mod()
/hal_espressif-3.6.0/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/
Decc.c194 uECC_word_t borrow = 0; in uECC_vli_sub() local
197 uECC_word_t diff = left[i] - right[i] - borrow; in uECC_vli_sub()
199 borrow = cond_set(val, borrow, (diff != left[i])); in uECC_vli_sub()
203 return borrow; in uECC_vli_sub()
345 uECC_word_t borrow = 0; in uECC_vli_mmod() local
348 uECC_word_t diff = v[index][i] - mod_multiple[i] - borrow; in uECC_vli_mmod()
350 borrow = (diff > v[index][i]); in uECC_vli_mmod()
355 index = !(index ^ borrow); in uECC_vli_mmod()
/hal_espressif-3.6.0/components/bootloader/subproject/components/micro-ecc/micro-ecc/
DuECC.c353 uECC_word_t borrow = 0; in uECC_vli_sub() local
356 uECC_word_t diff = left[i] - right[i] - borrow; in uECC_vli_sub()
358 borrow = (diff > left[i]); in uECC_vli_sub()
362 return borrow; in uECC_vli_sub()
589 uECC_word_t borrow = 0; in uECC_vli_mmod() local
592 uECC_word_t diff = v[index][i] - mod_multiple[i] - borrow; in uECC_vli_mmod()
594 borrow = (diff > v[index][i]); in uECC_vli_mmod()
598 index = !(index ^ borrow); /* Swap the index if there was no borrow */ in uECC_vli_mmod()
Dasm_avr.inc875 uint8_t borrow = 0;
890 "adc %[borrow], %[borrow] \n\t" /* Store carry bit in borrow. */
893 [borrow] "+r" (borrow), [left] "=&r" (left_byte), [right] "=&r" (right_byte)
897 return borrow;
Dasm_arm.inc150 return !carry; /* Note that on ARM, carry flag set means "no borrow" when subtracting
439 uint32_t carry = 1; /* carry = 1 initially (means don't borrow) */
449 "sbcs %[left], %[left], %[right] \n\t" /* Subtract with borrow. */