[buddy] improve initialization of bddnode

* src/kernel.c, src/kernel.h: Here.
This commit is contained in:
Alexandre Duret-Lutz 2016-11-08 12:00:24 +01:00
parent 278b41f4bb
commit 5a862295d3
2 changed files with 24 additions and 14 deletions

View file

@ -99,6 +99,15 @@ typedef struct s_BddNode /* Node table entry */
int next;
} BddNode;
// This structure is used during initialization of the above
// structure, to help gcc vectorize the initializing loop.
typedef struct s_BddNodeInit
{
int z;
int low;
int high;
int next;
} BddNodeInit;
/*=== KERNEL VARIABLES =================================================*/