Click here to Skip to main content
15,913,326 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: EM algorithm Pin
El Corazon20-Nov-07 7:35
El Corazon20-Nov-07 7:35 
QuestionHow is BitBlt implemented [modified] Pin
Force Code15-Nov-07 8:15
Force Code15-Nov-07 8:15 
AnswerRe: How is BitBlt implemented Pin
Luc Pattyn15-Nov-07 8:27
sitebuilderLuc Pattyn15-Nov-07 8:27 
GeneralRe: How is BitBlt implemented Pin
Force Code15-Nov-07 8:43
Force Code15-Nov-07 8:43 
GeneralRe: How is BitBlt implemented Pin
Luc Pattyn15-Nov-07 9:22
sitebuilderLuc Pattyn15-Nov-07 9:22 
GeneralRe: How is BitBlt implemented Pin
Force Code15-Nov-07 9:54
Force Code15-Nov-07 9:54 
GeneralRe: How is BitBlt implemented Pin
Luc Pattyn15-Nov-07 10:16
sitebuilderLuc Pattyn15-Nov-07 10:16 
GeneralRe: How is BitBlt implemented [modified] Pin
Force Code15-Nov-07 11:12
Force Code15-Nov-07 11:12 
<blockquote class="FQ"><div class="FQA">Luc Pattyn wrote:</div>With the partial description you provided, I would judge your table look-up is unlikely
to provide any speed-up unless it replaces two of the three images, which probably it isn't.</blockquote>


Something just occurred to me:

BYTE and[256][256]
BYTE or[256][256]
BYTE not[256];

That's less than 150K.

The question is, could and[x][y] be retrieved quicker than x&y is calculated. I suppose some table like this might already be used behind the scenes if it is actually quicker though.

------

Sorry, that was stupid.

But here's what I might try:

BYTE ROP[256][256][256];

This would store every possible byte value for the Raster Op I'm doing. I think one table look up would be quicker than three bitwise logical ops. But how much quicker, and is it worth a 16MB table. Guess I'll find out.


-- modified at 17:21 Thursday 15th November, 2007
GeneralRe: How is BitBlt implemented Pin
Luc Pattyn15-Nov-07 12:03
sitebuilderLuc Pattyn15-Nov-07 12:03 
GeneralRe: How is BitBlt implemented [modified] Pin
Force Code15-Nov-07 13:19
Force Code15-Nov-07 13:19 
GeneralRe: How is BitBlt implemented Pin
Luc Pattyn15-Nov-07 14:01
sitebuilderLuc Pattyn15-Nov-07 14:01 
GeneralI Completely agree with DQNOK Pin
CPallini16-Nov-07 4:25
mveCPallini16-Nov-07 4:25 
GeneralRe: I Completely agree with DQNOK Pin
Luc Pattyn16-Nov-07 6:08
sitebuilderLuc Pattyn16-Nov-07 6:08 
GeneralRe: How is BitBlt implemented Pin
Dan Neely15-Nov-07 10:48
Dan Neely15-Nov-07 10:48 
GeneralRe: How is BitBlt implemented Pin
DQNOK16-Nov-07 3:46
professionalDQNOK16-Nov-07 3:46 
GeneralRe: How is BitBlt implemented Pin
Luc Pattyn16-Nov-07 3:55
sitebuilderLuc Pattyn16-Nov-07 3:55 
GeneralRe: How is BitBlt implemented Pin
Force Code16-Nov-07 7:49
Force Code16-Nov-07 7:49 
GeneralRe: How is BitBlt implemented Pin
Luc Pattyn16-Nov-07 8:27
sitebuilderLuc Pattyn16-Nov-07 8:27 
GeneralRe: How is BitBlt implemented Pin
Skippums16-Nov-07 9:02
Skippums16-Nov-07 9:02 
GeneralRe: How is BitBlt implemented Pin
Force Code16-Nov-07 9:59
Force Code16-Nov-07 9:59 
GeneralRe: How is BitBlt implemented Pin
Jheriko++17-Nov-07 17:18
Jheriko++17-Nov-07 17:18 
GeneralRe: How is BitBlt implemented Pin
Alan Balkany29-Nov-07 4:46
Alan Balkany29-Nov-07 4:46 
GeneralRe: How is BitBlt implemented Pin
Mark Churchill19-Nov-07 14:58
Mark Churchill19-Nov-07 14:58 
GeneralRe: How is BitBlt implemented Pin
Force Code19-Nov-07 20:24
Force Code19-Nov-07 20:24 
AnswerRe: How is BitBlt implemented Pin
Chris Losinger19-Nov-07 4:36
professionalChris Losinger19-Nov-07 4:36 

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.