diff options
author | Andy Wingo <wingo@pobox.com> | 2020-04-12 22:17:22 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2020-04-12 22:17:22 +0200 |
commit | cae74359decc1a9d28c7892c7344512178eeac2e (patch) | |
tree | 72984b9ae43c5aa79ad285caedbda6f83091cdb2 /module/srfi | |
parent | 24a34074ef8fd91c111ed9987375f25925f69e26 (diff) | |
download | guile-cae74359decc1a9d28c7892c7344512178eeac2e.tar.gz |
Replace bit-count with bitvector-count
The old name was wonky and had bad argument order.
* NEWS: Add entry.
* doc/ref/api-data.texi (Bit Vectors): Update.
* libguile/bitvectors.h:
* libguile/bitvectors.c (VALIDATE_BITVECTOR): New helper.
(scm_bitvector_count): New function.
* libguile/deprecated.h:
* libguile/deprecated.c (scm_bit_count): Deprecate.
* module/ice-9/sandbox.scm (bitvector-bindings): Replace bit-count with
bitvector-count.
* module/srfi/srfi-60.scm: No need to #:replace bit-count.
* module/system/vm/frame.scm (available-bindings): Use bitvector-count.
* test-suite/tests/bitvectors.test ("bitvector-count"): Add test.
Diffstat (limited to 'module/srfi')
-rw-r--r-- | module/srfi/srfi-60.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/srfi/srfi-60.scm b/module/srfi/srfi-60.scm index b3ddaada7..9bf0a35ca 100644 --- a/module/srfi/srfi-60.scm +++ b/module/srfi/srfi-60.scm @@ -1,6 +1,6 @@ ;;; srfi-60.scm --- Integers as Bits -;; Copyright (C) 2005, 2006, 2010 Free Software Foundation, Inc. +;; Copyright (C) 2005, 2006, 2010, 2020 Free Software Foundation, Inc. ;; ;; This library is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public @@ -26,6 +26,7 @@ log2-binary-factors first-set-bit bit-set? copy-bit + bit-count bit-field copy-bit-field arithmetic-shift @@ -34,7 +35,6 @@ integer->list list->integer booleans->integer) - #:replace (bit-count) #:re-export (logand logior logxor |