You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
bdwgc
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm-project
clang
clang-tools-extra
compiler-rt
libcxx
benchmarks
cmake
docs
fuzzing
include
experimental
ext
support
android
fuchsia
ibm
limits.h
locale_mgmt_aix.h
support.h
xlocale.h
musl
newlib
solaris
win32
xlocale
CMakeLists.txt
__bit_reference
__bsd_locale_defaults.h
__bsd_locale_fallbacks.h
__config
__config_site.in
__debug
__functional_03
__functional_base
__functional_base_03
__hash_table
__libcpp_version
__locale
__mutex_base
__nullptr
__split_buffer
__sso_allocator
__std_stream
__string
__threading_support
__tree
__tuple
__undef_macros
algorithm.REMOVED.git-id
any
array
atomic
bitset
cassert
ccomplex
cctype
cerrno
cfenv
cfloat
chrono
cinttypes
ciso646
climits
clocale
cmath
codecvt
complex
complex.h
condition_variable
csetjmp
csignal
cstdarg
cstdbool
cstddef
cstdint
cstdio
cstdlib
cstring
ctgmath
ctime
ctype.h
cwchar
cwctype
deque.REMOVED.git-id
errno.h
exception
float.h
forward_list
fstream
functional
future
initializer_list
inttypes.h
iomanip
ios
iosfwd
iostream
istream
iterator
limits
limits.h
list
locale.REMOVED.git-id
locale.h
map
math.h
memory.REMOVED.git-id
module.modulemap
mutex
new
numeric
optional
ostream
queue
random.REMOVED.git-id
ratio
regex.REMOVED.git-id
scoped_allocator
set
setjmp.h
shared_mutex
sstream
stack
stdbool.h
stddef.h
stdexcept
stdint.h
stdio.h
stdlib.h
streambuf
string.REMOVED.git-id
string.h
string_view
strstream
system_error
tgmath.h
thread
tuple
type_traits.REMOVED.git-id
typeindex
typeinfo
unordered_map
unordered_set
utility
valarray.REMOVED.git-id
variant
vector.REMOVED.git-id
wchar.h
wctype.h
lib
src
utils
www
.arcconfig
.clang-format
.gitignore
CMakeLists.txt
CREDITS.TXT
LICENSE.TXT
NOTES.TXT
TODO.TXT
appveyor-reqs-install.cmd
appveyor.yml
libcxxabi
libunwind
lld
lldb
llvm
openmp
polly
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
llvm
m4
man
mcs
mk
mono
msvc
netcore
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
100 lines
3.5 KiB
C
100 lines
3.5 KiB
C
![]() |
// -*- C++ -*-
|
||
|
//===--------------------- support/ibm/limits.h ---------------------------===//
|
||
|
//
|
||
|
// The LLVM Compiler Infrastructure
|
||
|
//
|
||
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
||
|
// Source Licenses. See LICENSE.TXT for details.
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
|
||
|
#ifndef _LIBCPP_SUPPORT_IBM_LIMITS_H
|
||
|
#define _LIBCPP_SUPPORT_IBM_LIMITS_H
|
||
|
|
||
|
#if !defined(_AIX) // Linux
|
||
|
#include <math.h> // for HUGE_VAL, HUGE_VALF, HUGE_VALL, and NAN
|
||
|
|
||
|
static const unsigned int _QNAN_F = 0x7fc00000;
|
||
|
#define NANF (*((float *)(&_QNAN_F)))
|
||
|
static const unsigned int _QNAN_LDBL128[4] = {0x7ff80000, 0x0, 0x0, 0x0};
|
||
|
#define NANL (*((long double *)(&_QNAN_LDBL128)))
|
||
|
static const unsigned int _SNAN_F= 0x7f855555;
|
||
|
#define NANSF (*((float *)(&_SNAN_F)))
|
||
|
static const unsigned int _SNAN_D[2] = {0x7ff55555, 0x55555555};
|
||
|
#define NANS (*((double *)(&_SNAN_D)))
|
||
|
static const unsigned int _SNAN_LDBL128[4] = {0x7ff55555, 0x55555555, 0x0, 0x0};
|
||
|
#define NANSL (*((long double *)(&_SNAN_LDBL128)))
|
||
|
|
||
|
#define __builtin_huge_val() HUGE_VAL
|
||
|
#define __builtin_huge_valf() HUGE_VALF
|
||
|
#define __builtin_huge_vall() HUGE_VALL
|
||
|
#define __builtin_nan(__dummy) NAN
|
||
|
#define __builtin_nanf(__dummy) NANF
|
||
|
#define __builtin_nanl(__dummy) NANL
|
||
|
#define __builtin_nans(__dummy) NANS
|
||
|
#define __builtin_nansf(__dummy) NANSF
|
||
|
#define __builtin_nansl(__dummy) NANSL
|
||
|
|
||
|
#else
|
||
|
|
||
|
#include <math.h>
|
||
|
#include <float.h> // limit constants
|
||
|
|
||
|
#define __builtin_huge_val() HUGE_VAL //0x7ff0000000000000
|
||
|
#define __builtin_huge_valf() HUGE_VALF //0x7f800000
|
||
|
#define __builtin_huge_vall() HUGE_VALL //0x7ff0000000000000
|
||
|
#define __builtin_nan(__dummy) nan(__dummy) //0x7ff8000000000000
|
||
|
#define __builtin_nanf(__dummy) nanf(__dummy) // 0x7ff80000
|
||
|
#define __builtin_nanl(__dummy) nanl(__dummy) //0x7ff8000000000000
|
||
|
#define __builtin_nans(__dummy) DBL_SNAN //0x7ff5555555555555
|
||
|
#define __builtin_nansf(__dummy) FLT_SNAN //0x7f855555
|
||
|
#define __builtin_nansl(__dummy) DBL_SNAN //0x7ff5555555555555
|
||
|
|
||
|
#define __FLT_MANT_DIG__ FLT_MANT_DIG
|
||
|
#define __FLT_DIG__ FLT_DIG
|
||
|
#define __FLT_RADIX__ FLT_RADIX
|
||
|
#define __FLT_MIN_EXP__ FLT_MIN_EXP
|
||
|
#define __FLT_MIN_10_EXP__ FLT_MIN_10_EXP
|
||
|
#define __FLT_MAX_EXP__ FLT_MAX_EXP
|
||
|
#define __FLT_MAX_10_EXP__ FLT_MAX_10_EXP
|
||
|
#define __FLT_MIN__ FLT_MIN
|
||
|
#define __FLT_MAX__ FLT_MAX
|
||
|
#define __FLT_EPSILON__ FLT_EPSILON
|
||
|
// predefined by XLC on LoP
|
||
|
#define __FLT_DENORM_MIN__ 1.40129846e-45F
|
||
|
|
||
|
#define __DBL_MANT_DIG__ DBL_MANT_DIG
|
||
|
#define __DBL_DIG__ DBL_DIG
|
||
|
#define __DBL_MIN_EXP__ DBL_MIN_EXP
|
||
|
#define __DBL_MIN_10_EXP__ DBL_MIN_10_EXP
|
||
|
#define __DBL_MAX_EXP__ DBL_MAX_EXP
|
||
|
#define __DBL_MAX_10_EXP__ DBL_MAX_10_EXP
|
||
|
#define __DBL_MIN__ DBL_MIN
|
||
|
#define __DBL_MAX__ DBL_MAX
|
||
|
#define __DBL_EPSILON__ DBL_EPSILON
|
||
|
// predefined by XLC on LoP
|
||
|
#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
|
||
|
|
||
|
#define __LDBL_MANT_DIG__ LDBL_MANT_DIG
|
||
|
#define __LDBL_DIG__ LDBL_DIG
|
||
|
#define __LDBL_MIN_EXP__ LDBL_MIN_EXP
|
||
|
#define __LDBL_MIN_10_EXP__ LDBL_MIN_10_EXP
|
||
|
#define __LDBL_MAX_EXP__ LDBL_MAX_EXP
|
||
|
#define __LDBL_MAX_10_EXP__ LDBL_MAX_10_EXP
|
||
|
#define __LDBL_MIN__ LDBL_MIN
|
||
|
#define __LDBL_MAX__ LDBL_MAX
|
||
|
#define __LDBL_EPSILON__ LDBL_EPSILON
|
||
|
// predefined by XLC on LoP
|
||
|
#if __LONGDOUBLE128
|
||
|
#define __LDBL_DENORM_MIN__ 4.94065645841246544176568792868221e-324L
|
||
|
#else
|
||
|
#define __LDBL_DENORM_MIN__ 4.9406564584124654e-324L
|
||
|
#endif
|
||
|
|
||
|
// predefined by XLC on LoP
|
||
|
#define __CHAR_BIT__ 8
|
||
|
|
||
|
#endif // _AIX
|
||
|
|
||
|
#endif // _LIBCPP_SUPPORT_IBM_LIMITS_H
|