[benchmark] Fix typo in SIMDReduceInteger.swift

Intialize -> Initialize
This commit is contained in:
Ikko Ashimine
2021-12-26 14:37:12 +09:00
committed by GitHub
parent d1bb98b11e
commit 085a9bb06a

View File

@@ -85,7 +85,7 @@ let int32Data: UnsafeBufferPointer<Int32> = {
let untyped = UnsafeMutableRawBufferPointer.allocate( let untyped = UnsafeMutableRawBufferPointer.allocate(
byteCount: MemoryLayout<Int32>.size * count, alignment: 16 byteCount: MemoryLayout<Int32>.size * count, alignment: 16
) )
// Intialize the memory as Int32 and fill with random values. // Initialize the memory as Int32 and fill with random values.
let typed = untyped.initializeMemory(as: Int32.self, repeating: 0) let typed = untyped.initializeMemory(as: Int32.self, repeating: 0)
var g = SplitMix64(seed: 0) var g = SplitMix64(seed: 0)
for i in 0 ..< typed.count { for i in 0 ..< typed.count {
@@ -172,7 +172,7 @@ let int8Data: UnsafeBufferPointer<Int8> = {
let untyped = UnsafeMutableRawBufferPointer.allocate( let untyped = UnsafeMutableRawBufferPointer.allocate(
byteCount: MemoryLayout<Int8>.size * count, alignment: 16 byteCount: MemoryLayout<Int8>.size * count, alignment: 16
) )
// Intialize the memory as Int8 and fill with random values. // Initialize the memory as Int8 and fill with random values.
let typed = untyped.initializeMemory(as: Int8.self, repeating: 0) let typed = untyped.initializeMemory(as: Int8.self, repeating: 0)
var g = SplitMix64(seed: 0) var g = SplitMix64(seed: 0)
for i in 0 ..< typed.count { for i in 0 ..< typed.count {