]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - gost_grasshopper_defines.h
tcl_tests: ca.try: Ignore openssl crl exit status for 'corrupted CRL' test
[openssl-gost/engine.git] / gost_grasshopper_defines.h
index b4e5347a1a8a258e0bc4de27d5ea8c52af6633e4..79922045c000e4a904be45e0747fb2793b93ed5d 100644 (file)
@@ -18,6 +18,7 @@ extern "C" {
 #   define GRASSHOPPER_INLINE inline
 #  elif defined(__GNUC__) && __GNUC__ >= 2
 #   define GRASSHOPPER_INLINE __inline__
+#   define likely(x) __builtin_expect(!!(x), 1)
 #  elif defined(_MSC_VER)
 #   define GRASSHOPPER_INLINE __inline
 #  else
@@ -27,6 +28,10 @@ extern "C" {
 #  define GRASSHOPPER_INLINE inline
 # endif
 
+# if !defined(likely)
+#   define likely(x) x
+# endif
+
 typedef union {
     uint8_t b[16];
     uint64_t q[2];