Some optimization

unmanaged
Inga 🏳‍🌈 8 years ago
parent d43578de1c
commit 15e2687f31
  1. 1
      dotnet/WhiteRabbit.UnmanagedBridge/WhiteRabbit.UnmanagedBridge.vcxproj
  2. 5
      dotnet/WhiteRabbit.UnmanagedBridge/md5.cpp

@ -125,6 +125,7 @@
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<IntrinsicFunctions>true</IntrinsicFunctions>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<AssemblerOutput>All</AssemblerOutput>
</ClCompile>
<Link>
<AdditionalDependencies />

@ -2,6 +2,9 @@
#include "md5.h"
#include "intrin.h"
#include "immintrin.h"
#pragma unmanaged
inline unsigned int Blend(unsigned int a, unsigned int b, unsigned int x)
@ -21,7 +24,7 @@ inline unsigned int I(unsigned int a, unsigned int b, unsigned int c)
inline unsigned int LeftRotate(unsigned int x, int left)
{
return (x << left) | (x >> (32 - left));
return _rotl(x, left);
}
void md5(unsigned int * input, unsigned int* output)

Loading…
Cancel
Save