summaryrefslogtreecommitdiff
path: root/include/atomicity.h
blob: edf4adaad35cd645c5b7e37eb47ddce4d8c52324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
    Copyright (C) 2004 Jack O'Quin

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

 */

#ifndef __jack_atomicity_h__
#define __jack_atomicity_h__

/*
 * Interface with various machine-dependent headers derived from the
 * gcc/libstdc++.v3 sources.  We try to modify the GCC sources as
 * little as possible.  The following include is resolved using the
 * config/configure.hosts mechanism.  It will use an OS-dependent
 * version if available, otherwise the one for this CPU.  Some of
 * these files might not work with older GCC compilers.
 */
#include <sysdeps/atomicity.h>

/* These functions are defined for each platform.  The C++ library
 * function names start with "__" to avoid namespace pollution. */
#define exchange_and_add __exchange_and_add
#define atomic_add __atomic_add

#endif /* __jack_atomicity_h__ */