Skip to content

Commit

Permalink
Try to not allocating memory by using InlineArray instead of List
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Saelices <[email protected]>
  • Loading branch information
msaelices committed Dec 22, 2024
1 parent ec43100 commit 5748fd0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions stdlib/src/builtin/simd.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -1907,9 +1907,6 @@ struct SIMD[type: DType, size: Int](
Returns:
The integer value.
"""
if type.sizeof() != len(bytes):
raise Error("Byte array size does not match the integer size.")

var ptr: UnsafePointer[Scalar[type]] = bytes.unsafe_ptr().bitcast[
Scalar[type]
]()
Expand Down

0 comments on commit 5748fd0

Please sign in to comment.