]> git.eshelyaron.com Git - emacs.git/commit
Omit XLI (init) == 0 optimization in make-vector
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 5 Feb 2016 22:37:09 +0000 (14:37 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 5 Feb 2016 22:37:38 +0000 (14:37 -0800)
commit130056880fe9d807fbaee5bc5f68249ea9cf6438
tree2f9ffdb9a8ed045b84dce2421d4a147f4b7a79a5
parentf8a8da25353efc54fd24f4ea5c7ed0ad85378b98
Omit XLI (init) == 0 optimization in make-vector

* src/alloc.c (Fmake_vector): Simplify by omitting the (XLI (init)
== 0) case, as this optimization is probably not worth the hassle.
Just for the record, the test for that case could have been
(XLI (init) % ((EMACS_UINT) -1 / UCHAR_MAX) == 0) (!),
assuming the typical platform with no padding bits and where
conversion to int omits the most significant bits.
src/alloc.c