@@ -2076,18 +2076,21 @@ pub unsafe fn _mm256_shuffle_epi8(a: __m256i, b: __m256i) -> __m256i {
2076
2076
/// ```rust
2077
2077
/// # #![feature(cfg_target_feature)]
2078
2078
/// # #![feature(target_feature, stdsimd)]
2079
- /// #
2080
- /// # #[macro_use] extern crate stdsimd;
2081
- /// #
2079
+ /// # #![cfg_attr(not(dox), no_std)]
2080
+ /// # #[cfg(not(dox))]
2081
+ /// # extern crate std as real_std;
2082
+ /// # #[cfg(not(dox))]
2083
+ /// # #[macro_use]
2084
+ /// # extern crate stdsimd as std;
2085
+ /// #[cfg(target_arch = "x86")]
2086
+ /// use std::arch::x86::*;
2087
+ /// #[cfg(target_arch = "x86_64")]
2088
+ /// use std::arch::x86_64::*;
2089
+ ///
2082
2090
/// # fn main() {
2083
2091
/// # if is_target_feature_detected!("avx2") {
2084
2092
/// # #[target_feature(enable = "avx2")]
2085
2093
/// # unsafe fn worker() {
2086
- /// #[cfg(target_arch = "x86")]
2087
- /// use stdsimd::arch::x86::*;
2088
- /// #[cfg(target_arch = "x86_64")]
2089
- /// use stdsimd::arch::x86_64::*;
2090
- ///
2091
2094
/// let a = _mm256_setr_epi32(0, 1, 2, 3, 4, 5, 6, 7);
2092
2095
///
2093
2096
/// let c1 = _mm256_shuffle_epi32(a, 0b00_11_10_01);
@@ -2682,18 +2685,21 @@ pub unsafe fn _mm256_subs_epu8(a: __m256i, b: __m256i) -> __m256i {
2682
2685
/// ```rust
2683
2686
/// # #![feature(cfg_target_feature)]
2684
2687
/// # #![feature(target_feature, stdsimd)]
2685
- /// #
2686
- /// # #[macro_use] extern crate stdsimd;
2687
- /// #
2688
+ /// # #![cfg_attr(not(dox), no_std)]
2689
+ /// # #[cfg(not(dox))]
2690
+ /// # extern crate std as real_std;
2691
+ /// # #[cfg(not(dox))]
2692
+ /// # #[macro_use]
2693
+ /// # extern crate stdsimd as std;
2694
+ /// #[cfg(target_arch = "x86")]
2695
+ /// use std::arch::x86::*;
2696
+ /// #[cfg(target_arch = "x86_64")]
2697
+ /// use std::arch::x86_64::*;
2698
+ ///
2688
2699
/// # fn main() {
2689
2700
/// # if is_target_feature_detected!("avx2") {
2690
2701
/// # #[target_feature(enable = "avx2")]
2691
2702
/// # unsafe fn worker() {
2692
- /// #[cfg(target_arch = "x86")]
2693
- /// use stdsimd::arch::x86::*;
2694
- /// #[cfg(target_arch = "x86_64")]
2695
- /// use stdsimd::arch::x86_64::*;
2696
- ///
2697
2703
/// let a = _mm256_setr_epi8(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
2698
2704
/// 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31);
2699
2705
/// let b = _mm256_setr_epi8(0,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,
@@ -2731,18 +2737,21 @@ pub unsafe fn _mm256_unpackhi_epi8(a: __m256i, b: __m256i) -> __m256i {
2731
2737
/// ```rust
2732
2738
/// # #![feature(cfg_target_feature)]
2733
2739
/// # #![feature(target_feature, stdsimd)]
2734
- /// #
2735
- /// # #[macro_use] extern crate stdsimd;
2736
- /// #
2740
+ /// # #![cfg_attr(not(dox), no_std)]
2741
+ /// # #[cfg(not(dox))]
2742
+ /// # extern crate std as real_std;
2743
+ /// # #[cfg(not(dox))]
2744
+ /// # #[macro_use]
2745
+ /// # extern crate stdsimd as std;
2746
+ /// #[cfg(target_arch = "x86")]
2747
+ /// use std::arch::x86::*;
2748
+ /// #[cfg(target_arch = "x86_64")]
2749
+ /// use std::arch::x86_64::*;
2750
+ ///
2737
2751
/// # fn main() {
2738
2752
/// # if is_target_feature_detected!("avx2") {
2739
2753
/// # #[target_feature(enable = "avx2")]
2740
2754
/// # unsafe fn worker() {
2741
- /// #[cfg(target_arch = "x86")]
2742
- /// use stdsimd::arch::x86::*;
2743
- /// #[cfg(target_arch = "x86_64")]
2744
- /// use stdsimd::arch::x86_64::*;
2745
- ///
2746
2755
/// let a = _mm256_setr_epi8(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
2747
2756
/// 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31);
2748
2757
/// let b = _mm256_setr_epi8(0,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,
@@ -2779,18 +2788,21 @@ pub unsafe fn _mm256_unpacklo_epi8(a: __m256i, b: __m256i) -> __m256i {
2779
2788
/// ```rust
2780
2789
/// # #![feature(cfg_target_feature)]
2781
2790
/// # #![feature(target_feature, stdsimd)]
2782
- /// #
2783
- /// # #[macro_use] extern crate stdsimd;
2784
- /// #
2791
+ /// # #![cfg_attr(not(dox), no_std)]
2792
+ /// # #[cfg(not(dox))]
2793
+ /// # extern crate std as real_std;
2794
+ /// # #[cfg(not(dox))]
2795
+ /// # #[macro_use]
2796
+ /// # extern crate stdsimd as std;
2797
+ /// #[cfg(target_arch = "x86")]
2798
+ /// use std::arch::x86::*;
2799
+ /// #[cfg(target_arch = "x86_64")]
2800
+ /// use std::arch::x86_64::*;
2801
+ ///
2785
2802
/// # fn main() {
2786
2803
/// # if is_target_feature_detected!("avx2") {
2787
2804
/// # #[target_feature(enable = "avx2")]
2788
2805
/// # unsafe fn worker() {
2789
- /// #[cfg(target_arch = "x86")]
2790
- /// use stdsimd::arch::x86::*;
2791
- /// #[cfg(target_arch = "x86_64")]
2792
- /// use stdsimd::arch::x86_64::*;
2793
- ///
2794
2806
/// let a = _mm256_setr_epi16(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
2795
2807
/// let b = _mm256_setr_epi16(0,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15);
2796
2808
///
@@ -2823,17 +2835,21 @@ pub unsafe fn _mm256_unpackhi_epi16(a: __m256i, b: __m256i) -> __m256i {
2823
2835
/// ```rust
2824
2836
/// # #![feature(cfg_target_feature)]
2825
2837
/// # #![feature(target_feature, stdsimd)]
2826
- /// #
2827
- /// # #[macro_use] extern crate stdsimd;
2828
- /// #
2838
+ /// # #![cfg_attr(not(dox), no_std)]
2839
+ /// # #[cfg(not(dox))]
2840
+ /// # extern crate std as real_std;
2841
+ /// # #[cfg(not(dox))]
2842
+ /// # #[macro_use]
2843
+ /// # extern crate stdsimd as std;
2844
+ /// #[cfg(target_arch = "x86")]
2845
+ /// use std::arch::x86::*;
2846
+ /// #[cfg(target_arch = "x86_64")]
2847
+ /// use std::arch::x86_64::*;
2848
+ ///
2829
2849
/// # fn main() {
2830
2850
/// # if is_target_feature_detected!("avx2") {
2831
2851
/// # #[target_feature(enable = "avx2")]
2832
2852
/// # unsafe fn worker() {
2833
- /// #[cfg(target_arch = "x86")]
2834
- /// use stdsimd::arch::x86::*;
2835
- /// #[cfg(target_arch = "x86_64")]
2836
- /// use stdsimd::arch::x86_64::*;
2837
2853
///
2838
2854
/// let a = _mm256_setr_epi16(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
2839
2855
/// let b = _mm256_setr_epi16(0,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15);
@@ -2867,18 +2883,21 @@ pub unsafe fn _mm256_unpacklo_epi16(a: __m256i, b: __m256i) -> __m256i {
2867
2883
/// ```rust
2868
2884
/// # #![feature(cfg_target_feature)]
2869
2885
/// # #![feature(target_feature, stdsimd)]
2870
- /// #
2871
- /// # #[macro_use] extern crate stdsimd;
2872
- /// #
2886
+ /// # #![cfg_attr(not(dox), no_std)]
2887
+ /// # #[cfg(not(dox))]
2888
+ /// # extern crate std as real_std;
2889
+ /// # #[cfg(not(dox))]
2890
+ /// # #[macro_use]
2891
+ /// # extern crate stdsimd as std;
2892
+ /// #[cfg(target_arch = "x86")]
2893
+ /// use std::arch::x86::*;
2894
+ /// #[cfg(target_arch = "x86_64")]
2895
+ /// use std::arch::x86_64::*;
2896
+ ///
2873
2897
/// # fn main() {
2874
2898
/// # if is_target_feature_detected!("avx2") {
2875
2899
/// # #[target_feature(enable = "avx2")]
2876
2900
/// # unsafe fn worker() {
2877
- /// #[cfg(target_arch = "x86")]
2878
- /// use stdsimd::arch::x86::*;
2879
- /// #[cfg(target_arch = "x86_64")]
2880
- /// use stdsimd::arch::x86_64::*;
2881
- ///
2882
2901
/// let a = _mm256_setr_epi32(0, 1, 2, 3, 4, 5, 6, 7);
2883
2902
/// let b = _mm256_setr_epi32(0,-1,-2,-3,-4,-5,-6,-7);
2884
2903
///
@@ -2910,18 +2929,21 @@ pub unsafe fn _mm256_unpackhi_epi32(a: __m256i, b: __m256i) -> __m256i {
2910
2929
/// ```rust
2911
2930
/// # #![feature(cfg_target_feature)]
2912
2931
/// # #![feature(target_feature, stdsimd)]
2913
- /// #
2914
- /// # #[macro_use] extern crate stdsimd;
2915
- /// #
2932
+ /// # #![cfg_attr(not(dox), no_std)]
2933
+ /// # #[cfg(not(dox))]
2934
+ /// # extern crate std as real_std;
2935
+ /// # #[cfg(not(dox))]
2936
+ /// # #[macro_use]
2937
+ /// # extern crate stdsimd as std;
2938
+ /// #[cfg(target_arch = "x86")]
2939
+ /// use std::arch::x86::*;
2940
+ /// #[cfg(target_arch = "x86_64")]
2941
+ /// use std::arch::x86_64::*;
2942
+ ///
2916
2943
/// # fn main() {
2917
2944
/// # if is_target_feature_detected!("avx2") {
2918
2945
/// # #[target_feature(enable = "avx2")]
2919
2946
/// # unsafe fn worker() {
2920
- /// #[cfg(target_arch = "x86")]
2921
- /// use stdsimd::arch::x86::*;
2922
- /// #[cfg(target_arch = "x86_64")]
2923
- /// use stdsimd::arch::x86_64::*;
2924
- ///
2925
2947
/// let a = _mm256_setr_epi32(0, 1, 2, 3, 4, 5, 6, 7);
2926
2948
/// let b = _mm256_setr_epi32(0,-1,-2,-3,-4,-5,-6,-7);
2927
2949
///
@@ -2950,18 +2972,21 @@ pub unsafe fn _mm256_unpacklo_epi32(a: __m256i, b: __m256i) -> __m256i {
2950
2972
/// ```rust
2951
2973
/// # #![feature(cfg_target_feature)]
2952
2974
/// # #![feature(target_feature, stdsimd)]
2953
- /// #
2954
- /// # #[macro_use] extern crate stdsimd;
2955
- /// #
2975
+ /// # #![cfg_attr(not(dox), no_std)]
2976
+ /// # #[cfg(not(dox))]
2977
+ /// # extern crate std as real_std;
2978
+ /// # #[cfg(not(dox))]
2979
+ /// # #[macro_use]
2980
+ /// # extern crate stdsimd as std;
2981
+ /// #[cfg(target_arch = "x86")]
2982
+ /// use std::arch::x86::*;
2983
+ /// #[cfg(target_arch = "x86_64")]
2984
+ /// use std::arch::x86_64::*;
2985
+ ///
2956
2986
/// # fn main() {
2957
2987
/// # if is_target_feature_detected!("avx2") {
2958
2988
/// # #[target_feature(enable = "avx2")]
2959
2989
/// # unsafe fn worker() {
2960
- /// #[cfg(target_arch = "x86")]
2961
- /// use stdsimd::arch::x86::*;
2962
- /// #[cfg(target_arch = "x86_64")]
2963
- /// use stdsimd::arch::x86_64::*;
2964
- ///
2965
2990
/// let a = _mm256_setr_epi64x(0, 1, 2, 3);
2966
2991
/// let b = _mm256_setr_epi64x(0,-1,-2,-3);
2967
2992
///
@@ -2989,18 +3014,21 @@ pub unsafe fn _mm256_unpackhi_epi64(a: __m256i, b: __m256i) -> __m256i {
2989
3014
/// ```rust
2990
3015
/// # #![feature(cfg_target_feature)]
2991
3016
/// # #![feature(target_feature, stdsimd)]
2992
- /// #
2993
- /// # #[macro_use] extern crate stdsimd;
2994
- /// #
3017
+ /// # #![cfg_attr(not(dox), no_std)]
3018
+ /// # #[cfg(not(dox))]
3019
+ /// # extern crate std as real_std;
3020
+ /// # #[cfg(not(dox))]
3021
+ /// # #[macro_use]
3022
+ /// # extern crate stdsimd as std;
3023
+ /// #[cfg(target_arch = "x86")]
3024
+ /// use std::arch::x86::*;
3025
+ /// #[cfg(target_arch = "x86_64")]
3026
+ /// use std::arch::x86_64::*;
3027
+ ///
2995
3028
/// # fn main() {
2996
3029
/// # if is_target_feature_detected!("avx2") {
2997
3030
/// # #[target_feature(enable = "avx2")]
2998
3031
/// # unsafe fn worker() {
2999
- /// #[cfg(target_arch = "x86")]
3000
- /// use stdsimd::arch::x86::*;
3001
- /// #[cfg(target_arch = "x86_64")]
3002
- /// use stdsimd::arch::x86_64::*;
3003
- ///
3004
3032
/// let a = _mm256_setr_epi64x(0, 1, 2, 3);
3005
3033
/// let b = _mm256_setr_epi64x(0,-1,-2,-3);
3006
3034
///
0 commit comments