1 // Copyright 2010-2021 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_INTEGRAL_TYPES_H_ 15 #define OR_TOOLS_BASE_INTEGRAL_TYPES_H_ 16 17 #include <cinttypes> 18 #include <cstdint> 19 20 static const uint8_t kuint8max = UINT8_MAX; 21 static const uint16_t kuint16max = UINT16_MAX; 22 static const uint32_t kuint32max = UINT32_MAX; 23 static const uint64_t kuint64max = UINT64_MAX; 24 25 static const int8_t kint8min = INT8_MIN; 26 static const int8_t kint8max = INT8_MAX; 27 static const int16_t kint16min = INT16_MIN; 28 static const int16_t kint16max = INT16_MAX; 29 static const int32_t kint32min = INT32_MIN; 30 static const int32_t kint32max = INT32_MAX; 31 static const int64_t kint64min = INT64_MIN; 32 static const int64_t kint64max = INT64_MAX; 33 34 #endif // OR_TOOLS_BASE_INTEGRAL_TYPES_H_ 35