mirror of https://github.com/ArduPilot/ardupilot
62b104cbfa
Believe it or not, changing / 2^31 to >>31 saved 256 bytes in the "d" segment. The reason is that GCC version prior to 4.3.5 does not have a count_leading_zeros (clz) assembler macro, so it uses a 256 byte lookup table called _clz The _clz table gets pulled in if you do 64 bit division. This tiny change is the only place that we do long long division. Changing to a shift saves 256 bytes of ram. |
||
---|---|---|
.. | ||
examples | ||
AP_Baro.h | ||
AP_Baro_BMP085.cpp | ||
AP_Baro_BMP085.h | ||
AP_Baro_BMP085_hil.cpp | ||
AP_Baro_BMP085_hil.h | ||
AP_Baro_MS5611.cpp | ||
AP_Baro_MS5611.h |