You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
773 B
30 lines
773 B
using Burst.Compiler.IL.Tests.Helpers; |
|
using Unity.Mathematics; |
|
|
|
namespace Burst.Compiler.IL.Tests |
|
{ |
|
internal partial class VectorsBools |
|
{ |
|
// --------------------------------------------------- |
|
// ! operator |
|
// --------------------------------------------------- |
|
|
|
[TestCompiler(DataRange.Standard)] |
|
public static int Bool4Not(ref bool4 a) |
|
{ |
|
return Vectors.ConvertToInt(!a); |
|
} |
|
|
|
[TestCompiler(DataRange.Standard)] |
|
public static int Bool3Not(ref bool3 a) |
|
{ |
|
return Vectors.ConvertToInt(!a); |
|
} |
|
|
|
[TestCompiler(DataRange.Standard)] |
|
public static int Bool2Not(ref bool2 a) |
|
{ |
|
return Vectors.ConvertToInt(!a); |
|
} |
|
} |
|
} |