mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
Make GCC happy about math in r350676.
MFC after: 1 week
This commit is contained in:
parent
0912877616
commit
b7e08f9305
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350677
@ -295,11 +295,8 @@ editentry_set(char *name, char *newvalue, int editonly)
|
||||
/*
|
||||
* Macro to determine the maximum value of the given size for the current
|
||||
* resolution.
|
||||
* XXX Lovely x86's optimize out the case of shifting by 32 and gcc doesn't
|
||||
* currently workaround it (even for int64's), so we have to kludge it.
|
||||
*/
|
||||
#define RESOLUTION_MAX(size) ((resolution * (size) == 32)? \
|
||||
UINT_MAX: (1 << (resolution * (size))) - 1)
|
||||
#define RESOLUTION_MAX(size) ((1LL << (resolution * (size))) - 1)
|
||||
|
||||
assert(newvalue != NULL);
|
||||
if (*newvalue == '\0')
|
||||
|
Loading…
Reference in New Issue
Block a user