Struct char8
8 signed bytes
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Hybridizer.Runtime.CUDAImports
Assembly: Hybridizer.Runtime.CUDAImports.dll
Syntax
[IntrinsicType("char8")]
public struct char8
Constructors
char8(char8)
copy constructor
Declaration
public char8(char8 res)
Parameters
Type | Name | Description |
---|---|---|
char8 | res |
char8(SByte)
constructor from single component
Declaration
public char8(sbyte val)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | val |
char8(SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte)
constructor from components
Declaration
public char8(sbyte xx, sbyte yy, sbyte zz, sbyte ww, sbyte xx2, sbyte yy2, sbyte zz2, sbyte ww2)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | xx | |
System.SByte | yy | |
System.SByte | zz | |
System.SByte | ww | |
System.SByte | xx2 | |
System.SByte | yy2 | |
System.SByte | zz2 | |
System.SByte | ww2 |
Fields
w
w
Declaration
public sbyte w
Field Value
Type | Description |
---|---|
System.SByte |
w2
w2
Declaration
public sbyte w2
Field Value
Type | Description |
---|---|
System.SByte |
x
x
Declaration
public sbyte x
Field Value
Type | Description |
---|---|
System.SByte |
x2
x2
Declaration
public sbyte x2
Field Value
Type | Description |
---|---|
System.SByte |
y
y
Declaration
public sbyte y
Field Value
Type | Description |
---|---|
System.SByte |
y2
y2
Declaration
public sbyte y2
Field Value
Type | Description |
---|---|
System.SByte |
z
z
Declaration
public sbyte z
Field Value
Type | Description |
---|---|
System.SByte |
z2
z2
Declaration
public sbyte z2
Field Value
Type | Description |
---|---|
System.SByte |
Methods
Load(char8*, Int32)
loads from memory
Declaration
[IntrinsicFunction(IsNaked = true, Name = "__hybridizer_load_char8")]
public static char8 Load(char8*ptr, int alignment)
Parameters
Type | Name | Description |
---|---|---|
char8* | ptr | |
System.Int32 | alignment | has to be a compile time constant |
Returns
Type | Description |
---|---|
char8 |
Store(char8*, char8, Int32)
stores in memory
Declaration
[IntrinsicFunction(IsNaked = true, Name = "__hybridizer_store_char8")]
public static void Store(char8*ptr, char8 val, int alignment)
Parameters
Type | Name | Description |
---|---|---|
char8* | ptr | destination pointer |
char8 | val | value to store |
System.Int32 | alignment | has to be a compile time constant |
Store(char8*, SByte, Int32)
stores in memory
Declaration
[IntrinsicFunction(IsNaked = true, Name = "__hybridizer_store_splat_char8")]
public static void Store(char8*ptr, sbyte val, int alignment)
Parameters
Type | Name | Description |
---|---|---|
char8* | ptr | destination pointer |
System.SByte | val | value to store |
System.Int32 | alignment | has to be a compile time constant |
Operators
Addition(char8, char8)
addition operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator+")]
public static char8 operator +(char8 a, char8 b)
Parameters
Type | Name | Description |
---|---|---|
char8 | a | |
char8 | b |
Returns
Type | Description |
---|---|
char8 |
Addition(char8, SByte)
addition operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator+")]
public static char8 operator +(char8 a, sbyte b)
Parameters
Type | Name | Description |
---|---|---|
char8 | a | |
System.SByte | b |
Returns
Type | Description |
---|---|
char8 |
Addition(SByte, char8)
addition operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator+")]
public static char8 operator +(sbyte a, char8 b)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | a | |
char8 | b |
Returns
Type | Description |
---|---|
char8 |
Division(char8, char8)
division operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator/")]
public static char8 operator /(char8 a, char8 b)
Parameters
Type | Name | Description |
---|---|---|
char8 | a | |
char8 | b |
Returns
Type | Description |
---|---|
char8 |
Division(char8, SByte)
division operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator/")]
public static char8 operator /(char8 a, sbyte b)
Parameters
Type | Name | Description |
---|---|---|
char8 | a | |
System.SByte | b |
Returns
Type | Description |
---|---|
char8 |
Division(SByte, char8)
division operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator/")]
public static char8 operator /(sbyte a, char8 b)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | a | |
char8 | b |
Returns
Type | Description |
---|---|
char8 |
Multiply(char8, char8)
multiplication operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator*")]
public static char8 operator *(char8 a, char8 b)
Parameters
Type | Name | Description |
---|---|---|
char8 | a | |
char8 | b |
Returns
Type | Description |
---|---|
char8 |
Multiply(char8, SByte)
multiplication operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator*")]
public static char8 operator *(char8 a, sbyte b)
Parameters
Type | Name | Description |
---|---|---|
char8 | a | |
System.SByte | b |
Returns
Type | Description |
---|---|
char8 |
Multiply(SByte, char8)
multiplication operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator*")]
public static char8 operator *(sbyte a, char8 b)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | a | |
char8 | b |
Returns
Type | Description |
---|---|
char8 |
Subtraction(char8, char8)
substraction operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator-")]
public static char8 operator -(char8 a, char8 b)
Parameters
Type | Name | Description |
---|---|---|
char8 | a | |
char8 | b |
Returns
Type | Description |
---|---|
char8 |
Subtraction(char8, SByte)
substraction operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator-")]
public static char8 operator -(char8 a, sbyte b)
Parameters
Type | Name | Description |
---|---|---|
char8 | a | |
System.SByte | b |
Returns
Type | Description |
---|---|
char8 |
Subtraction(SByte, char8)
substraction operator
Declaration
[IntrinsicFunction(IsNaked = true, Name = "operator-")]
public static char8 operator -(sbyte a, char8 b)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | a | |
char8 | b |
Returns
Type | Description |
---|---|
char8 |