MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxCsslSecureCounter_AssemblyMacros.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/* Copyright 2023-2025 NXP */
3/* */
4/* NXP Confidential and Proprietary. This software is owned or controlled */
5/* by NXP and may only be used strictly in accordance with the applicable */
6/* license terms. By expressly accepting such terms or by downloading, */
7/* installing, activating and/or otherwise using the software, you are */
8/* agreeing that you have read, and that you agree to comply with and are */
9/* bound by, such license terms. If you do not agree to be bound by the */
10/* applicable license terms, then you may not retain, install, activate or */
11/* otherwise use the software. */
12/*--------------------------------------------------------------------------*/
13
18
19#ifndef MCUXCSSLSECURECOUNTER_ASSEMBLYMACROS_H_
20#define MCUXCSSLSECURECOUNTER_ASSEMBLYMACROS_H_
21
22
23#if (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) || defined(__GNUC__)
24
25.macro MCUX_CSSL_SC_ASM_INIT_BASE baseReg
26 mov \baseReg, #0
27 .endm
28
29.macro MCUX_CSSL_SC_ASM_VALUE baseReg, valueReg
30 mov \valueReg, \baseReg
31 .endm
32
33.macro MCUX_CSSL_SC_ASM_ADD baseReg, valueReg
34 add \baseReg, \baseReg, \valueReg
35 .endm
36
37.macro MCUX_CSSL_SC_ASM_SUB baseReg, valueReg
38 sub \baseReg, \baseReg, \valueReg
39 .endm
40
41#elif defined(__IASMARM__) || defined(__ICCARM__)
42
43MCUX_CSSL_SC_ASM_INIT_BASE macro baseReg
44 mov baseReg, #0
45 endm
46
47MCUX_CSSL_SC_ASM_VALUE macro baseReg, valueReg
48 mov valueReg, baseReg
49 endm
50
51MCUX_CSSL_SC_ASM_ADD macro baseReg, valueReg
52 add baseReg, baseReg, valueReg
53 endm
54
55MCUX_CSSL_SC_ASM_SUB macro baseReg, valueReg
56 sub baseReg, baseReg, valueReg
57 endm
58
59#endif /* defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) || defined(__GNUC__) */
60
61
62
63#endif /* MCUXCSSLSECURECOUNTER_ASSEMBLYMACROS_H_ */