Displaying 2 results from an estimated 2 matches for "pronouced".
Did you mean:
pronounced
2016 Nov 10
2
array fill idioms
Back in the day, we called this a BLT (block transfer, pronouced 'blit') for the PDP-10 instruction of that name.
You can do this by assigning the first value, then do an overlapping memcpy to fill in the rest.
There's probably something clever you can do with vector instructions too, in many cases.
--paulr
From: llvm-dev [mailto:llvm-dev-bounces at...
2016 Nov 10
3
array fill idioms
Yes, I know this works peachy keen for char arrays. I'm looking at (which is
hard to express in C) something like
void foo () {
int bar[20] = { 42, 42, ..., 42 };
}
I don't want to do a memcopy of the 20 element constant array, and memset
doesn't work here. I want an intrinsic that copys the scalar int constant 42
to each element of the int array.
bagel
On 11/10/2016 03:30