-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x % Unsigned, x % Signed #34864
Merged
StefanKarpinski
merged 36 commits into
JuliaLang:master
from
JeffreySarnoff:jas/remUnsigned
Mar 27, 2020
+58
−4
Merged
x % Unsigned, x % Signed #34864
Changes from 15 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
6a35def
support `x % Unsigned` where `isa(x, Signed)`
JeffreySarnoff 6b87b76
support `x % Unsigned` where `isa(x, Signed)`
JeffreySarnoff 17f3c79
support `x % Unsigned` where `isa(x, Signed)`
JeffreySarnoff 58f8708
`x % Unsigned` where `isa(x, Signed)` (remove comma)
JeffreySarnoff 65367c5
`x::Signed % Unsigned, x::Unsigned % Signed`
JeffreySarnoff 1a1b028
`rem(x::Unsigned, Signed)`
JeffreySarnoff bcaa805
`x::Unsigned % Signed`
JeffreySarnoff fb30b63
remove trailing space
JeffreySarnoff bfd416b
interconvert BitInteger pairs
JeffreySarnoff 536948e
remove `unsigned(<:Signed)` lines, import `unsigned` from Base
JeffreySarnoff 152d6e8
add tests, improve tests
JeffreySarnoff 98204f5
news about `signed(T)`, `unsigned(T)`
JeffreySarnoff c1988c1
remove trailing whitespace
JeffreySarnoff 61e2362
fix test
JeffreySarnoff 3fbcf18
fix missing `begin`
JeffreySarnoff a1da6f4
add missing end
JeffreySarnoff 8542442
revise tests
JeffreySarnoff 9172d4d
fixup typo in test
JeffreySarnoff 612b19d
restore multinverses.jl
JeffreySarnoff 53ec10b
remove `unsigned(::Type{BitSigned})` (was available). add `signed(::…
JeffreySarnoff 3371f21
add tests `BigInt(x) % Signed` `BigInt(x) % Unsigned`
JeffreySarnoff 0518e73
resolve conflict?
JeffreySarnoff a8d2684
Merge branch 'master' into jas/remUnsigned
JeffreySarnoff e16cffb
add back what was a merge conflict in News
JeffreySarnoff a67e742
Update NEWS.md
JeffreySarnoff cd61928
Merge branch 'master' into jas/remUnsigned
JeffreySarnoff ecb9966
remove `signed(UIntNN) = IntNN` (does it fix?)
JeffreySarnoff 3cbbec4
remove `signed(UIntNN) == IntNN` tests (does it fix?)
JeffreySarnoff 574d8a6
restore `signed(::Type{UIntNN}) = IntNN`
JeffreySarnoff 100884e
restore `signed(::Type{UIntNN}) = IntNN` tests
JeffreySarnoff cf1954a
whitespace
JeffreySarnoff 03891ac
Merge branch 'master' into jas/remUnsigned
JeffreySarnoff 6dc7fab
remove old line
JeffreySarnoff 9c2befc
combine 3 testsets
JeffreySarnoff 7b00bd5
docstrings for signed(T) unsigned(T)
JeffreySarnoff f46360a
move docstring up
JeffreySarnoff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
These should already be defined. Why is this necessary?
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.
unsigned(::Type{IntN}) = UIntN
are defined inBase/multinverses.jl
.signed(::Type{UIntN}) = IntN
are not defined.I thought the two sets of definitions belonged in the same place, and that
Int.jl
was more appropriate thanmultinverses.jl
. I moved the defs frommultinverses.jl
toInt.jl
and added the defs forsigned(_)
there. I addedunsigned
to theusing Base:
line inmultinverses.jl
.I can revert this and I could add the
signed(_)
defs intomultinverses.jl
.multiinverses
is a module, would I need toexport signed
after adding it there?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.
all that is undone