Revision: 15384
http://sourceforge.net/p/edk2/code/15384
Author: oliviermartin
Date: 2014-03-24 15:30:48 +0000 (Mon, 24 Mar 2014)
Log Message:
-----------
ArmPkg/CompilerIntrinsicsLib: Added memset() to AArch64
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <[email protected]>
Modified Paths:
--------------
trunk/edk2/ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
Added Paths:
-----------
trunk/edk2/ArmPkg/Library/CompilerIntrinsicsLib/AArch64/memset.c
Added: trunk/edk2/ArmPkg/Library/CompilerIntrinsicsLib/AArch64/memset.c
===================================================================
--- trunk/edk2/ArmPkg/Library/CompilerIntrinsicsLib/AArch64/memset.c
(rev 0)
+++ trunk/edk2/ArmPkg/Library/CompilerIntrinsicsLib/AArch64/memset.c
2014-03-24 15:30:48 UTC (rev 15384)
@@ -0,0 +1,25 @@
+/** @file
+
+ Copyright (c) 2014, ARM Ltd. All rights reserved.<BR>
+
+ This program and the accompanying materials
+ are licensed and made available under the terms and conditions of the BSD
License
+ which accompanies this distribution. The full text of the license may be
found at
+ http://opensource.org/licenses/bsd-license.php
+
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#include <Base.h>
+
+void *memset(void *Destination, int Value, int Count)
+{
+ CHAR8 *Ptr = Destination;
+
+ while (Count--)
+ *Ptr++ = Value;
+
+ return Destination;
+}
Modified:
trunk/edk2/ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
===================================================================
--- trunk/edk2/ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
2014-03-24 15:29:50 UTC (rev 15383)
+++ trunk/edk2/ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
2014-03-24 15:30:48 UTC (rev 15384)
@@ -24,6 +24,7 @@
[Sources.AARCH64]
AArch64/memcpy.S | GCC
+ AArch64/memset.c
[Sources.ARM]
Arm/mullu.asm | RVCT
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits