File tree Expand file tree Collapse file tree 5 files changed +5
-4
lines changed
simulator/lv_drivers/display Expand file tree Collapse file tree 5 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ extern Wallet wallet;
74
74
/*****************************************************************************
75
75
* PRIVATE MACROS AND DEFINES
76
76
*****************************************************************************/
77
- #define SECS_TO_HASHES (sec ) ((sec)* pow_hash_rate)
77
+ #define SECS_TO_HASHES (sec ) ((sec) * pow_hash_rate)
78
78
79
79
/*****************************************************************************
80
80
* PRIVATE TYPEDEFS
Original file line number Diff line number Diff line change 50
50
#define U16_SWAP_ENDIANNESS (x ) ((x) >> 8 | (x) << 8)
51
51
/// Change little-endian value to big-endian ordering and vice-versa
52
52
#define U32_SWAP_ENDIANNESS (x ) \
53
- ((x) << 24 | ((x)& 0xff00) << 8 | ((x)& 0xff0000) >> 8 | (x) >> 24)
53
+ ((x) << 24 | ((x) & 0xff00) << 8 | ((x) & 0xff0000) >> 8 | (x) >> 24)
54
54
/// Find maximum of two values
55
55
#define CY_MAX (a , b ) ((a) > (b) ? (a) : (b))
56
56
/// Find minimum of two values
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ static bool_t com_output_state = false;
93
93
* Return the byte bitmask of a pixel bit corresponding
94
94
* to VDB arrangement (8 pixels per byte on lines).
95
95
*/
96
- #define PIXIDX (x ) SHARP_MIP_REV_BYTE(1 << ((x)& 7))
96
+ #define PIXIDX (x ) SHARP_MIP_REV_BYTE(1 << ((x) & 7))
97
97
98
98
/**********************
99
99
* GLOBAL FUNCTIONS
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ static uint8_t cmd_buf[12];
99
99
**********************/
100
100
101
101
/* Return the byte bitmask of a pixel color corresponding to VDB arrangement */
102
- #define PIXIDX (y , c ) ((c) << (((y)& 3) << 1))
102
+ #define PIXIDX (y , c ) ((c) << (((y) & 3) << 1))
103
103
104
104
/**********************
105
105
* GLOBAL FUNCTIONS
Original file line number Diff line number Diff line change 13
13
*****************************************************************************/
14
14
15
15
#include <assert.h>
16
+
16
17
#include "card_operation_typedefs.h"
17
18
#include "stdbool.h"
18
19
#include "stdint.h"
You can’t perform that action at this time.
0 commit comments