Skip to content
Snippets Groups Projects
Commit b98c47da authored by Florian Fischer's avatar Florian Fischer
Browse files

move unlikely definition into common.h

parent 6d1a20ec
No related branches found
No related tags found
1 merge request!2work work work
#pragma once
#define unlikely(x) __builtin_expect(!!(x), 0)
...@@ -3,8 +3,7 @@ ...@@ -3,8 +3,7 @@
#include <liburing.h> #include <liburing.h>
#include <stdlib.h> #include <stdlib.h>
#define unlikely(x) __builtin_expect(!!(x), 0) #include "common.h"
#include "stopwatch.h" #include "stopwatch.h"
struct io_uring ring; struct io_uring ring;
......
...@@ -3,8 +3,7 @@ ...@@ -3,8 +3,7 @@
#include <liburing.h> #include <liburing.h>
#include <stdlib.h> #include <stdlib.h>
#define unlikely(x) __builtin_expect(!!(x), 0) #include "common.h"
#include "stopwatch.h" #include "stopwatch.h"
struct io_uring ring; struct io_uring ring;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment