Ignore:
Timestamp:
Jan 29, 2003, 7:41:39 PM (23 years ago)
Author:
umoeller
Message:

New build system, multimedia, other misc fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/interlock.asm

    r196 r243  
    1919CODE32         SEGMENT DWORD PUBLIC USE32 'CODE'
    2020
    21 ;* LONG DosInterlockedIncrement(PLONG);
     21;* LONG lockIncrement(PLONG);
    2222;*
    2323;* InterlockedIncrement adds 1 to a long variable and returns
     
    2828;* The returned number need not be equal to the result!!!!
    2929
    30 public  DosInterlockedIncrement
    31 DosInterlockedIncrement proc near
     30public  lockIncrement
     31lockIncrement proc near
    3232        ;we are allowed to trash edx
    3333        mov     edx, dword ptr [esp+4] ; LPLONG lpAddend
     
    3636        inc     eax
    3737        ret     4
    38 DosInterlockedIncrement endp
     38lockIncrement endp
    3939
    40 ;* LONG DosInterlockedDecrement(PLONG);
     40;* LONG lockDecrement(PLONG);
    4141;*
    4242;* InterlockedIncrement adds 1 to a long variable and returns
     
    4747;* The returned number need not be equal to the result!!!!
    4848
    49 public  DosInterlockedDecrement
    50 DosInterlockedDecrement proc near
     49public  lockDecrement
     50lockDecrement proc near
    5151        ;we are allowed to trash edx
    5252        mov     edx, dword ptr [esp+4] ; LPLONG lpAddend
     
    5555        dec     eax
    5656        ret     4
    57 DosInterlockedDecrement endp
     57lockDecrement endp
    5858
    5959
    60 ; * LONG DosInterlockedExchange(PLONG, LONG);
     60; * LONG lockExchange(PLONG, LONG);
    6161; *
    6262; * Atomically exchanges a pair of values.
     
    6565; * Prior value of value pointed to by Target
    6666
    67 public  DosInterlockedExchange
    68 DosInterlockedExchange proc near
     67public  lockExchange
     68lockExchange proc near
    6969        push    edx
    7070        mov     eax, [esp+12]           ; LONG value
     
    7373        pop     edx
    7474        ret     8
    75 DosInterlockedExchange endp
     75lockExchange endp
    7676
    7777
    7878;/************************************************************************
    79 ; * LONG DosInterlockedCompareExchange(PLONG dest, LONG xchg, LONG compare)
     79; * LONG lockCompareExchange(PLONG dest, LONG xchg, LONG compare)
    8080; *
    8181; * Atomically compares Destination and Comperand, and if found equal exchanges
     
    8484; */
    8585
    86 public DosInterlockedCompareExchange
    87 DosInterlockedCompareExchange proc near
     86public lockCompareExchange
     87lockCompareExchange proc near
    8888        push    ebp
    8989        mov     ebp, esp
     
    100100        pop     ebp
    101101        ret     12
    102 DosInterlockedCompareExchange endp
     102lockCompareExchange endp
    103103
    104 ; * LONG DosInterlockedExchangeAdd(PLONG dest, LONG incr);
     104; * LONG lockExchangeAdd(PLONG dest, LONG incr);
    105105; *
    106106; * Atomically adds Increment to Addend and returns the previous value of
     
    111111; */
    112112
    113 public DosInterlockedExchangeAdd
    114 DosInterlockedExchangeAdd proc near
     113public lockExchangeAdd
     114lockExchangeAdd proc near
    115115        push    edx
    116116        mov     eax, dword ptr [esp+12] ;LONG Increment /* Value to add */
     
    119119        pop     edx
    120120        ret     8
    121 DosInterlockedExchangeAdd endp
     121lockExchangeAdd endp
    122122
    123123CODE32          ENDS
Note: See TracChangeset for help on using the changeset viewer.