Mercurial > emacs
comparison src/alloc.c @ 13363:941c37982f37
(BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG):
Rename from SHORTBITS, INTBITS, LONGBITS.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 31 Oct 1995 02:34:16 +0000 |
parents | 336cbb88a1e3 |
children | fb12156faaf5 |
comparison
equal
deleted
inserted
replaced
13362:1220026cd3a3 | 13363:941c37982f37 |
---|---|
1089 int real_init, i; | 1089 int real_init, i; |
1090 int length_in_chars, length_in_elts, bits_per_value; | 1090 int length_in_chars, length_in_elts, bits_per_value; |
1091 | 1091 |
1092 CHECK_NATNUM (length, 0); | 1092 CHECK_NATNUM (length, 0); |
1093 | 1093 |
1094 bits_per_value = sizeof (EMACS_INT) * INTBITS / sizeof (int); | 1094 bits_per_value = sizeof (EMACS_INT) * BITS_PER_CHAR; |
1095 | 1095 |
1096 length_in_elts = (XFASTINT (length) + bits_per_value - 1) / bits_per_value; | 1096 length_in_elts = (XFASTINT (length) + bits_per_value - 1) / bits_per_value; |
1097 length_in_chars = length_in_elts * sizeof (EMACS_INT); | 1097 length_in_chars = length_in_elts * sizeof (EMACS_INT); |
1098 | 1098 |
1099 val = Fmake_vector (make_number (length_in_elts), Qnil); | 1099 val = Fmake_vector (make_number (length_in_elts), Qnil); |
1426 int | 1426 int |
1427 inhibit_garbage_collection () | 1427 inhibit_garbage_collection () |
1428 { | 1428 { |
1429 int count = specpdl_ptr - specpdl; | 1429 int count = specpdl_ptr - specpdl; |
1430 Lisp_Object number; | 1430 Lisp_Object number; |
1431 int nbits = min (VALBITS, INTBITS); | 1431 int nbits = min (VALBITS, BITS_PER_INT); |
1432 | 1432 |
1433 XSETINT (number, ((EMACS_INT) 1 << (nbits - 1)) - 1); | 1433 XSETINT (number, ((EMACS_INT) 1 << (nbits - 1)) - 1); |
1434 | 1434 |
1435 specbind (Qgc_cons_threshold, number); | 1435 specbind (Qgc_cons_threshold, number); |
1436 | 1436 |