forked from apple/swift-mmio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Projection associated type to BitField (apple#130)
Updates the `BitField` associated type to require a `Projection` associated type which conforms to `BitFieldProjectable`. Renames existing `insert` and `extract` methods to `insertBits` and `extractBits` respectively. Adds new typed variants of `insert` and `extract` which operate on `Projection`. The result of this change is that `preconditionMatchingBitWidth` can be hidden from the MMIO module's public API and the macro expansion code is simpler.
- Loading branch information
Showing
5 changed files
with
124 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.