#include <linux/compiler.h>
Go to the source code of this file.
Value:(__builtin_constant_p((
u8 )(
x)) ? \
Definition at line 6 of file bcd.h.
Value:(__builtin_constant_p((
u8 )(
x)) ? \
Definition at line 11 of file bcd.h.
#define const_bcd2bin |
( |
|
x | ) |
(((x) & 0x0f) + ((x) >> 4) * 10) |
Definition at line 16 of file bcd.h.
#define const_bin2bcd |
( |
|
x | ) |
((((x) / 10) << 4) + (x) % 10) |
Definition at line 17 of file bcd.h.
unsigned _bcd2bin |
( |
unsigned char |
val | ) |
const |
Definition at line 4 of file bcd.c.
unsigned char _bin2bcd |
( |
unsigned |
val | ) |
const |
Definition at line 10 of file bcd.c.