Page MenuHomePhabricator

[Fixed Point Arithmetic] Checks for Precision Macros

Authored by leonardchan on May 17 2018, 1:04 PM.



This patch includes checks that the precision macros used for the fixed point fractional and integral bits meet the requirements for clause in

Checks for any disagreements with the recommendations will throw warnings.

I also added my own warning that recommends the integral and fractional bits for _Accum types take up the width of the whole underlying integer to prevent having to mask out the padding bits when performing comparisons.

Diff Detail

rC Clang