allow number of exponent bits to be adjustable

This commit is contained in:
Jeff Wang
2019-05-01 01:37:14 -04:00
parent 4b87ad27c8
commit 58a162fe4d
4 changed files with 62 additions and 21 deletions

View File

@ -25,7 +25,7 @@ static void pop(){
StackPtr++; //adjust pointer
}
void push_decn(const char* signif_str, int8_t exponent, uint8_t no_lift){
void push_decn(const char* signif_str, exp_t exponent, uint8_t no_lift){
if (!no_lift){
StackPtr--;
}
@ -36,7 +36,7 @@ void clear_x(void){
set_dec80_zero(&stack(STACK_X));
}
void set_x(const char* signif_str, int8_t exponent){
void set_x(const char* signif_str, exp_t exponent){
build_dec80(&stack(STACK_X), signif_str, exponent);
}