diff options
| author | Daniel Colascione | 2013-09-22 01:31:55 -0800 |
|---|---|---|
| committer | Daniel Colascione | 2013-09-22 01:31:55 -0800 |
| commit | 3e0b94e7ff1fc69b077322d672ef5d0b668541c3 (patch) | |
| tree | 9927abd073960f2460f05a43ae9467cd82c00b9b /src/ChangeLog | |
| parent | 76880d884d87d0bc674249e292ccda70f31cca0e (diff) | |
| download | emacs-3e0b94e7ff1fc69b077322d672ef5d0b668541c3.tar.gz emacs-3e0b94e7ff1fc69b077322d672ef5d0b668541c3.zip | |
Add set operations for bool-vector.
http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00404.html
* data.c (Qbool_vector_p): New symbol.
(bool_vector_spare_mask,popcount_size_t_generic)
(popcount_size_t_msc,popcount_size_t_gcc)
(popcount_size_t)
(bool_vector_binop_driver)
(count_trailing_zero_bits,size_t_to_host_endian)
(Fbool_vector_exclusive_or)
(Fbool_vector_union)
(Fbool_vector_intersection,Fbool_vector_set_difference)
(Fbool_vector_subsetp,Fbool_vector_not)
(Fbool_vector_count_matches)
(Fbool_vector_count_matches_at): New functions.
(syms_of_data): Intern new symbol, functions.
* alloc.c (bool_vector_payload_bytes): New function.
(Fmake_bool_vector): Instead of calling Fmake_vector,
which performs redundant initialization and argument checking,
just call allocate_vector ourselves. Make sure we clear any
terminating padding to zero.
(vector_nbytes,sweep_vectors): Use bool_vector_payload_bytes
instead of open-coding the size calculation.
(vroundup_ct): New macro.
(vroundup): Assume argument >= 0; invoke vroundup_ct.
* casetab.c (shuffle,set_identity): Change lint_assume to assume.
* composite.c (composition_gstring_put_cache): Change
lint_assume to assume.
* conf_post.h (assume): New macro.
(lint_assume): Remove.
* dispnew.c (update_frame_1): Change lint_assume to assume.
* ftfont.c (ftfont_shape_by_flt): Change lint_assume
to assume.
* image.c (gif_load): Change lint_assume to assume.
* lisp.h (eassert_and_assume): New macro.
(Qbool_vector_p): Declare.
(CHECK_BOOL_VECTOR,ROUNDUP,BITS_PER_SIZE_T): New macros.
(swap16,swap32,swap64): New inline functions.
* macfont.c (macfont_shape): Change lint_assume to assume.
* ralloc.c: Rename ROUNDUP to PAGE_ROUNDUP throughout.
* xsettings.c (parse_settings): Use new swap16 and
swap32 from lisp.h instead of file-specific macros.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1442650d432..7c3a29c5d86 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,45 @@ | |||
| 1 | 2013-09-22 Daniel Colascione <dancol@dancol.org> | ||
| 2 | |||
| 3 | * data.c (Qbool_vector_p): New symbol. | ||
| 4 | (bool_vector_spare_mask,popcount_size_t_generic) | ||
| 5 | (popcount_size_t_msc,popcount_size_t_gcc) | ||
| 6 | (popcount_size_t) | ||
| 7 | (bool_vector_binop_driver) | ||
| 8 | (count_trailing_zero_bits,size_t_to_host_endian) | ||
| 9 | (Fbool_vector_exclusive_or) | ||
| 10 | (Fbool_vector_union) | ||
| 11 | (Fbool_vector_intersection,Fbool_vector_set_difference) | ||
| 12 | (Fbool_vector_subsetp,Fbool_vector_not) | ||
| 13 | (Fbool_vector_count_matches) | ||
| 14 | (Fbool_vector_count_matches_at): New functions. | ||
| 15 | (syms_of_data): Intern new symbol, functions. | ||
| 16 | * alloc.c (bool_vector_payload_bytes): New function. | ||
| 17 | (Fmake_bool_vector): Instead of calling Fmake_vector, | ||
| 18 | which performs redundant initialization and argument checking, | ||
| 19 | just call allocate_vector ourselves. Make sure we clear any | ||
| 20 | terminating padding to zero. | ||
| 21 | (vector_nbytes,sweep_vectors): Use bool_vector_payload_bytes | ||
| 22 | instead of open-coding the size calculation. | ||
| 23 | (vroundup_ct): New macro. | ||
| 24 | (vroundup): Assume argument >= 0; invoke vroundup_ct. | ||
| 25 | * casetab.c (shuffle,set_identity): Change lint_assume to assume. | ||
| 26 | * composite.c (composition_gstring_put_cache): Change | ||
| 27 | lint_assume to assume. | ||
| 28 | * conf_post.h (assume): New macro. | ||
| 29 | (lint_assume): Remove. | ||
| 30 | * dispnew.c (update_frame_1): Change lint_assume to assume. | ||
| 31 | * ftfont.c (ftfont_shape_by_flt): Change lint_assume | ||
| 32 | to assume. | ||
| 33 | * image.c (gif_load): Change lint_assume to assume. | ||
| 34 | * lisp.h (eassert_and_assume): New macro. | ||
| 35 | (Qbool_vector_p): Declare. | ||
| 36 | (CHECK_BOOL_VECTOR,ROUNDUP,BITS_PER_SIZE_T): New macros. | ||
| 37 | (swap16,swap32,swap64): New inline functions. | ||
| 38 | * macfont.c (macfont_shape): Change lint_assume to assume. | ||
| 39 | * ralloc.c: Rename ROUNDUP to PAGE_ROUNDUP throughout. | ||
| 40 | * xsettings.c (parse_settings): Use new swap16 and | ||
| 41 | swap32 from lisp.h instead of file-specific macros. | ||
| 42 | |||
| 1 | 2013-09-22 Eli Zaretskii <eliz@gnu.org> | 43 | 2013-09-22 Eli Zaretskii <eliz@gnu.org> |
| 2 | 44 | ||
| 3 | * xdisp.c (try_window_id): Don't abort if cursor row could not be | 45 | * xdisp.c (try_window_id): Don't abort if cursor row could not be |