diff options
| author | jsing <> | 2026-05-07 15:38:03 +0000 |
|---|---|---|
| committer | jsing <> | 2026-05-07 15:38:03 +0000 |
| commit | ccc4eae3de33ef320762657c4be6c9dfd9c2de82 (patch) | |
| tree | 81f773dc013844248de1103391a3e49d252c1587 /src/lib/libcrypto/crypto_assembly.h | |
| parent | 97930339bcae324ce6c463f52bdcdf98c4be2941 (diff) | |
| download | openbsd-ccc4eae3de33ef320762657c4be6c9dfd9c2de82.tar.gz openbsd-ccc4eae3de33ef320762657c4be6c9dfd9c2de82.tar.bz2 openbsd-ccc4eae3de33ef320762657c4be6c9dfd9c2de82.zip | |
Use a define based instruction separator in SHA assembly.
Unfortunately, not all assemblers use the same instruction separator.
In particular, LLVM on macOS uses %% as an instruction separator, while
most other assemblers use a semi-colon.
ok kenjiro@ tb@
Diffstat (limited to 'src/lib/libcrypto/crypto_assembly.h')
| -rw-r--r-- | src/lib/libcrypto/crypto_assembly.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/crypto_assembly.h b/src/lib/libcrypto/crypto_assembly.h index 0ae78a81ab..8f53ea51b6 100644 --- a/src/lib/libcrypto/crypto_assembly.h +++ b/src/lib/libcrypto/crypto_assembly.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: crypto_assembly.h,v 1.1 2026/03/28 13:09:55 jsing Exp $ */ | 1 | /* $OpenBSD: crypto_assembly.h,v 1.2 2026/05/07 15:38:03 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2026 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2026 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -27,4 +27,10 @@ | |||
| 27 | #endif | 27 | #endif |
| 28 | #endif | 28 | #endif |
| 29 | 29 | ||
| 30 | #if defined(__APPLE__) && defined(__aarch64__) | ||
| 31 | #define CRYPTO_ASSEMBLY_SEPARATOR %% | ||
| 32 | #else | ||
| 33 | #define CRYPTO_ASSEMBLY_SEPARATOR ; | ||
| 34 | #endif | ||
| 35 | |||
| 30 | #endif | 36 | #endif |
