]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
MdePkg/BaseSafeIntLib: Add SafeIntLib class and instance
[mirror_edk2.git] / MdePkg / Library / BaseSafeIntLib / BaseSafeIntLib.inf
1 ## @file
2 # Safe Integer Library
3 #
4 # This library provides helper functions to prevent integer overflow during
5 # type conversion, addition, subtraction, and multiplication.
6 #
7 # Copyright (c) 2017, Microsoft Corporation
8 #
9 # All rights reserved.
10 # Redistribution and use in source and binary forms, with or without
11 # modification, are permitted provided that the following conditions are met:
12 # 1. Redistributions of source code must retain the above copyright notice,
13 # this list of conditions and the following disclaimer.
14 # 2. Redistributions in binary form must reproduce the above copyright notice,
15 # this list of conditions and the following disclaimer in the documentation
16 # and/or other materials provided with the distribution.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21 # IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
22 # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
23 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
25 # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
26 # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 #
29 ##
30
31 [Defines]
32 INF_VERSION = 0x00010005
33 BASE_NAME = BaseSafeIntLib
34 FILE_GUID = 4EA91BFA-3482-4930-B136-70679C6CE489
35 MODULE_TYPE = BASE
36 VERSION_STRING = 1.0
37 LIBRARY_CLASS = SafeIntLib
38
39 #
40 # The following information is for reference only and not required by the build tools.
41 #
42 # VALID_ARCHITECTURES = IA32 X64
43 #
44
45 [Sources]
46 SafeIntLib.c
47
48 [Sources.Ia32, Sources.ARM]
49 SafeIntLib32.c
50
51 [Sources.X64, Sources.IPF, Sources.AARCH64]
52 SafeIntLib64.c
53
54 [Sources.EBC]
55 SafeIntLibEbc.c
56
57 [Packages]
58 MdePkg/MdePkg.dec