move constants out of the header
(as far as my C knowledge goes, this may cause problems with the linker)
This commit is contained in:
parent
1075e6d103
commit
6487fbde6e
@ -73,6 +73,16 @@ __xdata dec80 Tmp4Decn; //used by div_decn() and pow_decn()
|
||||
|
||||
__xdata char Buf[DECN_BUF_SIZE];
|
||||
|
||||
//1 constant
|
||||
const dec80 DECN_1 = {
|
||||
0, {10, 0}
|
||||
};
|
||||
|
||||
//ln(10) constant
|
||||
const dec80 DECN_LN_10 = {
|
||||
0, {23, 2, 58, 50, 92, 99, 40, 45, 68}
|
||||
};
|
||||
|
||||
|
||||
void copy_decn(dec80* const dest, const dec80* const src){
|
||||
uint8_t i;
|
||||
|
@ -57,16 +57,6 @@ typedef struct {
|
||||
//implicit decimal point between (lsu[0]/10) and (lsu[0]%10)
|
||||
} dec80;
|
||||
|
||||
//1 constant
|
||||
static const dec80 DECN_1 = {
|
||||
0, {10, 0}
|
||||
};
|
||||
|
||||
//ln(10) constant
|
||||
static const dec80 DECN_LN_10 = {
|
||||
0, {23, 2, 58, 50, 92, 99, 40, 45, 68}
|
||||
};
|
||||
|
||||
//remove sign bit, and return 15 bit exponent sign-extended to 16 bits
|
||||
exp_t get_exponent(const dec80* const x);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user