OpenMPI
0.1.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
align.h
1
/*
2
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
3
* University Research and Technology
4
* Corporation. All rights reserved.
5
* Copyright (c) 2004-2005 The University of Tennessee and The University
6
* of Tennessee Research Foundation. All rights
7
* reserved.
8
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
9
* University of Stuttgart. All rights reserved.
10
* Copyright (c) 2004-2005 The Regents of the University of California.
11
* All rights reserved.
12
* Copyright (c) 2006 Voltaire All rights reserved.
13
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
14
*
15
* $COPYRIGHT$
16
*
17
* Additional copyrights may follow
18
*
19
* $HEADER$
20
*/
21
22
#ifndef OPAL_ALIGN_H
23
#define OPAL_ALIGN_H
24
25
#define OPAL_ALIGN(x,a,t) (((x)+((t)(a)-1)) & ~(((t)(a)-1)))
26
#define OPAL_ALIGN_PTR(x,a,t) ((t)OPAL_ALIGN((uintptr_t)x, a, uintptr_t))
27
#define OPAL_ALIGN_PAD_AMOUNT(x,s) ((~((uintptr_t)(x))+1) & ((uintptr_t)(s)-1))
28
29
#endif
/* OPAL_ALIGN_H */
opal
include
opal
align.h
Generated on Wed Dec 24 2014 12:05:26 for OpenMPI by
1.8.8