Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: 64Bit optimize coding - My experience (AMD64)

Author: Daniel Mehrmannn

Date: 23:19:03 12/21/05

Go up one level in this thread


On December 21, 2005 at 11:41:00, Gerd Isenberg wrote:

>Hi Daniel,
>
>looping on the half time with 64-bit with - doing a kind of simd - does of
>course gain a lot. You may even win some more cycles if you make your index i
>unsigned and do some unrolling:
>
>long long  a1[1024];
>long long  a2[1024];
>long long  a3[1024];
>
>for (unsigned int i = 0; i < 1024; i+=4) {
>     a3[i+0] = a1[i+0] & a2[i+0];
>     a3[i+1] = a1[i+1] & a2[i+1];
>     a3[i+2] = a1[i+2] & a2[i+2];
>     a3[i+3] = a1[i+3] & a2[i+3];
>}

Hi Gerd,

oops, i made an mistake in my example. I'm allready using unsigned int for my
for(). But your unrolling stuff is very interesting :)) thanks!

Best,
Daniel



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.