From: Mikko Rasa Date: Sat, 16 Apr 2016 10:59:20 +0000 (+0300) Subject: Fix some inline qualifiers X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=cb6ee39a05f6903a0ef521c81e6f42d05289b1a1;p=libs%2Fcrypto.git Fix some inline qualifiers --- diff --git a/source/md5.cpp b/source/md5.cpp index 1fe7003..94e6ba9 100644 --- a/source/md5.cpp +++ b/source/md5.cpp @@ -10,28 +10,28 @@ namespace Crypto { namespace { template -inline UInt32 func(UInt32, UInt32, UInt32); +UInt32 func(UInt32, UInt32, UInt32); template<> -UInt32 func<1>(UInt32 x, UInt32 y, UInt32 z) +inline UInt32 func<1>(UInt32 x, UInt32 y, UInt32 z) { return (y&x) | (z&~x); } template<> -UInt32 func<2>(UInt32 x, UInt32 y, UInt32 z) +inline UInt32 func<2>(UInt32 x, UInt32 y, UInt32 z) { return (x&z) | (y&~z); } template<> -UInt32 func<3>(UInt32 x, UInt32 y, UInt32 z) +inline UInt32 func<3>(UInt32 x, UInt32 y, UInt32 z) { return x^y^z; } template<> -UInt32 func<4>(UInt32 x, UInt32 y, UInt32 z) +inline UInt32 func<4>(UInt32 x, UInt32 y, UInt32 z) { return y^(x|~z); }