Click here to Skip to main content
15,915,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: HTTP Downloads :: Winsock Pin
valikac13-Jan-03 18:15
valikac13-Jan-03 18:15 
QuestionCEdit setting selection? Pin
dazinith13-Jan-03 9:08
dazinith13-Jan-03 9:08 
AnswerRe: CEdit setting selection? Pin
Alvaro Mendez13-Jan-03 10:30
Alvaro Mendez13-Jan-03 10:30 
GeneralXP bug: Very slow for large files Pin
Nish Nishant13-Jan-03 9:00
sitebuilderNish Nishant13-Jan-03 9:00 
GeneralRe: XP bug: Very slow for large files Pin
Christian Graus13-Jan-03 10:32
protectorChristian Graus13-Jan-03 10:32 
GeneralRe: XP bug: Very slow for large files Pin
Stuart Dootson13-Jan-03 11:10
professionalStuart Dootson13-Jan-03 11:10 
GeneralRe: XP bug: Very slow for large files Pin
Stefan Pedersen14-Jan-03 10:09
Stefan Pedersen14-Jan-03 10:09 
QuestionAny assembly geeks out there? Pin
Chris Losinger13-Jan-03 8:55
professionalChris Losinger13-Jan-03 8:55 
I'm looking for some inline assembly for a couple of simple things:

1. to invert all bits in a row of bytes. the typical C way is
BYTE *pIn...;
for (UINT x=0;x < bytes;x++)
{
  pIn[x] = ~pIn[x];
}

i think this can be improved by doing the inverts a DWORD at a time, and by accounting for DWORD-alignment of the buffer. (i think this because that's what MS's memcpy and memcmp do. i just don't know enough assembly to do what i need)

2. logical-OR two equal-sized BYTE buffers
for (UINT x=0;x < bytes;x++)
{
   BYTE a = pInA[x];
   BYTE b = pInB[x];
   pInA[x] = a & b;
}

again, i think this could be improved by processing 4 bytes at a time and by accounting for DWORD alignment.

anyone?

-c



I'm not the droid you're looking for.

AnswerRe: Any assembly geeks out there? Pin
Rama Krishna Vavilala13-Jan-03 9:00
Rama Krishna Vavilala13-Jan-03 9:00 
GeneralRe: Any assembly geeks out there? Pin
Chris Losinger13-Jan-03 9:11
professionalChris Losinger13-Jan-03 9:11 
AnswerRe: Any assembly geeks out there? Pin
Tim Smith13-Jan-03 9:12
Tim Smith13-Jan-03 9:12 
GeneralRe: Any assembly geeks out there? Pin
Chris Losinger13-Jan-03 9:15
professionalChris Losinger13-Jan-03 9:15 
GeneralRe: Any assembly geeks out there? Pin
Tim Smith13-Jan-03 9:25
Tim Smith13-Jan-03 9:25 
AnswerRe: Any assembly geeks out there? Pin
Chris Richardson13-Jan-03 10:30
Chris Richardson13-Jan-03 10:30 
AnswerRe: Any assembly geeks out there? Pin
Chris Losinger13-Jan-03 10:54
professionalChris Losinger13-Jan-03 10:54 
GeneralRe: Any assembly geeks out there? Pin
Chris Richardson13-Jan-03 11:48
Chris Richardson13-Jan-03 11:48 
GeneralRe: Any assembly geeks out there? Pin
Tim Smith13-Jan-03 12:04
Tim Smith13-Jan-03 12:04 
GeneralRe: Any assembly geeks out there? Pin
Chris Richardson13-Jan-03 12:13
Chris Richardson13-Jan-03 12:13 
AnswerRe: Any assembly geeks out there? Pin
nde_plume13-Jan-03 11:48
nde_plume13-Jan-03 11:48 
GeneralWindow position Pin
electronicman_x13-Jan-03 8:18
electronicman_x13-Jan-03 8:18 
Generaltext formatting question. Pin
Maximilien13-Jan-03 8:06
Maximilien13-Jan-03 8:06 
GeneralForget it, I found it ... Pin
Maximilien13-Jan-03 8:11
Maximilien13-Jan-03 8:11 
GeneralChanging MessageBox button captions. Pin
rghin13-Jan-03 7:23
rghin13-Jan-03 7:23 
GeneralRe: Changing MessageBox button captions. Pin
Navin13-Jan-03 7:23
Navin13-Jan-03 7:23 
GeneralRe: Changing MessageBox button captions. Pin
Jim A. Johnson13-Jan-03 7:34
Jim A. Johnson13-Jan-03 7:34 

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.