optimisation: remove 1 more call to __divsf3

Changing (feedrate * feedmultiply) / 6000.f
to (feedrate * feedmultiply) * (1.f / 6000.f)

Replaces the call to __divsf3 with __mulsf3 which is better

No change in memory
This commit is contained in:
gudnimg 2024-04-23 07:10:11 +00:00 committed by DRracer
parent 2c46e1b344
commit 28502a2b6e
1 changed files with 1 additions and 1 deletions

View File

@ -9574,7 +9574,7 @@ void prepare_move(uint16_t start_segment_idx)
void prepare_arc_move(bool isclockwise, uint16_t start_segment_idx) {
float r = hypot(offset[X_AXIS], offset[Y_AXIS]); // Compute arc radius for mc_arc
// Trace the arc
mc_arc(current_position, destination, offset, (feedrate * feedmultiply) / 6000.f, r, isclockwise, start_segment_idx);
mc_arc(current_position, destination, offset, (feedrate * feedmultiply) * (1.f / 6000.f), r, isclockwise, start_segment_idx);
// As far as the parser is concerned, the position is now == target. In reality the
// motion control system might still be processing the action and the real tool position
// in any intermediate location.