function
alignof
alignof[type: AnyType, target: target = current_target()]() -> IntLiteral
Returns the align of (in bytes) of the type.
Parameters:
- type (
AnyType
): The type in question. - target (
target
): The target architecture.
Returns:
The alignment of the type in bytes.
alignof[type: DType, target: target = current_target()]() -> IntLiteral
Returns the align of (in bytes) of the dtype.
Parameters:
- type (
DType
): The DType in question. - target (
target
): The target architecture.
Returns:
The alignment of the dtype in bytes.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
😔 What went wrong?