Commit graph

96 commits

Author SHA1 Message Date
tsbockman
9da546b2a6 core.bitop bsr(), bsf(), and popcnt() now support ulong inputs even on a 32-bit arch.
This also fixes a few small issues:
* In std.numeric, `Ulong union` didn't consider endianness, and
* in `roundDownToPowerOf2()`, this expression: (1 << bsr(num)) is always 32-bit,
    whereas it should, at a minimum, match the bit-ness of num.
* ilogb() supports integer inputs, but this was undocumented.
2016-01-13 13:54:27 -08: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
Rainer Schuetze
adab223837 remove trailing whitespace, detab, tolf 2015-05-31 11:24:01 +02:00
Walter Bright
d9a9826e55 Revert "Introducing std.meta package" 2015-05-06 14:36:45 -07: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
Ilya Yaroshenko
33e8972c64 fix docs 2015-03-20 21:13:11 +03:00
Martin Nowak
27d3a41158 Merge pull request #3028 from 9il/fr
findRoot: fix Issue 14231
2015-03-14 06:57:04 +01:00
Denis Shelomovskij
62279377e4 [Minor] Fix last std.numeric.findRoot overload without tolerance delegate. 2015-03-06 19:51:25 +03:00
Ilya Yaroshenko
5b8cf59961 fix Issue 14231
fix findRoot documatntation
2015-03-05 14:58:09 +03:00
Ilya Yaroshenko
f4ea980d21 fix docs for 2.067
fix comment

fix docs
2015-02-27 18:54:11 +03:00
Robert burner Schadek
ced096ccf2 documentation update for numeric.d
* moved examples to unittests
* removed dead code
2015-01-26 15:08:49 +01:00
Ilya Yaroshenko
2c744b54e1 std.range: constraints => primitives
See discussion and voting in #2661
2014-11-23 20:05:20 +03:00
David Nadlinger
7e80e67630 Merge pull request #2728 from 9il/typecons
std.typecons: remake toString to template, clean module imports
2014-11-20 22:11:54 +01:00
Ilya Yaroshenko
af02101ab9 std.typecons: remake toString to template, clean module imports
update datetime unittests
2014-11-20 23:08:33 +03:00
Lars T. Kyllingstad
96583fe46b isNaN() is not a property
...so it shouldn't be used as one.
2014-11-20 20:22:00 +01:00
k-hara
4f5a6e5811 Add missing imports 2014-11-21 00:16:47 +09:00
Ilya Yaroshenko
eec74c83a2 std.numeric: clean import & CustomFloat printing fix
update toString  template

Issue 13737

new comment

add brace
2014-11-15 23:20:53 +03:00
Ilya Yaroshenko
b6dce24172 unqual
update unittests
2014-11-14 14:14:04 +03:00
Martin Nowak
26b28ec564 Merge pull request #2639 from 9il/findroot
fix Issue 13662: @safe pure nothrow @nogc findRoot
2014-11-07 05:02:32 +01:00
Ilya Yaroshenko
921f88a989 std.numric: clean imports 2014-11-07 00:48:37 +03:00
Ilya Yaroshenko
720c26afbe fix findRoot 2014-11-06 22:20:19 +03:00
Martin Nowak
5f9b77a5b7 Merge pull request #2637 from 9il/fptemp
remove FPTemporary usage
2014-11-06 15:19:42 +01:00
Ilya Yaroshenko
9b20fb00b3 remove FPTemporary usage 2014-10-25 00:43:27 +04:00
Ilya Yaroshenko
aaa00bfb1d update std.math and numeric
is->are
2014-10-25 00:23:30 +04:00
Martin Nowak
c855945f46 Merge pull request #2614 from Geod24/fix-license-doc
[DDOC] Usage of WEB macro for License everywhere
2014-10-17 00:16:49 +02:00
Geod24
0fb95b8c27 Usage of WEB macro for License everywhere 2014-10-15 11:30:42 +02:00
Joakim
093d636de4 Deprecate std.c.* and move all remaining declarations to core.stdc.* 2014-10-14 09:26:21 -05:00
H. S. Teoh
0a57450c41 Wholesale coding style fix for std.numeric. 2014-09-24 10:57:52 -07:00
H. S. Teoh
13c0a4b003 Coding style fixup for PR 2500.
As requested by Andrei.
2014-09-23 13:23:40 -07:00
H. S. Teoh
e4e2739c7b Merge pull request #2500 from 9il/sum-of-logs
added sumOfLog2s
2014-09-23 12:59:06 -07:00
Ilya Yaroshenko
be147398b4 std.numreic: added sumOfLogarithms
renamed, and updated

remove CustomFloat support

remove blank line

update comment

update return type

rename sumOfLogs -> sumOfLog2s

update unittest
2014-09-23 23:29:10 +04:00
Ilya Yaroshenko
e125d03fdb findRoot optimization
restore signbit check

findRoot style update

findRoot style update 2
2014-09-19 21:36:02 +04:00
k-hara
a9c2dc1e6b [bugfix] Initialize uncertain field value 2014-08-22 22:46:54 +09:00
Ilya Yaroshenko
5e1a808f94 rebase 2014-08-06 08:50:13 +04:00
Ilya Yaroshenko
0747cc2816 Update numeric.d
clear comment
2014-07-18 01:02:26 +04:00
Ilya Yaroshenko
7f32ccb8c9 Update numeric.d 2014-07-18 00:51:59 +04:00
Ilya Yaroshenko
9f69de08cd findRoot fix
#1894 #1893 rewopen
2014-06-23 20:57:47 +04:00
gyrovague
fb5dd753a6 Trivial documentation fix for issue 12557
gcd is implemented with Euclid's algorithm, not Euler's algorithm.
https://issues.dlang.org/show_bug.cgi?id=12557
2014-05-14 15:44:58 +02:00
Yazan S. Dabain
a81f6200cf [Trivial] Fix documentation typos 2014-02-28 21:08:19 +02:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
Daniel Murphy
fed89857e7 Fix missed cases of <>= operator 2013-12-01 16:31:47 +11:00
Daniel Murphy
a11a20ef74 Remove more uses of NCEG operators in phobos 2013-11-30 14:09:39 +11:00
David Nadlinger
6dbeb6b8a7 Merge pull request #1664 from majiang/master
improve Fft comments: add description of FFT conventions
2013-10-29 08:20:19 -07:00
majiang
85bd7d1931 improve Fft comments: fix typo 'nterleaved'; add description of FFT conventions 2013-10-25 23:19:42 +09:00
Hackerpilot
ae1dcaa3e1 Removed empty declarations. Converted more C-style array declarations to D-style. Removed trailing whitespace 2013-07-13 19:34:37 +00:00
k-hara
e2d991b005 Move checkCTFEable to std.exception.assertCTFEable, and use it 2013-06-02 02:32:24 +09:00
k-hara
6502337a21 Add workaround for bug 9382, which introduced by fixing bug 5933 2013-01-24 14:28:49 +09:00
jmdavis
735c2adbda Changes required for issue# 6277. 2012-07-21 01:57:28 -07:00