X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gost_grasshopper_defines.h;h=79922045c000e4a904be45e0747fb2793b93ed5d;hb=HEAD;hp=b4e5347a1a8a258e0bc4de27d5ea8c52af6633e4;hpb=e183e8b50da0b46a957c394af8612432a09a42ca;p=openssl-gost%2Fengine.git diff --git a/gost_grasshopper_defines.h b/gost_grasshopper_defines.h index b4e5347..7992204 100644 --- a/gost_grasshopper_defines.h +++ b/gost_grasshopper_defines.h @@ -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];