-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the unsigned integer types for bitwise intrinsics.
Exposing ctpop, ctlz, cttz and bswap as taking signed i8/i16/... is just exposing the internal LLVM names pointlessly (LLVM doesn't have "signed integers" or "unsigned integers", it just has sized integer types with (un)signed *operations*). These operations are semantically working with raw bytes, which the unsigned types model better.
- Loading branch information
Showing
15 changed files
with
238 additions
and
219 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
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.
c4a9d8a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at huonw@c4a9d8a
c4a9d8a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging huonw/rust/bitwise-byte-intrinsics = c4a9d8a into auto
c4a9d8a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huonw/rust/bitwise-byte-intrinsics = c4a9d8a merged ok, testing candidate = 0f692a8d
c4a9d8a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests failed:
failure: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/5357
exception: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/5262
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/5258
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/4351
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/4364
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/5360
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/4447
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/4455
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/5362
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/4447
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2247
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/4454
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/4467