]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: add new round_2dig() function to round integers
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Jan 2015 17:43:49 +0000 (18:43 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 15 Jan 2015 18:02:27 +0000 (19:02 +0100)
commit3ca1a883f914e2830c1b347d3f6c948da41c8f56
treed204f193a0abbf3b20ce651040992631036d77be
parent8c97ab5eb2da447441932ad35b06dc94574140ad
MINOR: tools: add new round_2dig() function to round integers

This function rounds down an integer to the closest value having only
2 significant digits.
include/common/standard.h
src/standard.c