llvm/compiler-rt/lib/safestack/safestack_util.h

//===-- safestack_util.h --------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This file contains utility code for SafeStack implementation.
//
//===----------------------------------------------------------------------===//

#ifndef SAFESTACK_UTIL_H
#define SAFESTACK_UTIL_H

#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>

namespace safestack {

#define SFS_CHECK(a)

inline size_t RoundUpTo(size_t size, size_t boundary) {}

inline constexpr bool IsAligned(size_t a, size_t alignment) {}

class MutexLock {};

}  // namespace safestack

#endif  // SAFESTACK_UTIL_H