Re: Optimize Arm64 crc32c implementation in Postgresql - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: Optimize Arm64 crc32c implementation in Postgresql
Date
Msg-id CAEepm=0V6o6J+C2S3=Ev42SQUri-bnYvs9r+y1dBsaBenrripA@mail.gmail.com
Whole thread Raw
In response to Re: Optimize Arm64 crc32c implementation in Postgresql  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Optimize Arm64 crc32c implementation in Postgresql
Re: Optimize Arm64 crc32c implementation in Postgresql
List pgsql-hackers
On Thu, May 3, 2018 at 2:30 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Do you really need the pg_crc32c_armv8_choose_dummy global variable?
> That seems pretty ugly.  If you're concerned about the compiler
> optimizing away the call to the crc function, you could write it like
>
>     result = (pg_comp_crc32c_armv8(0, 0, 0) == expected-value);
>
> which'd provide a bit of extra checking that the code's not broken,
> too.

True.  Of course I needed an interesting length too...

-- 
Thomas Munro
http://www.enterprisedb.com

Attachment

pgsql-hackers by date:

Previous
From: Hartmut Holzgraefe
Date:
Subject: Re: Is a modern build system acceptable for older platforms
Next
From: Andres Freund
Date:
Subject: Re: Is a modern build system acceptable for older platforms