https://issues.dlang.org/show_bug.cgi?id=18899
Iain Buclaw changed:
What|Removed |Added
Priority|P1 |P4
--
https://issues.dlang.org/show_bug.cgi?id=18899
Seb changed:
What|Removed |Added
CC||greensunn...@gmail.com
--
https://issues.dlang.org/show_bug.cgi?id=18899
Nick Treleaven changed:
What|Removed |Added
CC||n...@geany.org
--- Comment #10 from Nick
https://issues.dlang.org/show_bug.cgi?id=18899
--- Comment #9 from Manu ---
True.
Anyway, I'm just playing devils advocate. I agree, it should do an element copy
for small structs.
--
https://issues.dlang.org/show_bug.cgi?id=18899
--- Comment #8 from Steven Schveighoffer ---
(In reply to Steven Schveighoffer from comment #7)
> See the generated AST
...generated *assembly*
--
https://issues.dlang.org/show_bug.cgi?id=18899
--- Comment #7 from Steven Schveighoffer ---
I'm not sure that it is.
But we aren't calling memcpy anyway, we are calling _d_arraycopy, not inlined.
See the generated AST from Mike's example.
--
https://issues.dlang.org/show_bug.cgi?id=18899
--- Comment #6 from Manu ---
memcpy should be an intrinsic, which is implemented using magic...
--
https://issues.dlang.org/show_bug.cgi?id=18899
--- Comment #5 from Steven Schveighoffer ---
(In reply to Manu from comment #4)
> Yes, that's what I'm saying :) ... you're not happy with memcpy, do want
> element-copy?
It's more that I want to copy the one int that is in the
https://issues.dlang.org/show_bug.cgi?id=18899
--- Comment #4 from Manu ---
Yes, that's what I'm saying :) ... you're not happy with memcpy, do want
element-copy?
--
https://issues.dlang.org/show_bug.cgi?id=18899
--- Comment #3 from Mike Franklin ---
Yes, `dest[] = src[]` gets lowered to _d_arraycopy, which ultimately calls
memcpy
View ASM here: https://run.dlang.io/is/izCLp0
_d_arraycopy implementation here:
https://issues.dlang.org/show_bug.cgi?id=18899
Mike Franklin changed:
What|Removed |Added
CC||slavo5...@yahoo.com
https://issues.dlang.org/show_bug.cgi?id=18899
Manu changed:
What|Removed |Added
CC||turkey...@gmail.com
--- Comment
12 matches
Mail list logo