More cleanup, and fix SHA384 built-in C code.

This commit is contained in:
Adam Ierymenko 2019-08-22 14:52:47 -07:00
parent 91d0cbe892
commit 37047a39f9
No known key found for this signature in database
GPG key ID: 1657198823E52A61
9 changed files with 229 additions and 205 deletions

View file

@ -155,6 +155,7 @@
#endif
#if (defined(__GNUC__) && (__GNUC__ >= 3)) || (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 800)) || defined(__clang__)
#define ZT_ALWAYS_INLINE __attribute__((always_inline))
#ifndef likely
#define likely(x) __builtin_expect((x),1)
#endif
@ -163,6 +164,7 @@
#endif
#else
#ifndef likely
#define ZT_ALWAYS_INLINE inline
#define likely(x) (x)
#endif
#ifndef unlikely