[PATCH] D40651: Implement most of P0451 - Constexpr for std::complex

2017-12-14 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists updated this revision to Diff 126986. mclow.lists added a comment. More context in the diff, and removed some tabs. Also commented out the constexpr tests for divide, since they fail at the moment. https://reviews.llvm.org/D40651 Files: include/complex test/std/numerics/complex

[PATCH] D40651: Implement most of P0451 - Constexpr for std::complex

2017-11-30 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists created this revision. This patch implements most of https://wg21.link/P0451r1 - the notable exception being division. The current implementation of complex division in libc++ uses `logb`, `fmax`, and a couple of other primitives that are not constexpr. The paper has some approaches