summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/machine/_align.h
blob: fa26a54f6a577d6a5536c0b994a3aaab263e85fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2016 embedded brains GmbH.  All rights reserved.
 *
 *  embedded brains GmbH
 *  Dornierstr. 4
 *  82178 Puchheim
 *  Germany
 *  <rtems@embedded-brains.de>
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rtems.org/license/LICENSE.
 */

#ifndef _MACHINE_INCLUDE__ALIGN_H_
#define	_MACHINE_INCLUDE__ALIGN_H_

#include <sys/_types.h>

#define	_ALIGNBYTES	(sizeof(long long) - 1)
#define	_ALIGN(_p)	(((__uintptr_t)(_p) + _ALIGNBYTES) & ~_ALIGNBYTES)

#endif /* !_MACHINE_INCLUDE__ALIGN_H_ */