| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-additional-options "-mavx2" { target x86_64-*-* i?86-*-* } } */ |
| 3 |
|
| 4 |
struct qlist_head { |
| 5 |
struct qlist_head *next; |
| 6 |
}; |
| 7 |
void |
| 8 |
qlist_add (struct qlist_head *new, struct qlist_head *head) |
| 9 |
{ |
| 10 |
struct qlist_head *prev = head; |
| 11 |
new->next = head->next; |
| 12 |
prev->next = new; |
| 13 |
} |
| 14 |
struct { |
| 15 |
struct qlist_head queue_link; |
| 16 |
} free_list, prealloc[64]; |
| 17 |
void |
| 18 |
dbpf_open_cache_initialize() |
| 19 |
{ |
| 20 |
int i = 0; |
| 21 |
for (; i < 64; i++) |
| 22 |
qlist_add(&prealloc[i].queue_link, &free_list.queue_link); |
| 23 |
} |