Bug 20200 – Make std.math.isPowerOf2 work for floating point numbers in CTFE

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-09-08T17:25:04Z
Last change time
2019-09-10T14:48:37Z
Keywords
pull
Assigned to
No Owner
Creator
Nathan S.
Depends on
20199
Blocks
17007

Comments

Comment #0 by n8sh.secondary — 2019-09-08T17:25:04Z
This is a subissue of Issue #17007.
Comment #1 by n8sh.secondary — 2019-09-08T17:33:03Z
isPowerOf2 already worked in CTFE for integers but not floating point numbers.
Comment #2 by dlang-bot — 2019-09-08T17:39:25Z
@n8sh created dlang/phobos pull request #7177 "Fix issues 20199 & 20200: make std.math.frexp & isPowerOf2 work in CTFE" fixing this issue: - Fix issues 20199 & 20200: make std.math.frexp & isPowerOf2 work in CTFE https://github.com/dlang/phobos/pull/7177
Comment #3 by dlang-bot — 2019-09-10T14:48:37Z
dlang/phobos pull request #7177 "Fix issues 20199 & 20200: make std.math.frexp & isPowerOf2 work in CTFE" was merged into master: - e7609cb8738e9105395a10b1d3871de8b5496f18 by Nathan Sashihara: Fix issues 20199 & 20200: make std.math.frexp & isPowerOf2 work in CTFE https://github.com/dlang/phobos/pull/7177