[Issue 18223] std.experimental.allocator uninitializedFillDefault could use memset

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 31 04:58:31 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18223

--- Comment #2 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/8777cbf35505704bc2908baa4ae04d988f339bf8
Fix Issue 18223: use memset in uninitializedFillDefault(T[])

When we can statically determine that the representation of T.init
consists of nothing but zeroes or nothing but ones we use memset.
(The second case occurs for char and wchar.)

https://github.com/dlang/phobos/commit/6797b52c0d99980b645bcbaf75c8bd6acf0b9613
Merge pull request #6024 from n8sh/uninitializedFillDefault-memset

Fix Issue 18223: use memset in uninitializedFillDefault(T[])
merged-on-behalf-of: unknown

--


More information about the Digitalmars-d-bugs mailing list