File tree Expand file tree Collapse file tree 5 files changed +20
-0
lines changed Expand file tree Collapse file tree 5 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ pub unsafe fn hash_many<const N: usize>(
3333}
3434
3535pub mod ffi {
36+ #[ cfg_attr(
37+ not( feature = "prefer_intrinsics" ) ,
38+ link( name = "blake3_sse2_sse41_avx2_assembly" , kind = "static" )
39+ ) ]
3640 extern "C" {
3741 pub fn blake3_hash_many_avx2 (
3842 inputs : * const * const u8 ,
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ pub unsafe fn hash_many<const N: usize>(
6161}
6262
6363pub mod ffi {
64+ #[ cfg_attr(
65+ not( feature = "prefer_intrinsics" ) ,
66+ link( name = "blake3_avx512_assembly" , kind = "static" )
67+ ) ]
6468 extern "C" {
6569 pub fn blake3_compress_in_place_avx512 (
6670 cv : * mut u32 ,
Original file line number Diff line number Diff line change @@ -53,6 +53,10 @@ pub extern "C" fn blake3_compress_in_place_portable(
5353}
5454
5555pub mod ffi {
56+ #[ cfg_attr(
57+ not( feature = "prefer_intrinsics" ) ,
58+ link( name = "blake3_neon" , kind = "static" )
59+ ) ]
5660 extern "C" {
5761 pub fn blake3_hash_many_neon (
5862 inputs : * const * const u8 ,
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ pub unsafe fn hash_many<const N: usize>(
6161}
6262
6363pub mod ffi {
64+ #[ cfg_attr(
65+ not( feature = "prefer_intrinsics" ) ,
66+ link( name = "blake3_sse2_sse41_avx2_assembly" , kind = "static" )
67+ ) ]
6468 extern "C" {
6569 pub fn blake3_compress_in_place_sse2 (
6670 cv : * mut u32 ,
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ pub unsafe fn hash_many<const N: usize>(
6161}
6262
6363pub mod ffi {
64+ #[ cfg_attr(
65+ not( feature = "prefer_intrinsics" ) ,
66+ link( name = "blake3_sse2_sse41_avx2_assembly" , kind = "static" )
67+ ) ]
6468 extern "C" {
6569 pub fn blake3_compress_in_place_sse41 (
6670 cv : * mut u32 ,
You can’t perform that action at this time.
0 commit comments