Click here to Skip to main content
15,924,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblem with Win32 Pin
Dev57827-Mar-04 2:43
Dev57827-Mar-04 2:43 
GeneralRe: Problem with Win32 Pin
Prakash Nadar27-Mar-04 3:50
Prakash Nadar27-Mar-04 3:50 
GeneralRe: Problem with Win32 Pin
kmy_ra27-Mar-04 9:20
kmy_ra27-Mar-04 9:20 
GeneralRe: Problem with Win32 Pin
Jijo.Raj28-Mar-04 0:01
Jijo.Raj28-Mar-04 0:01 
GeneralImproving code Pin
uus9927-Mar-04 2:26
uus9927-Mar-04 2:26 
GeneralRe: Improving code Pin
Maximilien27-Mar-04 5:09
Maximilien27-Mar-04 5:09 
GeneralRe: Improving code Pin
uus9927-Mar-04 5:44
uus9927-Mar-04 5:44 
GeneralRe: Improving code Pin
Rick York27-Mar-04 19:13
mveRick York27-Mar-04 19:13 
Nothing really stands out to me from a quick look. However, one thing you could improve - in the Rotate function the array indexes are this :

array_copy[(xd+yd*width_x)*bitDepth]=array[(xs+ys*width_x)*bitDepth];

the values (xd+yd*width_x)*bitDepth and (xs+ys*width_x)*bitDepth are computed three times per loop. You could save those into temporary variables and speed things up a bit.

Also, the code appears garbled for the loop terms. You could possibly save any factors from the outer loop so that they are not recalculated for each term of the inner loop.

These may seem minor but when they are done hundreds or thousands of times per pass they can add up.


a two cent stamp short of going postal.

GeneralRe: Improving code Pin
uus9927-Mar-04 23:31
uus9927-Mar-04 23:31 
GeneralBug in CSplitterWnd Pin
Konrad Windszus27-Mar-04 2:18
Konrad Windszus27-Mar-04 2:18 
GeneralRe: Bug in CSplitterWnd Pin
Gary R. Wheeler27-Mar-04 3:33
Gary R. Wheeler27-Mar-04 3:33 
GeneralRe: Bug in CSplitterWnd Pin
Prakash Nadar27-Mar-04 4:37
Prakash Nadar27-Mar-04 4:37 
GeneralRe: Bug in CSplitterWnd Pin
Gary R. Wheeler27-Mar-04 5:35
Gary R. Wheeler27-Mar-04 5:35 
GeneralRe: Bug in CSplitterWnd Pin
Prakash Nadar27-Mar-04 6:07
Prakash Nadar27-Mar-04 6:07 
GeneralEnumprocess Pin
firke_vishu@math.net27-Mar-04 1:19
sussfirke_vishu@math.net27-Mar-04 1:19 
GeneralRe: Enumprocess Pin
Prakash Nadar27-Mar-04 1:31
Prakash Nadar27-Mar-04 1:31 
GeneralRe: Enumprocess Pin
Gary R. Wheeler27-Mar-04 3:41
Gary R. Wheeler27-Mar-04 3:41 
GeneralRe: Enumprocess Pin
Prakash Nadar27-Mar-04 13:47
Prakash Nadar27-Mar-04 13:47 
Generalresouce from .dll Pin
nareshn227-Mar-04 1:05
nareshn227-Mar-04 1:05 
GeneralFor resouce .dll Pin
nareshn227-Mar-04 0:51
nareshn227-Mar-04 0:51 
QuestionDeriving from an ATL object? Pin
Roozbeh6926-Mar-04 21:57
professionalRoozbeh6926-Mar-04 21:57 
AnswerRe: Deriving from an ATL object? Pin
Prakash Nadar26-Mar-04 23:38
Prakash Nadar26-Mar-04 23:38 
Generalplease help me Pin
Hatem M Nassar26-Mar-04 19:20
Hatem M Nassar26-Mar-04 19:20 
GeneralRe: please help me Pin
Prakash Nadar26-Mar-04 23:31
Prakash Nadar26-Mar-04 23:31 
Generalusing extern Pin
monrobot1326-Mar-04 19:02
monrobot1326-Mar-04 19:02 

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.