]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/nvptx/nvptx.c
[nvptx] Use MAX, MIN, ROUND_UP macros
authorTom de Vries <tdevries@suse.de>
Wed, 19 Dec 2018 10:17:31 +0000 (10:17 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 19 Dec 2018 10:17:31 +0000 (10:17 +0000)
commit3c55d60f405e4429cbcd2cf5c27c048ac226b502
treeabce9c890f806b979599388730df401168b90e71
parenta0b3b5c4af07ba34991c4f253496725a760104c2
[nvptx] Use MAX, MIN, ROUND_UP macros

Use MAX, MIN, and ROUND_UP macros to simplify code.

Build and reg-tested on x86_64 with nvptx accelerator.

2018-12-19  Tom de Vries  <tdevries@suse.de>

* config/nvptx/nvptx.c (nvptx_gen_shared_bcast, shared_prop_gen)
(nvptx_goacc_expand_accel_var): Use MAX and ROUND_UP.
(nvptx_assemble_value, nvptx_output_skip): Use MIN.
(nvptx_shared_propagate, nvptx_single, nvptx_expand_shared_addr): Use
MAX.

From-SVN: r267261
gcc/ChangeLog
gcc/config/nvptx/nvptx.c