mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 15:33:12 +00:00
[FAST486]
Create a macro SWAP (swaps two variables) to shorten the code. Implement the BSWAP instruction. svn path=/branches/ntvdm/; revision=60717
This commit is contained in:
parent
a93095e678
commit
67b093f38c
4 changed files with 33 additions and 26 deletions
|
@ -54,6 +54,7 @@
|
|||
{\
|
||||
x = !x;\
|
||||
}
|
||||
#define SWAP(x, y) { (x) ^= (y); (y) ^= (x); (x) ^= (y); }
|
||||
|
||||
#define PAGE_ALIGN(x) ((x) & 0xFFFFF000)
|
||||
#define PAGE_OFFSET(x) ((x) & 0x00000FFF)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue