Commit Graph

4650 Commits

Author SHA1 Message Date
Wojtek Czekalski
1ed9da86db Fix precision of float to string to max significant decimals
The default precision which is used for converting floating point numbers to strings leads to many confusing results. If we take a Float32 1.00000000 value and 1.00000012 of the same type, these two, obviously are not equal. However, if we log them, we are displayed the same value. So a much more helpful display using 9 decimal digits is thus: [1.00000000 != 1.00000012] showing that the two values are in fact different.
(example taken from: http://www.boost.org/doc/libs/1_59_0/libs/test/doc/html/boost_test/test_output/log_floating_points.html)

I'm by no means a floating point number expert, however having investigated this issue I found numerous sources saying that "magic" numbers 9 and 17 for 32 and 64 bit values respectively are the correct format. Numbers 9 and 17 represent the maximum number of decimal digits that round trips. This means that number 0.100000000000000005 and 0.1000000000000000 are the same as their floating-point representations are concerned.
2015-12-14 13:48:41 +01:00
Dmitri Gribenko
931b07fb62 Merge pull request #474 from PatrickPijnappel/patch-3
Expand tuple properties in Zip2Sequence/Generator
2015-12-14 02:45:37 -08:00
Chris Willmore
070d11031d Merge pull request #452 from dayitv89/gds-Fixtypos_cstring
Fix typo "nul-terminated" -> "null-terminated"
2015-12-13 21:06:42 -08:00
Dmitri Gribenko
a014eab642 Merge pull request #490 from kballard/swap-docstring-requires
[stdlib] Add note to swap() docstring about non-aliasing requirement
2015-12-13 18:03:49 -08:00
Arnold Schwaighofer
391237b134 Use subscript get for all array like types
Given SR-219 and the fact that we can't hoist uniqueness checks in the current
form using a plain subscript getter is not worse.
2015-12-13 17:25:41 -08:00
Michael Gottesman
b838e121ed Merge pull request #502 from practicalswift/fix-typos-6
Fix typos (6 of 30)
2015-12-13 19:03:41 -06:00
Dmitri Gribenko
83751888c7 Start porting Swift to Linux on aarch64 (arm64)
Hello world works, a non-trivial part of the testsuite passes.
2015-12-13 17:05:42 -07:00
practicalswift
071bf9ddb1 Fix typo: completly → completely 2015-12-14 00:11:25 +01:00
Kevin Ballard
a8833b5873 [stdlib] Add note to swap() docstring about non-aliasing requirement 2015-12-13 13:54:17 -08:00
Niels Andriesse
1c9eb6cfac Update _transcodeSomeUTF16AsUTF8(_:_:) for removal of ++ operator 2015-12-13 23:09:42 +11:00
Patrick Pijnappel
bbe0e514a2 [stdlib] Fix capitalization 2015-12-13 21:37:44 +11:00
Patrick Pijnappel
86e25e7e57 [stdlib] Fix word join grammar 2015-12-13 21:37:31 +11:00
Patrick Pijnappel
4aa89978d2 [stdlib] Fix typos 2015-12-13 21:35:53 +11:00
Patrick Pijnappel
4db650d01f De-joined property declarations 2015-12-13 20:08:29 +11:00
Patrick Pijnappel
c86e4a800b Expand tuple properties in Zip2Sequence/Generator
The previous arrangement made the numbering inconsistent, e.g. `baseStreams.1` was of type `Generator2`.
2015-12-13 19:39:14 +11:00
Dmitri Gribenko
f28d34845c Merge pull request #439 from hpux735/master
Beginning support for ARMv7 hosts (RasPi, etc.)
2015-12-13 00:10:20 -08:00
William Dillon
4bf81e09da Build working on ARMv7l 2015-12-12 22:06:13 -08:00
Dmitri Gribenko
ecd3c07a86 Merge pull request #466 from PatrickPijnappel/doc-nil
[stdlib] Add missing backticks around nil in docs
2015-12-12 19:56:23 -08:00
Dmitri Gribenko
0cf9b3e361 Merge pull request #470 from PatrickPijnappel/implicit-optionals
[stdlib] Replace `.Some(x)` and `.None` by `x` and `nil`, respectively
2015-12-12 19:55:34 -08:00
Niels Andriesse
d7bbee1e6b Update LazyFilterCollection.startIndex for removal of ++ operator
SIL is identical: https://gist.github.com/nielsandriesse/90761d98194b5f15a536
2015-12-13 12:33:37 +11:00
Chris Willmore
54be4fc3ff Remove @_transparent annotation from _undefined().
Following comments from Dmitri on c99c02b.
2015-12-12 17:12:44 -08:00
Patrick Pijnappel
668e7101eb [stdlib] Replace .None by nil in doc comments 2015-12-13 12:10:43 +11:00
Patrick Pijnappel
95622c435b [stdlib] Replace .Some(x) and .None by x and nil, respectively 2015-12-13 12:10:43 +11:00
Dmitri Gribenko
b9175c2a38 Merge pull request #443 from nielsandriesse/patch-3
Update IndexingGenerator.next() function for removal of ++ operator
2015-12-12 15:38:56 -08:00
Chris Lattner
778d66a72d Merge pull request #445 from nielsandriesse/patch-5
Update RangeGenerator.next() function for removal of ++ operator
2015-12-12 15:18:37 -08:00
Niels Andriesse
7275aa2c84 Change element to result 2015-12-13 10:16:52 +11:00
Dmitri Gribenko
9359b8a9f7 Merge pull request #465 from nielsandriesse/patch-7
Fix inconsistent indentation
2015-12-12 15:05:25 -08:00
Dmitri Gribenko
1808766152 Merge pull request #366 from PatrickPijnappel/patch-2
Fix comment in Zip2
2015-12-12 15:04:33 -08:00
Niels Andriesse
7398a88d2c Fix documentation 2015-12-13 09:44:00 +11:00
Patrick Pijnappel
6838f300b1 [stdlib] Add missing backticks around nil in docs 2015-12-13 09:40:49 +11:00
Niels Andriesse
a67ef174c0 Fix inconsistent indentation 2015-12-13 09:32:18 +11:00
Niels Andriesse
41d1589f95 Make local variable name more expressive 2015-12-13 09:21:04 +11:00
Patrick Pijnappel
92c8cdabe4 [stdlib] Unabbreviate local variable names 2015-12-13 08:43:24 +11:00
Greg Parker
1cc2fdd0b4 Merge pull request #339 from cielavenir/patch-1
Add withVaList() for environments without ObjC
2015-12-12 13:37:47 -08:00
T. Yamada
6773f9367a Add withVaList() for environments without ObjC 2015-12-12 22:31:49 +09:00
Dmitri Gribenko
0cc49187bb Merge pull request #368 from PatrickPijnappel/patch-3
stdlib: Merge guards in Zip2Generator
2015-12-12 01:42:27 -08:00
Dmitri Gribenko
27feeeda04 Merge pull request #446 from dayitv89/gds-FixTypos_BridgeOC
Fix Typos
2015-12-12 01:40:16 -08:00
Dmitri Gribenko
a6b0cd59fb Merge pull request #448 from dayitv89/gds-FixTypos_RuntimeShims
fix typos
2015-12-12 01:39:49 -08:00
GauravDS
14bfc33b82 Fix typos
colection => collection
2015-12-12 13:47:54 +05:30
GauravDS
ed59a58872 fix typos
constistently => consistently
2015-12-12 13:43:41 +05:30
GauravDS
161332cb5e fix typos nul => null 2015-12-12 13:22:51 +05:30
GauravDS
5ee32e43f4 Fix Typos
conditionall => conditionally 
alaways => always
2015-12-12 13:10:54 +05:30
Niels Andriesse
c3703f91cc Change guard statement to if statement 2015-12-12 18:02:14 +11:00
Niels Andriesse
12b85a1cf8 Change .None to nil 2015-12-12 17:45:22 +11:00
Niels Andriesse
d30db93977 Update next() function for removal of ++ operator 2015-12-12 17:43:12 +11:00
Niels Andriesse
f0241a2393 Fix documentation 2015-12-12 17:01:46 +11:00
Dmitri Gribenko
306c586f0a Merge pull request #413 from billabt/fcntl-extension
Implementation of fcntl() to both Darwin and Glibc overlays.  Ported …
2015-12-11 21:25:11 -08:00
Dmitri Gribenko
ba6643c7a4 CMake: allow the build to succeed when the path to Xcode contains spaces
Tests still have issues in that setup.
2015-12-11 18:56:30 -08:00
Dmitri Gribenko
9bedc1cffd cmake: remove debugging 'message()' 2015-12-11 19:27:35 -07:00
Niels Andriesse
dc0612ccd4 Replace successor() by _successorInPlace() 2015-12-12 13:26:13 +11:00