Replacing C's memcpy with a D implementation

Basile B. b2.b2.temp.temp at gmx.gmx.com.com.com
Mon Jun 11 07:32:15 UTC 2018


On Monday, 11 June 2018 at 03:34:59 UTC, Basile B. wrote:
> On Monday, 11 June 2018 at 01:03:16 UTC, Mike Franklin wrote:
>> [...]
>
> - default win32 OMF: 
> https://github.com/DigitalMars/dmc/blob/master/src/core/MEMCCPY.C
> - default linux: 
> https://github.com/gcc-mirror/gcc/blob/master/libgcc/memcpy.c
> - not used but interesting: 
> https://github.com/esmil/musl/blob/master/src/string/memcpy.c

D slice style memcpy cg:

https://github.com/dlang/dmd/blob/master/src/dmd/backend/cod2.c#L3526


More information about the Digitalmars-d mailing list