Moved stdlib to a seperate folder and added some more headers that are required for compiling libgcc (no implementation yet).
This commit is contained in:
43
targets/_any/stdlib/include/math.h
Normal file
43
targets/_any/stdlib/include/math.h
Normal file
@@ -0,0 +1,43 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#if !defined(BAD_APPLE_OS_MATH_H_INCLUDED)
|
||||
#define BAD_APPLE_OS_MATH_H_INCLUDED
|
||||
|
||||
#if !defined(HUGE_VALF)
|
||||
#define HUGE_VALF (__builtin_inff())
|
||||
#endif
|
||||
|
||||
#if !defined(FLT_QNAN)
|
||||
#define FLT_QNAN (__builtin_nanf(""))
|
||||
#endif
|
||||
|
||||
#if !defined(FLT_SNAN)
|
||||
#define FLT_SNAN (__builtin_nansf(""))
|
||||
#endif
|
||||
|
||||
#if !defined(HUGE_VAL)
|
||||
#define HUGE_VAL (__builtin_inf())
|
||||
#endif
|
||||
|
||||
#if !defined(DBL_QNAN)
|
||||
#define DBL_QNAN (__builtin_nan(""))
|
||||
#endif
|
||||
|
||||
#if !defined(DBL_SNAN)
|
||||
#define DBL_SNAN (__builtin_nans(""))
|
||||
#endif
|
||||
|
||||
#if !defined(HUGE_VALL)
|
||||
#define HUGE_VALL (__builtin_infl())
|
||||
#endif
|
||||
|
||||
#if !defined(LDBL_QNAN)
|
||||
#define LDBL_QNAN (__builtin_nanl(""))
|
||||
#endif
|
||||
|
||||
#if !defined(LDBL_SNAN)
|
||||
#define LDBL_SNAN (__builtin_nansl(""))
|
||||
#endif
|
||||
|
||||
#endif // !defined(BAD_APPLE_OS_MATH_H_INCLUDED)
|
||||
Reference in New Issue
Block a user