Xenomai 3.3.2
Loading...
Searching...
No Matches
fptest.h
1/*
2 * SPDX-License-Identifier: GPL-2.0
3 *
4 * Copyright (C) 2006 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
5 */
6
7#ifndef _COBALT_ARM64_FPTEST_H
8#define _COBALT_ARM64_FPTEST_H
9
10#include <linux/errno.h>
11#include <asm/xenomai/uapi/fptest.h>
12#include <asm/hwcap.h>
13
14#define have_fp (ELF_HWCAP & HWCAP_FP)
15
16static inline int fp_linux_begin(void)
17{
18 return -ENOSYS;
19}
20
21static inline void fp_linux_end(void)
22{
23}
24
25static inline int fp_detect(void)
26{
27 return have_fp ? __COBALT_HAVE_FPU : 0;
28}
29
30#endif /* !_COBALT_ARM64_FPTEST_H */