No reason to inline BCD conversion.

There's no noticable performance gain.
This commit is contained in:
Radosław Kujawa 2018-07-06 10:26:44 +02:00
parent d3dccffe83
commit ef69c47c25
No known key found for this signature in database
GPG Key ID: 18A71CD0FD7270D7
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ static void emul_bbr(rk65c02emu_t *, void *, instruction_t *, uint8_t);
static void emul_bbs(rk65c02emu_t *, void *, instruction_t *, uint8_t);
/* Convert 8-bit BCD to binary value. */
static inline uint8_t from_bcd(uint8_t val)
static uint8_t from_bcd(uint8_t val)
{
uint8_t rv;
@ -23,7 +23,7 @@ static inline uint8_t from_bcd(uint8_t val)
}
/* Convert 8-bit binary to BCD value. */
static inline uint8_t to_bcd(uint8_t val)
static uint8_t to_bcd(uint8_t val)
{
uint16_t shift, digit;
uint8_t bcd;