Skip to content

Commit 84aa3dd

Browse files
committed
bootutil: Remove redundant ALIGN definitions
Use bootutil_macros.h instead. Signed-off-by: Dominik Ermel <[email protected]>
1 parent 82deb79 commit 84aa3dd

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

boot/bootutil/include/bootutil/bootutil_public.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,13 @@
4343
#include <string.h>
4444
#include <flash_map_backend/flash_map_backend.h>
4545
#include <mcuboot_config/mcuboot_config.h>
46+
#include <bootutil/bootutil_macros.h>
4647
#include <bootutil/image.h>
4748

4849
#ifdef __cplusplus
4950
extern "C" {
5051
#endif
5152

52-
#ifndef ALIGN_UP
53-
#define ALIGN_UP(num, align) (((num) + ((align) - 1)) & ~((align) - 1))
54-
#endif
55-
56-
#ifndef ALIGN_DOWN
57-
#define ALIGN_DOWN(num, align) ((num) & ~((align) - 1))
58-
#endif
59-
6053
/** Attempt to boot the contents of the primary slot. */
6154
#define BOOT_SWAP_TYPE_NONE 1
6255

0 commit comments

Comments
 (0)