Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zstd
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
yocto-mirrors
zstd
Commits
8156a19c
Unverified
Commit
8156a19c
authored
1 month ago
by
Yann Collet
Committed by
GitHub
1 month ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #4286 from facebook/visual_clang_avx2
Fix Visual + ClangCL + AVX2 compilation
parents
26a2b5d5
54e9d46d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/dev-short-tests.yml
+2
-0
2 additions, 0 deletions
.github/workflows/dev-short-tests.yml
lib/common/compiler.h
+2
-2
2 additions, 2 deletions
lib/common/compiler.h
with
4 additions
and
2 deletions
.github/workflows/dev-short-tests.yml
+
2
−
0
View file @
8156a19c
...
...
@@ -362,6 +362,8 @@ jobs:
-
generator
:
"
MinGW
Makefiles"
-
generator
:
"
Visual
Studio
17
2022"
flags
:
"
-T
ClangCL"
-
generator
:
"
Visual
Studio
17
2022"
flags
:
"
-T
ClangCL
-A
x64
-DCMAKE_C_FLAGS=/arch:AVX2"
runs-on
:
windows-2022
steps
:
-
uses
:
actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
# tag=v4.1.1
...
...
This diff is collapsed.
Click to expand it.
lib/common/compiler.h
+
2
−
2
View file @
8156a19c
...
...
@@ -302,10 +302,10 @@ MEM_STATIC int ZSTD_isPower2(size_t u) {
#ifndef ZSTD_ALIGNED
/* C90-compatible alignment macro (GCC/Clang). Adjust for other compilers if needed. */
# if defined(__GNUC__)
# if defined(__GNUC__)
|| defined(__clang__)
# define ZSTD_ALIGNED(a) __attribute__((aligned(a)))
# elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
/* C11 */
# define ZSTD_ALIGNED(a)
a
lignas(a)
# define ZSTD_ALIGNED(a)
_A
lignas(a)
#elif defined(_MSC_VER)
# define ZSTD_ALIGNED(n) __declspec(align(n))
# else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment