Improve coding style
Co-authored-by: Tom Cosgrove <81633263+tom-cosgrove-arm@users.noreply.github.com>
Co-authored-by: Werner Lewis <werner.wmlewis@gmail.com>
Signed-off-by: Janos Follath <janos.follath@arm.com>
diff --git a/library/bignum_core.h b/library/bignum_core.h
index 1557d10..221bb1a 100644
--- a/library/bignum_core.h
+++ b/library/bignum_core.h
@@ -141,9 +141,9 @@
unsigned char *output,
size_t output_length );
-#define ciL (sizeof(mbedtls_mpi_uint)) /* chars in limb */
-#define biL (ciL << 3) /* bits in limb */
-#define biH (ciL << 2) /* half limb size */
+#define ciL ( sizeof(mbedtls_mpi_uint) ) /* chars in limb */
+#define biL ( ciL << 3 ) /* bits in limb */
+#define biH ( ciL << 2 ) /* half limb size */
/*
* Convert between bits/chars and number of limbs
@@ -153,6 +153,6 @@
#define CHARS_TO_LIMBS(i) ( (i) / ciL + ( (i) % ciL != 0 ) )
/* Get a specific byte, without range checks. */
#define GET_BYTE( X, i ) \
- ( ( ( X )[( i ) / ciL] >> ( ( ( i ) % ciL ) * 8 ) ) & 0xff )
+ ( ( (X)[(i) / ciL] >> ( ( (i) % ciL ) * 8 ) ) & 0xff )
#endif /* MBEDTLS_BIGNUM_CORE_H */