Update paths for the meta => meta-python rename.

This commit is contained in:
Dan Gohman
2018-08-01 05:05:33 -07:00
parent 3a550d185f
commit c42bed7452
18 changed files with 40 additions and 39 deletions

View File

@@ -1,6 +1,6 @@
//! Runtime support for precomputed constant hash tables.
//!
//! The `lib/codegen/meta/constant_hash.py` Python module can generate constant hash tables using
//! The `lib/codegen/meta-python/constant_hash.py` Python module can generate constant hash tables using
//! open addressing and quadratic probing. The hash tables are arrays that are guaranteed to:
//!
//! - Have a power-of-two size.
@@ -56,7 +56,7 @@ pub fn probe<K: Copy + Eq, T: Table<K> + ?Sized>(
}
/// A primitive hash function for matching opcodes.
/// Must match `lib/codegen/meta/constant_hash.py`.
/// Must match `lib/codegen/meta-python/constant_hash.py`.
pub fn simple_hash(s: &str) -> usize {
let mut h: u32 = 5381;
for c in s.chars() {
@@ -71,7 +71,7 @@ mod tests {
#[test]
fn basic() {
// c.f. `meta/constant_hash.py` tests.
// c.f. `meta-python/constant_hash.py` tests.
assert_eq!(simple_hash("Hello"), 0x2fa70c01);
assert_eq!(simple_hash("world"), 0x5b0c31d5);
}