mempcpy()

Submitted by markos on Tue, 01/29/2008 - 17:44.

Description

According to the man page, mempcpy() is nearly identical to the memcpy(3) function. It copies n bytes from the object beginning at src into the object pointed to by dest. But instead of returning the value of dest it returns a pointer to the byte following the last written byte. This function is useful in situations where a number of objects shall be copied to consecutive memory positions.function copies n bytes from memory area src to memory area dest.. It returns dest + n.

Due to the similarities with memcpy(), the functions operate nearly identical -in fact the code is usually the same, with only the return value changing.

Each CPU in detail:

And for comparison here is the result of the same benchmark run on an Athlon X2 5000 (2.5Ghz), running 32-bit code:

Results/Comments

The same comments done in memcpy() apply here.

SIMD