tests: bitfield: fix code style
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
adc4889afe
commit
99b39a6ff3
1 changed files with 4 additions and 4 deletions
|
@ -9,14 +9,14 @@
|
||||||
|
|
||||||
#include <tc_util.h>
|
#include <tc_util.h>
|
||||||
|
|
||||||
#define BIT_INDEX(bit) (bit >> 3)
|
#define BIT_INDEX(bit) (bit >> 3)
|
||||||
#define BIT_VAL(bit) (1 << (bit & 0x7))
|
#define BIT_VAL(bit) (1 << (bit & 0x7))
|
||||||
#define BITFIELD_SIZE 512
|
#define BITFIELD_SIZE 512
|
||||||
|
|
||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
u32_t b1 = 0;
|
u32_t b1 = 0;
|
||||||
unsigned char b2[BITFIELD_SIZE >> 3] = {0};
|
unsigned char b2[BITFIELD_SIZE >> 3] = { 0 };
|
||||||
int failed = 0;
|
int failed = 0;
|
||||||
int test_rv;
|
int test_rv;
|
||||||
unsigned int bit;
|
unsigned int bit;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue