From 08c71627839a9134367db354c8255f7a720e1ff3 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Sat, 6 Dec 2008 18:46:00 +0000 Subject: Renamed OT_FLAG to OT_PEERFLAG to make code easier to read Introduced READ16/32 and WRITE16/32 makros to abstract loading/storing from unaligned addresses away on cpu's that can actually load/store everywhere Removed all unnecessary memmoves, especially where it only moved 6 bytes in inner loop. I replaced them with WRITE16/32(READ16/32()) makros --- ot_clean.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ot_clean.c') diff --git a/ot_clean.c b/ot_clean.c index 5204be6..2173c27 100644 --- a/ot_clean.c +++ b/ot_clean.c @@ -35,7 +35,7 @@ static ssize_t clean_single_bucket( ot_peer *peers, size_t peer_count, time_t ti OT_PEERTIME( peers ) = timediff; *(uint64_t*)(insert_point++) = *(uint64_t*)(peers++); } else - if( OT_FLAG( peers++ ) & PEER_FLAG_SEEDING ) + if( OT_PEERFLAG( peers++ ) & PEER_FLAG_SEEDING ) (*removed_seeders)++; return peers - insert_point; -- cgit v1.2.3