gcode_parse.c, decfloat_to_int(): use a smaller variable.
This saves 78 bytes and likely some processing time.
This commit is contained in:
parent
5a9a134ae4
commit
4c84b31536
|
|
@ -60,7 +60,7 @@ extern const uint32_t powers[]; // defined in sermsg.c
|
||||||
///
|
///
|
||||||
/// Tested for up to 42'000 mm (accurate), 420'000 mm (precision 10 um) and
|
/// Tested for up to 42'000 mm (accurate), 420'000 mm (precision 10 um) and
|
||||||
/// 4'200'000 mm (precision 100 um).
|
/// 4'200'000 mm (precision 100 um).
|
||||||
static int32_t decfloat_to_int(decfloat *df, uint32_t multiplicand) {
|
static int32_t decfloat_to_int(decfloat *df, uint16_t multiplicand) {
|
||||||
uint32_t r = df->mantissa;
|
uint32_t r = df->mantissa;
|
||||||
uint8_t e = df->exponent;
|
uint8_t e = df->exponent;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue