From ad35751de33bd7e9f34c3b364fcf36f6ff8a6da7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oscar=20Bystr=C3=B6m=20Ericsson?= Date: Mon, 8 Jul 2024 06:14:11 +0200 Subject: [PATCH] [README] BitOperable. --- README.md | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 8a28e849..0f8b42cc 100644 --- a/README.md +++ b/README.md @@ -398,10 +398,9 @@ The init(load:) method is similar, but it returns the bit pattern that fits. #### Generic logic gates with BitOperable -Many types in this project let you perform bitwise logic through the common AND, OR, XOR, -and NOT operations. This capability extends to generic code when a type conforms to BitOperable. -Note that all binary integers conform to this protocol and that their transformations are always -sound now that unsigned integers may end in infinitely repeating ones. +Types that let you perform bitwise logic, such as AND, OR, XOR, and NOT, conform to BitOperable.  +It powers logic gates in generic code, and all binary integer types conform to it. Arbitrary unsigned  +integers also perform these operations losslessly thanks to the notion of infinite binary integers. ```swift static prefix func ~(instance: consuming Self) -> Self @@ -410,21 +409,6 @@ static func |(lhs: consuming Self, rhs: borrowing Self) -> Self static func ^(lhs: consuming Self, rhs: borrowing Self) -> Self ``` -
- -Here are the derived operations that are available in the core module... - - -```swift -mutating func toggle() -consuming func toggled() -> Self - -static func &=(lhs: inout Self, rhs: Self) -static func |=(lhs: inout Self, rhs: Self) -static func ^=(lhs: inout Self, rhs: Self) -``` -
- #### More ones and zeros with Bit, Sign and Signum