summaryrefslogtreecommitdiffstats
path: root/clang/lib/Headers/float.h
Commit message (Collapse)AuthorAgeFilesLines
* Move the builtin headers to use the new license file header.Chandler Carruth2019-04-081-17/+3
| | | | | | | | | | | | | | | | | | Summary: These all had somewhat custom file headers with different text from the ones I searched for previously, and so I missed them. Thanks to Hal and Kristina and others who prompted me to fix this, and sorry it took so long. Reviewers: hfinkel Subscribers: mcrosier, javed.absar, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D60406 llvm-svn: 357941
* [clang] Only provide C11 features in <float.h> starting with C++17Louis Dionne2019-02-221-2/+2
| | | | | | | | | | | | | | Summary: In r353970, I enabled those features in C++11 and above. To be strictly conforming, those features should only be enabled in C++17 and above. Reviewers: jfb, eli.friedman Subscribers: jkorous, dexonsmith, libcxx-commits Differential Revision: https://reviews.llvm.org/D58289 llvm-svn: 354691
* [clang] Make sure C99/C11 features in <float.h> are provided in C++11Louis Dionne2019-02-131-4/+4
| | | | | | | | | | | | | | | | Summary: Previously, those #defines were only provided in C or when GNU extensions were enabled. We need those #defines in C++11 and above, too. Reviewers: jfb, eli.friedman Subscribers: jkorous, dexonsmith, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D58149 llvm-svn: 353970
* [Headers] Define *_HAS_SUBNORM for FLT, DBL, LDBLPirama Arumuga Nainar2018-08-081-0/+6
| | | | | | | | | | | | | | Summary: These macros are defined in the C11 standard and can be defined based on the __*_HAS_DENORM__ default macros. Reviewers: bruno, rsmith, doug.gregor Subscribers: llvm-commits, enh, srhines Differential Revision: https://reviews.llvm.org/D37302 llvm-svn: 339284
* [clang] Fix broken include_next in float.hLouis Dionne2018-08-061-3/+3
| | | | | | | | | | | | | | | Summary: The code defines __FLOAT_H and then includes the next <float.h>, which is guarded on __FLOAT_H so it gets skipped entirely. This commit uses the header guard __CLANG_FLOAT_H, like other headers (such as limits.h) do. Reviewers: jfb Subscribers: dexonsmith, cfe-commits Differential Revision: https://reviews.llvm.org/D50276 llvm-svn: 339016
* This adds the _Float16 preprocessor macro definitions.Sjoerd Meijer2017-09-131-0/+14
| | | | | | Differential Revision: https://reviews.llvm.org/D34695 llvm-svn: 313152
* [Headers][Darwin] Allow #include_next<float.h> to work on Darwin prior to 10.7Bruno Cardoso Lopes2017-08-011-0/+9
| | | | | | | | | This fixes PR31504 and it's a follow up from adding #include_next<float.h> for Darwin in r289018. rdar://problem/29856682 llvm-svn: 309752
* [Headers] Enable #include_next<float.h> on DarwinBruno Cardoso Lopes2016-12-081-2/+5
| | | | | | | | | Allows darwin targets to provide additional definitions and implementation specifc values for float.h rdar://problem/21961491 llvm-svn: 289018
* <float.h>: do not define DECIMAL_DIG in -std=c89 mode; this macro was added ↵Richard Smith2016-02-121-2/+6
| | | | | | | | in C99. Patch by Jorge Teixeira! llvm-svn: 260639
* In C11, provide macros FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, and ↵Richard Smith2016-02-111-0/+6
| | | | | | | | LDBL_DECIMAL_DIG in <float.h>. Patch by Jorge Teixeira! llvm-svn: 260577
* <float.h>: Don't seek #include_next if -ffreestanding for targeting mingw.NAKAMURA Takumi2014-10-221-1/+1
| | | | llvm-svn: 220356
* Remove a broken attempt to cope with someone #undef'ing __has_include_next.Richard Smith2014-02-191-1/+1
| | | | | | | This was broken because __has_include_next(...) would not be valid in a preprocessor condition if __has_include_next is not defined. llvm-svn: 201731
* Expand #include_next in float.h from mingw to _msc_ver.Nico Weber2012-04-241-1/+1
| | | | | | | | | | | | | | | | A test for this is checking if this compiles: #include <float.h> inline bool IsFinite(const double& number) { return _finite(number) != 0; } That depends however on either mingw or msvc being installed, and chapuni tells me there might be issues with float.h on mingw, so no automated test is added. llvm-svn: 155507
* Add C11 FLT_TRUE_MIN and friends. <rdar://problem/10812837>.Eli Friedman2012-02-071-0/+11
| | | | llvm-svn: 149949
* Fix typo.Nick Lewycky2011-07-191-1/+1
| | | | llvm-svn: 135473
* Teach Clang's <float.h> to also include MinGW's <float.h>, which provides ↵Douglas Gregor2011-07-051-0/+42
| | | | | | additional system definitions, from Ruben Van Boxem llvm-svn: 134407
* Eli noticed that I had forgotten some #defines. Add them.Anders Carlsson2008-12-261-0/+12
| | | | llvm-svn: 61445
* Add float.h header. Eli, please review :)Anders Carlsson2008-12-261-0/+59
llvm-svn: 61444
OpenPOWER on IntegriCloud