]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/config/nvptx/reduction.c
Update copyright years.
[thirdparty/gcc.git] / libgcc / config / nvptx / reduction.c
CommitLineData
33f47f42 1/* Oversized reductions lock variable
8d9254fc 2 Copyright (C) 2015-2020 Free Software Foundation, Inc.
33f47f42
NS
3 Contributed by Mentor Graphics.
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify it under
8the terms of the GNU General Public License as published by the Free
9Software Foundation; either version 3, or (at your option) any later
10version.
11
12GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13WARRANTY; without even the implied warranty of MERCHANTABILITY or
14FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15for more details.
16
17Under Section 7 of GPL version 3, you are granted additional
18permissions described in the GCC Runtime Library Exception, version
193.1, as published by the Free Software Foundation.
20
21You should have received a copy of the GNU General Public License and
22a copy of the GCC Runtime Library Exception along with this program;
23see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
24<http://www.gnu.org/licenses/>. */
25
26
27/* We use a global lock variable for reductions on objects larger than
28 64 bits. Until and unless proven that lock contention for
29 different reduction is a problem, a single lock will suffice. */
30
31unsigned volatile __reduction_lock = 0;