Alps 1.5.12
Loading...
Searching...
No Matches
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 * Ted Ralphs, Lehigh University *
11 * *
12 * Conceptual Design: *
13 * *
14 * Yan Xu, Lehigh University *
15 * Ted Ralphs, Lehigh University *
16 * Laszlo Ladanyi, IBM T.J. Watson Research Center *
17 * Matthew Saltzman, Clemson University *
18 * *
19 * *
20 * Copyright (C) 2001-2023, Lehigh University, Yan Xu, and Ted Ralphs. *
21 *===========================================================================*/
22
23#ifndef AlpsAix43_h
24#define AlpsAix43_h
25
26// AlpsAix43.h is modified from BCP_aix43.hpp
27// This file is fully docified.
28// There's nothing to docify...
29
30#include <sys/time.h> // for gettimeofday()
31#include <sys/resource.h> // for getrusage()
32
33#include <unistd.h> // for setpriority() and gethostname()
34typedef int AlpsIndexType;
35
36#if defined(__GNUC__)
37
38# define NEED_IMPLICIT_TEMPLATE_FUNCTIONS 1
39# define NEED_IMPLICIT_TEMPLATE_CLASSES 1
40# define AlpsPtrDiff long
41# define ALPS_CONSTRUCT std::construct
42# define ALPS_DESTROY std::destroy
43# define ALPS_DESTROY_RANGE std::destroy
44
45#elif defined(__IBMCPP__) && (__IBMCPP__ >= 5)
46
47# define AlpsPtrDiff long
48# define ALPS_CONSTRUCT std::_Construct
49# define ALPS_DESTROY std::_Destroy
50# define ALPS_DESTROY_RANGE(first, last) \
51 if (first != last) \
52 do { \
53 std::_Destroy(--last); \
54 } while (first != last);
55#endif
56
57#endif
int AlpsIndexType
Definition AlpsAix43.h:34