mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	hashlib: run_hash uses hash_top_ops, not hash_ops
This commit is contained in:
		
							parent
							
								
									02a578365a
								
							
						
					
					
						commit
						0dafe06cd4
					
				
					 1 changed files with 1 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -278,18 +278,9 @@ struct hash_obj_ops {
 | 
			
		|||
template<typename T>
 | 
			
		||||
[[nodiscard]]
 | 
			
		||||
Hasher::hash_t run_hash(const T& obj) {
 | 
			
		||||
	Hasher h;
 | 
			
		||||
	h.acc(obj);
 | 
			
		||||
	return h.yield();
 | 
			
		||||
	return hash_top_ops<T>::hash(obj).yield();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// #ifdef OTHER_HASH...
 | 
			
		||||
 | 
			
		||||
// [[deprecated]]
 | 
			
		||||
// inline unsigned int mkhash_add(unsigned int a, unsigned int b) {
 | 
			
		||||
// 	return mkhash(a, b);
 | 
			
		||||
// }
 | 
			
		||||
 | 
			
		||||
template<> struct hash_ops<std::monostate> {
 | 
			
		||||
	static inline bool cmp(std::monostate a, std::monostate b) {
 | 
			
		||||
		return a == b;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue