math: introduce can_integer_overflow()
commit0b52a5f7479d384fa2b79175964f82cf1e1bedb6
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 15 Dec 2014 10:01:55 +0000 (15 13:01 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 15 Dec 2014 10:01:55 +0000 (15 13:01 +0300)
tree41225a47d876d37d3a1c13c42532d81d3cbecd51
parent17be0b5f835d318736e21cc1e6100453685c8ca3
math: introduce can_integer_overflow()

It takes an expression and a final type and tells you if the operation can
overflow.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch.h
smatch_math.c