line |
true |
false |
branch |
36
|
0 |
109 |
if (n >= (UV_MAX-_MPU_FILL_EXTRA_N)) |
42
|
1 |
108 |
if (prime_cache_size == padded_n) |
45
|
36 |
72 |
if (prime_cache_sieve != 0) |
50
|
108 |
0 |
if (n > 0) { |
52
|
0 |
108 |
MPUassert(prime_cache_sieve != 0, "sieve returned null"); |
97
|
99 |
258067 |
if (prime_cache_size < n) |
99
|
0 |
258166 |
MPUassert(prime_cache_size >= n, "prime cache is too small!"); |
100
|
123095 |
135071 |
if (sieve != 0) |
126
|
0 |
4504 |
MPUassert(size != 0, "get_prime_segment given null size pointer"); |
127
|
0 |
4504 |
MPUassert(mutex_init == 1, "segment mutex has not been initialized"); |
130
|
4445 |
59 |
if (prime_segment_is_available) { |
136
|
4445 |
59 |
if (use_prime_segment) { |
137
|
16 |
4429 |
if (prime_segment == 0) |
145
|
0 |
4504 |
MPUassert(mem != 0, "get_prime_segment allocation failure"); |
152
|
4445 |
59 |
if (mem == prime_segment) { |
157
|
59 |
4445 |
if (mem) |
165
|
72 |
38 |
if (!mutex_init) { |
173
|
72 |
38 |
if (n == 0) |
187
|
0 |
10 |
if (mutex_init == 0) return; |
191
|
1 |
9 |
if ( (prime_segment != 0) && (prime_segment_is_available) ) {\ |
|
1 |
0 |
if ( (prime_segment != 0) && (prime_segment_is_available) ) {\ |
197
|
1 |
9 |
if (old_segment) Safefree(old_segment); |
209
|
72 |
0 |
if (mutex_init) { |
215
|
72 |
0 |
if (prime_cache_sieve != 0) |
220
|
15 |
57 |
if (prime_segment != 0) |