Click here to Skip to main content
16,012,166 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Counting set bits in bitmap Pin
harold aptroot24-Jun-10 8:07
harold aptroot24-Jun-10 8:07 
GeneralRe: swimming adder Pin
Luc Pattyn24-Jun-10 8:32
sitebuilderLuc Pattyn24-Jun-10 8:32 
GeneralRe: Counting set bits in bitmap [modified] Pin
Tadeusz Westawic24-Jun-10 9:04
Tadeusz Westawic24-Jun-10 9:04 
GeneralRe: Counting set bits in bitmap Pin
harold aptroot24-Jun-10 11:15
harold aptroot24-Jun-10 11:15 
GeneralRe: Counting set bits in bitmap Pin
Tadeusz Westawic24-Jun-10 11:47
Tadeusz Westawic24-Jun-10 11:47 
GeneralRe: Counting set bits in bitmap Pin
Luc Pattyn24-Jun-10 12:26
sitebuilderLuc Pattyn24-Jun-10 12:26 
GeneralRe: Counting set bits in bitmap Pin
Tadeusz Westawic24-Jun-10 14:12
Tadeusz Westawic24-Jun-10 14:12 
GeneralRe: Counting set bits in bitmap Pin
Member 419459326-Jun-10 17:28
Member 419459326-Jun-10 17:28 
Harold,

Seems that SSE instructions (PUNPCCKLBW) could be used to split up BYTES to WORDS, then the WORDS (actually LoByte of the word) used to table lookup to convert to a count, then packed add could be used to accumulate these counts, then further split to DWORDS and repeat. It is amazing what speedups can be seen with SSE conversions of simple things like string compare and strchr.

Dave.
GeneralRe: Counting set bits in bitmap Pin
harold aptroot27-Jun-10 2:28
harold aptroot27-Jun-10 2:28 
GeneralRe: Counting set bits in bitmap Pin
Member 419459327-Jun-10 5:49
Member 419459327-Jun-10 5:49 
AnswerRe: Counting set bits in bitmap Pin
Luc Pattyn24-Jun-10 5:20
sitebuilderLuc Pattyn24-Jun-10 5:20 
Questionhex calculator Pin
Tadeusz Westawic23-Jun-10 2:50
Tadeusz Westawic23-Jun-10 2:50 
AnswerRe: hex calculator Pin
Richard MacCutchan23-Jun-10 2:58
mveRichard MacCutchan23-Jun-10 2:58 
GeneralRe: hex calculator Pin
Tadeusz Westawic23-Jun-10 16:40
Tadeusz Westawic23-Jun-10 16:40 
GeneralRe: hex calculator Pin
Richard MacCutchan23-Jun-10 21:42
mveRichard MacCutchan23-Jun-10 21:42 
GeneralRe: hex calculator Pin
wbgxx29-Jun-10 7:12
wbgxx29-Jun-10 7:12 
AnswerRe: hex calculator Pin
Luc Pattyn23-Jun-10 3:54
sitebuilderLuc Pattyn23-Jun-10 3:54 
GeneralRe: hex calculator Pin
Tadeusz Westawic23-Jun-10 9:08
Tadeusz Westawic23-Jun-10 9:08 
GeneralRe: hex calculator Pin
Luc Pattyn23-Jun-10 9:12
sitebuilderLuc Pattyn23-Jun-10 9:12 
AnswerRe: hex calculator Pin
Alan Balkany23-Jun-10 3:56
Alan Balkany23-Jun-10 3:56 
AnswerRe: hex calculator Pin
Abhinav S23-Jun-10 5:19
Abhinav S23-Jun-10 5:19 
AnswerRe: hex calculator Pin
Tadeusz Westawic23-Jun-10 16:38
Tadeusz Westawic23-Jun-10 16:38 
GeneralRe: hex calculator Pin
Bassam Abdul-Baki20-Jul-10 4:03
professionalBassam Abdul-Baki20-Jul-10 4:03 
QuestionSeeking A Solution Pin
Roger Wright21-Jun-10 16:40
professionalRoger Wright21-Jun-10 16:40 
AnswerRe: Seeking A Solution Pin
Dr.Walt Fair, PE21-Jun-10 17:12
professionalDr.Walt Fair, PE21-Jun-10 17:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.