Compare commits

...

4 Commits

4 changed files with 2 additions and 36 deletions

View File

@ -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
)

View File

@ -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)

View File

@ -1 +0,0 @@
boost_module(integer DEPENDS utility)

View File

@ -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)