LCOV - code coverage report
Current view: top level - root/cov/dir/include - crc32.h (source / functions) Hit Total Coverage
Test: a simple test Lines: 1 1 100.0 %
Date: 2024-06-05 20:10:43 Functions: 0 0 -
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * This code was taken from the linux kernel. The license is GPL Version 2.
       3             :  */
       4             : 
       5             : #ifndef __CRC32_H__
       6             : #define __CRC32_H__
       7             : 
       8             : #include <stdint.h>
       9             : 
      10             : /* Return a 32-bit CRC of the contents of the buffer */
      11             : extern uint32_t mtd_crc32(uint32_t val, const void *ss, int len);
      12             : 
      13             : static inline uint32_t crc32(uint32_t val, const void *ss, int len)
      14             : {
      15 16518163799 :         return mtd_crc32(val, ss, len);
      16             : }
      17             : 
      18             : #endif /* __CRC32_H__ */

Generated by: LCOV version 1.13