K
k-man
Hi!
I'll try to make it short:
1) is memset() optimised is some way (I suppose at various level
depending of implementations) and if so, to what level?
Is it faster to memset() 4kbytes of memory to 0 or go in a for(;
loop for 10 (or 100) iteration to clean up individual integers?
2) This one confuses me even after all those years. I usually avoid
it with classes but here I have no option.
int a[3][400];
int b[3][10];
Is there a way to declare a pointer that could be assigned to both?
meaning
my_p = a...
I believe not, but I'm looking for some good ol' magic, if possible.
Appreciate a lot,
Thanks,
Philippe
I'll try to make it short:
1) is memset() optimised is some way (I suppose at various level
depending of implementations) and if so, to what level?
Is it faster to memset() 4kbytes of memory to 0 or go in a for(;
loop for 10 (or 100) iteration to clean up individual integers?
2) This one confuses me even after all those years. I usually avoid
it with classes but here I have no option.
int a[3][400];
int b[3][10];
Is there a way to declare a pointer that could be assigned to both?
meaning
my_p = a...
I believe not, but I'm looking for some good ol' magic, if possible.
Appreciate a lot,
Thanks,
Philippe