mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Made abs an intrinsic
This commit is contained in:
parent
567662b3c3
commit
dce4a3ecf2
7 changed files with 182 additions and 112 deletions
|
@ -287,7 +287,11 @@ namespace System
|
|||
return regularMod;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[Intrinsic("abs")]
|
||||
public static extern float Abs(float value);
|
||||
[Intrinsic("abs")]
|
||||
public static extern double Abs(double value);
|
||||
[Inline]
|
||||
public static T Abs<T>(T value) where T : IOpComparable, IOpNegatable
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue