summaryrefslogtreecommitdiff
path: root/src/riva_tbl.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-26 09:27:20 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-26 09:30:27 -0800
commitc8ab8f7868c1891a146e9f679278b990f1e23516 (patch)
tree01a5926fdbc9c1aab1e35e83e975ce0528bd1602 /src/riva_tbl.h
parenteff27e0d6a18350cfd7ad226cacc538c15f49995 (diff)
riva_hw.c: Ensure ABS macro expands correctly
Handles warning from Oracle Parfait static analyser: Error: Misleading macro Misleading macro [misleading-macro]: misleading evaluation of unary '-' operator in expansion of macro ABS due to missing parentheses at line 104 of src/riva_hw.c. binary '+' operator has lower precedence than unary '-' operator inside macro body at line 298 if (ABS(ainfo->vburst_size) + (ABS(ainfo->wcvlwm + 32) & ~0xf) - tmp> VFIFO_SIZE) low precedence binary '+' operator is hidden by expansion of macro argument a at line 104 #define ABS(a) (a>0?a:-a) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/riva_tbl.h')
0 files changed, 0 insertions, 0 deletions