File: builtins.h

package info (click to toggle)
falcosecurity-libs 0.1.1dev%2Bgit20220316.e5c53d64-5.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,732 kB
  • sloc: cpp: 55,770; ansic: 37,330; makefile: 74; sh: 13
file content (30 lines) | stat: -rw-r--r-- 592 bytes parent folder | download
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
30
/*

Copyright (c) 2021 The Falco Authors

This file is dual licensed under either the MIT or GPL 2. See MIT.txt
or GPL2.txt for full copies of the license.

*/

#ifndef __BUILTINS_H
#define __BUILTINS_H

/*
 * Make sure to always use the inline LLVM built-ins.
 * This is done to avoid using any different implementation at all costs
 * since we always want to use the specific LLVM builtins in this context
 * and nothing else.
 */

#ifdef memset
#undef memset
#endif
#define memset __builtin_memset

#ifdef memcpy
#undef memcpy
#endif
#define memcpy __builtin_memcpy

#endif // __BUILTINS_H