mirror of
https://github.com/boostorg/integer.git
synced 2025-07-02 23:36:55 +02:00
Compare commits
4 Commits
boost-1.38
...
boost-1.41
Author | SHA1 | Date | |
---|---|---|---|
eb945cc3bf | |||
be17e798df | |||
a1bf7131b3 | |||
dcdfca5f38 |
@ -1,25 +0,0 @@
|
||||
#----------------------------------------------------------------------------
|
||||
# This file was automatically generated from the original CMakeLists.txt file
|
||||
# Add a variable to hold the headers for the library
|
||||
set (lib_headers
|
||||
integer.hpp
|
||||
integer_fwd.hpp
|
||||
integer_traits.hpp
|
||||
integer
|
||||
)
|
||||
|
||||
# Add a library target to the build system
|
||||
boost_library_project(
|
||||
integer
|
||||
# SRCDIRS
|
||||
TESTDIRS test
|
||||
HEADERS ${lib_headers}
|
||||
# DOCDIRS
|
||||
DESCRIPTION "The organization of boost integer headers and classes is designed to take advantage of <stdint.h> types from the 1999 C standard without resorting to undefined behavior in terms of the 1998 C++ standard. The header <boost/cstdint.hpp> makes the standard integer types safely available in namespace boost without placing any names in namespace std."
|
||||
MODULARIZED
|
||||
AUTHORS "Beman Dawes <bdawes -at- acm.org>"
|
||||
"Daryle Walker <darylew -at- hotmail.com>"
|
||||
# MAINTAINERS
|
||||
)
|
||||
|
||||
|
@ -48,7 +48,7 @@ namespace boost {
|
||||
template <result_type n>
|
||||
struct choose_initial_n {
|
||||
|
||||
enum { c = (argument_type(1) << n << n) != 0 };
|
||||
BOOST_STATIC_CONSTANT(bool, c = (argument_type(1) << n << n) != 0);
|
||||
BOOST_STATIC_CONSTANT(
|
||||
result_type,
|
||||
value = !c*n + choose_initial_n<2*c*n>::value
|
||||
@ -85,7 +85,7 @@ namespace boost {
|
||||
template <argument_type x, result_type n = initial_n>
|
||||
struct static_log2_impl {
|
||||
|
||||
enum { c = (x >> n) > 0 }; // x >= 2**n ?
|
||||
BOOST_STATIC_CONSTANT(bool, c = (x >> n) > 0); // x >= 2**n ?
|
||||
BOOST_STATIC_CONSTANT(
|
||||
result_type,
|
||||
value = c*n + (static_log2_impl< (x>>c*n), n/2 >::value)
|
||||
|
@ -1 +0,0 @@
|
||||
boost_module(integer DEPENDS utility)
|
@ -1,8 +0,0 @@
|
||||
boost_additional_test_dependencies(integer BOOST_DEPENDS test)
|
||||
|
||||
boost_test_run(cstdint_test cstdint_test.cpp)
|
||||
boost_test_run(integer_mask_test integer_mask_test.cpp DEPENDS boost_test_exec_monitor)
|
||||
boost_test_run(integer_test integer_test.cpp DEPENDS boost_test_exec_monitor)
|
||||
boost_test_run(integer_traits_test integer_traits_test.cpp DEPENDS boost_test_exec_monitor)
|
||||
boost_test_run(static_log2_test static_log2_test.cpp DEPENDS boost_test_exec_monitor)
|
||||
boost_test_run(static_min_max_test static_min_max_test.cpp DEPENDS boost_test_exec_monitor)
|
Reference in New Issue
Block a user