Commit Graph

12522 Commits

Author SHA1 Message Date
Saleem Abdulrasool
fc3014c9d7 platform: add ACLAPI to WinSDK
This is needed to implement chmod-like functionality on Windows.  Ensure
that the ACL APIs are available to swift.
2019-03-30 21:40:10 -07:00
Karoy Lorentey
2bd5da539e [stdlib] Fix Set/Dictionary casting issues
- Fix Set/Dictionary up/downcasting with String keys.
- Improve error handling.
2019-03-29 19:15:09 -07:00
Michael Ilseman
3923fb2268 [String] String.Index.init(_:within:) bounds checks
Bounds check the given index for String.Index's generic initializer
that makes sure a passed index is a valid one for the given
StringProtocol.
2019-03-29 15:43:00 -07:00
Michael Ilseman
0ece62d911 [String] Add Substring.base
Adds Substring.base, analogous to Slice.base, to access the entire
String.

Tests added.
2019-03-29 15:43:00 -07:00
Michael Ilseman
aa519362f3 [String] Add Character.UTF16View and Character.UTF8View
Adds these collections, which are just String's views.

Tests added.
2019-03-29 15:43:00 -07:00
Michael Ilseman
b19c2cf9c3 [String] Add generic String.Index and range inits within a String
Adds a generic version of String.Index.init?(_:within:) and
Range<String.Index>.init?(_:in:).

Tests added
2019-03-29 15:43:00 -07:00
Michael Ilseman
4967fc08eb [Unicode] Add convenience APIs to Unicode encodings
Add convenience APIs to the stdlib's Unicode encodings:

* Unicode.UTF16
  * isASCII
  * isSurrogate
* Unicode.UTF8
  * isASCII
  * width
* Unicode.UTF32
  * isASCII
* Unicode.ASCII
  * isASCII

Tests added
2019-03-29 15:43:00 -07:00
Michael Ilseman
b6a158e1fc [stdlib] Add LegacyABI.swift for legacy non-API declarations 2019-03-29 15:43:00 -07:00
Michael Ilseman
751cf26ef5 [Unicode.Scalar] Add RAC UTF8View
This adds new (availability-controlled) API to Unicode.Scalar,
exposing the scalar's UTF-8 code units as a random-access collection
similarly to how it currently exposes UTF-16 code units.

Tests added.
2019-03-29 15:43:00 -07:00
Karoy Lorentey
7b654b372f [stdlib] Fix availability of Dictionary’s bulk-loading initializer (#23643)
Making it @_alwaysEmitIntoClient makes it available in all OS versions.
2019-03-29 12:54:56 -07:00
simon gladman
80c529dd89 Add operations that return their result. 2019-03-29 16:48:08 +00:00
simon gladman
23b75ed3b0 Merge branch 'master' into accelerate-vDSP-linearInterpolation 2019-03-29 16:17:23 +00:00
simon gladman
6f803763a6 Add operations that return result. 2019-03-29 16:16:57 +00:00
simon gladman
3b87572e99 Merge branch 'master' into accelerate-vDSP-miscConversions 2019-03-29 15:40:56 +00:00
simon gladman
40523b399e add operations that return the result 2019-03-29 15:38:45 +00:00
simon gladman
3c7768e35a Merge branch 'master' into accelerate-vDSP-singleVectorOperations 2019-03-29 14:50:18 +00:00
simon gladman
a3478e0b46 Create versions of operations that return the result. 2019-03-29 14:47:12 +00:00
simon gladman
42355b390d Merge branch 'master' into accelerate-vDSP-differenceEquationAndDownsampling 2019-03-29 13:37:56 +00:00
simon gladman
6a700fdc2a Add operations that return the result 2019-03-29 13:34:32 +00:00
simon gladman
ebffbbef39 Merge branch 'master' into accelerate-vDSP-convolution 2019-03-29 11:38:33 +00:00
simon gladman
850e1a48de Add operations that return a result. 2019-03-29 11:21:28 +00:00
simon gladman
2308927ac1 Merge branch 'master' into accelerate-vDSP-geometry 2019-03-29 10:48:45 +00:00
simon gladman
2547585013 Add versions of operations that return a result. 2019-03-29 10:48:13 +00:00
Simon Gladman
05a53a4c57 Merge branch 'master' into accelerate-vDSP-polynomialEvaluation 2019-03-29 07:50:35 +00:00
David Smith
39745a1e5e Merge pull request #21627 from kubamracek/fix-data-race-on-emptyarraystorage
Fix a data race on _swiftEmptyArrayStorage reported by TSan
2019-03-28 17:38:21 -07:00
Luciano Almeida
a62c87f6cd [stdlib] Addressing Fixme comment atomic stdlib unit test flags (#23198)
* Addressing FIXME comment making StdlibUnittest flags atomic

* Commenting store

* Fix wrong change

* Add comment

* Addressing the PR comment suggestions.

* Remove public wrong place.

* Reverting comment iff

* Update stdlib/private/StdlibUnittest/StdlibUnittest.swift

Co-Authored-By: LucianoPAlmeida <passos.luciano@outlook.com>

* File private vars
2019-03-28 12:06:02 -07:00
simon gladman
f1e98b6147 Add versions of operations that return the result as an array. 2019-03-28 17:22:29 +00:00
simon gladman
45e60ba75a Merge branch 'master' into accelerate-vDSP-clippingLimitThreshold 2019-03-28 16:41:42 +00:00
simon gladman
f5afb0d779 Create integrations functions that return the result. 2019-03-28 16:40:25 +00:00
simon gladman
5c4fc18013 Merge branch 'master' into accelerate-vDSP-slidingWindow 2019-03-28 16:08:22 +00:00
simon gladman
65f1e6314c Merge branch 'master' into accelerate-vDSP-integration 2019-03-28 15:45:22 +00:00
Daniel Rodríguez Troitiño
28251a7a3b Merge pull request #19846 from drodriguez/android-aarch64-disable-powl
[android] Fix powl test in Android ARMv7/AArch64.
2019-03-28 07:20:51 -07:00
Daniel Rodríguez Troitiño
7455fb748f [android] Fix powl test in Android ARMv7/AArch64.
In Android ARMv7 there was no alias defined for CLongDouble, so
importing anything with long double was failing. Defining the alias
makes the test pass.

AAPCS64 defines long double as 128 bits, which is still unsupported by
Swift (SR-9072). Disable this particular test for Android and Linux in
AArch64 to not fail (but still test all the other tests).
2019-03-27 13:30:17 -07:00
simon gladman
75ca8c03d8 Merge branch 'master' into accelerate-vDSP-linearInterpolation 2019-03-27 17:06:53 +00:00
simon gladman
393c404a9c Merge branch 'master' into accelerate-vDSP-complexOperations 2019-03-27 17:04:20 +00:00
simon gladman
4a2cc1803a Merge branch 'master' into accelerate-vDSP-singleVectorOperations 2019-03-27 16:55:55 +00:00
simon gladman
c6e594f456 Merge branch 'master' into accelerate-vDSP-slidingWindow 2019-03-27 16:54:39 +00:00
simon gladman
f39351ac24 Merge branch 'master' into accelerate-vDSP-miscConversions 2019-03-27 16:16:35 +00:00
simon gladman
92feb8acd4 Merge branch 'master' into accelerate-vDSP-geometry 2019-03-27 15:49:42 +00:00
simon gladman
b076cac904 Merge branch 'master' into accelerate-vDSP-differenceEquationAndDownsampling 2019-03-27 15:25:12 +00:00
simon gladman
2f45f2a332 Merge branch 'master' into accelerate-vDSP-vectorReduction 2019-03-27 15:21:19 +00:00
simon gladman
31116aa278 Merge branch 'master' into accelerate-vDSP-polynomialEvaluation 2019-03-27 15:16:44 +00:00
simon gladman
5e41b10df6 Merge branch 'master' into accelerate-vDSP-clippingLimitThreshold 2019-03-27 15:13:36 +00:00
Mike Ash
965953d7a0 Merge pull request #23451 from mikeash/magic-symbols-for-install-name
[Build] Use magic linker symbols to specify an @rpath-relative install name when targeting pre-stable-ABI OSes.
2019-03-27 08:10:30 -07:00
simon gladman
06f0565b6f Merge branch 'master' into accelerate-vDSP-fillClearGenerate 2019-03-27 15:08:57 +00:00
simon gladman
0e82e8f71f Merge branch 'master' into accelerate-vDSP-convolution 2019-03-27 14:56:46 +00:00
simon gladman
6597c0db31 Merge branch 'master' into accelerate-vDSP-integration 2019-03-27 14:53:45 +00:00
simon gladman
65e2eb6d8b Merge branch 'master' into accelerate-vDSP-elementwiseVectorArithmetic 2019-03-27 14:48:22 +00:00
simon gladman
c12cf57294 Merge branch 'master' into accelerate-vDSP-conversion 2019-03-27 14:45:10 +00:00
David Zarzycki
ec7647b6b7 [Runtime] Fix trivial Linux build failure 2019-03-27 08:50:20 -04:00