Skip to content

Set SSE4.2 flag#13

Merged
vkrasnov merged 1 commit intocloudflare:gcc.amd64from
kornelski:sse
May 30, 2018
Merged

Set SSE4.2 flag#13
vkrasnov merged 1 commit intocloudflare:gcc.amd64from
kornelski:sse

Conversation

@kornelski
Copy link
Copy Markdown

@kornelski kornelski commented May 30, 2018

When building on macOS the compiler protests against using sse4.2 without enabling it:

deflate.c:149:12: error: always_inline function '_mm_crc32_u32' requires target feature 'sse4.2', but would be inlined into
function 'hash_func' that is compiled without support for 'sse4.2'
return _mm_crc32_u32(0, (uint32_t)str) & s->hash_mask;
^
1 error generated.

This PR adds required SSE flags to enable SSE4.2. MSVC doesn't have SSE-4-specific flag. The least bad alternative is AVX there.

@vkrasnov vkrasnov merged commit 3f36c2b into cloudflare:gcc.amd64 May 30, 2018
@kornelski kornelski deleted the sse branch May 30, 2018 13:37
fhanau pushed a commit to fhanau/zlib that referenced this pull request Feb 27, 2023
The spec linked to two different versions of WebIDL. Only link to the
latest version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants