← Back to index
|
Original Bugzilla link
Bug 14206 – cdouble is broken
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2015-02-20T10:53:31Z
Last change time
2019-04-12T14:55:26Z
Keywords
wrong-code
Assigned to
No Owner
Creator
Илья Ярошенко
Comments
Comment #0
by ilyayaroshenko — 2015-02-20T10:53:31Z
unittest { cfloat conj00(cfloat z) { return z.re - z.im*1fi; } assert(conj00(7+3i) == 7-3i); cfloat conj10(cfloat z) { return z.re - z.im*1i; } assert(conj10(7+3i) == 7-3i); cfloat conj20(cfloat z) { return z.re - z.im*1Li; } assert(conj20(7+3i) == 7-3i); cdouble conj01(cdouble z) { return z.re - z.im*1fi; } assert(conj01(7+3i) == 7-3i); //fails cdouble conj11(cdouble z) { return z.re - z.im*1i; } assert(conj11(7+3i) == 7-3i); //fails cdouble conj21(cdouble z) { return z.re - z.im*1Li; } assert(conj21(7+3i) == 7-3i); creal conj02(creal z) { return z.re - z.im*1fi; } assert(conj02(7+3i) == 7-3i); creal conj12(creal z) { return z.re - z.im*1i; } assert(conj12(7+3i) == 7-3i); creal conj22(creal z) { return z.re - z.im*1Li; } assert(conj22(7+3i) == 7-3i); }
Comment #1
by github-bugzilla — 2015-03-10T11:40:28Z
Commit pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/efabbd365e4b46337135240f18ad96fd6d78c921
std.math №3: conj for double and float Issue 14206 workaround
Comment #2
by github-bugzilla — 2015-06-17T21:03:05Z
Commit pushed to stable at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/efabbd365e4b46337135240f18ad96fd6d78c921
std.math №3: conj for double and float
Comment #3
by github-bugzilla — 2017-07-19T17:42:13Z
Commit pushed to dmd-cxx at
https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/efabbd365e4b46337135240f18ad96fd6d78c921
std.math №3: conj for double and float