aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPaul Eggert2013-10-03 09:16:31 -0700
committerPaul Eggert2013-10-03 09:16:31 -0700
commit75273afb0de9e8a8eede149f3afdba0d855e7b5a (patch)
tree3b3ac5db0ac4bc0dface5305f4edaa07324e4c85 /src/alloc.c
parentc9358b45b947dd66de05527629511679bb90392a (diff)
downloademacs-75273afb0de9e8a8eede149f3afdba0d855e7b5a.tar.gz
emacs-75273afb0de9e8a8eede149f3afdba0d855e7b5a.zip
* lisp.h (eassert): Assume that COND is true when optimizing.
In other words, take on the behavior of eassert_and_assume. This makes Emacs 0.2% smaller on my platform (Fedora 19, x86-64). (eassert_and_assume): Remove. All uses replaced by eassert.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 6b07f0bd7b1..0a7fda6815c 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -2023,7 +2023,7 @@ bool_vector_payload_bytes (ptrdiff_t nr_bits,
2023 ptrdiff_t exact_needed_bytes; 2023 ptrdiff_t exact_needed_bytes;
2024 ptrdiff_t needed_bytes; 2024 ptrdiff_t needed_bytes;
2025 2025
2026 eassert_and_assume (nr_bits >= 0); 2026 eassert (nr_bits >= 0);
2027 2027
2028 exact_needed_bytes = ROUNDUP ((size_t) nr_bits, CHAR_BIT) / CHAR_BIT; 2028 exact_needed_bytes = ROUNDUP ((size_t) nr_bits, CHAR_BIT) / CHAR_BIT;
2029 needed_bytes = ROUNDUP ((size_t) nr_bits, BITS_PER_SIZE_T) / CHAR_BIT; 2029 needed_bytes = ROUNDUP ((size_t) nr_bits, BITS_PER_SIZE_T) / CHAR_BIT;
@@ -2060,8 +2060,8 @@ LENGTH must be a number. INIT matters only in whether it is t or nil. */)
2060 total_payload_bytes = bool_vector_payload_bytes 2060 total_payload_bytes = bool_vector_payload_bytes
2061 (XFASTINT (length), &exact_payload_bytes); 2061 (XFASTINT (length), &exact_payload_bytes);
2062 2062
2063 eassert_and_assume (exact_payload_bytes <= total_payload_bytes); 2063 eassert (exact_payload_bytes <= total_payload_bytes);
2064 eassert_and_assume (0 <= exact_payload_bytes); 2064 eassert (0 <= exact_payload_bytes);
2065 2065
2066 needed_elements = ROUNDUP ((size_t) ((bool_header_size - header_size) 2066 needed_elements = ROUNDUP ((size_t) ((bool_header_size - header_size)
2067 + total_payload_bytes), 2067 + total_payload_bytes),
@@ -2816,7 +2816,7 @@ vector_nbytes (struct Lisp_Vector *v)
2816 ptrdiff_t payload_bytes = 2816 ptrdiff_t payload_bytes =
2817 bool_vector_payload_bytes (bv->size, NULL); 2817 bool_vector_payload_bytes (bv->size, NULL);
2818 2818
2819 eassert_and_assume (payload_bytes >= 0); 2819 eassert (payload_bytes >= 0);
2820 size = bool_header_size + ROUNDUP (payload_bytes, word_size); 2820 size = bool_header_size + ROUNDUP (payload_bytes, word_size);
2821 } 2821 }
2822 else 2822 else