mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-26 11:38:02 +02:00
Added IOpMultiplicable and IOpDividable, fixed Double not implementing IOpAddable and IOpSubtractable
This commit is contained in:
parent
5d9a5f183d
commit
862c15241a
13 changed files with 151 additions and 11 deletions
|
@ -2,7 +2,7 @@ using System.Globalization;
|
|||
|
||||
namespace System
|
||||
{
|
||||
struct UInt64 : uint64, IInteger, IUnsigned, IHashable, IOpComparable, IIsNaN, IFormattable, IOpAddable, IOpSubtractable
|
||||
struct UInt64 : uint64, IInteger, IUnsigned, IHashable, IOpComparable, IIsNaN, IFormattable, IOpAddable, IOpSubtractable, IOpMultiplicable, IOpDividable
|
||||
{
|
||||
public const uint64 MaxValue = 0xFFFFFFFFFFFFFFFFUL;
|
||||
public const uint64 MinValue = 0;
|
||||
|
@ -29,6 +29,16 @@ namespace System
|
|||
return (SelfBase)lhs - (SelfBase)rhs;
|
||||
}
|
||||
|
||||
public static Self operator*(Self lhs, Self rhs)
|
||||
{
|
||||
return (SelfBase)lhs * (SelfBase)rhs;
|
||||
}
|
||||
|
||||
public static Self operator/(Self lhs, Self rhs)
|
||||
{
|
||||
return (SelfBase)lhs / (SelfBase)rhs;
|
||||
}
|
||||
|
||||
public int GetHashCode()
|
||||
{
|
||||
return (int)this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue