]> git.nega.tv - josh/narcissus/commitdiff
Comment tidying
authorJoshua Simmons <josh@nega.tv>
Sat, 4 Mar 2023 12:39:21 +0000 (13:39 +0100)
committerJoshua Simmons <josh@nega.tv>
Sat, 4 Mar 2023 12:39:21 +0000 (13:39 +0100)
libs/narcissus-maths/src/mat4.rs
libs/narcissus-maths/src/sin_cos_pi.rs

index 0046f999b3fffe7d87d23fe5478d9ea15aeeba72..36f0dc25cd63ea37676f27eaa7e64286d3bf0092 100644 (file)
@@ -415,7 +415,9 @@ unsafe fn mul_mat4_sse2(lhs: Mat4, rhs: Mat4) -> Mat4 {
     Mat4::from_m128_array([x0, x1, x2, x3])
 }
 
-// SAFETY: Requires AVX2.
+/// # Safety
+///
+/// Requires AVX2 support.
 #[allow(dead_code)]
 #[inline]
 #[target_feature(enable = "avx2")]
index 95bd0f9e5fac18d24db5834cb114d532d5a614f5..7f96f070ddd1cd7100b25ba8961f2ad6b5c01c0d 100644 (file)
@@ -27,7 +27,8 @@ fn mulsign_f32(x: f32, s: u32) -> f32 {
     f32::from_bits(x.to_bits() ^ s)
 }
 
-/// Simultaneously computes the sine and cosine of `a` expressed in multiples of *pi* radians, or half-turns.
+/// Simultaneously computes the sine and cosine of `a` expressed in multiples of
+/// *pi* radians, or half-turns.
 ///
 /// Sin error <= 0.96563 ulp.
 /// Cos error <= 0.96677 ulp.