diff options
| author | jsing <> | 2025-06-09 14:28:34 +0000 |
|---|---|---|
| committer | jsing <> | 2025-06-09 14:28:34 +0000 |
| commit | 951cd4503ff3c4cc93c1a36cf06138b1ddd739d7 (patch) | |
| tree | 6c411eca3de0b4b777e48c9aba4d6dd13c8e899a /src/lib/libcrypto/arch | |
| parent | d8ae322f91ae730f31b750787e0180588dab36dc (diff) | |
| download | openbsd-951cd4503ff3c4cc93c1a36cf06138b1ddd739d7.tar.gz openbsd-951cd4503ff3c4cc93c1a36cf06138b1ddd739d7.tar.bz2 openbsd-951cd4503ff3c4cc93c1a36cf06138b1ddd739d7.zip | |
Make OPENSSL_IA32_SSE2 the default for i386 and remove the flag.
The OPENSSL_IA32_SSE2 flag controls whether a number of the perlasm
scripts generate additional implementations that use SSE2 functionality.
In all cases except ghash, the code checks OPENSSL_ia32cap_P for SSE2
support, before trying to run SSE2 code. For ghash it generates a CLMUL
based implementation in addition to different MMX version (one MMX
version hides behind OPENSSL_IA32_SSE2, the other does not), however this
does not appear to actually use SSE2. We also disable AES-NI on i386 if
OPENSSL_IA32_SSE2.
On OpenBSD, we've always defined OPENSSL_IA32_SSE2 so this is effectively
a no-op. The only change is that we now check MMX rather than SSE2 for the
ghash MMX implementation.
ok bcook@ beck@
Diffstat (limited to 'src/lib/libcrypto/arch')
| -rw-r--r-- | src/lib/libcrypto/arch/i386/Makefile.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/arch/i386/Makefile.inc b/src/lib/libcrypto/arch/i386/Makefile.inc index 4bcf8e2bbc..e593c31467 100644 --- a/src/lib/libcrypto/arch/i386/Makefile.inc +++ b/src/lib/libcrypto/arch/i386/Makefile.inc | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile.inc,v 1.28 2025/04/18 13:19:39 jsing Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.29 2025/06/09 14:28:33 jsing Exp $ |
| 2 | 2 | ||
| 3 | # i386-specific libcrypto build rules | 3 | # i386-specific libcrypto build rules |
| 4 | 4 | ||
| @@ -12,7 +12,6 @@ CFLAGS+= -DAES_ASM | |||
| 12 | SSLASM+= aes aes-586 | 12 | SSLASM+= aes aes-586 |
| 13 | SSLASM+= aes aesni-x86 | 13 | SSLASM+= aes aesni-x86 |
| 14 | # bn | 14 | # bn |
| 15 | CFLAGS+= -DOPENSSL_IA32_SSE2 | ||
| 16 | SSLASM+= bn bn-586 | 15 | SSLASM+= bn bn-586 |
| 17 | SSLASM+= bn co-586 | 16 | SSLASM+= bn co-586 |
| 18 | CFLAGS+= -DOPENSSL_BN_ASM_MONT | 17 | CFLAGS+= -DOPENSSL_BN_ASM_MONT |
