Re: [PATCH] Remove redundant loop in unsynchronized_pool_resource code

2018-11-13 Thread Jonathan Wakely
On 13/11/18 23:19 +, Jonathan Wakely wrote: On 13/11/18 22:59 +, Jonathan Wakely wrote: * src/c++17/memory_resource.cc (bitset::find_first_unset()): Remove unused function. (bitset::get_first_unset()): Remove loop, if there's are unset bits then _M_next_wo

Re: [PATCH] Remove redundant loop in unsynchronized_pool_resource code

2018-11-13 Thread Jonathan Wakely
On 13/11/18 22:59 +, Jonathan Wakely wrote: * src/c++17/memory_resource.cc (bitset::find_first_unset()): Remove unused function. (bitset::get_first_unset()): Remove loop, if there's are unset bits then _M_next_word refers to the first one and there's no need to

[PATCH] Remove redundant loop in unsynchronized_pool_resource code

2018-11-13 Thread Jonathan Wakely
* src/c++17/memory_resource.cc (bitset::find_first_unset()): Remove unused function. (bitset::get_first_unset()): Remove loop, if there's are unset bits then _M_next_word refers to the first one and there's no need to loop. (_Pool::_Pool(size_t, size_t), _Po