Merge pull request #1 from CrackedPixel/fix-macro

fixed macro
This commit is contained in:
JohnnyCena123 2025-10-13 23:33:25 +03:00 committed by GitHub
commit e34cad7744
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3084,7 +3084,7 @@ unsigned int *ComputeSHA1(unsigned char *data, int dataSize)
// NOTE: Returns a static int[8] array (32 bytes)
unsigned int *ComputeSHA256(unsigned char *data, int dataSize)
{
#define ROTATE_RIGHT(x, c) (x >> c) | (x << ((sizeof(unsigned int) * 8) - c))
#define ROTATE_RIGHT(x, c) ((x >> c) | (x << ((sizeof(unsigned int) * 8) - c)))
#define A0(x) (ROTATE_RIGHT(x, 7) ^ ROTATE_RIGHT(x, 18) ^ (x >> 3))
#define A1(x) (ROTATE_RIGHT(x, 17) ^ ROTATE_RIGHT(x, 19) ^ (x >> 10))