516ba7ccddf194f53b38ae7dc1dfbed87f9988a4
2 * PROJECT: ReactOS system libraries
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: lib/intrlck/i386/decrement.c
5 * PURPOSE: Inter lock decrements
6 * PROGRAMMERS: Copyright 1995 Martin von Loewis
7 * Copyright 1997 Onno Hovers
10 /************************************************************************
11 * InterlockedDecrement *
13 * InterlockedDecrement adds -1 to a long variable and returns *
14 * the resulting decremented value. *
16 ************************************************************************/
19 * LONG NTAPI InterlockedDecrement(LPLONG lpAddend)
25 InterlockedDecrement(LPLONG lpAddend
)
30 "\tlock\n" /* for SMP systems */
34 :"r" (lpAddend
), "0" (-1)