string/symbol hashed tables to be implemented in Scheme.
promotional, or sales literature without prior written consent from
MIT in each case. */
-/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/intern.c,v 9.40 1987/05/11 17:52:27 cph Exp $
+/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/intern.c,v 9.41 1987/05/15 18:19:45 cph Rel $
Utilities for manipulating symbols.
*/
return string_to_symbol(list_to_string(Arg1));
}
-\f
+
/* (STRING-HASH STRING)
Return a hash value for a string. This uses the hashing
algorithm used for interning symbols. It is intended for use by
return Hash(Arg1);
}
+Built_In_Primitive (Prim_string_hash_mod, 2, "STRING-HASH-MOD", 0x8A)
+{
+ Primitive_2_Args ();
+ CHECK_ARG (1, STRING_P);
+
+ return
+ (MAKE_UNSIGNED_FIXNUM
+ ((scheme_string_hash (Arg1)) % (arg_nonnegative_integer (2))));
+}
+\f
/* (CHARACTER-LIST-HASH LIST)
Takes a list of ASCII codes for characters and returns a hash
code for them. This uses the hashing function used to intern
;;;; Machine Dependent Type Tables
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/utabmd.scm,v 9.27 1987/04/29 13:19:32 cph Exp $
+;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/utabmd.scm,v 9.28 1987/05/15 18:20:45 cph Exp $
(declare (usual-integrations))
SYSTEM-PAIR-CDR ;$87
SYSTEM-PAIR-SET-CAR! ;$88
SYSTEM-PAIR-SET-CDR! ;$89
- #F ;$8A
+ STRING-HASH-MOD ;$8A
#F ;$8B
SET-CELL-CONTENTS! ;$8C
&MAKE-OBJECT ;$8D
;;; This identification string is saved by the system.
-"$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/utabmd.scm,v 9.27 1987/04/29 13:19:32 cph Exp $"
+"$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/utabmd.scm,v 9.28 1987/05/15 18:20:45 cph Exp $"
promotional, or sales literature without prior written consent from
MIT in each case. */
-/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/version.h,v 9.51 1987/05/14 13:51:20 cph Exp $
+/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/version.h,v 9.52 1987/05/15 18:20:28 cph Exp $
This file contains version information for the microcode. */
\f
#define VERSION 9
#endif
#ifndef SUBVERSION
-#define SUBVERSION 51
+#define SUBVERSION 52
#endif
#ifndef UCODE_TABLES_FILENAME
;;;; Machine Dependent Type Tables
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/utabmd.scm,v 9.27 1987/04/29 13:19:32 cph Exp $
+;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/utabmd.scm,v 9.28 1987/05/15 18:20:45 cph Exp $
(declare (usual-integrations))
SYSTEM-PAIR-CDR ;$87
SYSTEM-PAIR-SET-CAR! ;$88
SYSTEM-PAIR-SET-CDR! ;$89
- #F ;$8A
+ STRING-HASH-MOD ;$8A
#F ;$8B
SET-CELL-CONTENTS! ;$8C
&MAKE-OBJECT ;$8D
;;; This identification string is saved by the system.
-"$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/utabmd.scm,v 9.27 1987/04/29 13:19:32 cph Exp $"
+"$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/utabmd.scm,v 9.28 1987/05/15 18:20:45 cph Exp $"
promotional, or sales literature without prior written consent from
MIT in each case. */
-/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/version.h,v 9.51 1987/05/14 13:51:20 cph Exp $
+/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/version.h,v 9.52 1987/05/15 18:20:28 cph Exp $
This file contains version information for the microcode. */
\f
#define VERSION 9
#endif
#ifndef SUBVERSION
-#define SUBVERSION 51
+#define SUBVERSION 52
#endif
#ifndef UCODE_TABLES_FILENAME