liblzma: Use TUKLIB_GNUC_REQ to check GCC version in sha256.c.
This commit is contained in:
parent
db33117cc8
commit
b34c5ce4b2
|
@ -22,13 +22,13 @@
|
||||||
//
|
//
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include "check.h"
|
||||||
|
|
||||||
// Avoid bogus warnings in transform().
|
// Avoid bogus warnings in transform().
|
||||||
#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) || __GNUC__ > 4
|
#if TUKLIB_GNUC_REQ(4, 2)
|
||||||
# pragma GCC diagnostic ignored "-Wuninitialized"
|
# pragma GCC diagnostic ignored "-Wuninitialized"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "check.h"
|
|
||||||
|
|
||||||
// At least on x86, GCC is able to optimize this to a rotate instruction.
|
// At least on x86, GCC is able to optimize this to a rotate instruction.
|
||||||
#define rotr_32(num, amount) ((num) >> (amount) | (num) << (32 - (amount)))
|
#define rotr_32(num, amount) ((num) >> (amount) | (num) << (32 - (amount)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue