Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
build: enable sse4.2 and pclmul in zlib
  • Loading branch information
RaisinTen committed Jan 2, 2021
commit bc657ec3f417631fd90300638f37113af31db31f
5 changes: 5 additions & 0 deletions deps/zlib/crc_folding.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@

#include "deflate.h"

// TODO(raisinten): When https://github.com/nodejs/node/pull/33044 lands,
// remove the next line and add `-msse4.2` and `-mpclmul` to the
// command line options.
#pragma GCC target ("sse4.2", "pclmul")

#include <inttypes.h>
#include <emmintrin.h>
#include <immintrin.h>
Expand Down