MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / runtime_detects

Function runtime_detects

nodedb-query/src/simd_agg.rs:494–503  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

492
493 #[test]
494 fn runtime_detects() {
495 let rt = ts_runtime();
496 assert!(!rt.name.is_empty());
497 // Should be one of: avx512, avx2, neon, wasm-simd128, scalar.
498 assert!(
499 ["avx512", "avx2", "neon", "wasm-simd128", "scalar"].contains(&rt.name),
500 "unexpected runtime: {}",
501 rt.name
502 );
503 }
504
505 #[test]
506 fn sum_correctness() {

Callers

nothing calls this directly

Calls 1

ts_runtimeFunction · 0.85

Tested by

no test coverage detected