Skip to content

Commit

Permalink
Reformat new preprocessor directives
Browse files Browse the repository at this point in the history
Signed-off-by: Rod Chapman <[email protected]>
  • Loading branch information
rod-chapman committed Jun 17, 2024
1 parent f1f10b4 commit 06ce2a8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mlkem/poly.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ uint32_t scalar_compress_q_16(int32_t u)

/* This multiply will exceed UINT32_MAX and wrap around */
/* for large values of u. This is expected and required */
#ifdef CBMC
#ifdef CBMC
#pragma CPROVER check push
#pragma CPROVER check disable "unsigned-overflow"
#endif
#endif
d0 *= 80635;
#ifdef CBMC
#ifdef CBMC
#pragma CPROVER check pop
#endif
#endif
d0 >>= 28;
d0 &= 0xF;
return d0;
Expand Down Expand Up @@ -66,14 +66,14 @@ uint32_t scalar_compress_q_32(int32_t u)

/* This multiply will exceed UINT32_MAX and wrap around */
/* for large values of u. This is expected and required */
#ifdef CBMC
#ifdef CBMC
#pragma CPROVER check push
#pragma CPROVER check disable "unsigned-overflow"
#endif
#endif
d0 *= 40318;
#ifdef CBMC
#ifdef CBMC
#pragma CPROVER check pop
#endif
#endif
d0 >>= 27;
d0 &= 0x1f;
return d0;
Expand Down

0 comments on commit 06ce2a8

Please sign in to comment.