MCPcopy Create free account
hub / github.com/RustCrypto/utils / expected_bits

Function expected_bits

cpubits/src/lib.rs:405–417  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

403 /// Return the expected number of bits for the target.
404 #[cfg(not(any(cpubits = "16", cpubits = "32", cpubits = "64")))]
405 fn expected_bits() -> u32 {
406 // Duplicated 64-bit override predicates need to go here
407 if cfg!(any(
408 // ARMv7
409 all(target_arch = "arm", target_feature = "v7"),
410 // WASM
411 target_arch = "wasm32"
412 )) {
413 64
414 } else {
415 usize::BITS
416 }
417 }
418
419 #[cfg(not(any(cpubits = "16", cpubits = "32", cpubits = "64")))]
420 #[test]

Callers 1

cpubits_16_or_32_vs_64Function · 0.85

Calls

no outgoing calls

Tested by 1

cpubits_16_or_32_vs_64Function · 0.68