atomic_word.h revision 132720
1254885Sdumbbell// Low-level type for atomic operations -*- C++ -*-
2254885Sdumbbell
3254885Sdumbbell// Copyright (C) 2004 Free Software Foundation, Inc.
4254885Sdumbbell//
5254885Sdumbbell// This file is part of the GNU ISO C++ Library.  This library is free
6254885Sdumbbell// software; you can redistribute it and/or modify it under the
7254885Sdumbbell// terms of the GNU General Public License as published by the
8254885Sdumbbell// Free Software Foundation; either version 2, or (at your option)
9254885Sdumbbell// any later version.
10254885Sdumbbell
11254885Sdumbbell// This library is distributed in the hope that it will be useful,
12254885Sdumbbell// but WITHOUT ANY WARRANTY; without even the implied warranty of
13254885Sdumbbell// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14254885Sdumbbell// GNU General Public License for more details.
15254885Sdumbbell
16254885Sdumbbell// You should have received a copy of the GNU General Public License along
17254885Sdumbbell// with this library; see the file COPYING.  If not, write to the Free
18254885Sdumbbell// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19254885Sdumbbell// USA.
20254885Sdumbbell
21254885Sdumbbell// As a special exception, you may use this file as part of a free software
22254885Sdumbbell// library without restriction.  Specifically, if other files instantiate
23254885Sdumbbell// templates or use macros or inline functions from this file, or you compile
24254885Sdumbbell// this file and link it with other files to produce an executable, this
25254885Sdumbbell// file does not by itself cause the resulting executable to be covered by
26254885Sdumbbell// the GNU General Public License.  This exception does not however
27254885Sdumbbell// invalidate any other reasons why the executable file might be covered by
28254885Sdumbbell// the GNU General Public License.
29254885Sdumbbell
30254885Sdumbbell#ifndef _GLIBCXX_ATOMIC_WORD_H
31254885Sdumbbell#define _GLIBCXX_ATOMIC_WORD_H	1
32254885Sdumbbell
33254885Sdumbbell#ifdef __arch64__
34254885Sdumbbell  typedef long _Atomic_word;
35254885Sdumbbell#else
36254885Sdumbbell  typedef int _Atomic_word;
37254885Sdumbbell#endif
38254885Sdumbbell
39254885Sdumbbell#endif
40254885Sdumbbell