Small improvements in app size

Signed-off-by: Edouard Merle <edouard.merle@ledger.fr>
This commit is contained in:
Salvatore Ingala
2021-11-04 14:55:10 +01:00
committed by Edouard Merle
parent 93cd3d6311
commit f2ec9b296e
3 changed files with 6 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ bool adjustDecimals(char *src,
uint32_t targetLength,
uint8_t decimals);
__attribute__((no_instrument_function)) inline int allzeroes(void *buf, size_t n) {
static __attribute__((no_instrument_function)) inline int allzeroes(void *buf, size_t n) {
uint8_t *p = (uint8_t *) buf;
for (size_t i = 0; i < n; ++i) {
if (p[i]) {
@@ -72,7 +72,7 @@ __attribute__((no_instrument_function)) inline int allzeroes(void *buf, size_t n
}
return 1;
}
__attribute__((no_instrument_function)) inline int ismaxint(uint8_t *buf, int n) {
static __attribute__((no_instrument_function)) inline int ismaxint(uint8_t *buf, int n) {
for (int i = 0; i < n; ++i) {
if (buf[i] != 0xff) {
return 0;