1
1
dnl Intel Pentium-III mpn_popcount, mpn_hamdist -- population count and
2
2
dnl hamming distance.
4
dnl Copyright 2000, 2002 Free Software Foundation, Inc.
4
dnl Copyright 2000, 2002, 2004 Free Software Foundation, Inc.
6
6
dnl This file is part of the GNU MP Library.
8
8
dnl The GNU MP Library is free software; you can redistribute it and/or
9
9
dnl modify it under the terms of the GNU Lesser General Public License as
10
10
dnl published by the Free Software Foundation; either version 2.1 of the
11
11
dnl License, or (at your option) any later version.
13
13
dnl The GNU MP Library is distributed in the hope that it will be useful,
14
14
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
15
15
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
16
dnl Lesser General Public License for more details.
18
18
dnl You should have received a copy of the GNU Lesser General Public
19
19
dnl License along with the GNU MP Library; see the file COPYING.LIB. If
20
dnl not, write to the Free Software Foundation, Inc., 59 Temple Place -
21
dnl Suite 330, Boston, MA 02111-1307, USA.
24
dnl Haven't actually measured it, but the K7 code with the psadbw should be
20
dnl not, write to the Free Software Foundation, Inc., 51 Franklin Street,
21
dnl Fifth Floor, Boston, MA 02110-1301, USA.
27
23
include(`../config.m4')
27
C P3: 6.5 7 cycles/limb
29
30
MULFUNC_PROLOGUE(mpn_popcount mpn_hamdist)
30
31
include_mpn(`x86/k7/mmx/popham.asm')