-
Notifications
You must be signed in to change notification settings - Fork 58
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
Don't use ccalls where wrappers already exist (fmpz edition) #1913
Conversation
adb3836
to
5655206
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1913 +/- ##
==========================================
+ Coverage 87.22% 87.39% +0.17%
==========================================
Files 97 97
Lines 35556 35539 -17
==========================================
+ Hits 31014 31061 +47
+ Misses 4542 4478 -64 ☔ View full report in Codecov by Sentry. |
5655206
to
4533873
Compare
@@ -158,8 +158,7 @@ end | |||
@boundscheck _checkbounds(A, i, j) | |||
GC.@preserve A begin | |||
m = mat_entry_ptr(A, i, j) | |||
fl = ccall((:fmpz_sgn, libflint), Int, (Ptr{ZZRingElem},), m) | |||
return isone(fl) | |||
return is_positive(m) |
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.
Code not covered, seems we have zero tests for is_positive_entry
:-(
nr = ccall((:fmpq_numerator_ptr, libflint), Ptr{ZZRingElem}, (Ref{QQFieldElem},), a) | ||
vn = ccall((:fmpz_remove, libflint), Clong, (Ptr{ZZRingElem}, Ptr{ZZRingElem}, Ref{ZZRingElem}), nr, nr, b) | ||
nr = _num_ptr(a) | ||
vn, nr = remove!(nr, b) |
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.
Code not covered, seems we have zero tests for remove!
:-(
I added a bunch of minor tests :-) |
No description provided.