Small improvements in app size
Signed-off-by: Edouard Merle <edouard.merle@ledger.fr>
This commit is contained in:
committed by
Edouard Merle
parent
93cd3d6311
commit
f2ec9b296e
2
Makefile
2
Makefile
@@ -346,7 +346,7 @@ endif
|
||||
CC := $(CLANGPATH)clang
|
||||
|
||||
#CFLAGS += -O0
|
||||
CFLAGS += -O3 -Os -Wno-format-invalid-specifier -Wno-format-extra-args
|
||||
CFLAGS += -Oz -Wno-format-invalid-specifier -Wno-format-extra-args
|
||||
|
||||
AS := $(GCCPATH)arm-none-eabi-gcc
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -2,9 +2,11 @@
|
||||
#include "tokens.h"
|
||||
#include "shared_context.h"
|
||||
|
||||
#define MAX_NETWORK_TICKER_LEN 8
|
||||
|
||||
typedef struct network_info_s {
|
||||
const char name[NETWORK_STRING_MAX_SIZE];
|
||||
const char ticker[MAX_TICKER_LEN];
|
||||
const char ticker[MAX_NETWORK_TICKER_LEN];
|
||||
uint64_t chain_id;
|
||||
} network_info_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user