X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_grasshopper_math.h;h=43341a827c6a26192cc942132a58472bcd15abc6;hb=refs%2Fheads%2Fgost_provider;hp=176d16aeca19ce3cea7a0b8fe45c24d7afbcb571;hpb=868ae7a730a86f9c1021ea766cd714f817cb934d;p=openssl-gost%2Fengine.git diff --git a/gost_grasshopper_math.h b/gost_grasshopper_math.h index 176d16a..43341a8 100644 --- a/gost_grasshopper_math.h +++ b/gost_grasshopper_math.h @@ -119,7 +119,7 @@ extern uint8_t grasshopper_galois_alpha_to[256]; extern uint8_t grasshopper_galois_index_of[256]; static GRASSHOPPER_INLINE uint8_t grasshopper_galois_mul(uint8_t x, uint8_t y) { - if (__builtin_expect(x != 0 && y != 0, 1)) { + if (likely(x != 0 && y != 0)) { return grasshopper_galois_alpha_to[(grasshopper_galois_index_of[x] + grasshopper_galois_index_of[y]) % GRASSHOPPER_GALOIS_FIELD_SIZE]; } else {