Skip to content

Commit

Permalink
Fixed functions that had accidentally been marked as public
Browse files Browse the repository at this point in the history
  • Loading branch information
regexident committed Sep 27, 2019
1 parent a2149de commit e87459e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Surge/Arithmetic/Arithmetic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ public func .% <L: UnsafeMemoryAccessible, R: UnsafeMemoryAccessible>(lhs: L, rh
// MARK: - Element-wise Modulo: In Place

/// - Warning: does not support memory stride (assumes stride is 1).
public func modInPlace<L: UnsafeMutableMemoryAccessible, R: UnsafeMemoryAccessible>(_ lhs: inout L, _ rhs: R) where L.Element == Float, R.Element == Float {
func modInPlace<L: UnsafeMutableMemoryAccessible, R: UnsafeMemoryAccessible>(_ lhs: inout L, _ rhs: R) where L.Element == Float, R.Element == Float {
precondition(lhs.count == rhs.count, "Collections must have the same size")
var elementCount: Int32 = numericCast(lhs.count)
withUnsafeMutableMemory(&lhs) { lm in
Expand All @@ -469,7 +469,7 @@ public func modInPlace<L: UnsafeMutableMemoryAccessible, R: UnsafeMemoryAccessib
}

/// - Warning: does not support memory stride (assumes stride is 1).
public func modInPlace<L: UnsafeMutableMemoryAccessible, R: UnsafeMemoryAccessible>(_ lhs: inout L, _ rhs: R) where L.Element == Double, R.Element == Double {
func modInPlace<L: UnsafeMutableMemoryAccessible, R: UnsafeMemoryAccessible>(_ lhs: inout L, _ rhs: R) where L.Element == Double, R.Element == Double {
precondition(lhs.count == rhs.count, "Collections must have the same size")
var elementCount: Int32 = numericCast(lhs.count)
withUnsafeMutableMemory(&lhs) { lm in
Expand Down Expand Up @@ -667,7 +667,7 @@ func sqInPlace<L: UnsafeMutableMemoryAccessible>(_ lhs: inout L) where L.Element
}
}

public func sqInPlace<L: UnsafeMutableMemoryAccessible>(_ lhs: inout L) where L.Element == Double {
func sqInPlace<L: UnsafeMutableMemoryAccessible>(_ lhs: inout L) where L.Element == Double {
withUnsafeMutableMemory(&lhs) { lm in
vDSP_vsqD(lm.pointer, numericCast(lm.stride), lm.pointer, numericCast(lm.stride), numericCast(lm.count))
}
Expand Down

0 comments on commit e87459e

Please sign in to comment.