Commit graph

238 commits

Author SHA1 Message Date
Dmitry Olshansky
c1027f1970 Merge pull request #4246 from wilzbach/sed_spaces_part_2
style fix: add space after 'for' operator
2016-04-27 16:17:18 +04:00
Sebastian Wilzbach
d1714c9afb minor style fixes 2016-04-27 04:18:22 +03:00
Sebastian Wilzbach
5a8988c149 style fix: add space after for operator 2016-04-27 02:04:02 +03:00
Sebastian Wilzbach
3d67cd228c style fix: space between operators 2016-04-26 22:26:20 +03:00
Steven Schveighoffer
630e227c5a Merge pull request #3992 from quickfur/bigint_octal
Issue 14503: Implement formatting BigInt in octal
2016-03-31 16:56:40 -04:00
H. S. Teoh
b12b767b7c output() should take unsigned parameter. 2016-03-31 11:05:59 -07:00
Dan Olson
b938a74628 Fix NaN payload unittest in errorfunction
For some platforms, math on a NaN may change the sign.  This is
ok according to C99.  Replaced with test that ignores signbit.
2016-03-19 15:29:00 -07:00
Sebastian Wilzbach
d81030ab8a convert docstring examples to unittests 2016-03-03 15:24:26 +02:00
H. S. Teoh
6282dda407 Implement conversion of biguint to octal.
Carried bits in last word must be output at the end.

Add unittest for 3rd/4th word no-carry boundary.

Implement 'o' format specifier in BigInt.toString().
2016-02-25 13:30:35 -08:00
Ilya Yaroshenko
1e665d24b2 Merge pull request #3928 from burner/dummyrange_variable_type
Make DummyRange work this types other than uint
2016-02-23 15:19:36 +02:00
Martin Nowak
ce2ac192c9 fix incorrect imports/fqn usages
- mostly of the form `import a.b : sym; a.b.sym();`, which is wrong b/c
  selective imports do not add the module to the current scope
2016-02-20 14:41:44 +01:00
Lars T. Kyllingstad
50e3fc6b74 Merge pull request #3989 from WalterBright/zipprocess
fix problems that prevent implementing import shadowing protection
2016-02-12 08:45:46 +01:00
Walter Bright
8e6faa560f fix problems that prevent implementing import shadowing protection 2016-02-11 22:38:53 -08:00
Robert burner Schadek
fd55091784 Make DummyRange work this types other than uint
* fixating the current DummyRange behaviour in a unittest.
* structured the tests a little
* DummyRange with custom types

style

style again

even more style

spaces
2016-01-13 21:26:21 +01:00
JakobOvrum
644cec80ba Merge pull request #3874 from JackStouffer/bigint
Added ReferenceBidirectionalRange to std.internal.test.dummyrange
2016-01-09 18:12:21 +09:00
Benjamin L. Merritt
5f08c058ab Changed "Examples:" in Ddoc to "Example:" 2015-12-17 18:32:41 -08:00
Jack Stouffer
467276cc92 added ReferenceBidirectionalRange to std.internal.test.dummyrange 2015-12-16 16:55:29 -05:00
Ryan Roden-Corrent
79fd6aac79 Enable getSymbolsByUDA to retrieve private members.
Resolves #15335: getSymbolsByUDA fails if type has private members.
Generous (ab)use of mixins allows getSymbolsByUDA to reference symbols
without trying to access them, allowing it to inspect private members
without failing.

Testing this required private symbols defined outside of std.traits.
This adds std.internal.test.uda, which defines a struct containing
private members that is used in a unittest added to std.traits.
2015-11-28 07:14:47 -05:00
Robert Schadek
f5ce17346d Merge pull request #3806 from 9il/dr
update dummyrange.d
2015-11-12 16:03:14 +01:00
Ilya Yaroshenko
efd177e092 update dummyrange.d 2015-11-11 22:44:07 -08:00
Martin
a3035d7d77 Slightly relax std.internal.math.gammafunction unittest for 64-bit reals
Using LDC master on Win64, I get a relative diff of 1.068e-15 for the
second tuple (input = 1/8), exceeding the allowed upper bound by not even
7%. I chose to be generous and doubled the limit. ;)

More details for the 2nd tuple:
actual:   0x1.0a333fd8b6880p+2
expected: 0x1.0a333fd8b687bp+2
rel diff: 1.067682e-15

The other 4 tuples are perfect matches.
2015-11-08 15:27:34 +01:00
Walter Bright
cf22992cbb Merge pull request #3768 from CyberShadow/pull-20151024-051829
HTML fixes
2015-10-24 15:05:00 -07:00
Vladimir Panteleev
86cf380007 HTML fixes 2015-10-24 06:19:23 +00:00
Brian Schott
c33306d2ca Merge pull request #3750 from WalterBright/sha_SSSE3
sha_SSSE3.d: small optimization
2015-10-19 11:30:58 -07:00
Walter Bright
7fe9cc897c sha_SSSE3.d: small optimization 2015-10-19 07:12:27 -07:00
Walter Bright
db53e3b153 biguintcore: eliminated unnecessary divides 2015-10-19 07:00:42 -07:00
Dragos Carp
d698887729 Remove obsolete TypeTuple references
Replace following names:
std.typetuple      -> std.meta
TypeTuple          -> AliasSeq
ParameterTypeTuple -> Parameters
FieldTypeTuple     -> Fields

std.traits requires more work than search/replace and is left unchanged.
2015-10-13 20:37:44 +02:00
Martin Nowak
12119cf360 fix tempCString to support null cstring results again 2015-09-07 16:47:35 +02:00
Martin Nowak
18c5b270e0 Merge remote-tracking branch 'upstream/stable' into merge_stable
Conflicts:
	std/internal/cstring.d
	win64.mak
2015-09-07 00:44:29 +02:00
k-hara
156bf68ef7 fix Issue 14980 - getAddressInfo(null) broken 2015-08-31 21:57:01 +09:00
Johan Engelen
0bd234bfe2 Provide MAXGAMMA, MAXLOG, and MINLOG for 64-bit reals.
Inside gammaStirling(), fix a call to pow() that would overflow for 64-bit reals.
2015-07-20 22:42:04 +02:00
Walter Bright
feb88b8148 std.internal.math.biguintcore: minor improvements 2015-07-02 18:41:28 -07:00
H. S. Teoh
47dfc369b0 Merge pull request #3240 from e10s/issue14503
Fix BigInt.toString with "%x"
2015-06-30 10:56:00 -07:00
Iain Buclaw
c3b05edcc5 Merge pull request #3309 from ibuclaw/fix_pr3020
Relax compile-time assertion in gammafunction to runtime
2015-06-30 18:09:04 +02:00
Iain Buclaw
65b103fc08 Relax compile-time assertion in gammafunction to runtime 2015-06-25 11:23:51 +02:00
Walter Bright
4f338368ea std.internal.cstring - @nogc must be inferred 2015-06-18 21:43:57 -07:00
Walter Bright
681964cfbf get tempCString to infer @trusted 2015-06-17 10:16:33 -07:00
Walter Bright
ed1a063e68 Range-ify std.internal.cstring 2nd try 2015-06-16 18:02:00 -07:00
Hara Kenji
46794c7695 Revert "Range-ify std.internal.cstring" 2015-06-13 16:52:55 +09:00
Walter Bright
4d9a304d8c Range-ify std.internal.cstring 2015-06-12 00:39:34 -07:00
Rainer Schuetze
adab223837 remove trailing whitespace, detab, tolf 2015-05-31 11:24:01 +02:00
Daniel Murphy
f98468d0a9 Merge pull request #3339 from burner/internal_windows_advapi_alias_syntax_update
internal_windows_advapi: alias syntax update
2015-05-28 19:12:15 -06:00
Robert burner Schadek
5ec5740ff3 alias fix 2015-05-28 19:50:00 +02:00
Martin
468a7ed080 std.internal.math.gammafunction: loosen some tests for 64-bit reals. 2015-05-21 23:09:55 +02:00
Clement Courbet
8558b22cfe Remove a bad cast (issue 3841). Functional noop. 2015-05-13 20:20:03 +02:00
Walter Bright
d9a9826e55 Revert "Introducing std.meta package" 2015-05-06 14:36:45 -07:00
Dicebot
7970fcc748 Don't use fqn for any/all
In most cases it resolves unambiguosly
2015-05-05 22:22:11 +03:00
Dicebot
1c9ae027ef Rename old std.typetuple symbols inside Phobos
staticIndexOf -> indexOf
allSatisfy -> all
anySatisfy -> any
staticMap -> Map
2015-05-05 22:22:11 +03:00
Dicebot
82f54a38d3 TypeTuple -> MetaList inside Phobos 2015-05-05 22:22:11 +03:00
Dicebot
73f773838d import std.typetuple -> import std.meta 2015-05-05 22:22:10 +03:00