File tree Expand file tree Collapse file tree 21 files changed +392
-246
lines changed Expand file tree Collapse file tree 21 files changed +392
-246
lines changed Original file line number Diff line number Diff line change 32
32
ScanMem8Wrapper.c
33
33
ZeroMemWrapper.c
34
34
CompareMemWrapper.c
35
+ SetMemNWrapper.c
35
36
SetMem64Wrapper.c
36
37
SetMem32Wrapper.c
37
38
SetMem16Wrapper.c
Original file line number Diff line number Diff line change
1
+ /** @file
2
+ SetMemN() implementation.
3
+
4
+ The following BaseMemoryLib instances contain the same copy of this file:
5
+
6
+ BaseMemoryLib
7
+ BaseMemoryLibMmx
8
+ BaseMemoryLibSse2
9
+ BaseMemoryLibRepStr
10
+ BaseMemoryLibOptDxe
11
+ BaseMemoryLibOptPei
12
+ PeiMemoryLib
13
+ UefiMemoryLib
14
+
15
+ Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
16
+ SPDX-License-Identifier: BSD-2-Clause-Patent
17
+
18
+ **/
19
+
20
+ #include "MemLibInternals.h"
21
+
22
+ /**
23
+ Fills a target buffer with a value that is size UINTN, and returns the target buffer.
24
+
25
+ This function fills Length bytes of Buffer with the UINTN sized value specified by
26
+ Value, and returns Buffer. Value is repeated every sizeof(UINTN) bytes for Length
27
+ bytes of Buffer.
28
+
29
+ If Length > 0 and Buffer is NULL, then ASSERT().
30
+ If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
31
+ If Buffer is not aligned on a UINTN boundary, then ASSERT().
32
+ If Length is not aligned on a UINTN boundary, then ASSERT().
33
+
34
+ @param Buffer The pointer to the target buffer to fill.
35
+ @param Length The number of bytes in Buffer to fill.
36
+ @param Value The value with which to fill Length bytes of Buffer.
37
+
38
+ @return Buffer.
39
+
40
+ **/
41
+ VOID *
42
+ EFIAPI
43
+ SetMemN (
44
+ OUT VOID * Buffer ,
45
+ IN UINTN Length ,
46
+ IN UINTN Value
47
+ )
48
+ {
49
+ if (sizeof (UINTN ) == sizeof (UINT64 )) {
50
+ return SetMem64 (Buffer , Length , (UINT64 )Value );
51
+ } else {
52
+ return SetMem32 (Buffer , Length , (UINT32 )Value );
53
+ }
54
+ }
Original file line number Diff line number Diff line change 1
1
/** @file
2
- SetMem() and SetMemN() implementation.
2
+ SetMem() implementation.
3
3
4
4
The following BaseMemoryLib instances contain the same copy of this file:
5
5
@@ -49,37 +49,3 @@ SetMem (
49
49
50
50
return InternalMemSetMem (Buffer , Length , Value );
51
51
}
52
-
53
- /**
54
- Fills a target buffer with a value that is size UINTN, and returns the target buffer.
55
-
56
- This function fills Length bytes of Buffer with the UINTN sized value specified by
57
- Value, and returns Buffer. Value is repeated every sizeof(UINTN) bytes for Length
58
- bytes of Buffer.
59
-
60
- If Length > 0 and Buffer is NULL, then ASSERT().
61
- If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
62
- If Buffer is not aligned on a UINTN boundary, then ASSERT().
63
- If Length is not aligned on a UINTN boundary, then ASSERT().
64
-
65
- @param Buffer The pointer to the target buffer to fill.
66
- @param Length The number of bytes in Buffer to fill.
67
- @param Value The value with which to fill Length bytes of Buffer.
68
-
69
- @return Buffer.
70
-
71
- **/
72
- VOID *
73
- EFIAPI
74
- SetMemN (
75
- OUT VOID * Buffer ,
76
- IN UINTN Length ,
77
- IN UINTN Value
78
- )
79
- {
80
- if (sizeof (UINTN ) == sizeof (UINT64 )) {
81
- return SetMem64 (Buffer , Length , (UINT64 )Value );
82
- } else {
83
- return SetMem32 (Buffer , Length , (UINT32 )Value );
84
- }
85
- }
Original file line number Diff line number Diff line change 36
36
ScanMem8Wrapper.c
37
37
ZeroMemWrapper.c
38
38
CompareMemWrapper.c
39
+ SetMemNWrapper.c
39
40
SetMem64Wrapper.c
40
41
SetMem32Wrapper.c
41
42
SetMem16Wrapper.c
Original file line number Diff line number Diff line change
1
+ /** @file
2
+ SetMemN() implementation.
3
+
4
+ The following BaseMemoryLib instances contain the same copy of this file:
5
+
6
+ BaseMemoryLib
7
+ BaseMemoryLibMmx
8
+ BaseMemoryLibSse2
9
+ BaseMemoryLibRepStr
10
+ BaseMemoryLibOptDxe
11
+ BaseMemoryLibOptPei
12
+ PeiMemoryLib
13
+ UefiMemoryLib
14
+
15
+ Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
16
+ SPDX-License-Identifier: BSD-2-Clause-Patent
17
+
18
+ **/
19
+
20
+ #include "MemLibInternals.h"
21
+
22
+ /**
23
+ Fills a target buffer with a value that is size UINTN, and returns the target buffer.
24
+
25
+ This function fills Length bytes of Buffer with the UINTN sized value specified by
26
+ Value, and returns Buffer. Value is repeated every sizeof(UINTN) bytes for Length
27
+ bytes of Buffer.
28
+
29
+ If Length > 0 and Buffer is NULL, then ASSERT().
30
+ If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
31
+ If Buffer is not aligned on a UINTN boundary, then ASSERT().
32
+ If Length is not aligned on a UINTN boundary, then ASSERT().
33
+
34
+ @param Buffer The pointer to the target buffer to fill.
35
+ @param Length The number of bytes in Buffer to fill.
36
+ @param Value The value with which to fill Length bytes of Buffer.
37
+
38
+ @return Buffer.
39
+
40
+ **/
41
+ VOID *
42
+ EFIAPI
43
+ SetMemN (
44
+ OUT VOID * Buffer ,
45
+ IN UINTN Length ,
46
+ IN UINTN Value
47
+ )
48
+ {
49
+ if (sizeof (UINTN ) == sizeof (UINT64 )) {
50
+ return SetMem64 (Buffer , Length , (UINT64 )Value );
51
+ } else {
52
+ return SetMem32 (Buffer , Length , (UINT32 )Value );
53
+ }
54
+ }
Original file line number Diff line number Diff line change 1
1
/** @file
2
- SetMem() and SetMemN() implementation.
2
+ SetMem() implementation.
3
3
4
4
The following BaseMemoryLib instances contain the same copy of this file:
5
5
@@ -49,37 +49,3 @@ SetMem (
49
49
50
50
return InternalMemSetMem (Buffer , Length , Value );
51
51
}
52
-
53
- /**
54
- Fills a target buffer with a value that is size UINTN, and returns the target buffer.
55
-
56
- This function fills Length bytes of Buffer with the UINTN sized value specified by
57
- Value, and returns Buffer. Value is repeated every sizeof(UINTN) bytes for Length
58
- bytes of Buffer.
59
-
60
- If Length > 0 and Buffer is NULL, then ASSERT().
61
- If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
62
- If Buffer is not aligned on a UINTN boundary, then ASSERT().
63
- If Length is not aligned on a UINTN boundary, then ASSERT().
64
-
65
- @param Buffer The pointer to the target buffer to fill.
66
- @param Length The number of bytes in Buffer to fill.
67
- @param Value The value with which to fill Length bytes of Buffer.
68
-
69
- @return Buffer.
70
-
71
- **/
72
- VOID *
73
- EFIAPI
74
- SetMemN (
75
- OUT VOID * Buffer ,
76
- IN UINTN Length ,
77
- IN UINTN Value
78
- )
79
- {
80
- if (sizeof (UINTN ) == sizeof (UINT64 )) {
81
- return SetMem64 (Buffer , Length , (UINT64 )Value );
82
- } else {
83
- return SetMem32 (Buffer , Length , (UINT32 )Value );
84
- }
85
- }
Original file line number Diff line number Diff line change 92
92
ScanMem8Wrapper.c
93
93
ZeroMemWrapper.c
94
94
CompareMemWrapper.c
95
+ SetMemNWrapper.c
95
96
SetMem64Wrapper.c
96
97
SetMem32Wrapper.c
97
98
SetMem16Wrapper.c
Original file line number Diff line number Diff line change
1
+ /** @file
2
+ SetMemN() implementation.
3
+
4
+ The following BaseMemoryLib instances contain the same copy of this file:
5
+
6
+ BaseMemoryLib
7
+ BaseMemoryLibMmx
8
+ BaseMemoryLibSse2
9
+ BaseMemoryLibRepStr
10
+ BaseMemoryLibOptDxe
11
+ BaseMemoryLibOptPei
12
+ PeiMemoryLib
13
+ UefiMemoryLib
14
+
15
+ Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
16
+ SPDX-License-Identifier: BSD-2-Clause-Patent
17
+
18
+ **/
19
+
20
+ #include "MemLibInternals.h"
21
+
22
+ /**
23
+ Fills a target buffer with a value that is size UINTN, and returns the target buffer.
24
+
25
+ This function fills Length bytes of Buffer with the UINTN sized value specified by
26
+ Value, and returns Buffer. Value is repeated every sizeof(UINTN) bytes for Length
27
+ bytes of Buffer.
28
+
29
+ If Length > 0 and Buffer is NULL, then ASSERT().
30
+ If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
31
+ If Buffer is not aligned on a UINTN boundary, then ASSERT().
32
+ If Length is not aligned on a UINTN boundary, then ASSERT().
33
+
34
+ @param Buffer The pointer to the target buffer to fill.
35
+ @param Length The number of bytes in Buffer to fill.
36
+ @param Value The value with which to fill Length bytes of Buffer.
37
+
38
+ @return Buffer.
39
+
40
+ **/
41
+ VOID *
42
+ EFIAPI
43
+ SetMemN (
44
+ OUT VOID * Buffer ,
45
+ IN UINTN Length ,
46
+ IN UINTN Value
47
+ )
48
+ {
49
+ if (sizeof (UINTN ) == sizeof (UINT64 )) {
50
+ return SetMem64 (Buffer , Length , (UINT64 )Value );
51
+ } else {
52
+ return SetMem32 (Buffer , Length , (UINT32 )Value );
53
+ }
54
+ }
Original file line number Diff line number Diff line change 1
1
/** @file
2
- SetMem() and SetMemN() implementation.
2
+ SetMem() implementation.
3
3
4
4
The following BaseMemoryLib instances contain the same copy of this file:
5
5
@@ -49,37 +49,3 @@ SetMem (
49
49
50
50
return InternalMemSetMem (Buffer , Length , Value );
51
51
}
52
-
53
- /**
54
- Fills a target buffer with a value that is size UINTN, and returns the target buffer.
55
-
56
- This function fills Length bytes of Buffer with the UINTN sized value specified by
57
- Value, and returns Buffer. Value is repeated every sizeof(UINTN) bytes for Length
58
- bytes of Buffer.
59
-
60
- If Length > 0 and Buffer is NULL, then ASSERT().
61
- If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
62
- If Buffer is not aligned on a UINTN boundary, then ASSERT().
63
- If Length is not aligned on a UINTN boundary, then ASSERT().
64
-
65
- @param Buffer The pointer to the target buffer to fill.
66
- @param Length The number of bytes in Buffer to fill.
67
- @param Value The value with which to fill Length bytes of Buffer.
68
-
69
- @return Buffer.
70
-
71
- **/
72
- VOID *
73
- EFIAPI
74
- SetMemN (
75
- OUT VOID * Buffer ,
76
- IN UINTN Length ,
77
- IN UINTN Value
78
- )
79
- {
80
- if (sizeof (UINTN ) == sizeof (UINT64 )) {
81
- return SetMem64 (Buffer , Length , (UINT64 )Value );
82
- } else {
83
- return SetMem32 (Buffer , Length , (UINT32 )Value );
84
- }
85
- }
Original file line number Diff line number Diff line change 33
33
ScanMem8Wrapper.c
34
34
ZeroMemWrapper.c
35
35
CompareMemWrapper.c
36
+ SetMemNWrapper.c
36
37
SetMem64Wrapper.c
37
38
SetMem32Wrapper.c
38
39
SetMem16Wrapper.c
Original file line number Diff line number Diff line change
1
+ /** @file
2
+ SetMemN() implementation.
3
+
4
+ The following BaseMemoryLib instances contain the same copy of this file:
5
+
6
+ BaseMemoryLib
7
+ BaseMemoryLibMmx
8
+ BaseMemoryLibSse2
9
+ BaseMemoryLibRepStr
10
+ BaseMemoryLibOptDxe
11
+ BaseMemoryLibOptPei
12
+ PeiMemoryLib
13
+ UefiMemoryLib
14
+
15
+ Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
16
+ SPDX-License-Identifier: BSD-2-Clause-Patent
17
+
18
+ **/
19
+
20
+ #include "MemLibInternals.h"
21
+
22
+ /**
23
+ Fills a target buffer with a value that is size UINTN, and returns the target buffer.
24
+
25
+ This function fills Length bytes of Buffer with the UINTN sized value specified by
26
+ Value, and returns Buffer. Value is repeated every sizeof(UINTN) bytes for Length
27
+ bytes of Buffer.
28
+
29
+ If Length > 0 and Buffer is NULL, then ASSERT().
30
+ If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
31
+ If Buffer is not aligned on a UINTN boundary, then ASSERT().
32
+ If Length is not aligned on a UINTN boundary, then ASSERT().
33
+
34
+ @param Buffer The pointer to the target buffer to fill.
35
+ @param Length The number of bytes in Buffer to fill.
36
+ @param Value The value with which to fill Length bytes of Buffer.
37
+
38
+ @return Buffer.
39
+
40
+ **/
41
+ VOID *
42
+ EFIAPI
43
+ SetMemN (
44
+ OUT VOID * Buffer ,
45
+ IN UINTN Length ,
46
+ IN UINTN Value
47
+ )
48
+ {
49
+ if (sizeof (UINTN ) == sizeof (UINT64 )) {
50
+ return SetMem64 (Buffer , Length , (UINT64 )Value );
51
+ } else {
52
+ return SetMem32 (Buffer , Length , (UINT32 )Value );
53
+ }
54
+ }
You can’t perform that action at this time.
0 commit comments