summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common-generic/bits/align64bit.h
blob: ece566ac42f6dcb7edf786343e734366b6a419fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */

#ifndef _ALIGN_64_BIT_H
#define _ALIGN_64_BIT_H

/* Simple macro for getting the 64-bit struct arch alignment */

struct __longlong_aligned { long long x; };

#define __ARCH_64BIT_ALIGNMENT__ \
	__attribute__((aligned(__alignof__(struct __longlong_aligned))))

#endif /* bits/align64bit.h */