aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/sys.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2010-08-07 05:28:47 +0200
committerRickard Green <[email protected]>2010-08-07 05:28:47 +0200
commita4725cb01dcb9a846a73922bb7c14cd87f0e7803 (patch)
tree4819460f46702d06d3727ef4a3b6d6144ef3259b /erts/emulator/beam/sys.h
parent0d553b45b5c3ae8287340887f271bc70f1f1370c (diff)
downloadotp-a4725cb01dcb9a846a73922bb7c14cd87f0e7803.tar.gz
otp-a4725cb01dcb9a846a73922bb7c14cd87f0e7803.tar.bz2
otp-a4725cb01dcb9a846a73922bb7c14cd87f0e7803.zip
Align trailing message data for all types of structures
Alignment of trailing data in messages has been adjusted. This in order to be able to pass data of any type as trailing data in the future.
Diffstat (limited to 'erts/emulator/beam/sys.h')
-rw-r--r--erts/emulator/beam/sys.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h
index ca87d3d70f..eac38674e7 100644
--- a/erts/emulator/beam/sys.h
+++ b/erts/emulator/beam/sys.h
@@ -359,15 +359,8 @@ typedef unsigned char byte;
#error 64-bit architecture, but no appropriate type to use for Uint64 and Sint64 found
#endif
-#if defined(ARCH_64)
-# define ERTS_WORD_ALIGN_PAD_SZ(X) \
+# define ERTS_EXTRA_DATA_ALIGN_SZ(X) \
(((size_t) 8) - (((size_t) (X)) & ((size_t) 7)))
-#elif defined(ARCH_32)
-# define ERTS_WORD_ALIGN_PAD_SZ(X) \
- (((size_t) 4) - (((size_t) (X)) & ((size_t) 3)))
-#else
-#error "Not supported..."
-#endif
#include "erl_lock_check.h"
#include "erl_smp.h"