summaryrefslogtreecommitdiff
path: root/lib/integer_length_ll.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-10-15 02:16:37 +0200
committerBruno Haible <bruno@clisp.org>2011-10-15 02:16:37 +0200
commitb9b89b985affec5aafd9f29efc917fffcaa72783 (patch)
treec93aa0563faf513a6aebc9121ae1fc1a1f521e0e /lib/integer_length_ll.c
parent628f0eea1228ae83c864b65ef3fe91bcdb4465ee (diff)
downloadgnulib-b9b89b985affec5aafd9f29efc917fffcaa72783.tar.gz
New module 'integer_length_ll'.
* lib/integer_length_ll.c: New file. * modules/integer_length_ll: New file.
Diffstat (limited to 'lib/integer_length_ll.c')
-rw-r--r--lib/integer_length_ll.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/integer_length_ll.c b/lib/integer_length_ll.c
new file mode 100644
index 0000000000..c3804867b6
--- /dev/null
+++ b/lib/integer_length_ll.c
@@ -0,0 +1,20 @@
+/* integer_length_ll - find most significant bit in an 'unsigned long long'.
+ Copyright (C) 2011 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2011. */
+
+#define USE_LONG_LONG
+#include "integer_length_l.c"