aboutsummaryrefslogblamecommitdiff
path: root/lib/arch.h
blob: 9604be8a34878c7e505f04104554f4c542b8ff78 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                

                               


                                                                 
/* Copyright (c) 2020 Johannes Stoelp */

#pragma once

#if !defined(linux)
static_assert(false, "Matcha Threads only supported on Linux!");
#endif

#if defined(__x86_64__) || defined(__amd64__)
#    include "arch/x86_64/api.h"
#elif defined(__aarch64__)
#    include "arch/arm64/api.h"
#else
static_assert(false, "Matcha Threads only supported on x86_64!");
#endif