Skip to content

Commit 1ea18a5

Browse files
GuillaumeGomezgnzlbg
authored andcommitted
remove rustdoc warnings
1 parent effdcd0 commit 1ea18a5

File tree

11 files changed

+84
-84
lines changed

11 files changed

+84
-84
lines changed

coresimd/x86/avx.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@ pub unsafe fn _mm256_stream_si256(mem_addr: *const __m256i, a: __m256i) {
19501950
intrinsics::nontemporal_store(mem::transmute(mem_addr), a);
19511951
}
19521952

1953-
/// Moves double-precision values from a 256-bit vector of [4 x double]
1953+
/// Moves double-precision values from a 256-bit vector of `[4 x double]`
19541954
/// to a 32-byte aligned memory location. To minimize caching, the data is
19551955
/// flagged as non-temporal (unlikely to be used again soon).
19561956
///
@@ -1964,7 +1964,7 @@ pub unsafe fn _mm256_stream_pd(mem_addr: *const f64, a: __m256d) {
19641964
}
19651965

19661966
/// Moves single-precision floating point values from a 256-bit vector
1967-
/// of [8 x float] to a 32-byte aligned memory location. To minimize
1967+
/// of `[8 x float]` to a 32-byte aligned memory location. To minimize
19681968
/// caching, the data is flagged as non-temporal (unlikely to be used again
19691969
/// soon).
19701970
///
@@ -2791,8 +2791,8 @@ pub unsafe fn _mm256_castsi128_si256(a: __m128i) -> __m256i {
27912791
mem::transmute(dst)
27922792
}
27932793

2794-
/// Constructs a 256-bit floating-point vector of [8 x float] from a
2795-
/// 128-bit floating-point vector of [4 x float]. The lower 128 bits contain
2794+
/// Constructs a 256-bit floating-point vector of `[8 x float]` from a
2795+
/// 128-bit floating-point vector of `[4 x float]`. The lower 128 bits contain
27962796
/// the value of the source vector. The upper 128 bits are set to zero.
27972797
///
27982798
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_zextps128_ps256)
@@ -2821,8 +2821,8 @@ pub unsafe fn _mm256_zextsi128_si256(a: __m128i) -> __m256i {
28212821
mem::transmute(dst)
28222822
}
28232823

2824-
/// Constructs a 256-bit floating-point vector of [4 x double] from a
2825-
/// 128-bit floating-point vector of [2 x double]. The lower 128 bits
2824+
/// Constructs a 256-bit floating-point vector of `[4 x double]` from a
2825+
/// 128-bit floating-point vector of `[2 x double]`. The lower 128 bits
28262826
/// contain the value of the source vector. The upper 128 bits are set
28272827
/// to zero.
28282828
///
@@ -3045,7 +3045,7 @@ pub unsafe fn _mm256_storeu2_m128i(
30453045
_mm_storeu_si128(hiaddr, hi);
30463046
}
30473047

3048-
/// Returns the first element of the input vector of [8 x float].
3048+
/// Returns the first element of the input vector of `[8 x float]`.
30493049
///
30503050
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_cvtss_f32)
30513051
#[inline]

coresimd/x86/avx2.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2506,7 +2506,7 @@ pub unsafe fn _mm256_mullo_epi32(a: __m256i, b: __m256i) -> __m256i {
25062506
/// Multiply packed 16-bit integers in `a` and `b`, producing
25072507
/// intermediate signed 32-bit integers. Truncate each intermediate
25082508
/// integer to the 18 most significant bits, round by adding 1, and
2509-
/// return bits [16:1]
2509+
/// return bits `[16:1]`.
25102510
///
25112511
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_mulhrs_epi16)
25122512
#[inline]
@@ -4001,7 +4001,7 @@ pub unsafe fn _mm256_extract_epi32(a: __m256i, imm8: i32) -> i32 {
40014001
simd_extract(a.as_i32x8(), imm8)
40024002
}
40034003

4004-
/// Returns the first element of the input vector of [4 x double].
4004+
/// Returns the first element of the input vector of `[4 x double]`.
40054005
///
40064006
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_cvtsd_f64)
40074007
#[inline]
@@ -4012,7 +4012,7 @@ pub unsafe fn _mm256_cvtsd_f64(a: __m256d) -> f64 {
40124012
simd_extract(a, 0)
40134013
}
40144014

4015-
/// Returns the first element of the input vector of [8 x i32].
4015+
/// Returns the first element of the input vector of `[8 x i32]`.
40164016
///
40174017
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_cvtsi256_si32)
40184018
#[inline]

coresimd/x86/bmi1.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ pub unsafe fn _bextr_u32(a: u32, start: u32, len: u32) -> u32 {
3030
/// Extracts bits of `a` specified by `control` into
3131
/// the least significant bits of the result.
3232
///
33-
/// Bits [7,0] of `control` specify the index to the first bit in the range to
34-
/// be extracted, and bits [15,8] specify the length of the range.
33+
/// Bits `[7,0]` of `control` specify the index to the first bit in the range to
34+
/// be extracted, and bits `[15,8]` specify the length of the range.
3535
///
3636
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_bextr2_u32)
3737
#[inline]

coresimd/x86/sse.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -2212,7 +2212,7 @@ pub unsafe fn _m_pavgw(a: __m64, b: __m64) -> __m64 {
22122212
/// Subtracts the corresponding 8-bit unsigned integer values of the two
22132213
/// 64-bit vector operands and computes the absolute value for each of the
22142214
/// difference. Then sum of the 8 absolute differences is written to the
2215-
/// bits [15:0] of the destination; the remaining bits [63:16] are cleared.
2215+
/// bits `[15:0]` of the destination; the remaining bits `[63:16]` are cleared.
22162216
#[inline]
22172217
#[target_feature(enable = "sse,mmx")]
22182218
#[cfg_attr(test, assert_instr(psadbw))]
@@ -2223,15 +2223,15 @@ pub unsafe fn _mm_sad_pu8(a: __m64, b: __m64) -> __m64 {
22232223
/// Subtracts the corresponding 8-bit unsigned integer values of the two
22242224
/// 64-bit vector operands and computes the absolute value for each of the
22252225
/// difference. Then sum of the 8 absolute differences is written to the
2226-
/// bits [15:0] of the destination; the remaining bits [63:16] are cleared.
2226+
/// bits `[15:0]` of the destination; the remaining bits `[63:16]` are cleared.
22272227
#[inline]
22282228
#[target_feature(enable = "sse,mmx")]
22292229
#[cfg_attr(test, assert_instr(psadbw))]
22302230
pub unsafe fn _m_psadbw(a: __m64, b: __m64) -> __m64 {
22312231
_mm_sad_pu8(a, b)
22322232
}
22332233

2234-
/// Converts two elements of a 64-bit vector of [2 x i32] into two
2234+
/// Converts two elements of a 64-bit vector of `[2 x i32]` into two
22352235
/// floating point values and writes them to the lower 64-bits of the
22362236
/// destination. The remaining higher order elements of the destination are
22372237
/// copied from the corresponding elements in the first operand.
@@ -2242,7 +2242,7 @@ pub unsafe fn _mm_cvtpi32_ps(a: __m128, b: __m64) -> __m128 {
22422242
cvtpi2ps(a, b)
22432243
}
22442244

2245-
/// Converts two elements of a 64-bit vector of [2 x i32] into two
2245+
/// Converts two elements of a 64-bit vector of `[2 x i32]` into two
22462246
/// floating point values and writes them to the lower 64-bits of the
22472247
/// destination. The remaining higher order elements of the destination are
22482248
/// copied from the corresponding elements in the first operand.
@@ -2304,7 +2304,7 @@ pub unsafe fn _mm_cvtpu16_ps(a: __m64) -> __m128 {
23042304
}
23052305

23062306
/// Converts the two 32-bit signed integer values from each 64-bit vector
2307-
/// operand of [2 x i32] into a 128-bit vector of [4 x float].
2307+
/// operand of `[2 x i32]` into a 128-bit vector of `[4 x float]`.
23082308
#[inline]
23092309
#[target_feature(enable = "sse,mmx")]
23102310
#[cfg_attr(test, assert_instr(cvtpi2ps))]
@@ -2343,7 +2343,7 @@ pub unsafe fn _m_maskmovq(a: __m64, mask: __m64, mem_addr: *mut i8) {
23432343
_mm_maskmove_si64(a, mask, mem_addr)
23442344
}
23452345

2346-
/// Extracts 16-bit element from a 64-bit vector of [4 x i16] and
2346+
/// Extracts 16-bit element from a 64-bit vector of `[4 x i16]` and
23472347
/// returns it, as specified by the immediate integer operand.
23482348
#[inline]
23492349
#[target_feature(enable = "sse,mmx")]
@@ -2358,7 +2358,7 @@ pub unsafe fn _mm_extract_pi16(a: __m64, imm2: i32) -> i32 {
23582358
constify_imm2!(imm2, call)
23592359
}
23602360

2361-
/// Extracts 16-bit element from a 64-bit vector of [4 x i16] and
2361+
/// Extracts 16-bit element from a 64-bit vector of `[4 x i16]` and
23622362
/// returns it, as specified by the immediate integer operand.
23632363
#[inline]
23642364
#[target_feature(enable = "sse,mmx")]
@@ -2373,7 +2373,7 @@ pub unsafe fn _m_pextrw(a: __m64, imm2: i32) -> i32 {
23732373
constify_imm2!(imm2, call)
23742374
}
23752375

2376-
/// Copies data from the 64-bit vector of [4 x i16] to the destination,
2376+
/// Copies data from the 64-bit vector of `[4 x i16]` to the destination,
23772377
/// and inserts the lower 16-bits of an integer operand at the 16-bit offset
23782378
/// specified by the immediate operand `n`.
23792379
#[inline]
@@ -2389,7 +2389,7 @@ pub unsafe fn _mm_insert_pi16(a: __m64, d: i32, imm2: i32) -> __m64 {
23892389
constify_imm2!(imm2, call)
23902390
}
23912391

2392-
/// Copies data from the 64-bit vector of [4 x i16] to the destination,
2392+
/// Copies data from the 64-bit vector of `[4 x i16]` to the destination,
23932393
/// and inserts the lower 16-bits of an integer operand at the 16-bit offset
23942394
/// specified by the immediate operand `n`.
23952395
#[inline]

coresimd/x86/sse2.rs

+29-29
Original file line numberDiff line numberDiff line change
@@ -2561,7 +2561,7 @@ pub unsafe fn _mm_load_sd(mem_addr: *const f64) -> __m128d {
25612561
}
25622562

25632563
/// Loads a double-precision value into the high-order bits of a 128-bit
2564-
/// vector of [2 x double]. The low-order bits are copied from the low-order
2564+
/// vector of `[2 x double]`. The low-order bits are copied from the low-order
25652565
/// bits of the first operand.
25662566
///
25672567
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_loadh_pd)
@@ -2574,7 +2574,7 @@ pub unsafe fn _mm_loadh_pd(a: __m128d, mem_addr: *const f64) -> __m128d {
25742574
}
25752575

25762576
/// Loads a double-precision value into the low-order bits of a 128-bit
2577-
/// vector of [2 x double]. The high-order bits are copied from the
2577+
/// vector of `[2 x double]`. The high-order bits are copied from the
25782578
/// high-order bits of the first operand.
25792579
///
25802580
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_loadl_pd)
@@ -2586,7 +2586,7 @@ pub unsafe fn _mm_loadl_pd(a: __m128d, mem_addr: *const f64) -> __m128d {
25862586
_mm_setr_pd(*mem_addr, simd_extract(a, 1))
25872587
}
25882588

2589-
/// Stores a 128-bit floating point vector of [2 x double] to a 128-bit
2589+
/// Stores a 128-bit floating point vector of `[2 x double]` to a 128-bit
25902590
/// aligned memory location.
25912591
/// To minimize caching, the data is flagged as non-temporal (unlikely to be
25922592
/// used again soon).
@@ -2600,7 +2600,7 @@ pub unsafe fn _mm_stream_pd(mem_addr: *mut f64, a: __m128d) {
26002600
intrinsics::nontemporal_store(mem::transmute(mem_addr), a);
26012601
}
26022602

2603-
/// Stores the lower 64 bits of a 128-bit vector of [2 x double] to a
2603+
/// Stores the lower 64 bits of a 128-bit vector of `[2 x double]` to a
26042604
/// memory location.
26052605
///
26062606
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_store_sd)
@@ -2678,7 +2678,7 @@ pub unsafe fn _mm_storer_pd(mem_addr: *mut f64, a: __m128d) {
26782678
*(mem_addr as *mut __m128d) = b;
26792679
}
26802680

2681-
/// Stores the upper 64 bits of a 128-bit vector of [2 x double] to a
2681+
/// Stores the upper 64 bits of a 128-bit vector of `[2 x double]` to a
26822682
/// memory location.
26832683
///
26842684
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_storeh_pd)
@@ -2690,7 +2690,7 @@ pub unsafe fn _mm_storeh_pd(mem_addr: *mut f64, a: __m128d) {
26902690
*mem_addr = simd_extract(a, 1);
26912691
}
26922692

2693-
/// Stores the lower 64 bits of a 128-bit vector of [2 x double] to a
2693+
/// Stores the lower 64 bits of a 128-bit vector of `[2 x double]` to a
26942694
/// memory location.
26952695
///
26962696
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_storel_pd)
@@ -2760,8 +2760,8 @@ pub unsafe fn _mm_loadu_pd(mem_addr: *const f64) -> __m128d {
27602760
dst
27612761
}
27622762

2763-
/// Constructs a 128-bit floating-point vector of [2 x double] from two
2764-
/// 128-bit vector parameters of [2 x double], using the immediate-value
2763+
/// Constructs a 128-bit floating-point vector of `[2 x double]` from two
2764+
/// 128-bit vector parameters of `[2 x double]`, using the immediate-value
27652765
/// parameter as a specifier.
27662766
///
27672767
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_shuffle_pd)
@@ -2779,7 +2779,7 @@ pub unsafe fn _mm_shuffle_pd(a: __m128d, b: __m128d, imm8: i32) -> __m128d {
27792779
}
27802780
}
27812781

2782-
/// Constructs a 128-bit floating-point vector of [2 x double]. The lower
2782+
/// Constructs a 128-bit floating-point vector of `[2 x double]`. The lower
27832783
/// 64 bits are set to the lower 64 bits of the second parameter. The upper
27842784
/// 64 bits are set to the upper 64 bits of the first parameter.
27852785
///
@@ -2792,8 +2792,8 @@ pub unsafe fn _mm_move_sd(a: __m128d, b: __m128d) -> __m128d {
27922792
_mm_setr_pd(simd_extract(b, 0), simd_extract(a, 1))
27932793
}
27942794

2795-
/// Casts a 128-bit floating-point vector of [2 x double] into a 128-bit
2796-
/// floating-point vector of [4 x float].
2795+
/// Casts a 128-bit floating-point vector of `[2 x double]` into a 128-bit
2796+
/// floating-point vector of `[4 x float]`.
27972797
///
27982798
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_castpd_ps)
27992799
#[inline]
@@ -2803,7 +2803,7 @@ pub unsafe fn _mm_castpd_ps(a: __m128d) -> __m128 {
28032803
mem::transmute(a)
28042804
}
28052805

2806-
/// Casts a 128-bit floating-point vector of [2 x double] into a 128-bit
2806+
/// Casts a 128-bit floating-point vector of `[2 x double]` into a 128-bit
28072807
/// integer vector.
28082808
///
28092809
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_castpd_si128)
@@ -2814,8 +2814,8 @@ pub unsafe fn _mm_castpd_si128(a: __m128d) -> __m128i {
28142814
mem::transmute::<i64x2, _>(simd_cast(a))
28152815
}
28162816

2817-
/// Casts a 128-bit floating-point vector of [4 x float] into a 128-bit
2818-
/// floating-point vector of [2 x double].
2817+
/// Casts a 128-bit floating-point vector of `[4 x float]` into a 128-bit
2818+
/// floating-point vector of `[2 x double]`.
28192819
///
28202820
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_castps_pd)
28212821
#[inline]
@@ -2825,7 +2825,7 @@ pub unsafe fn _mm_castps_pd(a: __m128) -> __m128d {
28252825
mem::transmute(a)
28262826
}
28272827

2828-
/// Casts a 128-bit floating-point vector of [4 x float] into a 128-bit
2828+
/// Casts a 128-bit floating-point vector of `[4 x float]` into a 128-bit
28292829
/// integer vector.
28302830
///
28312831
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_castps_si128)
@@ -2837,7 +2837,7 @@ pub unsafe fn _mm_castps_si128(a: __m128) -> __m128i {
28372837
}
28382838

28392839
/// Casts a 128-bit integer vector into a 128-bit floating-point vector
2840-
/// of [2 x double].
2840+
/// of `[2 x double]`.
28412841
///
28422842
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_castsi128_pd)
28432843
#[inline]
@@ -2848,7 +2848,7 @@ pub unsafe fn _mm_castsi128_pd(a: __m128i) -> __m128d {
28482848
}
28492849

28502850
/// Casts a 128-bit integer vector into a 128-bit floating-point vector
2851-
/// of [4 x float].
2851+
/// of `[4 x float]`.
28522852
///
28532853
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_castsi128_ps)
28542854
#[inline]
@@ -2881,8 +2881,8 @@ pub unsafe fn _mm_undefined_si128() -> __m128i {
28812881
/// The resulting `__m128d` element is composed by the low-order values of
28822882
/// the two `__m128d` interleaved input elements, i.e.:
28832883
///
2884-
/// * The [127:64] bits are copied from the [127:64] bits of the second input
2885-
/// * The [63:0] bits are copied from the [127:64] bits of the first input
2884+
/// * The `[127:64]` bits are copied from the `[127:64]` bits of the second input
2885+
/// * The `[63:0]` bits are copied from the `[127:64]` bits of the first input
28862886
///
28872887
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_unpackhi_pd)
28882888
#[inline]
@@ -2896,8 +2896,8 @@ pub unsafe fn _mm_unpackhi_pd(a: __m128d, b: __m128d) -> __m128d {
28962896
/// The resulting `__m128d` element is composed by the high-order values of
28972897
/// the two `__m128d` interleaved input elements, i.e.:
28982898
///
2899-
/// * The [127:64] bits are copied from the [63:0] bits of the second input
2900-
/// * The [63:0] bits are copied from the [63:0] bits of the first input
2899+
/// * The `[127:64]` bits are copied from the `[63:0]` bits of the second input
2900+
/// * The `[63:0]` bits are copied from the `[63:0]` bits of the first input
29012901
///
29022902
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_unpacklo_pd)
29032903
#[inline]
@@ -2937,16 +2937,16 @@ pub unsafe fn _mm_sub_si64(a: __m64, b: __m64) -> __m64 {
29372937
}
29382938

29392939
/// Converts the two signed 32-bit integer elements of a 64-bit vector of
2940-
/// [2 x i32] into two double-precision floating-point values, returned in a
2941-
/// 128-bit vector of [2 x double].
2940+
/// `[2 x i32]` into two double-precision floating-point values, returned in a
2941+
/// 128-bit vector of `[2 x double]`.
29422942
#[inline]
29432943
#[target_feature(enable = "sse2,mmx")]
29442944
#[cfg_attr(test, assert_instr(cvtpi2pd))]
29452945
pub unsafe fn _mm_cvtpi32_pd(a: __m64) -> __m128d {
29462946
cvtpi2pd(a)
29472947
}
29482948

2949-
/// Initializes both 64-bit values in a 128-bit vector of [2 x i64] with
2949+
/// Initializes both 64-bit values in a 128-bit vector of `[2 x i64]` with
29502950
/// the specified 64-bit integer values.
29512951
#[inline]
29522952
#[target_feature(enable = "sse2,mmx")]
@@ -2955,7 +2955,7 @@ pub unsafe fn _mm_set_epi64(e1: __m64, e0: __m64) -> __m128i {
29552955
_mm_set_epi64x(mem::transmute(e1), mem::transmute(e0))
29562956
}
29572957

2958-
/// Initializes both values in a 128-bit vector of [2 x i64] with the
2958+
/// Initializes both values in a 128-bit vector of `[2 x i64]` with the
29592959
/// specified 64-bit value.
29602960
#[inline]
29612961
#[target_feature(enable = "sse2,mmx")]
@@ -2994,8 +2994,8 @@ pub unsafe fn _mm_movpi64_epi64(a: __m64) -> __m128i {
29942994
}
29952995

29962996
/// Converts the two double-precision floating-point elements of a
2997-
/// 128-bit vector of [2 x double] into two signed 32-bit integer values,
2998-
/// returned in a 64-bit vector of [2 x i32].
2997+
/// 128-bit vector of `[2 x double]` into two signed 32-bit integer values,
2998+
/// returned in a 64-bit vector of `[2 x i32]`.
29992999
#[inline]
30003000
#[target_feature(enable = "sse2,mmx")]
30013001
#[cfg_attr(test, assert_instr(cvtpd2pi))]
@@ -3004,8 +3004,8 @@ pub unsafe fn _mm_cvtpd_pi32(a: __m128d) -> __m64 {
30043004
}
30053005

30063006
/// Converts the two double-precision floating-point elements of a
3007-
/// 128-bit vector of [2 x double] into two signed 32-bit integer values,
3008-
/// returned in a 64-bit vector of [2 x i32].
3007+
/// 128-bit vector of `[2 x double]` into two signed 32-bit integer values,
3008+
/// returned in a 64-bit vector of `[2 x i32]`.
30093009
/// If the result of either conversion is inexact, the result is truncated
30103010
/// (rounded towards zero) regardless of the current MXCSR setting.
30113011
#[inline]

coresimd/x86/sse4a.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ extern "C" {
2424

2525
/// Extracts the bit range specified by `y` from the lower 64 bits of `x`.
2626
///
27-
/// The [13:8] bits of `y` specify the index of the bit-range to extract. The
28-
/// [5:0] bits of `y` specify the length of the bit-range to extract. All other
27+
/// The `[13:8]` bits of `y` specify the index of the bit-range to extract. The
28+
/// `[5:0]` bits of `y` specify the length of the bit-range to extract. All other
2929
/// bits are ignored.
3030
///
3131
/// If the length is zero, it is interpreted as `64`. If the length and index

0 commit comments

Comments
 (0)