blob: aa07a0286dcb19b750d4e89bfa7325f79478d434 [file] [log] [blame]
/* Copyright 2021 The ChromiumOS Authors
* 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 "fpu.h"
#include <stdbool.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__ */