ardupilot/libraries/AP_Baro
justinbeech 5255512bf9 Found free extra 256 bytes of RAM eliminate _clz use from libgcc
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.
2012-02-17 09:46:05 +00:00
..
examples change constant to float 44330.0 2012-02-15 09:10:14 -08:00
AP_Baro.h I2C: convert barometer library to new I2C library 2011-12-28 20:41:53 +11:00
AP_Baro_BMP085.cpp Arduino 1.0 - changed all #includes of "WProgram.h", "wiring.h" and "WConstants.h to "Arduino.h". 2012-01-28 12:25:47 +09:00
AP_Baro_BMP085.h baro: fixed an integer overflow issue at high altitudes 2012-01-14 19:51:35 +11:00
AP_Baro_BMP085_hil.cpp Arduino 1.0 - changed all #includes of "WProgram.h", "wiring.h" and "WConstants.h to "Arduino.h". 2012-01-28 12:25:47 +09:00
AP_Baro_BMP085_hil.h baro: fixed an integer overflow issue at high altitudes 2012-01-14 19:51:35 +11:00
AP_Baro_MS5611.cpp Found free extra 256 bytes of RAM eliminate _clz use from libgcc 2012-02-17 09:46:05 +00:00
AP_Baro_MS5611.h AP_Baro: fixed some signed/unsigned warnings 2012-02-13 21:39:18 +11:00