⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hash.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
字号:
#ifndef lintstatic char sccsid[] = "@(#)hash.c	1.1	(Berkeley)	3/29/83";#endif lint/* * Hash function.  Used for pass 2 symbol table and string table, * and structure/union name passing between passes. * The hash function is a modular hash of * the sum of the characters with the sum * rotated before each successive character * is added. * Only 15 bits are used. */#ifdef FLEXNAMEShashstr(s)#elsehashstr(s, n)register n;#endifregister char *s;{	register i;	i = 0;#ifdef FLEXNAMES	while (*s)#else	while (n-- > 0 && *s)#endif		i = (i << 3 | i >> 12 & 0x07) + *s++;	return i & 0x7fff;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -