[Issue 18239] std.experimental.allocator fillWithMemcpy could use memset when T.sizeof==1

2018-01-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18239

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/66ede852bf0e76dfdfad7044e475dd147cd0a1e7
Fix Issue 18239: fillWithMemcpy use memset when T.sizeof == 1

https://github.com/dlang/phobos/commit/f760414f76cd0d3fbfd663b44b5b3dbdc3485e45
Merge pull request #6034 from n8sh/fillWithMemcpy-memset

Fix Issue 18239: fillWithMemcpy use memset when T.sizeof == 1

--


[Issue 18239] std.experimental.allocator fillWithMemcpy could use memset when T.sizeof==1

2018-01-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18239

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 18239] std.experimental.allocator fillWithMemcpy could use memset when T.sizeof==1

2018-01-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18239

--- Comment #2 from Nathan S.  ---
(In reply to Nathan S. from comment #1)
> Could also use wmemset when T.sizeof == wint_t.sizeof

Unfortunately core.stdc.wchar_.wmemset isn't marked as pure so this would cause
some tests to fail.

--


[Issue 18239] std.experimental.allocator fillWithMemcpy could use memset when T.sizeof==1

2018-01-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18239

Nathan S.  changed:

   What|Removed |Added

Summary|std.experimental.allocator  |std.experimental.allocator
   |fillWithMemcpy could use|fillWithMemcpy could use
   |memset/wmemset for  |memset when T.sizeof==1
   |T.sizeof==1 or  |
   |wint_t.sizeof   |

--