mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
gallium/util: Add ULL suffix to large constants.
As suggested by Andy Furniss: it looks like some old gcc versions require it.
This commit is contained in:
parent
1d21bd057a
commit
63e0e4b8f5
1 changed files with 3 additions and 3 deletions
|
|
@ -382,7 +382,7 @@ util_is_double_inf_or_nan(double x)
|
|||
{
|
||||
union di tmp;
|
||||
tmp.d = x;
|
||||
return (tmp.ui & 0x7ff0000000000000) == 0x7ff0000000000000;
|
||||
return (tmp.ui & 0x7ff0000000000000ULL) == 0x7ff0000000000000ULL;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -391,7 +391,7 @@ util_is_double_nan(double x)
|
|||
{
|
||||
union di tmp;
|
||||
tmp.d = x;
|
||||
return (tmp.ui & 0x7fffffffffffffff) > 0x7ff0000000000000;
|
||||
return (tmp.ui & 0x7fffffffffffffffULL) > 0x7ff0000000000000ULL;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ util_double_inf_sign(double x)
|
|||
{
|
||||
union di tmp;
|
||||
tmp.d = x;
|
||||
if ((tmp.ui & 0x7fffffffffffffff) != 0x7ff0000000000000) {
|
||||
if ((tmp.ui & 0x7fffffffffffffffULL) != 0x7ff0000000000000ULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue