File Coverage

djbsort_src/float64_sort.c
Criterion Covered Total %
statement 12 12 100.0
branch 4 4 100.0
condition n/a
subroutine n/a
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             /* WARNING: auto-generated (by autogen/useint); do not edit */
2              
3             #include "djbsort.h"
4             #include "float64_sort.h"
5             #include "crypto_int64.h"
6              
7 2           void float64_sort(double *x,long long n)
8             {
9 2           int64_t *y = (int64_t *) x;
10             long long j;
11              
12 12 100         for (j = 0;j < n;++j) {
13 10           int64_t yj = y[j];
14 10           yj ^= ((uint64_t) crypto_int64_negative_mask(yj)) >> 1;
15 10           y[j] = yj;
16             }
17 2           djbsort_int64(y,n);
18 12 100         for (j = 0;j < n;++j) {
19 10           int64_t yj = y[j];
20 10           yj ^= ((uint64_t) crypto_int64_negative_mask(yj)) >> 1;
21 10           y[j] = yj;
22             }
23 2           }