flat assembler
Message board for the users of flat assembler.
Index
> Main > algoritm optimization: bitstreams Goto page Previous 1, 2 |
Author |
|
Matrix 31 Oct 2004, 13:15
don't say this:
Code: Code: and [edi],edx ; mask out first dword or [edi],eax ; set bits in first dword I suppose this might be substituted with Code: Code: and eax,edx or [edi],eax i was assigning those bits not just setting zeroes, if bit was 1 that was not supposed to, will be 0 [edi] was a part of a bit string |
|||
31 Oct 2004, 13:15 |
|
S.T.A.S. 01 Nov 2004, 03:34
S.T.A.S. wrote: chose the right way to calculate the mask. PS take into account the fact, we're appending bits, not replacing. |
|||
01 Nov 2004, 03:34 |
|
Matrix 01 Nov 2004, 04:09
now my shrd shld less function should be all right too, its updated
did you read the first post of Decard? his code does similar to my. not just setting bits, but also re-setting them. |
|||
01 Nov 2004, 04:09 |
|
S.T.A.S. 01 Nov 2004, 06:21
Do you mean we're not able to move 0 to whole DWORD at the end of stream, and set some bits to 1 then ?
As I understand 'bitstream', this has serial access, not random. Matrix wrote: his code does similar to my |
|||
01 Nov 2004, 06:21 |
|
Matrix 01 Nov 2004, 09:08
And while there are free registers i whouldn't use memory for such in a core function. ECX hi part, ebp, esp, esi, es, fs, gs, fs, ss are still freeee
|
|||
01 Nov 2004, 09:08 |
|
S.T.A.S. 01 Nov 2004, 13:28
Nope! es, fs, gs, fs, ss are reserved by windows.
|
|||
01 Nov 2004, 13:28 |
|
decard 01 Nov 2004, 13:37
thanks for your codes . Now I will implement your solutions in the library and see how they work.
|
|||
01 Nov 2004, 13:37 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.