Update copyright notices with scripts/update-copyrights
[glibc.git] / sysdeps / powerpc / powerpc64 / multiarch / wordcopy.c
blob889be2555fa67b71569d40cf5d5ff59ade2fd80c
1 /* Multiple versions of wordcopy functions.
2 Copyright (C) 2013-2014 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
19 #ifndef NOT_IN_libc
20 # include <stddef.h>
21 # include <memcopy.h>
22 # include <shlib-compat.h>
23 # include "init-arch.h"
25 extern __typeof (_wordcopy_fwd_aligned) _wordcopy_fwd_aligned_ppc
26 attribute_hidden;
27 extern __typeof (_wordcopy_fwd_aligned) _wordcopy_fwd_aligned_power6
28 attribute_hidden;
29 extern __typeof (_wordcopy_fwd_aligned) _wordcopy_fwd_aligned_power7
30 attribute_hidden;
32 libc_ifunc (_wordcopy_fwd_aligned,
33 (hwcap & PPC_FEATURE_HAS_VSX)
34 ? _wordcopy_fwd_aligned_power7 :
35 (hwcap & PPC_FEATURE_ARCH_2_05)
36 ? _wordcopy_fwd_aligned_power6
37 : _wordcopy_fwd_aligned_ppc);
40 extern __typeof (_wordcopy_fwd_dest_aligned) _wordcopy_fwd_dest_aligned_ppc
41 attribute_hidden;
42 extern __typeof (_wordcopy_fwd_dest_aligned) _wordcopy_fwd_dest_aligned_power6
43 attribute_hidden;
44 extern __typeof (_wordcopy_fwd_dest_aligned) _wordcopy_fwd_dest_aligned_power7
45 attribute_hidden;
47 libc_ifunc (_wordcopy_fwd_dest_aligned,
48 (hwcap & PPC_FEATURE_HAS_VSX)
49 ? _wordcopy_fwd_dest_aligned_power7 :
50 (hwcap & PPC_FEATURE_ARCH_2_05)
51 ? _wordcopy_fwd_dest_aligned_power6
52 : _wordcopy_fwd_dest_aligned_ppc);
55 extern __typeof (_wordcopy_bwd_aligned) _wordcopy_bwd_aligned_ppc
56 attribute_hidden;
57 extern __typeof (_wordcopy_bwd_aligned) _wordcopy_bwd_aligned_power6
58 attribute_hidden;
59 extern __typeof (_wordcopy_bwd_aligned) _wordcopy_bwd_aligned_power7
60 attribute_hidden;
62 libc_ifunc (_wordcopy_bwd_aligned,
63 (hwcap & PPC_FEATURE_HAS_VSX)
64 ? _wordcopy_bwd_aligned_power7 :
65 (hwcap & PPC_FEATURE_ARCH_2_05)
66 ? _wordcopy_bwd_aligned_power6
67 : _wordcopy_bwd_aligned_ppc);
70 extern __typeof (_wordcopy_bwd_dest_aligned) _wordcopy_bwd_dest_aligned_ppc
71 attribute_hidden;
72 extern __typeof (_wordcopy_bwd_dest_aligned) _wordcopy_bwd_dest_aligned_power6
73 attribute_hidden;
74 extern __typeof (_wordcopy_bwd_dest_aligned) _wordcopy_bwd_dest_aligned_power7
75 attribute_hidden;
77 libc_ifunc (_wordcopy_bwd_dest_aligned,
78 (hwcap & PPC_FEATURE_HAS_VSX)
79 ? _wordcopy_bwd_dest_aligned_power7 :
80 (hwcap & PPC_FEATURE_ARCH_2_05)
81 ? _wordcopy_bwd_dest_aligned_power6
82 : _wordcopy_bwd_dest_aligned_ppc);
84 #else
85 #include <sysdeps/powerpc/power4/wordcopy.c>
86 #endif