wmemchar for unix

Dmitry Olshansky dmitry.olsh at gmail.com
Tue Aug 27 13:28:19 PDT 2013


27-Aug-2013 23:31, H. S. Teoh пишет:
> On Tue, Aug 27, 2013 at 11:18:50PM +0400, Dmitry Olshansky wrote:
>> 27-Aug-2013 18:41, H. S. Teoh пишет:
[snip]
>>
>>> I'm not sure if dmd does that optimization. If you really feel
>>> inclined, you could do static if (X86) and throw in an asm block (but
>>> that would break purity, @safety, etc., so probably not a good idea).
>>>
>>
>> It would be awesome to have pure D analogs for memchr, memcpy and its
>> ilk that won't be so limiting (as in types used) but would guarantee
>> top performance.
> [...]
>
> Those would have to be compiler intrinsics, since they are CPU-dependent
> optimizations. Plus they could improve dmd code generation. :)

It would be golden to finally see a time where compilers have D-specific 
intrinsics! :)


-- 
Dmitry Olshansky


More information about the Digitalmars-d-learn mailing list