Xiaodi Wu
8014793cf1
Remove final _mixInt in synthesized hashValue and improve the _combineHashValues magic number
2018-02-03 00:06:48 -06:00
Xiaodi Wu
bd6d94063d
Update link citing Hoad and Zobel (2003)
2018-01-27 00:00:27 -06:00
Max Moiseev
5650f80937
[stdlib] Annotate types with @_fixed_layout
...
This will allows us to build the standard library in resilient mode by
default, hopefully, without performance regression.
<rdar://problem/36362648>
2018-01-09 14:46:30 -08:00
Xiaodi Wu
30d5e344b1
Rename the combine hashes function and use a common implementation
2017-12-10 02:13:25 -06:00
Tony Allevato
715ba632dd
Merge branch 'master' into synthesize-equatable-hashable
2017-10-09 15:57:36 -07:00
Max Moiseev
53b8419279
[stdlib] Make all the stdlib APIs @_inlineable
...
This change in theory should allow us to remove a special stdlib-only
sil-serialize-all compilation mode.
<rdar://problem/34138683>
2017-09-29 11:26:56 -07:00
Tony Allevato
3618164330
[stdlib] Add _mixForSynthesizedHashValue to stdlib
2017-09-24 08:55:45 -07:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
practicalswift
797b80765f
[gardening] Use the correct base URL ( https://swift.org ) in references to the Swift website
...
Remove all references to the old non-TLS enabled base URL (http://swift.org )
2016-11-20 17:36:03 +01:00
Erik Eckstein
a006d3ca83
stdlib: improve comments
2016-09-20 16:34:51 -07:00
Erik Eckstein
8b1184708e
stdlib: replace _squeezeHashValue with a specialized version for power-of-2 ranges.
...
This function is only used for Set and Dictionary and there the range (which is the capacity) is always a power of 2.
2016-09-20 16:34:51 -07:00
airspeedswift
ed5231b47c
Numbered all FIXME(ABI) entries for tracking purposes. ( #4868 )
2016-09-19 16:41:41 -07:00
Dmitri Gribenko
daa7bfc281
stdlib: add a secret key for hashing
2016-09-06 20:41:03 -07:00
Bryan Chan
85fde8b1fb
Add support for Linux s390x. LLVM's Swift calling convention support is used to ensure correct operations of C++ code in the runtime. This patch also includes some (incomplete) changes to enum handling to make enums work in most common cases.
2016-05-24 20:03:28 -04:00
Dmitri Gribenko
d591f9cf7a
stdlib: remove most uses of @warn_unused_result, which does nothing now
...
I kept the one on sorted(), because that one requires a less trivial
change.
2016-05-19 18:39:39 -07:00
Dmitri Gribenko
10697f939f
Merge commit '510f29abf77e202780c11d5f6c7449313c819030' into swift-3-indexing-model
2016-04-14 13:45:27 -07:00
Manav Gabhawala
7928140f79
[SE-0046] Implements consistent function parameter labels by discarding extraneous parameter names and adding _ where necessary
2016-04-06 20:21:58 -04:00
Dmitri Gribenko
6985b958fd
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-04 11:42:17 -07:00
Slava Pestov
7b91cbd551
stdlib: Add @_versioned attributes needed for resilient build
2016-04-01 13:07:18 -07:00
Dave Abrahams
f493b54e44
[stdlib] indexing model: Interval/Range merge
...
This is step 1; we still need to introduce ClosedRange.
2016-03-16 15:59:10 -07:00
Hugh Bellamy
c1b25bb32f
[gardening] Remove double new lines from stdlib files
2016-03-05 15:44:54 +00:00
Anton Blanchard
b1827d8a8f
Add powerpc64le Linux support
...
This patch adds powerpc64le Linux support. While the patch also adds
the matching powerpc64 bits, there are endian issues that need to be
sorted out.
The PowerPC LLVM changes for the swift ABI (eg returning three element
non-homogeneous aggregates) are still in the works, but a simple LLVM
fix to allow those aggregates results in swift passing all but 8
test cases.
2016-01-15 06:48:31 +00:00
Zach Panzarino
e3a4147ac9
Update copyright date
2015-12-31 23:28:40 +00:00
ken0nek
fcd8fcee91
Convert [Cc]an not -> [Cc]annot
2015-12-23 00:55:48 +09:00
arpit
291d991969
fix typo : avalance => avalanche
2015-12-08 18:59:31 +05:30
Jordan Rose
cf8baedee2
Re-apply "Rename @transparent to @_transparent for now."
...
This re-applies 90fcbfe9a6 . I'll be committing
the corresponding change to Foundation momentarily.
2015-11-16 10:53:56 -08:00
Xin Tong
16843684b2
Revert "Rename @transparent to @_transparent for now."
...
This reverts commit 90fcbfe9a6 .
Seems there are still some tests that are left not modified.
2015-11-14 07:04:31 -08:00
Jordan Rose
90fcbfe9a6
Rename @transparent to @_transparent for now.
...
This feature has not been fully designed, let alone properly implemented.
For more information, see docs/TransparentAttr.rst.
2015-11-13 16:25:34 -08:00
Dmitri Hrybenko
dd3194a18c
stdlib: adopt @warn_unused_result
...
rdar://20957486
Swift SVN r31048
2015-08-06 14:53:18 +00:00
Dave Abrahams
ee8daf63d7
Yon semicolon doth offend mine eye
...
Swift SVN r28450
2015-05-12 01:56:39 +00:00
Doug Gregor
793b3326af
Implement the new rules for argument label defaults.
...
The rule changes are as follows:
* All functions (introduced with the 'func' keyword) have argument
labels for arguments beyond the first, by default. Methods are no
longer special in this regard.
* The presence of a default argument no longer implies an argument
label.
The actual changes to the parser and printer are fairly simple; the
rest of the noise is updating the standard library, overlays, tests,
etc.
With the standard library, this change is intended to be API neutral:
I've added/removed #'s and _'s as appropriate to keep the user
interface the same. If we want to separately consider using argument
labels for more free functions now that the defaults in the language
have shifted, we can tackle that separately.
Fixes rdar://problem/17218256.
Swift SVN r27704
2015-04-24 19:03:30 +00:00
Dmitri Hrybenko
350248dae5
Reorganize the directory structure under 'stdlib'
...
The standard library has grown significantly, and we need a new
directory structure that clearly reflects the role of the APIs, and
allows future growth.
See stdlib/{public,internal,private}/README.txt for more information.
Swift SVN r25876
2015-03-09 05:26:05 +00:00