6f2f21d2ff
New Features: - Flag uploads coming from G2 servents with a "[G2]" tag after IP address. - Added alias support in sharing/querying. - Made the "Clear completed" button in Downloads/Tools do something useful. - Moved "Clear completed" button to the bottom right of the download pane. - Remember fileinfo notebook tab number across sessions. - Remember main notebook tab number across sessions, only restored after crash. - Remember Gnet stats notebook tab number across sessions. - Remember download info / tools notebook tab number across sessions. Improvements: - Added --cleanup to explicitly request for final memory cleanup sequence. - Updated Italian translation. - Updated GeoIP databases. Bug Fixes: - Leaf nodes could end-up being connected to more ultrapeers than configured. - Fixed monitoring of alien threads, important when GTK file selector is used. Under the Hood: - Debian compatibility level changed from 4 to 5. - Make sure we can deal with older pkg-config, which needs leading arguments. - Use "embedded" symbols for xmalloc(), xfree() and friends. - Added "query_trace" property to trace all queries which were searched. - Moved halloc-based string functions like h_strdup() to dedicated hstrfn.c. - Expanded search mask to 64 bits to be able to hold all digits and letters. - Count aliased queries and hits from aliases. - Pre-compute shared file media type at record creation time. - Pass query limits to st_search() to avoid needless pattern matching. - Added h_strsplit() and h_strsplit_set(). - Added strvec_append_with() to expand vector by appending another vector. - crash_assert_logv(): don't call crash_mode() if assert failure was recorded. - entropy_clock_time(): mix the entropy nonce through hashing for more diffusion. - node_can_accept_connection(): only send headers back when handshaking. - qrp_add_file(): optimized to avoid computing word length if not required. - thread_stack_check_overflow(): ignore virtual addresses outside stack range. - vmm_init_once(): ensure any shared library for stacktrace unwinding is loaded.
22 lines
633 B
C
22 lines
633 B
C
$NetBSD: patch-src_lib_pow2.h,v 1.1 2017/02/26 12:58:28 adam Exp $
|
|
|
|
Don't define popcount() if it exists in system.
|
|
|
|
--- src/lib/pow2.h.orig 2017-02-26 12:17:53.469638084 +0000
|
|
+++ src/lib/pow2.h
|
|
@@ -66,6 +66,7 @@ is_pow2(uint32 value)
|
|
*
|
|
* @return number of 1 bits in a 32-bit integer.
|
|
*/
|
|
+#ifndef HAS_POPCOUNT
|
|
static inline ALWAYS_INLINE G_CONST int
|
|
popcount(uint32 x)
|
|
#ifdef HAS_BUILTIN_POPCOUNT
|
|
@@ -84,6 +85,7 @@ popcount(uint32 x)
|
|
return ((x + (x >> 4) & 0xf0f0f0f) * 0x1010101) >> 24;
|
|
}
|
|
#endif /* HAS_BUILTIN_POPCOUNT */
|
|
+#endif /* HAS_POPCOUNT */
|
|
|
|
/**
|
|
* Count trailing zeroes in a 32-bit integer, -1 for zero.
|