LCOV - code coverage report
Current view: top level - journal - lookup3.h (source / functions) Hit Total Coverage
Test: systemd_full.info Lines: 4 4 100.0 %
Date: 2019-08-23 13:36:53 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : #pragma once
       2                 :            : 
       3                 :            : #include <inttypes.h>
       4                 :            : #include <sys/types.h>
       5                 :            : 
       6                 :            : #include "macro.h"
       7                 :            : 
       8                 :            : uint32_t jenkins_hashword(const uint32_t *k, size_t length, uint32_t initval) _pure_;
       9                 :            : void jenkins_hashword2(const uint32_t *k, size_t length, uint32_t *pc, uint32_t *pb);
      10                 :            : 
      11                 :            : uint32_t jenkins_hashlittle(const void *key, size_t length, uint32_t initval) _pure_;
      12                 :            : void jenkins_hashlittle2(const void *key, size_t length, uint32_t *pc, uint32_t *pb);
      13                 :            : 
      14                 :            : uint32_t jenkins_hashbig(const void *key, size_t length, uint32_t initval) _pure_;
      15                 :            : 
      16                 :    1041628 : static inline uint64_t hash64(const void *data, size_t length) {
      17                 :    1041628 :         uint32_t a = 0, b = 0;
      18                 :            : 
      19                 :    1041628 :         jenkins_hashlittle2(data, length, &a, &b);
      20                 :            : 
      21                 :    1041628 :         return ((uint64_t) a << 32ULL) | (uint64_t) b;
      22                 :            : }

Generated by: LCOV version 1.14