const BMCR_SPEED100 := uapi::BMCR_SPEED100;
const BMCR_SPEED100 := uapi::BMCR_SPEED100;
Posted Jul 1, 2025 2:34 UTC (Tue) by neilbrown (subscriber, #359)In reply to: const BMCR_SPEED100 := uapi::BMCR_SPEED100; by adobriyan
Parent article: How to write Rust in the kernel: part 2
> I, for one, think that compile time constants should be in ℤ for as long as possible
Or ℚ. go-lang claims to keep full precision for constants. I think it does for integers, but rationals become floats too soon I think (last I checked).
