Files
rtems/cpukit/libnetworking/machine/_align.h
Christian Mauderer f0fc2c0e02 libnetworking: Add <machine/_align.h>
This is necessary for new <sys/socket.h>.
2016-06-28 13:10:01 +02:00

24 lines
593 B
C

/*
* 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_ */