Lines Matching refs:PE
504 double hllDenseSum(uint8_t *registers, double *PE, int *ezp) { in hllDenseSum() argument
537 E += (PE[r0] + PE[r1]) + (PE[r2] + PE[r3]) + (PE[r4] + PE[r5]) + in hllDenseSum()
538 (PE[r6] + PE[r7]) + (PE[r8] + PE[r9]) + (PE[r10] + PE[r11]) + in hllDenseSum()
539 (PE[r12] + PE[r13]) + (PE[r14] + PE[r15]); in hllDenseSum()
551 E += PE[reg]; /* Precomputed 2^(-reg[j]). */ in hllDenseSum()
888 double hllSparseSum(uint8_t *sparse, int sparselen, double *PE, int *ezp, int *invalid) { in hllSparseSum() argument
910 E += PE[regval]*runlen; in hllSparseSum()
928 double hllRawSum(uint8_t *registers, double *PE, int *ezp) { in hllRawSum() argument
939 if (bytes[0]) E += PE[bytes[0]]; else ez++; in hllRawSum()
940 if (bytes[1]) E += PE[bytes[1]]; else ez++; in hllRawSum()
941 if (bytes[2]) E += PE[bytes[2]]; else ez++; in hllRawSum()
942 if (bytes[3]) E += PE[bytes[3]]; else ez++; in hllRawSum()
943 if (bytes[4]) E += PE[bytes[4]]; else ez++; in hllRawSum()
944 if (bytes[5]) E += PE[bytes[5]]; else ez++; in hllRawSum()
945 if (bytes[6]) E += PE[bytes[6]]; else ez++; in hllRawSum()
946 if (bytes[7]) E += PE[bytes[7]]; else ez++; in hllRawSum()
975 static double PE[64]; in hllCount() local
977 PE[0] = 1; /* 2^(-reg[j]) is 1 when m is 0. */ in hllCount()
980 PE[j] = 1.0/(1ULL << j); in hllCount()
987 E = hllDenseSum(hdr->registers,PE,&ez); in hllCount()
990 sdslen((sds)hdr)-HLL_HDR_SIZE,PE,&ez,invalid); in hllCount()
992 E = hllRawSum(hdr->registers,PE,&ez); in hllCount()