diff options
Diffstat (limited to 'CryptoPkg/Library/IntrinsicLib/Math.c')
-rw-r--r-- | CryptoPkg/Library/IntrinsicLib/Math.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/CryptoPkg/Library/IntrinsicLib/Math.c b/CryptoPkg/Library/IntrinsicLib/Math.c new file mode 100644 index 0000000..f498523 --- /dev/null +++ b/CryptoPkg/Library/IntrinsicLib/Math.c @@ -0,0 +1,29 @@ +/** @file
+ Intrinsic Math Routines Wrapper Implementation for OpenSSL-based
+ Cryptographic Library.
+
+Copyright (c) 2025, Intel Corporation. All rights reserved.<BR>
+SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#include <Base.h>
+#include <Library/BaseLib.h>
+
+long long
+__ashlti3 (
+ long long a,
+ int b
+ )
+{
+ return LShiftU64 (a, b);
+}
+
+long
+__lshrdi3 (
+ long a,
+ int b
+ )
+{
+ return a >> b;
+}
|