mirror of
https://github.com/apple/swift-numerics
synced 2026-11-28 05:14:31 +00:00
15 lines
458 B
Markdown
15 lines
458 B
Markdown
# 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:)` and `rotated(left:)` methods implement _bitwise
|
|
rotation_ for signed and unsigned integer types. The count parameter may
|
|
be any `BinaryInteger` type.
|