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

Richard B. Kreckel kreckel at ginac.de
Tue Dec 11 00:02:02 CET 2007


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!


More information about the CLN-list mailing list