nanosat-mo-framework
nanosat-mo-framework copied to clipboard
[refactor] Minors numeric improvements
- Simplify pointless arithmetic expression.
- Integer multiplication cast to long.
- Use valueOf
- Simplify pointless arithmetic expression.
@arturobernalg see this comment https://github.com/esa/nanosat-mo-framework/pull/118#issuecomment-951703698
@arturobernalg see this comment #118 (comment) Hi @TanguySoto changed. TY
I would not simplify pointless operations like 04, 14 - these are there to make the code more readable when defining a number of indexes/offsets, and the compiler optimises it out anyway. As for other changes - they look good to me. Please rebase on top of the latest dev.
I would not simplify pointless operations like 0_4, 1_4 - these are there to make the code more readable when defining a number of indexes/offsets, and the compiler optimises it out anyway. As for other changes - they look good to me. Please rebase on top of the latest dev.
Ok, I already rebase from master and revert the pointless simplifications.