summaryrefslogtreecommitdiff
path: root/libc/stdio/stdio.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-01-11 22:07:34 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-01-11 22:07:34 +0000
commit0fb6e981d39979d396137a94aa25ef23e383dc8d (patch)
treede44db41b56528dbed9fc07329cac817143c55f8 /libc/stdio/stdio.cpp
parent038ee5ecdb5fbcb3989499d3983fd3177b4fd099 (diff)
parentb1ba762e34850582a1156ac56d280c8ce1980b28 (diff)
Merge "Fewer copies of ALIGN()/ALIGNBYTES." am: b1ba762e34
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1546582 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ia47944e22ee6a64b358b1b46ffbaeefb3b527732
Diffstat (limited to 'libc/stdio/stdio.cpp')
-rw-r--r--libc/stdio/stdio.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/stdio/stdio.cpp b/libc/stdio/stdio.cpp
index b8aced83b..c7b1ba459 100644
--- a/libc/stdio/stdio.cpp
+++ b/libc/stdio/stdio.cpp
@@ -57,8 +57,7 @@
#include "private/ErrnoRestorer.h"
#include "private/thread_private.h"
-#define ALIGNBYTES (sizeof(uintptr_t) - 1)
-#define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) &~ ALIGNBYTES)
+#include "private/bsd_sys_param.h" // For ALIGN/ALIGNBYTES.
#define NDYNAMIC 10 /* add ten more whenever necessary */