summaryrefslogtreecommitdiff
path: root/CryptoPkg/Library/IntrinsicLib/Math.c
blob: f49852372aba8e5fb3653bef31daff0dcbe0c447 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
}