Re: [dev] libzahl paper

2016-06-14 Thread Mattias Andrée
Well, there are of course still operations that are cheaper. Such is the case for the code you posted. Operations such as XOR, AND and OR should be hard to beat. NEQ is however... But branching is definitely cheaper than it used to be. Perhaps “incredibly” is stretching it. However, for (i =

Re: [dev] libzahl paper

2016-06-14 Thread Markus Wichmann
On Mon, Jun 13, 2016 at 11:32:11PM +0200, Mattias Andrée wrote: > Proofreading and suggestions is greatly appreciated! > Page 5: "Branches are incredibly cheap on modern CPUs." Not so! I wrote a variety of CRC32 algorithms to benchmark (which will just measure my personal CPU, I know, but it's be

Re: [dev] libzahl paper

2016-06-13 Thread Calvin Morrison
On 13 June 2016 at 19:03, Mattias Andrée wrote: > On Mon, 13 Jun 2016 18:18:39 -0400 > Calvin Morrison wrote: > >> Quote: >> >> zdivmod Calculates the quotient and the remainder. This >> is available because when you calculate the quotient you >> get the remainder for free. zdiv and zmod simply c

Re: [dev] libzahl paper

2016-06-13 Thread Mattias Andrée
On Mon, 13 Jun 2016 18:18:39 -0400 Calvin Morrison wrote: > Quote: > > zdivmod Calculates the quotient and the remainder. This > is available because when you calculate the quotient you > get the remainder for free. zdiv and zmod simply call > zdivmod with the dummy variable as one of the output

Re: [dev] libzahl paper

2016-06-13 Thread Mattias Andrée
On Mon, 13 Jun 2016 18:18:39 -0400 Calvin Morrison wrote: > Quote: > > zdivmod Calculates the quotient and the remainder. This > is available because when you calculate the quotient you > get the remainder for free. zdiv and zmod simply call > zdivmod with the dummy variable as one of the output

Re: [dev] libzahl paper

2016-06-13 Thread Mattias Andrée
On Mon, 13 Jun 2016 22:10:09 + Staven wrote: > On Mon, Jun 13, 2016 at 11:32:11PM +0200, Mattias Andrée > wrote: > > Too energy efficient to open the PDF and > > read the abstract? No worries, here it is: > > You're a good person. > > Thank you! pgpolqGtYAF8u.pgp Description: OpenPGP

Re: [dev] libzahl paper

2016-06-13 Thread Calvin Morrison
Quote: zdivmod Calculates the quotient and the remainder. This is available because when you calculate the quotient you get the remainder for free. zdiv and zmod simply call zdivmod with the dummy variable as one of the output variables. Why include a wrapper at all? Why not just allow the user t

Re: [dev] libzahl paper

2016-06-13 Thread Staven
On Mon, Jun 13, 2016 at 11:32:11PM +0200, Mattias Andrée wrote: > Too energy efficient to open the PDF and > read the abstract? No worries, here it is: You're a good person.