Skip to content

Commit

Permalink
fix and adapt to latest blend2d
Browse files Browse the repository at this point in the history
expose more usefull APIs and code refined

composition works correctly now
  • Loading branch information
mhfan committed Jun 4, 2024
1 parent 40e73c7 commit 76cf70b
Show file tree
Hide file tree
Showing 3 changed files with 482 additions and 128 deletions.
6 changes: 4 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
is_x86_feature_detected!("avx512vl").then(||
cc.flag("-mavx512vl").define("BL_BUILD_OPT_AVX512", None));

is_x86_feature_detected!("avx2").then(||
cc.flag("-mavx2").define("BL_BUILD_OPT_AVX2", None));
is_x86_feature_detected!("avx2").then(|| {
cc.flag("-mavx2").define("BL_BUILD_OPT_AVX2", None);
cc.flag_if_supported("-mfma");
});

is_x86_feature_detected!("avx").then(||
cc.flag("-mavx").define("BL_BUILD_OPT_AVX", None));
Expand Down
Loading

0 comments on commit 76cf70b

Please sign in to comment.