mirror of
https://github.com/google/liblc3.git
synced 2026-04-25 16:44:50 +00:00
Flag hot functions, and disable sanitizing for them
This commit is contained in:
18
src/common.h
18
src/common.h
@@ -35,6 +35,24 @@
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* Hot Function attribute
|
||||
* Selectively disable sanitizer
|
||||
*/
|
||||
|
||||
#ifdef __clang__
|
||||
|
||||
#define LC3_HOT \
|
||||
__attribute__((no_sanitize("bounds"))) \
|
||||
__attribute__((no_sanitize("integer")))
|
||||
|
||||
#else /* __clang__ */
|
||||
|
||||
#define LC3_HOT
|
||||
|
||||
#endif /* __clang__ */
|
||||
|
||||
|
||||
/**
|
||||
* Macros
|
||||
* MIN/MAX Minimum and maximum between 2 values
|
||||
|
||||
Reference in New Issue
Block a user