mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 12:54:15 +02:00
Extensive runtime refactor to reduce generated executable sizes
This commit is contained in:
parent
4e750a7e1a
commit
ddd9b1b218
74 changed files with 2514 additions and 717 deletions
|
@ -223,7 +223,8 @@ namespace System
|
|||
modf(d, out intPart);
|
||||
return intPart;
|
||||
}
|
||||
|
||||
|
||||
#if !BF_RUNTIME_DISABLE
|
||||
public static extern float Sqrt(float f);
|
||||
public static extern double Sqrt(double d);
|
||||
public static extern float Cbrt(float f);
|
||||
|
@ -236,6 +237,20 @@ namespace System
|
|||
public static extern double Exp(double d);
|
||||
public static extern float Pow(float x, float y);
|
||||
public static extern double Pow(double x, double y);
|
||||
#else
|
||||
public static float Sqrt(float f) => Runtime.NotImplemented();
|
||||
public static double Sqrt(double d) => Runtime.NotImplemented();
|
||||
public static float Cbrt(float f) => Runtime.NotImplemented();
|
||||
public static double Cbrt(double d) => Runtime.NotImplemented();
|
||||
public static float Log(float f) => Runtime.NotImplemented();
|
||||
public static double Log(double d) => Runtime.NotImplemented();
|
||||
public static float Log10(float f) => Runtime.NotImplemented();
|
||||
public static double Log10(double d) => Runtime.NotImplemented();
|
||||
public static float Exp(float f) => Runtime.NotImplemented();
|
||||
public static double Exp(double d) => Runtime.NotImplemented();
|
||||
public static float Pow(float x, float y) => Runtime.NotImplemented();
|
||||
public static double Pow(double x, double y) => Runtime.NotImplemented();
|
||||
#endif
|
||||
|
||||
public static float IEEERemainder(float x, float y)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue