summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
diff options
context:
space:
mode:
authorAshraf Ali <ashraf.ali.s@intel.com>2024-09-06 18:12:42 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-09-12 00:50:20 +0300
commite41e728c1640d5f3c5c24c31e088bf34f2fde197 (patch)
treef29cc8bdd4f36a2415c1ec0998b09e1f9b11b592 /MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
parent03c8ec6ce29e47abca2b598bba9a05ddd87afc17 (diff)
downloadedk2-e41e728c1640d5f3c5c24c31e088bf34f2fde197.tar.xz
Refactor SetMemWrapper to reduce binary size
Moved SetMemN API to a separate file to eliminate unnecessary inclusion of InternalMemSetMem64 and InternalMemSetMem32 APIs in driver binary. When the compiler linking the Object files it may not remove all the unused from NASM OBJs. This change is to reorganize the C files to minimize the impact of the NASM behavior resulting is code size reduction. Signed-off-by: Ashraf Ali <ashraf.ali.s@intel.com>
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf')
-rw-r--r--MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf1
1 files changed, 1 insertions, 0 deletions
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf b/MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
index 59983d0a0c..4dad964a97 100644
--- a/MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
+++ b/MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
@@ -33,6 +33,7 @@
ScanMem8Wrapper.c
ZeroMemWrapper.c
CompareMemWrapper.c
+ SetMemNWrapper.c
SetMem64Wrapper.c
SetMem32Wrapper.c
SetMem16Wrapper.c