Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

RIPEMD CircularShift Swift Precedence Group "~<<" Infix Operator.

License

Notifications You must be signed in to change notification settings

sleepdefic1t/CircularShwift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

CircularShwift

RIPEMD CircularShift Precedence Group ~<< Infix Operator in Swift 4.

was:

infix operator  ~<< { precedence 160 associativity none }

public func ~<< (lhs: UInt32, rhs: Int) -> UInt32 {
    return (lhs << UInt32(rhs)) | (lhs >> UInt32(32 - rhs));
}

is now:

precedencegroup CircularShwift {
    associativity: none
    higherThan: BitwiseShiftPrecedence
}

infix operator  ~<< : CircularShwift

public func ~<< (lhs: UInt32, rhs: Int) -> UInt32 {
    return (lhs << UInt32(rhs)) | (lhs >> UInt32(32 - rhs));
}

source: Swift-Evolution - Proposals - 0077-operator-precedence

About

RIPEMD CircularShift Swift Precedence Group "~<<" Infix Operator.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages