x86/cpu: Rename Merrifield2 to Moorefield
[deliverable/linux.git] / lib / bcd.c
CommitLineData
d3de851a 1#include <linux/bcd.h>
8bc3bcc9 2#include <linux/export.h>
d3de851a 3
b53d657d 4unsigned _bcd2bin(unsigned char val)
d3de851a
DB
5{
6 return (val & 0x0f) + (val >> 4) * 10;
7}
b53d657d 8EXPORT_SYMBOL(_bcd2bin);
d3de851a 9
b53d657d 10unsigned char _bin2bcd(unsigned val)
d3de851a
DB
11{
12 return ((val / 10) << 4) + val % 10;
13}
b53d657d 14EXPORT_SYMBOL(_bin2bcd);
This page took 0.547685 seconds and 5 git commands to generate.