adakkak
adakkak
MModular
Created by benny on 3/22/2024 in #questions
Create a SIMD[DType.address] from a DTypePointer[T]
sadly print on DType.address is broken right now. Will fix
19 replies
MModular
Created by benny on 3/22/2024 in #questions
Create a SIMD[DType.address] from a DTypePointer[T]
E.g.
fn main():
var x = Int64(42)
var p = DTypePointer.address_of(x)
print(int(p))
print(SIMD[DType.address, 4](int(p)).type)
fn main():
var x = Int64(42)
var p = DTypePointer.address_of(x)
print(int(p))
print(SIMD[DType.address, 4](int(p)).type)
19 replies
MModular
Created by benny on 3/22/2024 in #questions
Create a SIMD[DType.address] from a DTypePointer[T]
You should be able to do SIMD[DType.address](int(my_pointer))
19 replies