xref: /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/builtins/arm/sync_fetch_and_add_4.S (revision 61f2f2562dcc3e4eb50e7ec5dab0dfa1f093861a)
1/*===-- sync_fetch_and_add_4.S - ------------------------------------------===//
2 *
3 *                     The LLVM Compiler Infrastructure
4 *
5 * This file is dual licensed under the MIT and the University of Illinois Open
6 * Source Licenses. See LICENSE.TXT for details.
7 *
8 *===----------------------------------------------------------------------===//
9 *
10 * This file implements the __sync_fetch_and_add_4 function for the ARM
11 * architecture.
12 *
13 *===----------------------------------------------------------------------===*/
14
15#include "sync-ops.h"
16
17/* "adds" is 2 bytes shorter than "add". */
18#define add_4(rD, rN, rM)  add rD, rN, rM
19
20SYNC_OP_4(add_4)
21
22