Skip to content

Commit 4af4401

Browse files
Comment about optimization for crush()
1 parent 03c6b19 commit 4af4401

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

SpritzCipher.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,11 @@ whip(spritz_ctx *ctx)
7878

7979
#if defined(SAFE_TIMING_CRUSH)
8080
static void
81-
# if defined(__GNUC__) && !defined(__clang__) /* SAFE_TIMING_CRUSH and GCC */
81+
/* SAFE_TIMING_CRUSH and GCC: disable optimization for crush() */
82+
# if defined(__GNUC__) && !defined(__clang__)
8283
__attribute__ ((optimize("O0")))
83-
# elif defined(__clang__) /* SAFE_TIMING_CRUSH and Clang */
84+
/* SAFE_TIMING_CRUSH and Clang: disable optimization for crush() */
85+
# elif defined(__clang__)
8486
__attribute__ ((optnone))
8587
# endif
8688
crush(spritz_ctx *ctx)

0 commit comments

Comments
 (0)