Re: [PATCH] Introduce ROUND_UP and ROUND_DOWN macros

2015-10-02 Thread Bernd Schmidt
On 10/02/2015 06:42 PM, Uros Bizjak wrote: Attached patch introduces ROUND_UP and ROUND_DOWN global macros. These come handy to round and align various values, as shown by the usage in config/i386/ files. * system.h (ROUND_UP): New macro definition. (ROUND_DOWN): Ditto. * ggc-page

[PATCH] Introduce ROUND_UP and ROUND_DOWN macros

2015-10-02 Thread Uros Bizjak
Hello! Attached patch introduces ROUND_UP and ROUND_DOWN global macros. These come handy to round and align various values, as shown by the usage in config/i386/ files. In addition to target independent code, many targets could benefit from these universal macros (e.g. arm and aarch64 can immedia