mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 18:56:10 +08:00
list: Optimize the list structure.
Since lists are traversed sequentially in most cases, moving the next pointer before the prev pointer can optimize memory access on some architectures. Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
committed by
GUIDINGLI
parent
35886c18ab
commit
57a12556d2
@@ -321,8 +321,8 @@
|
||||
|
||||
struct list_node
|
||||
{
|
||||
FAR struct list_node *prev;
|
||||
FAR struct list_node *next;
|
||||
FAR struct list_node *prev;
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user