Quantcast
Viewing all articles
Browse latest Browse all 168

[RESOLVED] Faster CopyMemory for 32 bits?

I use the following CopyMemory call to copy 4 bytes.

CopyMemory ByVal VarPtr(Dest), ByVal VarPtr(Src), 4

The variables' addresses are guaranteed to be at 32-bits boundaries (resp., 64 bits).

The CPU certainly is faster to copy 32 bits once than to iterate 4 times through a bytes sequence.

Question: Is there any 32 bits CopyMemory API function such as:
CopyMemoryWord ByVal VarPtr(Dest), ByVal VarPtr(Src)
?

Viewing all articles
Browse latest Browse all 168

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>