-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodify_sequence.h
More file actions
68 lines (55 loc) · 2.68 KB
/
modify_sequence.h
File metadata and controls
68 lines (55 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
*********************************************************************************************************
* MODULE
*
* Note(s) : (1) This definition header file is protected from multiple pre-processor inclusion
* through use of the definition module present pre-processor macro definition.
*********************************************************************************************************
*/
#ifndef __MODIFY_SEQUENCE_H
#define __MODIFY_SEQUENCE_H
/*
*********************************************************************************************************
* INCLUDE FILES
*********************************************************************************************************
*/
#include "algorithm_def.h"
/*
*********************************************************************************************************
* DEFINES
*********************************************************************************************************
*/
/* Configure if enable modify sequence debug. */
#define MODIFY_SEQUENCE_CFG_DEBUG_EN 1u
/* Define the definition of swap algorithm. */
#define MODIFY_SEQUENCE_CONTROL_SWAP(x,y) (x) = (x) ^ (y),(y) = (x) ^ (y),(x) = (x) ^ (y)
/*
*********************************************************************************************************
* DATA TYPES
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* FUNCTION PROTOTYPES
*********************************************************************************************************
*/
/**
* @brief This function will swap the left-hand-side with the right-hand-side.
*
* @param lhs the pointer to the left-hand-side item
* @param rhs the pointer to the right-hand-side item
*
* @return the error code
*/
errno_t modify_sequence_control_swap(void *lhs, void *rhs, size_t len);
/*
*********************************************************************************************************
* EXTERN GLOBAL VARIABLES
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* MODULE END
*********************************************************************************************************
*/
#endif // !__MODIFY_SEQUENCE_H