mirror of
https://github.com/apple/swift-numerics
synced 2026-11-25 04:47:53 +00:00
458 B
458 B
Integer Utilities
Utilities defined for BinaryInteger
The following API are defined for all integer types conforming to BinaryInteger:
- The
gcd(_:_:)free function implements the Greatest Common Divisor operation.
Utilities defined for FixedWidthInteger
- The
rotated(right:)androtated(left:)methods implement bitwise rotation for signed and unsigned integer types. The count parameter may be anyBinaryIntegertype.