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/>. */
22 # include <shlib-compat.h>
23 # include "init-arch.h"
25 extern __typeof (_wordcopy_fwd_aligned
) _wordcopy_fwd_aligned_ppc
27 extern __typeof (_wordcopy_fwd_aligned
) _wordcopy_fwd_aligned_power6
29 extern __typeof (_wordcopy_fwd_aligned
) _wordcopy_fwd_aligned_power7
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
42 extern __typeof (_wordcopy_fwd_dest_aligned
) _wordcopy_fwd_dest_aligned_power6
44 extern __typeof (_wordcopy_fwd_dest_aligned
) _wordcopy_fwd_dest_aligned_power7
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
57 extern __typeof (_wordcopy_bwd_aligned
) _wordcopy_bwd_aligned_power6
59 extern __typeof (_wordcopy_bwd_aligned
) _wordcopy_bwd_aligned_power7
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
72 extern __typeof (_wordcopy_bwd_dest_aligned
) _wordcopy_bwd_dest_aligned_power6
74 extern __typeof (_wordcopy_bwd_dest_aligned
) _wordcopy_bwd_dest_aligned_power7
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
);
85 #include <sysdeps/powerpc/power4/wordcopy.c>