Fix Linux compiler errors

This commit is contained in:
Markus Pilman 2021-11-11 08:49:51 -07:00
parent 0e6dd46f5a
commit 28dde27cb1
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@
#define FLOW_INDEXEDSET_ACTOR_H
#include "flow/flow.h"
#include "flow/Platform.h"
#include "flow/actorcompiler.h" // This must be the last #include.
ACTOR template <class Node>
@ -47,7 +48,7 @@ ACTOR template <class Node>
while (!prefetchQueue.empty() || !toFree.empty()) {
while (prefetchQueue.size() < 10 && !toFree.empty()) {
__builtin_prefetch((const char*)toFree.back(), _MM_HINT_T0);
_mm_prefetch((const char*)toFree.back(), _MM_HINT_T0);
prefetchQueue.push_back(toFree.back());
toFree.pop_back();
}