]> git.ipfire.org Git - thirdparty/strongswan.git/commit
utils: Use words with a defined length in memxor()
authorMartin Willi <martin@revosec.ch>
Thu, 19 Mar 2015 15:55:06 +0000 (16:55 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 15 Apr 2015 09:41:56 +0000 (11:41 +0200)
commit54c25100221ec6d3ded691f4dd33ef74c8f7ff02
treea41d3e4877396fc96756f9d3fc1a1bca74eacdf1
parent63da7db13eae8e9c42972e21f9520a66c405d719
utils: Use words with a defined length in memxor()

sizeof(long) == sizeof(int) results in a duplicate switch statement. We use
a 64-bit integer even if sizeof(long) (and probably the maximum native word
size) is 32-bit, and assume the 64-bit emulation is as fast as two 32-bit XORs.
src/libstrongswan/utils/utils.h