Alps  2.0.2
AlpsAix43.h
Go to the documentation of this file.
1 /*===========================================================================*
2  * This file is part of the Abstract Library for Parallel Search (ALPS). *
3  * *
4  * ALPS is distributed under the Eclipse Public License as part of the *
5  * COIN-OR repository (http://www.coin-or.org). *
6  * *
7  * Authors: *
8  * *
9  * Yan Xu, Lehigh University *
10  * Aykut Bulut, Lehigh University *
11  * Ted Ralphs, Lehigh University *
12  * *
13  * Conceptual Design: *
14  * *
15  * Yan Xu, Lehigh University *
16  * Ted Ralphs, Lehigh University *
17  * Laszlo Ladanyi, IBM T.J. Watson Research Center *
18  * Matthew Saltzman, Clemson University *
19  * *
20  * *
21  * Copyright (C) 2001-2023, Lehigh University, Yan Xu, Aykut Bulut, and *
22  * Ted Ralphs. *
23  * All Rights Reserved. *
24  *===========================================================================*/
25 
26 
27 #ifndef AlpsAix43_h
28 #define AlpsAix43_h
29 
30 // AlpsAix43.h is modified from BCP_aix43.hpp
31 // This file is fully docified.
32 // There's nothing to docify...
33 
34 #include <sys/time.h> // for gettimeofday()
35 #include <sys/resource.h> // for getrusage()
36 
37 #include <unistd.h> // for setpriority() and gethostname()
38 typedef int AlpsIndexType;
39 
40 #if defined(__GNUC__)
41 
42 # define NEED_IMPLICIT_TEMPLATE_FUNCTIONS 1
43 # define NEED_IMPLICIT_TEMPLATE_CLASSES 1
44 # define AlpsPtrDiff long
45 # define ALPS_CONSTRUCT std::construct
46 # define ALPS_DESTROY std::destroy
47 # define ALPS_DESTROY_RANGE std::destroy
48 
49 #elif defined(__IBMCPP__) && (__IBMCPP__ >= 5)
50 
51 # define AlpsPtrDiff long
52 # define ALPS_CONSTRUCT std::_Construct
53 # define ALPS_DESTROY std::_Destroy
54 # define ALPS_DESTROY_RANGE(first, last) \
55  if (first != last) \
56  do { \
57  std::_Destroy(--last); \
58  } while (first != last);
59 #endif
60 
61 #endif
AlpsIndexType
int AlpsIndexType
Definition: AlpsAix43.h:38