Re: [PowerPC] GCM optimization

2020-11-22 Thread Maamoun TK
On Sat, Nov 21, 2020 at 5:32 PM Niels Möller wrote: > Is this a loop, part of a > loop, or is there some vector load instruction that lets you pass a byte > length? > It generates a mask compatible with the length of leftovers, for example if the length is 1 then the mask generated is 0xFF00

Re: [PowerPC] GCM optimization

2020-11-22 Thread Jeffrey Walton
On Fri, Nov 20, 2020 at 3:39 PM Maamoun TK wrote: > > -- Forwarded message - > From: Maamoun TK > Date: Thu, Nov 12, 2020 at 7:42 PM > Subject: Re: [PowerPC] GCM optimization > To: Niels Möller > > On Thu, Nov 12, 2020 at 6:40 PM Niels Möller wrote: > > > I gave it a test run on

Re: [PowerPC] GCM optimization

2020-11-22 Thread Maamoun TK
Thank you, I'll take a look at the document. regards, Mamone On Sun, Nov 22, 2020 at 5:18 PM Jeffrey Walton wrote: > On Fri, Nov 20, 2020 at 3:39 PM Maamoun TK > wrote: > > > > -- Forwarded message - > > From: Maamoun TK > > Date: Thu, Nov 12, 2020 at 7:42 PM > > Subject: Re:

Re: [PowerPC] GCM optimization

2020-11-22 Thread Niels Möller
Maamoun TK writes: > It generates a mask compatible with the length of leftovers, for example if > the length is 1 then the mask generated is > 0xFF00 then the mask is ANDed with the vector > register of leftovers to clear the extra unneeded bytes. It's not exactly > l