mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-30 04:00:49 +02:00
cairo-wideint: Fix typo in two cairo_uint128 functions
_cairo_int128_negate and _cairo_int128_not are #defines of _cairo_uint128_negate and _cairo_uint128_not respectively. The function implementations should use the actual function name not the aliases. On systems without a uint128 type, these could lead to build issues. Credit for finding this go to Dr. Peter Barnes, LLNL.
This commit is contained in:
parent
9e6ceb23b4
commit
82b4781f18
1 changed files with 4 additions and 4 deletions
|
|
@ -654,16 +654,16 @@ _cairo_uint128_divrem (cairo_uint128_t num, cairo_uint128_t den)
|
|||
return qr;
|
||||
}
|
||||
|
||||
cairo_int128_t
|
||||
_cairo_int128_negate (cairo_int128_t a)
|
||||
cairo_uint128_t
|
||||
_cairo_uint128_negate (cairo_uint128_t a)
|
||||
{
|
||||
a.lo = _cairo_uint64_not (a.lo);
|
||||
a.hi = _cairo_uint64_not (a.hi);
|
||||
return _cairo_uint128_add (a, _cairo_uint32_to_uint128 (1));
|
||||
}
|
||||
|
||||
cairo_int128_t
|
||||
_cairo_int128_not (cairo_int128_t a)
|
||||
cairo_uint128_t
|
||||
_cairo_uint128_not (cairo_uint128_t a)
|
||||
{
|
||||
a.lo = _cairo_uint64_not (a.lo);
|
||||
a.hi = _cairo_uint64_not (a.hi);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue