Commit Graph

2 Commits

Author SHA1 Message Date
Stephen Canon
592a298080 Remove the LDBL_* tests in stdlib/FloatConstants.swift (#6825)
These aren't quite right, because the verifier doesn't follow the
2017-01-14 20:39:45 -05:00
Stephen Canon
6ff95dad03 Mark several C macros imported from <float.h> as deprecated. (#6796)
* Mark several C macros imported from <float.h> as deprecated.

These macros all have straightforward replacements in terms of static properties on FloatingPoint or BinaryFloatingPoint. It is necessary to add 1 in a few places because of differences between how C and Swift count significand bits and normalize the significand, but this is expected to have minimal impact on code in practice (and when it does have impact, using the Swift definition is generally simpler).

* Address review notes from @moiseev.

This fixes <rdar://problem/27871465>
2017-01-13 21:33:43 -05:00