mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-12-30 06:53:05 +00:00
af85202b58
Signed-off-by: Asahi Lina <lina@asahilina.net>
17 lines
303 B
C
17 lines
303 B
C
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef MATH_H
|
|
#define MATH_H
|
|
|
|
#if 100 * __GNUC__ + __GNUC_MINOR__ >= 303
|
|
#define NAN __builtin_nanf("")
|
|
#define INFINITY __builtin_inff()
|
|
#else
|
|
#define NAN (0.0f / 0.0f)
|
|
#define INFINITY 1e5000f
|
|
#endif
|
|
|
|
float expf(float);
|
|
float powf(float, float);
|
|
|
|
#endif
|