search for: my_copy

Displaying 1 result from an estimated 1 matches for "my_copy".

Did you mean: m_copy
2011 Nov 29
6
[LLVMdev] The nsw story
...ge the mindshare of "%d". And there are other issues. "int" remains widely popular, even though it isn't quite the close fit to hardware that it used to be. Consider this simple testcase, which is representative of a broader issue, containing an innocent use of int: void my_copy(char *dst, const char *src, int n) { for (int i = 0; i != n; ++i) dst[i] = src[i]; } On LP64 platforms, this code has implicit sign-extensions to convert the 32-bit int "i" to 64 bits in the array index expressions. Sign extensions are relatively fast on most machines, but th...