diff options
| author | cvs2svn <cvs2svn@FreeBSD.org> | 2003-08-22 02:57:18 +0000 |
|---|---|---|
| committer | cvs2svn <cvs2svn@FreeBSD.org> | 2003-08-22 02:57:18 +0000 |
| commit | ddbc9a07af211ccf92e8e41c965408bb14b79dcb (patch) | |
| tree | b607cc201fd90cd0bbb9dbd64e4b2d9f3acad619 /contrib/libstdc++/config/cpu/generic/bits | |
| parent | 006ca56045367264ed55b8bf2cb0594565911208 (diff) | |
Diffstat (limited to 'contrib/libstdc++/config/cpu/generic/bits')
| -rw-r--r-- | contrib/libstdc++/config/cpu/generic/bits/atomicity.h | 51 | ||||
| -rw-r--r-- | contrib/libstdc++/config/cpu/generic/bits/cpu_limits.h | 41 | ||||
| -rw-r--r-- | contrib/libstdc++/config/cpu/generic/bits/limits.h | 40 |
3 files changed, 0 insertions, 132 deletions
diff --git a/contrib/libstdc++/config/cpu/generic/bits/atomicity.h b/contrib/libstdc++/config/cpu/generic/bits/atomicity.h deleted file mode 100644 index fca2b83d5844..000000000000 --- a/contrib/libstdc++/config/cpu/generic/bits/atomicity.h +++ /dev/null @@ -1,51 +0,0 @@ -// Low-level functions for atomic operations: Generic version -*- C++ -*- - -// Copyright (C) 1999, 2001 Free Software Foundation, Inc. -// -// This file is part of the GNU ISO C++ Library. This library 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, or (at your option) -// any later version. - -// This library 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 library; see the file COPYING. If not, write to the Free -// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, -// USA. - -// As a special exception, you may use this file as part of a free software -// library without restriction. Specifically, if other files instantiate -// templates or use macros or inline functions from this file, or you compile -// this file and link it with other files to produce an executable, this -// file does not by itself cause the resulting executable to be covered by -// the GNU General Public License. This exception does not however -// invalidate any other reasons why the executable file might be covered by -// the GNU General Public License. - -#ifndef _BITS_ATOMICITY_H -#define _BITS_ATOMICITY_H 1 - -typedef int _Atomic_word; - -static inline _Atomic_word -__attribute__ ((__unused__)) -__exchange_and_add (_Atomic_word* __mem, int __val) -{ - _Atomic_word __result = *__mem; - *__mem += __val; - return __result; -} - -static inline void -__attribute__ ((__unused__)) -__atomic_add (_Atomic_word* __mem, int __val) -{ - *__mem += __val; -} - -#endif /* atomicity.h */ diff --git a/contrib/libstdc++/config/cpu/generic/bits/cpu_limits.h b/contrib/libstdc++/config/cpu/generic/bits/cpu_limits.h deleted file mode 100644 index 0438f7c6e9f8..000000000000 --- a/contrib/libstdc++/config/cpu/generic/bits/cpu_limits.h +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (C) 2001 Free Software Foundation, Inc. -// -// This file is part of the GNU ISO C++ Library. This library 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, or (at your option) -// any later version. - -// This library 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 library; see the file COPYING. If not, write to the Free -// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, -// USA. - -// As a special exception, you may use this file as part of a free software -// library without restriction. Specifically, if other files instantiate -// templates or use macros or inline functions from this file, or you compile -// this file and link it with other files to produce an executable, this -// file does not by itself cause the resulting executable to be covered by -// the GNU General Public License. This exception does not however -// invalidate any other reasons why the executable file might be covered by -// the GNU General Public License. - -#ifndef _GLIBCPP_CPU_LIMITS -#define _GLIBCPP_CPU_LIMITS 1 - -// Nothing is defined in the generic file. In that way, we fall back -// on the defaults in std_limits.h. - -// If you need to override these defaults, you can either use a -// CPU-specific version (in which case you must modify -// configure.target) or you must add the overrides to your -// os_defines.h. In general, if all systems for your CPU use the -// same values, it is best to use a cpu-specific configuration file. - -#endif - diff --git a/contrib/libstdc++/config/cpu/generic/bits/limits.h b/contrib/libstdc++/config/cpu/generic/bits/limits.h deleted file mode 100644 index 8fa5a82145f6..000000000000 --- a/contrib/libstdc++/config/cpu/generic/bits/limits.h +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (C) 2001 Free Software Foundation, Inc. -// -// This file is part of the GNU ISO C++ Library. This library 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, or (at your option) -// any later version. - -// This library 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 library; see the file COPYING. If not, write to the Free -// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, -// USA. - -// As a special exception, you may use this file as part of a free software -// library without restriction. Specifically, if other files instantiate -// templates or use macros or inline functions from this file, or you compile -// this file and link it with other files to produce an executable, this -// file does not by itself cause the resulting executable to be covered by -// the GNU General Public License. This exception does not however -// invalidate any other reasons why the executable file might be covered by -// the GNU General Public License. - -#ifndef _GLIBCPP_CPU_LIMITS -#define _GLIBCPP_CPU_LIMITS 1 - -// Nothing is defined in the generic file. In that way, we fall back -// on the defaults in std_limits.h. - -// If you need to override these defaults, you can either use a -// CPU-specific version (in which case you must modify -// configure.target) or you must add the overrides to your -// os_defines.h. In general, if all systems for your CPU use the -// same values, it is best to use a cpu-specific configuration file. - -#endif |
