Re: What exactly is our CRC algorithm? - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: What exactly is our CRC algorithm?
Date
Msg-id 552D1FF3.4060201@iki.fi
Whole thread Raw
In response to Re: What exactly is our CRC algorithm?  (Abhijit Menon-Sen <ams@2ndQuadrant.com>)
List pgsql-hackers
On 04/03/2015 05:28 AM, Abhijit Menon-Sen wrote:
> At 2015-04-03 00:33:10 +0300, hlinnaka@iki.fi wrote:
>>
>> I came up with the attached.
>
> I like it very much.
>
> src/port/Makefile has (note src/srv):
>
>      +# pg_crc32c_sse42.o and its _src.o version need CFLAGS_SSE42
>      +pg_crc32c_sse42.o: CFLAGS+=$(CFLAGS_SSE42)
>      +pg_crc32c_sse42_srv.o: CFLAGS+=$(CFLAGS_SSE42)
>
> Other than that, this looks great. Thank you.
>
>> BTW, we might want to move the "traditional" and "legacy" crc32
>> implementations out of src/common. They are only used in backend
>> code now.
>
> I agree.

Committed this now, after some further cleanup and reorganizing the 
autoconf stuff.

- Heikki




pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Make more portable TAP tests of initdb
Next
From: Emre Hasegeli
Date:
Subject: Re: BRIN range operator class