LCOV - code coverage report
Current view: top level - lib - bcd.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 4 0.0 %
Date: 2023-04-06 08:38:28 Functions: 0 2 0.0 %

          Line data    Source code
       1             : // SPDX-License-Identifier: GPL-2.0
       2             : #include <linux/bcd.h>
       3             : #include <linux/export.h>
       4             : 
       5           0 : unsigned _bcd2bin(unsigned char val)
       6             : {
       7           0 :         return (val & 0x0f) + (val >> 4) * 10;
       8             : }
       9             : EXPORT_SYMBOL(_bcd2bin);
      10             : 
      11           0 : unsigned char _bin2bcd(unsigned val)
      12             : {
      13           0 :         return ((val / 10) << 4) + val % 10;
      14             : }
      15             : EXPORT_SYMBOL(_bin2bcd);

Generated by: LCOV version 1.14