arm64: Rename RSEQ_ASM_OP_R_BAD_MEMCPY to RSEQ_ASM_OP_R_BYTEWISE_MEMCPY
[librseq.git] / include / rseq / rseq-generic-thread-pointer.h
CommitLineData
90702366 1/* SPDX-License-Identifier: MIT */
f2d7b530
MJ
2/* SPDX-FileCopyrightText: 2021 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> */
3
bb709e9d
MD
4/*
5 * rseq-generic-thread-pointer.h
bb709e9d
MD
6 */
7
8#ifndef _RSEQ_GENERIC_THREAD_POINTER
9#define _RSEQ_GENERIC_THREAD_POINTER
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15/* Use gcc builtin thread pointer. */
16static inline void *rseq_thread_pointer(void)
17{
18 return __builtin_thread_pointer();
19}
20
21#ifdef __cplusplus
22}
23#endif
24
25#endif
This page took 0.024143 seconds and 4 git commands to generate.