[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gmp] Bugreport
From: |
Juergen Weiss |
Subject: |
Re: [Bug-gmp] Bugreport |
Date: |
Wed, 30 Aug 2000 18:53:13 +0200 (MET DST) |
Torbjorn Granlund writes:
> "Richard B. Kreckel" <address@hidden> writes:
>
> Jürgen Weiss <address@hidden> asked me to forward this tiny patch to
> you to make the alpha cyclc counter work in gmp-3.1/tune.
>
> It works already for me. In what way does it not work for you?
Sorry, for the misunderstanding.
1. On alphas HAVE_NATIVE_mpn_invert_limb is not defined, though
a. it exists
b. in the Changelog
2000-04-26
(HAVE_NATIVE_*): Loosen up the regexp to "PROLOGUE.*" so as to
accept PROLOGUE_GP on alpha.
but the change has not been done.
The change should be
*** configure~ Thu Aug 3 04:16:19 2000
--- configure Tue Aug 29 14:58:23 2000
***************
*** 4446,4452 ****
# that multi-function files get grepped here repeatedly
gmp_ep="`
sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
! sed -n 's/^[ ]*PROLOGUE(\(.*\))/\1/p' $tmp_file
`"
for gmp_tmp in $gmp_ep; do
cat >>confdefs.h <<EOF
--- 4446,4452 ----
# that multi-function files get grepped here repeatedly
gmp_ep="`
sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
! sed -n 's/^[ ]*PROLOGUE.*(\(.*\))/\1/p' $tmp_file
`"
for gmp_tmp in $gmp_ep; do
cat >>confdefs.h <<EOF
2. According the alpha reference manual and practical test, only
32 bits are incremented by hardware. The operating system
scheduler uses the other 32 bits to save an offset, which
when added in later, gives a correct per process cycle
count (The actual counter part cannot be set).
LEAF(rpcc,0)
rpcc a0
sll a0,32,v0
addq a0,v0,v0
srl v0,32,v0
ret zero,(ra),0x1
END(rpcc)
Greetings
Jürgen Weiß
--
Juergen Weiss | Universitaet Mainz, Zentrum f"ur Datenverarbeitung,
address@hidden | 55099 Mainz, Tel: 06131/39-26361, FAX: 06131/39-26407