Skip to content

Commit

Permalink
WORD_PADDED was returning number of words not bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
CapnBry committed Apr 18, 2024
1 parent 0a25c7f commit 2a11ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/targets.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/////////////////////////

#define WORD_ALIGNED_ATTR __attribute__((aligned(4)))
#define WORD_PADDED(size) (((size)+3)/4)
#define WORD_PADDED(size) (((size)+3) & ~3)

#ifdef PLATFORM_STM32
/* ICACHE_RAM_ATTR1 is always linked into RAM */
Expand Down

0 comments on commit 2a11ff8

Please sign in to comment.