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








                                                                
                               
                          
                              
                      
                              
     
                                                  
      

                     
/* 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__)
// fall-through: x86_64 support
#elif defined(__aarch64__)
// fall-through: arm64 support
#elif defined(__arm__)
// fall-through: armv7 support
#else
static_assert(false, "Unsupported architecture!");
#endif

#include "arch/api.h"