summaryrefslogtreecommitdiff
path: root/builtin/math.h
blob: 9292ac8b34784c8d72f0d18cadf0d292b6876d35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Copyright 2021 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef __CROS_EC_MATH_H__
#define __CROS_EC_MATH_H__

#include <stdbool.h>
#include "fpu.h"

static inline bool isnan(float a)
{
	return __builtin_isnan(a);
}

static inline bool isinf(float a)
{
	return __builtin_isinf(a);
}

#endif /* __CROS_EC_MATH_H__ */