/* * Copyright 2011 Stefan Lankes, Chair for Operating Systems, * RWTH Aachen University * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * This file is part of MetalSVM. */ #ifndef __ARCH_LIMITS_H__ #define __ARCH_LIMITS_H__ #ifdef __cplusplus extern "C" { #endif #define CHAR_BIT 8 /* number of bits in a char */ #define SCHAR_MAX 0x7f /* max value for a signed char */ #define SCHAR_MIN (-0x7f - 1) /* min value for a signed char */ #define UCHAR_MAX 0xff /* max value for an unsigned char */ #define USHRT_MAX 0xffff /* max value for an unsigned short */ #define SHRT_MAX 0x7fff /* max value for a short */ #define SHRT_MIN (-0x7fff - 1) /* min value for a short */ #define UINT_MAX 0xffffffffU /* max value for an unsigned int */ #define INT_MAX 0x7fffffff /* max value for an int */ #define INT_MIN (-0x7fffffff - 1) /* min value for an int */ #define ULONG_MAX 0xffffffffUL /* max value for an unsigned long */ #define LONG_MAX 0x7fffffffL /* max value for a long */ #define LONG_MIN (-0x7fffffffL - 1) /* min value for a long */ /* max value for an unsigned long long */ #define ULLONG_MAX 0xffffffffffffffffULL #define LLONG_MAX 0x7fffffffffffffffLL /* max value for a long long */ #define LLONG_MIN (-0x7fffffffffffffffLL - 1) /* min for a long long */ #ifdef __cplusplus } #endif #endif