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