[CLN-list] Re: [cln] sparc64 and OpenBSD

Richard B. Kreckel kreckel at ginac.de
Mon Dec 17 21:18:06 CET 2007


Hi Paul,

Paul Irofti wrote:
> On Thu, Nov 29, 2007 at 11:02:17PM +0100, Richard B. Kreckel wrote:
>> Index: src/polynomial/elem/cl_UP_GF2.h
>> ===================================================================
>> RCS file: /home/cvs/cln/src/polynomial/elem/cl_UP_GF2.h,v
>> retrieving revision 1.8
>> diff -u -r1.8 cl_UP_GF2.h
>> --- src/polynomial/elem/cl_UP_GF2.h     1 Aug 2007 22:07:37 -0000       1.8
>> +++ src/polynomial/elem/cl_UP_GF2.h     29 Nov 2007 22:01:03 -0000
>> @@ -95,7 +95,7 @@
>>         return x;
>>  }
>>
>> -#if !(defined(__sparc__) || defined(__sparc64__))
>> +#if !defined(__sparc__) || defined(__sparc64__)
>>  // Multiplication of polynomials over GF(2) can unfortunately not profit
>>  // from hardware multiply instructions. Use a table instead.
>>  // This is a 2^8 x 2^4 table. Maybe a 2^6 x 2^6 table would be better?
>>
>> Does this help?
>>
> 
> Indeed it does: the library compiles, but some of the tests fail. Maybe
> you can shed some light into this.

Okay, I've applied that patch to the main branch. We've made it compile. 
That was the easier part.

It appears like test loops in src/base/digitseq/cl_asm_sparc64_.cc are 
broken.

You can try debugging the problem. As a blind shot, you could try 
redefining LOOP_TYPE in that file. But trying patches and submitting 
them into some build queue does not make sense any more. Now, somebody 
must debug things on a machine. Paul, can you do that? It shouldn't be 
too difficult. If not, can you arrange a login for me? Please do contact 
me in private if there is a chance.

Regards
   -richy.
-- 
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>


More information about the CLN-list mailing list