]> Savannah Git Hosting - gnulib.git/commitdiff
New module 'integer_length_ll'.
authorBruno Haible <bruno@clisp.org>
Sat, 15 Oct 2011 00:16:37 +0000 (02:16 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 15 Oct 2011 00:16:37 +0000 (02:16 +0200)
* lib/integer_length_ll.c: New file.
* modules/integer_length_ll: New file.

ChangeLog
lib/integer_length_ll.c [new file with mode: 0644]
modules/integer_length_ll [new file with mode: 0644]

index ea8f212f661e38067d28db64aedf61528527ef46..5503a365b40198161409067deb868351dc64ff97 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-10-14  Bruno Haible  <bruno@clisp.org>
+
+       New module 'integer_length_ll'.
+       * lib/integer_length_ll.c: New file.
+       * modules/integer_length_ll: New file.
+
 2011-10-14  Bruno Haible  <bruno@clisp.org>
 
        Tests for module 'integer_length_l'.
diff --git a/lib/integer_length_ll.c b/lib/integer_length_ll.c
new file mode 100644 (file)
index 0000000..c380486
--- /dev/null
@@ -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"
diff --git a/modules/integer_length_ll b/modules/integer_length_ll
new file mode 100644 (file)
index 0000000..9cacf82
--- /dev/null
@@ -0,0 +1,26 @@
+Description:
+Finds the most significant bit in an 'unsigned long long'.
+
+Files:
+lib/integer_length.h
+lib/integer_length_ll.c
+lib/integer_length_l.c
+m4/longlong.m4
+
+Depends-on:
+integer_length
+
+configure.ac:
+AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
+
+Makefile.am:
+lib_SOURCES += integer_length_ll.c
+
+Include:
+"integer_length.h"
+
+License:
+LGPLv2+
+
+Maintainer:
+Bruno Haible