SPB Git

spb/os-vault Public

Self-custody, multi-chain crypto wallet for macOS. One recovery phrase, six chain families, zero API keys — nothing leaves your Mac.

Swift 96% Shell 3.4% Makefile 0.6%
311 B · 9 lines swift
Raw Blame History
1// Circular left shift: http://en.wikipedia.org/wiki/Circular_shift2// Precendence should be the same as <<3infix operator ~<<: BitwiseShiftPrecedence45// FIXME: Make framework-only once tests support it6public func ~<< (lhs: UInt32, rhs: Int) -> UInt32 {7    (lhs << UInt32(rhs)) | (lhs >> UInt32(32 - rhs))8}9