-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Match fdlibm; re-organize flags.json (#276)
* MSL_C float.c * MSL_C bool_def.h * Re-organize flag lists * Bring in fdlibm sources Not fully matching, some modifications need to be made * Pick off most fdlibm matches * Finish fdlibm
- Loading branch information
1 parent
4e24244
commit bfdb9ce
Showing
44 changed files
with
3,866 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/sdk/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/bool_def.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef _MSL_BOOL_DEF_H_ | ||
#define _MSL_BOOL_DEF_H_ | ||
|
||
#ifndef __cplusplus | ||
|
||
typedef unsigned char bool; | ||
|
||
#define false 0 | ||
#define true 1 | ||
|
||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Seems they forgot the include, these are stored in .sdata here | ||
// but elsewhere they're are read as if they're in .data | ||
// #include "MSL_Common/float.h" | ||
|
||
int __float_nan = 0x7FFFFFFF; | ||
float __float_huge = 0x1.0P128F; | ||
double __double_huge = 0x1.0P1024; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef MSL_COMMON_FLOAT_H | ||
#define MSL_COMMON_FLOAT_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
__declspec(section ".data") extern int __float_nan; | ||
__declspec(section ".data") extern float __float_huge; | ||
__declspec(section ".data") extern double __double_huge; | ||
|
||
#define INFINITY (__float_huge) | ||
#define NAN (*(float *)&__float_nan) | ||
#define HUGE_VAL (__double_huge) | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
Oops, something went wrong.