params: make param_t uint16_t on NuttX

param_t is only used as an offset and we have <1000 params, so an uint16_t
is enough.
This saves roughly 1KB of RAM. We only do that on NuttX because normal
integers have better performance in general.
Previously on amd64, this was even 64bits because it was an uintptr_t.
This commit is contained in:
Beat Küng
2017-03-13 11:06:40 +01:00
committed by Lorenz Meier
parent 45af77a543
commit b4290b6b52
8 changed files with 39 additions and 12 deletions
@@ -65,8 +65,8 @@
* Storage for modified parameters.
*/
struct param_wbuf_s {
param_t param;
union param_value_u val;
param_t param;
bool unsaved;
};