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

Paul Irofti bulibuta at gmail.com
Sun Dec 16 18:32:02 CET 2007


On Tue, Dec 11, 2007 at 12:02:02AM +0100, Richard B. Kreckel wrote:
> I wrote:
>> Indeed, function gf2_mul32_ is defined if intDsize==64 and it refers to 
>> gf2_mul_table which is defined unless on sparc or sparc64. Hmm, this seems 
>> to suggest an easy fix:
>>
>> 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?
>
> Echo!
Echo On (-:

I've sent the patch a few days ago, still waiting for the reply.


More information about the CLN-list mailing list