]> pd.if.org Git - liblfds/blob - liblfds/liblfds6.0.0/liblfds600/src/lfds600_abstraction/lfds600_abstraction_aligned_free.c
Initial import (all versions, including the new 7.1.0)
[liblfds] / liblfds / liblfds6.0.0 / liblfds600 / src / lfds600_abstraction / lfds600_abstraction_aligned_free.c
1 #include "lfds600_abstraction_internal.h"
2
3
4
5
6
7 /****************************************************************************/
8 #if (defined _WIN32 && defined _MSC_VER && !defined WIN_KERNEL_BUILD)
9
10   /* TRD : any Windows (user-mode) on any CPU with the Microsoft C compiler
11
12            _WIN32             indicates 64-bit or 32-bit Windows
13            _MSC_VER           indicates Microsoft C compiler
14            !WIN_KERNEL_BUILD  indicates Windows user-mode
15   */
16
17   void lfds600_abstraction_aligned_free( void *memory )
18   {
19     _aligned_free( memory );
20
21     return;
22   }
23
24 #endif
25
26
27
28
29
30 /****************************************************************************/
31 #if (_XOPEN_SOURCE >= 600)
32
33   /* TRD : any OS on any CPU with any compiler with POSIX 6.00 or better
34
35            _XOPEN_SOURCE  is actually set by the user, not by the compiler
36                           it is the way the user signals to the compiler what
37                           level of POSIX should be available
38                           (it assumes of course the compiler has support for the given level of POSIX requested)
39   */
40
41   void lfds600_abstraction_aligned_free( void *memory )
42   {
43     free( memory );
44
45     return;
46   }
47
48 #endif
49
50
51
52
53
54 /****************************************************************************/
55 #if (defined _WIN32 && defined _MSC_VER && defined WIN_KERNEL_BUILD)
56
57   /* TRD : any Windows (kernel) on any CPU with the Microsoft C compiler
58
59            _WIN32            indicates 64-bit or 32-bit Windows
60            _MSC_VER          indicates Microsoft C compiler
61            WIN_KERNEL_BUILD  indicates Windows kernel
62   */
63
64   void lfds600_abstraction_aligned_free( void *memory )
65   {
66     ExFreePoolWithTag( memory, 'sdfl' );
67
68     return;
69   }
70
71 #endif
72