mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 09:27:59 +00:00
Allow x86 SHA intrinsics on GCC 4.9 too.
Pavel says there was no specific reason they avoided it, and compiling with Debian Jessie's GCC 4.9.2 produces a binary that I've no reason to believe won't work, although I haven't tested it on a real or emulated CPU that supports the instructions.
This commit is contained in:
parent
a5911f76d0
commit
5538091f0d
@ -22,7 +22,8 @@
|
||||
# define HW_SHA256 HW_SHA256_NI
|
||||
# endif
|
||||
#elif defined(__GNUC__)
|
||||
# if (__GNUC__ >= 5) && (defined(__x86_64__) || defined(__i386))
|
||||
# if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 9)) && \
|
||||
(defined(__x86_64__) || defined(__i386))
|
||||
# define HW_SHA256 HW_SHA256_NI
|
||||
# endif
|
||||
#elif defined (_MSC_VER)
|
||||
|
3
sshsha.c
3
sshsha.c
@ -22,7 +22,8 @@
|
||||
# define HW_SHA1 HW_SHA1_NI
|
||||
# endif
|
||||
#elif defined(__GNUC__)
|
||||
# if (__GNUC__ >= 5) && (defined(__x86_64__) || defined(__i386))
|
||||
# if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 9)) && \
|
||||
(defined(__x86_64__) || defined(__i386))
|
||||
# define HW_SHA1 HW_SHA1_NI
|
||||
# endif
|
||||
#elif defined (_MSC_VER)
|
||||
|
Loading…
Reference in New Issue
Block a user