1 dnl Intel Atom mpn_bdiv_dbm1.
3 dnl Contributed to the GNU project by Torbjorn Granlund
and Marco Bodrato.
5 dnl Copyright
2011 Free Software Foundation
, Inc.
7 dnl
This file is part of the GNU MP Library.
9 dnl The GNU MP Library is free software
; you can redistribute it and/or modify
10 dnl it under the terms of
either:
12 dnl
* the GNU Lesser General
Public License as published by the Free
13 dnl Software Foundation
; either version 3 of the License, or (at your
14 dnl option
) any later version.
18 dnl
* the GNU General
Public License as published by the Free Software
19 dnl Foundation
; either version 2 of the License, or (at your option) any
22 dnl
or both
in parallel
, as here.
24 dnl The GNU MP Library is distributed
in the hope that it will be useful
, but
25 dnl WITHOUT ANY WARRANTY
; without even the implied warranty of MERCHANTABILITY
26 dnl
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License
29 dnl You should have received copies of the GNU General
Public License
and the
30 dnl GNU Lesser General
Public License along with the GNU MP Library. If
not,
31 dnl see
https://www.gnu.
org/licenses
/.
33 include(`..
/config.m4
')
38 C P6 model 0-8,10-12 -
39 C P6 model 9 (Banias) 9.75
40 C P6 model 13 (Dothan)
41 C P4 model 0 (Willamette)
43 C P4 model 2 (Northwood) 8.25
44 C P4 model 3 (Prescott)
52 C TODO: This code was optimised for atom-32, consider moving it back to atom
53 C dir(atom currently grabs this code), and write a 4-way version(7c/l).
55 defframe(PARAM_CARRY,20)
56 defframe(PARAM_MUL, 16)
57 defframe(PARAM_SIZE, 12)
58 defframe(PARAM_SRC, 8)
59 defframe(PARAM_DST, 4)
61 dnl re-use parameter space
62 define(SAVE_RP,`PARAM_MUL')
63 define
(SAVE_UP
,`PARAM_SIZE
')
69 define(`cy', `
%eax') C contains the return value
76 PROLOGUE
(mpn_bdiv_dbm1c
)
77 mov PARAM_SIZE
, n C
size
106 L
(top
): movd
4(up
), %mm1
108 L
(odd
): movd
%mm0
, reg
129 L
(eq1
): movd
%mm0
, reg