MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClCore_Toolchain.h
1 /*--------------------------------------------------------------------------*/
2 /* Copyright 2022-2023 NXP */
3 /* */
4 /* NXP Confidential. This software is owned or controlled by NXP and may */
5 /* only be used strictly in accordance with the applicable license terms. */
6 /* By expressly accepting such terms or by downloading, installing, */
7 /* activating and/or otherwise using the software, you are agreeing that */
8 /* you have read, and that you agree to comply with and are bound by, such */
9 /* license terms. If you do not agree to be bound by the applicable license */
10 /* terms, then you may not retain, install, activate or otherwise use the */
11 /* software. */
12 /*--------------------------------------------------------------------------*/
13 
14 #ifndef MCUXCLCORE_TOOLCHAIN_H_
15 #define MCUXCLCORE_TOOLCHAIN_H_
16 
17 #include <mcuxClCore_Platform.h>
18 #include <mcuxCsslFlowProtection.h>
19 
20 MCUX_CSSL_FP_FUNCTION_DEF(mcuxCl_Core_Swap64)
21 static inline uint64_t mcuxCl_Core_Swap64(uint64_t value)
22 {
23  return __builtin_bswap64(value);
24 }
25 
26 MCUX_CSSL_FP_FUNCTION_DEF(mcuxCl_Core_Swap32)
27 static inline uint32_t mcuxCl_Core_Swap32(uint32_t value)
28 {
29  return __builtin_bswap32(value);
30 }
31 
32 
33 #endif /* MCUXCLCORE_TOOLCHAIN_H_ */
#define MCUX_CSSL_FP_FUNCTION_DEF(...)
Definition of a flow protected function.
Definition: mcuxCsslFlowProtection.h:159
Provides the API for the CSSL flow protection mechanism.