Skip to content

Commit 516bcfc

Browse files
committed
avutil/aes: Use #if checks instead of if (ARCH_X86)
Reviewed-by: James Almer <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
1 parent f81ace5 commit 516bcfc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libavutil/aes.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,9 @@ int av_aes_init(AVAES *a, const uint8_t *key, int key_bits, int decrypt)
237237

238238
a->rounds = rounds;
239239
a->crypt = decrypt ? aes_decrypt : aes_encrypt;
240-
if (ARCH_X86)
241-
ff_init_aes_x86(a, decrypt);
240+
#if ARCH_X86
241+
ff_init_aes_x86(a, decrypt);
242+
#endif
242243

243244
ff_thread_once(&aes_static_init, aes_init_static);
244245

0 commit comments

Comments
 (0)