Mojo struct
PrefetchCache
@register_passable(trivial)
struct PrefetchCache
Prefetch cache type.
Fields
- value (
Int32
): The cache prefetch. It should be in [0, 1].
Implemented traits
AnyType
,
Copyable
,
ImplicitlyCopyable
,
Movable
,
UnknownDestructibility
Aliases
__copyinit__is_trivial
alias __copyinit__is_trivial = Int32.__copyinit__is_trivial
__del__is_trivial
alias __del__is_trivial = Int32.__del__is_trivial
__moveinit__is_trivial
alias __moveinit__is_trivial = Int32.__moveinit__is_trivial
DATA
alias DATA = PrefetchCache(1)
The data prefetching option.
INSTRUCTION
alias INSTRUCTION = PrefetchCache(0)
The instruction prefetching option.
Methods
__init__
__init__(value: Int) -> Self
Constructs a prefetch option.
Args:
- value (
Int
): An integer value representing the prefetch cache option to be used. Should be a value in the range[0, 1]
.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!