Max Moiseev
9518082c3f
Removing dead and commented code
2016-12-15 15:22:54 -08:00
Max Moiseev
d7e92a5bc5
Using masking shifts
2016-12-15 14:53:56 -08:00
Max Moiseev
61b923f396
Using init(extendingOrTruncating:) instead of a deprecated init(truncatingBitPattern:)
2016-12-15 14:53:31 -08:00
Nate Cook
f2bc719eff
[stdlib] Address feedback from @stephentyrone
2016-12-15 13:55:38 -06:00
Nate Cook
a14daa0c44
[stdlib] Address feedback from @gottesmm
2016-12-15 13:52:33 -06:00
Nate Cook
e070568078
[stdlib] Add documentation for pointer operators
2016-12-15 13:51:32 -06:00
Nate Cook
3bc4909de8
[stdlib] Various revisions and fixes for documentation
...
- Fix wording for RandomAccessCollection
- Add note about array growth to reserveCapacity(_:)
- Reformat lazy flatMap discussions
- Improve Collection symbol consistency
2016-12-15 11:47:19 -06:00
Max Moiseev
9a8cdbc703
Merge branch 'master' into new-integer-protocols
2016-12-14 17:18:02 -08:00
Max Moiseev
701740a884
Revert "Speeding up the generic smart shift"
...
This reverts commit 26111e8dd8 .
2016-12-14 13:54:37 -08:00
Max Moiseev
26111e8dd8
Speeding up the generic smart shift
2016-12-14 13:54:28 -08:00
Nate Cook
7494e2045e
[stdlib] Revise unsafe pointers documentation
...
This revises and expands upon documentation for the standard library's
unsafe pointer types. This includes typed and raw pointers and buffers,
the MemoryLayout type, and some other top-level functions.
2016-12-14 14:58:24 -06:00
Robert Widmann
be9f205115
Merge pull request #6246 from CodaFi/the-farmer-refuted
...
[Stdlib][ABI] Resolve ABI FIXME #25
2016-12-14 12:20:45 -05:00
Max Moiseev
7a8a840071
Fixing a typo
2016-12-13 16:16:37 -08:00
Max Moiseev
bfbab798b9
Merge branch 'master' into new-integer-protocols
2016-12-13 14:43:31 -08:00
Max Moiseev
0b271e86d1
Removing overloads of == on concrete types in favor of a generic one that is now faster
2016-12-13 10:47:36 -08:00
Max Moiseev
b42c5144d8
Commenting an overload that leads to compiler error
2016-12-13 10:46:52 -08:00
Robert Widmann
fe00dc74ea
Get rid of _stdlib_didEnterMain
...
Process arguments are now fetched per-platform
2016-12-12 23:47:48 -05:00
Max Moiseev
c655d8a053
Cleaning up the smart shifts
2016-12-12 14:47:17 -08:00
Max Moiseev
74253ea91f
Speeding up the heterogeneous == and < by using more opimizable checks
2016-12-12 14:25:32 -08:00
Diego Torres
7168a9ea6a
Resolve unnecessary buffer copy in HashedCollections
2016-12-11 21:54:09 +01:00
Alexis Beingessner
ec4c99377e
Merge pull request #6127 from Gankro/escape-fix
...
[stdlib] remove unsafe escaping closure hack
2016-12-09 14:43:34 -05:00
Max Moiseev
5fb929cabf
Merge branch 'master' into new-integer-protocols
2016-12-09 10:51:48 -08:00
Max Moiseev
72fe1e4cac
Speeding up .description for built-in integers
2016-12-08 15:19:33 -08:00
Max Moiseev
4831aac549
Speeding up conversion between integer types
...
This change levereges the fact that there is no need to check for the
upper bound if the source type if narrower than the destination type.
2016-12-08 15:19:32 -08:00
Hooman Mehr
d7d05e1a92
Make .significandWidth do the right thing for exact powers of two
...
Resolves SR-2868.
2016-12-08 14:49:19 -05:00
Max Moiseev
9b2f8858ec
Merge branch 'master' into new-integer-protocols
2016-12-08 09:38:38 -08:00
Max Moiseev
485e7c06f8
More type hints and inlining to speed up integer convertions
2016-12-07 16:17:33 -08:00
Alexis Beingessner
aba7ade5e9
[stdlib] remove unsafe escaping closure hack
2016-12-07 15:43:18 -05:00
Mishal Shah
b01eb90844
Merge pull request #6103 from apple/revert-5978-redundant-array-init-removal
...
Revert "SILOptimizer: Replace Array.append(contentsOf: with Array.append(elem…"
2016-12-06 15:03:34 -08:00
Max Moiseev
01ba85d95f
Type hints for operators
2016-12-06 14:41:43 -08:00
Max Moiseev
edc08ac587
Adding prefix ~ protocol requirement to FixedWidthInteger
2016-12-06 13:48:10 -08:00
Max Moiseev
ae89d38f25
Consistent implementation of mutating vs non-mutating operators on FixedWidthInteger
2016-12-06 13:35:36 -08:00
Maxim Moiseev
bfae2471d6
[stdlib] operators on pointer types to static funcs ( #6100 )
2016-12-06 13:32:32 -08:00
Max Moiseev
b9c910a2b9
Deprecation message to FixedWidthInteger.allZeros
2016-12-06 12:36:59 -08:00
Mishal Shah
5eece8860f
Revert "SILOptimizer: Replace Array.append(contentsOf: with Array.append(elem…"
2016-12-06 11:26:15 -08:00
Max Moiseev
356c15cb4a
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2016-12-06 10:35:27 -08:00
Alexis Beingessner
b4d30b7c1a
Merge pull request #5988 from Gankro/roundup
...
[stdlib] delete dead code
2016-12-05 22:19:27 -05:00
Max Moiseev
d8e35f20b7
Adding trailingZeros property to BinaryInteger protocol
...
<rdar://problem/17505796>
2016-12-05 16:35:59 -08:00
Slava Pestov
a32e11a0de
Merge pull request #6064 from slavapestov/killing-substituted-type-access-check
...
Refactor accessibility checking to use TypeReprs (most of the time) rather than Types
2016-12-05 13:19:58 -08:00
Roman Levenstein
e34ae86be4
Merge pull request #5978 from ben-ng/redundant-array-init-removal
...
SILOptimizer: Replace [].append(contentsOf:) with [].append(element:)
2016-12-05 11:24:08 -08:00
Ben Ng
1b10c18b3e
SILOptimizer: Replace [].append(contentsOf:) with [].append(element:)
2016-12-05 12:27:42 -05:00
Slava Pestov
d1b753c46a
Sema: Remove a workaround for an accessibility problem in the standard library
2016-12-04 23:57:11 -08:00
Max Moiseev
baf392eda4
Deprecating the BitwiseOperations protocol in favor of FixedWidthInteger
2016-12-02 16:59:32 -08:00
Ben Cohen
30fc489b9b
Remove trampolines for using concrete hashable types with Set/Dictionary of AnyHashable
2016-12-02 15:38:07 -08:00
Nate Cook
df8486dc0d
Merge pull request #5994 from Gankro/doc-ptr
...
Fixups for UnsafePointer documentation
2016-12-02 11:27:22 -06:00
Alexis Beingessner
ff82c1e59f
[docs] Change argument name to match docs.
2016-11-30 18:35:54 -05:00
Alexis Beingessner
8e4f98ff42
[docs] downgrade internal notes to normal comments.
2016-11-30 18:35:54 -05:00
Alexis Beingessner
3d0d3e17a9
[docs] Add GEP preconditions to UnsafePointer.
...
Offsets lower to GetElementPointer inbounds, which specifies that it's
Undefined Behaviour for the result to be out of bounds, regardless of if
the result is actually dereferenced.
2016-11-30 18:35:54 -05:00
Joe Groff
1f6a8ff3ea
Merge pull request #5394 from spevans/pr_libicu_with_static_executable
...
[SR-648] Add option to create statically linked binaries (take 2)
2016-11-30 12:34:58 -08:00
Alexis Beingessner
bd50a6a5c6
[stdlib] delete dead code
2016-11-30 15:17:20 -05:00