Commit Graph

12 Commits

Author SHA1 Message Date
Karoy Lorentey
846e957278 [Foundation] Switch to private imports of CoreFoundation shims 2020-01-22 13:26:27 -08:00
Karoy Lorentey
6bc4c85005 [doc] Avoid use of “iff” in public API documentation 2019-09-10 18:52:01 -07:00
Xiaodi Wu
4555b287e8 [gardening] Update copyright year 2019-06-25 09:49:58 -04:00
Xiaodi Wu
6b5ee6d18c [NFC] Consolidate Decimal FloatingPoint implementations into one extension 2019-06-25 09:48:48 -04:00
Xiaodi Wu
ba34ee0a09 [NFC] Reorder Decimal protocol conformances to match documentation order; fix indentation 2019-06-25 09:17:48 -04:00
Xiaodi Wu
3104ccb12e Apply fix for SR-3126 and other changes to sync Decimal.init(_: Double) with sclf 2019-06-25 09:11:59 -04:00
Xiaodi Wu
fa0671c1af [NFC] Use sclf implementation of + - * / operators, move them and negate to SignedNumeric extension 2019-06-25 09:05:59 -04:00
Xiaodi Wu
742741f59b Note major divergences with sclf in implementation 2019-06-25 09:03:04 -04:00
Xiaodi Wu
e843bd303e [gardening] Sync formatting for constants with sclf version 2019-06-25 08:56:43 -04:00
Xiaodi Wu
b2ce4a2ba1 [Foundation] Fix two Decimal members with respect to NaN (#25698)
* Update Decimal.swift

Fix `Decimal.magnitude` so that `Decimal.nan.magnitude` is no longer incorrectly `0`.
Port changes from apple/swift-corelibs-foundation#1759, crucially correcting an error where `(0 as Decimal).doubleValue` returned `.nan`.

* [gardening] Zap indentation error

* Add test for `Decimal.nan.magnitude`

* Apply reviewer suggestion

Clean up `doubleValue`
2019-06-25 08:45:56 -04:00
Karoy Lorentey
a0004226b1 [Foundation] Decimal: Modernize hashing 2019-04-05 18:07:29 -07:00
Saleem Abdulrasool
41d9c2cc59 stdlib: restructure for OS family layout of SDK overlay
The SDK directory is now confusing as the Windows target also has a SDK
overlay.  In order to make this more uniform, move the SDK directory to
Darwin which covers the fact that this covers the XNU family of OSes.
The Windows directory contains the SDK overlay for the Windows target.
2018-12-06 11:32:05 -08:00