Re: pgsql: Use Intel SSE 4.2 CRC instructions where available.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Use Intel SSE 4.2 CRC instructions where available.
Дата
Msg-id 3073.1429026011@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql: Use Intel SSE 4.2 CRC instructions where available.  (Heikki Linnakangas <heikki.linnakangas@iki.fi>)
Список pgsql-committers
Heikki Linnakangas <heikki.linnakangas@iki.fi> writes:
> Whether the instructions can be used or not depends on the compiler and the
> target architecture. If generation of SSE 4.2 instructions is allowed for
> the target (-msse4.2 flag on gcc and clang), use them. If they are not
> allowed by default, but the compiler supports the -msse4.2 flag to enable
> them, compile just the CRC-32C function with -msse4.2 flag, and check at
> runtime whether the processor we're running on supports it. If it doesn't,
> fall back to the slicing-by-8 algorithm. (With the common defaults on
> current operating systems, the runtime-check variant is what you get in
> practice.)

The buildfarm says this doesn't work terribly well, at least not with icc.

            regards, tom lane


В списке pgsql-committers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Fix typo in comment
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Try to fix the CRC-32C autoconf magic for icc compiler.