|
My Project
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
13#define _p_MemCopy(i, d, s) d[i] = s[i]
15#define _p_MemCopy_LengthOne(d, s) _p_MemCopy(0, d, s)
16#define _p_MemCopy_LengthTwo(d, s) do{_p_MemCopy_LengthOne(d, s); _p_MemCopy(1, d, s);} while(0)
17#define _p_MemCopy_LengthThree(d, s) do{_p_MemCopy_LengthTwo(d, s); _p_MemCopy(2, d, s);} while(0)
18#define _p_MemCopy_LengthFour(d, s) do{_p_MemCopy_LengthThree(d, s); _p_MemCopy(3, d, s);} while(0)
19#define _p_MemCopy_LengthFive(d, s) do{_p_MemCopy_LengthFour(d, s); _p_MemCopy(4, d, s);} while(0)
20#define _p_MemCopy_LengthSix(d, s) do{_p_MemCopy_LengthFive(d, s); _p_MemCopy(5, d, s);} while(0)
21#define _p_MemCopy_LengthSeven(d, s) do{_p_MemCopy_LengthSix(d, s); _p_MemCopy(6, d, s);} while(0)
22#define _p_MemCopy_LengthEight(d, s) do{_p_MemCopy_LengthSeven(d, s); _p_MemCopy(7, d, s);} while(0)
24#define _p_MemCopy_Declare(d, s) \
25 unsigned long* _d = ((unsigned long*) d); \
26 const unsigned long* _s = ((unsigned long*) s)
28#define p_MemCopy_LengthOne(d, s, length) _p_MemCopy_LengthOne(d, s)
29#define p_MemCopy_LengthTwo(d, s, length) \
32 _p_MemCopy_Declare(d,s); \
33 _p_MemCopy_LengthTwo(_d, _s); \
36#define p_MemCopy_LengthThree(d, s, length) \
39 _p_MemCopy_Declare(d,s); \
40 _p_MemCopy_LengthThree(_d, _s); \
43#define p_MemCopy_LengthFour(d, s, length) \
46 _p_MemCopy_Declare(d,s); \
47 _p_MemCopy_LengthFour(_d, _s); \
50#define p_MemCopy_LengthFive(d, s, length) \
53 _p_MemCopy_Declare(d,s); \
54 _p_MemCopy_LengthFive(_d, _s); \
57#define p_MemCopy_LengthSix(d, s, length) \
60 _p_MemCopy_Declare(d,s); \
61 _p_MemCopy_LengthSix(_d, _s); \
64#define p_MemCopy_LengthSeven(d, s, length) \
67 _p_MemCopy_Declare(d,s); \
68 _p_MemCopy_LengthSeven(_d, _s); \
71#define p_MemCopy_LengthEight(d, s, length) \
74 _p_MemCopy_Declare(d,s); \
75 _p_MemCopy_LengthEight(_d, _s); \
79#define p_MemCopy_LengthGeneral(d, s, length) \
82 _p_MemCopy_Declare(d,s); \
83 const unsigned long _l = (unsigned long) length; \
84 unsigned long _i = 0; \