Skip to content

Commit

Permalink
Fixed a possible build failure in case the compiler doesn't have AVX2
Browse files Browse the repository at this point in the history
  • Loading branch information
kobalicek committed Dec 24, 2019
1 parent 3b4c72d commit 9572324
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -71,7 +71,7 @@ If you plan to contribute to Blend2D make sure you follow the guidelines describ
* Source files contain a header, which contains a project name `[Blend2D]`, description, and license that refers to `LICENSE.md` file (when you are creating a new file just copy the header from any other file)
* Source files that include other Blend2D headers use relative paths starting with `./` or `../`
* Header guard format is `BLEND2D_FILE_H` for root headers and `BLEND2D_PATH_FILE_H` for headers in a subdirectory
* Source files (.cpp) must first include `blapi-build_p.h` and then other headers
* Source files (.cpp) must first include `api-build_p.h` and then other headers
* Source files that use compiler intrinsics (SSE, AVX, NEON) must have the following suffix:
* X86/X64
* `*_sse2.cpp` - SSE2
Expand Down
3 changes: 2 additions & 1 deletion src/blend2d/pixelconverter_avx2.cpp
Expand Up @@ -491,7 +491,6 @@ BLResult bl_convert_premultiply_8888_trailing_alpha_shufb_avx2(

return bl_convert_premultiply_8888_template_avx2<0, true>(self, dstData, dstStride, srcData, srcStride, w, h, options);
}
#endif

// ============================================================================
// [BLPixelConverter - Unpremultiply (PMULLD) (AVX2)]
Expand Down Expand Up @@ -803,3 +802,5 @@ BLResult bl_convert_unpremultiply_8888_trailing_alpha_float_avx2(

return bl_convert_unpremultiply_8888_float_template_avx2<0>(self, dstData, dstStride, srcData, srcStride, w, h, options);
}

#endif

0 comments on commit 9572324

Please sign in to comment.