Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/ec/curve448/arch_32/f_impl.h |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | void gf_add_RAW(gf out, const gf a, const gf b) | - | ||||||||||||
2 | { | - | ||||||||||||
3 | unsigned int i; | - | ||||||||||||
4 | - | |||||||||||||
5 | for (i = 0; i < (64/sizeof(word_t))
| 1872188-29955008 | ||||||||||||
6 | out->limb[i] = a->limb[i] + b->limb[i]; executed 29955008 times by 2 tests: out->limb[i] = a->limb[i] + b->limb[i]; Executed by:
| 29955008 | ||||||||||||
7 | } executed 1872188 times by 2 tests: end of block Executed by:
| 1872188 | ||||||||||||
8 | - | |||||||||||||
9 | void gf_sub_RAW(gf out, const gf a, const gf b) | - | ||||||||||||
10 | { | - | ||||||||||||
11 | unsigned int i; | - | ||||||||||||
12 | - | |||||||||||||
13 | for (i = 0; i < (64/sizeof(word_t))
| 1885417-30166672 | ||||||||||||
14 | out->limb[i] = a->limb[i] - b->limb[i]; executed 30166672 times by 2 tests: out->limb[i] = a->limb[i] - b->limb[i]; Executed by:
| 30166672 | ||||||||||||
15 | } executed 1885417 times by 2 tests: end of block Executed by:
| 1885417 | ||||||||||||
16 | - | |||||||||||||
17 | void gf_bias(gf a, int amt) | - | ||||||||||||
18 | { | - | ||||||||||||
19 | unsigned int i; | - | ||||||||||||
20 | uint32_t co1 = ((1 << 28) - 1) * amt, co2 = co1 - amt; | - | ||||||||||||
21 | - | |||||||||||||
22 | for (i = 0; i < (64/sizeof(word_t))
| 1885417-30166672 | ||||||||||||
23 | a->limb[i] += (
executed 30166672 times by 2 tests: a->limb[i] += (i == (64/sizeof(word_t)) / 2) ? co2 : co1; Executed by:
| 1885417-30166672 | ||||||||||||
24 | } executed 1885417 times by 2 tests: end of block Executed by:
| 1885417 | ||||||||||||
25 | - | |||||||||||||
26 | void gf_weak_reduce(gf a) | - | ||||||||||||
27 | { | - | ||||||||||||
28 | uint32_t mask = (1 << 28) - 1; | - | ||||||||||||
29 | uint32_t tmp = a->limb[(64/sizeof(word_t)) - 1] >> 28; | - | ||||||||||||
30 | unsigned int i; | - | ||||||||||||
31 | - | |||||||||||||
32 | a->limb[(64/sizeof(word_t)) / 2] += tmp; | - | ||||||||||||
33 | for (i = (64/sizeof(word_t)) - 1; i > 0
| 1889347-28340205 | ||||||||||||
34 | a->limb[i] = (a->limb[i] & mask) + (a->limb[i - 1] >> 28); executed 28340205 times by 2 tests: a->limb[i] = (a->limb[i] & mask) + (a->limb[i - 1] >> 28); Executed by:
| 28340205 | ||||||||||||
35 | a->limb[0] = (a->limb[0] & mask) + tmp; | - | ||||||||||||
36 | } executed 1889347 times by 2 tests: end of block Executed by:
| 1889347 | ||||||||||||
Switch to Source code | Preprocessed file |