-
-
Notifications
You must be signed in to change notification settings - Fork 15
FIX: SLEEF migration to 4.0 #240
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
Changes from 14 commits
259225c
b3a7a1e
74fa409
568225d
bab4d0a
dde614b
1ec36d6
3d37460
7db9e43
e5c6361
c918666
cfb8e38
4b44a6e
2430dda
fda5ce2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -129,7 +129,7 @@ class QuadPrecision(np.floating[_128Bit]): | |
| @override | ||
| def __add__(self, other: _IntoQuad, /) -> Self: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride] | ||
| @override | ||
| def __radd__(self, other: _IntoQuad, /) -> Self: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride] | ||
| def __radd__(self, other: _IntoQuad, /) -> Self: ... # type: ignore[override, misc] # pyright: ignore[reportIncompatibleMethodOverride] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nothing wrong with this, so I agree that mypy should shut up here |
||
| @override | ||
| def __sub__(self, other: _IntoQuad, /) -> Self: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride] | ||
| @override | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,13 +13,13 @@ typedef Sleef_quad (*unary_op_quad_def)(const Sleef_quad *); | |
| // Unary Quad operations with 2 outputs (for modf, frexp) | ||
| typedef void (*unary_op_2out_quad_def)(const Sleef_quad *, Sleef_quad *, Sleef_quad *); | ||
|
|
||
| static Sleef_quad | ||
| [[maybe_unused]] static Sleef_quad | ||
| quad_negative(const Sleef_quad *op) | ||
| { | ||
| return Sleef_negq1(*op); | ||
| } | ||
|
|
||
| static Sleef_quad | ||
| [[maybe_unused]] static Sleef_quad | ||
|
||
| quad_positive(const Sleef_quad *op) | ||
| { | ||
| return *op; | ||
|
|
@@ -929,15 +929,15 @@ static inline Sleef_quad quad_set_words64(int64_t hx, uint64_t lx) | |
| static inline Sleef_quad | ||
| quad_nextafter(const Sleef_quad *x, const Sleef_quad *y) | ||
| { | ||
| int64_t hx, hy, ix, iy; | ||
| int64_t hx, hy, ix; | ||
| uint64_t lx, ly; | ||
|
|
||
| quad_get_words64(&hx, &lx, *x); | ||
| quad_get_words64(&hy, &ly, *y); | ||
|
|
||
| // extracting absolute value | ||
| ix = hx & 0x7fffffffffffffffLL; | ||
| iy = hy & 0x7fffffffffffffffLL; | ||
| (void)ly; // unused but needed for quad_get_words64 | ||
SwayamInSync marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| // NaN if either is NaN | ||
| if (Sleef_iunordq1(*x, *y)) { | ||
|
|
||
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.
Weird, I would think
static inlinefunctions shouldn't warn this, but OK. I wonder if it uses__attribute__to force-inline, but should also add theinlineanyway.