528781377b710adfd8490a93a368f11243f8791b
[libside.git] / src / compiler.h
1 // SPDX-License-Identifier: MIT
2 /*
3 * Copyright (C) 2024 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 */
5
6 #ifndef _SIDE_COMPILER_H
7 #define _SIDE_COMPILER_H
8
9 //TODO: implement per-architecture busy loop "pause"/"rep; nop;" instruction.
10 static inline
11 void side_cpu_relax(void)
12 {
13 asm volatile ("" : : : "memory");
14 }
15
16 #endif /* _SIDE_COMPILER_H */
This page took 0.028365 seconds and 3 git commands to generate.