Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1// Copyright 2010-2024 Google LLC
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14#ifndef OR_TOOLS_BASE_TYPES_H_
15#define OR_TOOLS_BASE_TYPES_H_
16
17#include <cinttypes>
18#include <cstdint>
19
20static const uint8_t kuint8max = UINT8_MAX;
21static const uint16_t kuint16max = UINT16_MAX;
22static const uint32_t kuint32max = UINT32_MAX;
23static const uint64_t kuint64max = UINT64_MAX;
24
25static const int8_t kint8min = INT8_MIN;
26static const int8_t kint8max = INT8_MAX;
27static const int16_t kint16min = INT16_MIN;
28static const int16_t kint16max = INT16_MAX;
29static const int32_t kint32min = INT32_MIN;
30static const int32_t kint32max = INT32_MAX;
31static const int64_t kint64min = INT64_MIN;
32static const int64_t kint64max = INT64_MAX;
33
34#endif // OR_TOOLS_BASE_TYPES_H_
#define INT32_MAX
Definition parser.yy.cc:310
#define UINT16_MAX
Definition parser.yy.cc:316
#define INT32_MIN
Definition parser.yy.cc:301
#define INT8_MIN
Definition parser.yy.cc:295
#define INT8_MAX
Definition parser.yy.cc:304
#define UINT32_MAX
Definition parser.yy.cc:319
#define INT16_MAX
Definition parser.yy.cc:307
#define INT16_MIN
Definition parser.yy.cc:298
#define UINT8_MAX
Definition parser.yy.cc:313
static const uint64_t kuint64max
Definition types.h:23
static const int32_t kint32min
Definition types.h:29
static const int16_t kint16min
Definition types.h:27
static const int64_t kint64max
Definition types.h:32
static const int32_t kint32max
Definition types.h:30
static const int8_t kint8min
Definition types.h:25
static const int8_t kint8max
Definition types.h:26
static const int16_t kint16max
Definition types.h:28
static const uint8_t kuint8max
Definition types.h:20
static const uint32_t kuint32max
Definition types.h:22
static const uint16_t kuint16max
Definition types.h:21
static const int64_t kint64min
Definition types.h:31