Home
last modified time | relevance | path

Searched refs:REAL (Results 1 – 25 of 145) sorted by relevance

123456

/external/llvm-project/compiler-rt/lib/asan/
Dasan_interceptors.cpp53 ASAN_READ_STRING_OF_LEN((ctx), (s), REAL(strlen)(s), (n))
57 if (REAL(strnlen)) { in MaybeRealStrnlen()
58 return REAL(strnlen)(s, maxlen); in MaybeRealStrnlen()
103 return REAL(func)(__VA_ARGS__); \
105 return REAL(func)(__VA_ARGS__); \
128 #define COMMON_INTERCEPTOR_BLOCK_REAL(name) REAL(name)
217 REAL(pthread_attr_getdetachstate)(attr, &detached); in INTERCEPTOR()
230 result = REAL(pthread_create)(thread, attr, asan_thread_start, &param); in INTERCEPTOR()
286 = REAL(swapcontext); in INTERCEPTOR()
289 int res = REAL(swapcontext)(oucp, ucp); in INTERCEPTOR()
[all …]
Dasan_malloc_win.cpp161 REAL(memcpy)(new_alloc, p, Min<size_t>(size, old_size)); in _recalloc()
163 REAL(memset)(((u8 *)new_alloc) + old_size, 0, size - old_size); in _recalloc()
215 return REAL(HeapSize)(hHeap, dwFlags, lpMem); in INTERCEPTOR_WINAPI()
231 return REAL(HeapAlloc)(hHeap, dwFlags, dwBytes); in INTERCEPTOR_WINAPI()
260 return REAL(HeapFree)(hHeap, dwFlags, lpMem); in INTERCEPTOR_WINAPI()
322 REAL(memcpy)(replacement_alloc, lpMem, old_size); in SharedReAlloc()
342 REAL(memcpy)(replacement_alloc, lpMem, in SharedReAlloc()
382 REAL(memset)(((u8 *)ptr) + old_size, 0, new_size - old_size); in SharedReAlloc()
391 return SharedReAlloc(REAL(HeapReAlloc), (SizeFunction)REAL(HeapSize), in INTERCEPTOR_WINAPI()
392 REAL(HeapFree), REAL(HeapAlloc), hHeap, dwFlags, lpMem, in INTERCEPTOR_WINAPI()
[all …]
Dasan_win.cpp81 CHECK(REAL(SetUnhandledExceptionFilter)); in INTERCEPTOR_WINAPI()
83 return REAL(SetUnhandledExceptionFilter)(ExceptionFilter); in INTERCEPTOR_WINAPI()
91 CHECK(REAL(RtlRaiseException)); in INTERCEPTOR_WINAPI()
96 REAL(RtlRaiseException)(ExceptionRecord); in INTERCEPTOR_WINAPI()
100 CHECK(REAL(RaiseException)); in INTERCEPTOR_WINAPI()
102 REAL(RaiseException)(a, b, c, d); in INTERCEPTOR_WINAPI()
110 CHECK(REAL(__C_specific_handler)); in INTERCEPTOR_WINAPI()
112 return REAL(__C_specific_handler)(a, b, c, d); in INTERCEPTOR_WINAPI()
118 CHECK(REAL(_except_handler3)); in INTERCEPTOR()
120 return REAL(_except_handler3)(a, b, c, d); in INTERCEPTOR()
[all …]
Dasan_mac.cpp203 return REAL(dispatch_x_f)(dq, (void*)asan_ctxt, \
220 return REAL(dispatch_after_f)(when, dq, (void*)asan_ctxt, in INTERCEPT_DISPATCH_X_F_3()
234 REAL(dispatch_group_async_f)(group, dq, (void*)asan_ctxt, in INTERCEPTOR()
263 REAL(dispatch_async)(dq, asan_block);
270 REAL(dispatch_group_async)(dg, dq, asan_block);
277 REAL(dispatch_after)(when, queue, asan_block);
283 REAL(dispatch_source_set_cancel_handler)(ds, work);
288 REAL(dispatch_source_set_cancel_handler)(ds, asan_block);
295 REAL(dispatch_source_set_event_handler)(ds, asan_block);
/external/compiler-rt/lib/msan/
Dmsan_interceptors.cc109 SIZE_T res = REAL(fread)(ptr, size, nmemb, file); in INTERCEPTOR()
119 SIZE_T res = REAL(fread_unlocked)(ptr, size, nmemb, file); in INTERCEPTOR()
132 SSIZE_T res = REAL(readlink)(path, buf, bufsiz); in INTERCEPTOR()
148 void *res = REAL(memccpy)(dest, src, c, n); in INTERCEPTOR()
260 REAL(memset)(sret, 0, sizeof(*sret)); in INTERCEPTOR()
289 SIZE_T n = REAL(strlen)(src); in INTERCEPTOR()
291 char *res = REAL(strcpy)(dest, src); // NOLINT in INTERCEPTOR()
299 SIZE_T copy_size = REAL(strnlen)(src, n); in INTERCEPTOR()
302 char *res = REAL(strncpy)(dest, src, n); // NOLINT in INTERCEPTOR()
311 SIZE_T n = REAL(strlen)(src); in INTERCEPTOR()
[all …]
/external/compiler-rt/lib/asan/
Dasan_interceptors.cc94 ASAN_READ_STRING_OF_LEN((ctx), (s), REAL(strlen)(s), (n))
115 if (REAL(strnlen)) { in MaybeRealStrnlen()
116 return REAL(strnlen)(s, maxlen); in MaybeRealStrnlen()
157 return REAL(func)(__VA_ARGS__); \
159 return REAL(func)(__VA_ARGS__); \
182 #define COMMON_INTERCEPTOR_BLOCK_REAL(name) REAL(name)
248 REAL(pthread_attr_getdetachstate)(attr, &detached); in INTERCEPTOR()
261 result = REAL(pthread_create)(thread, attr, asan_thread_start, &param); in INTERCEPTOR()
293 return REAL(bsd_signal)(signum, handler); in INTERCEPTOR()
302 return REAL(signal)(signum, handler); in INTERCEPTOR()
[all …]
Dasan_mac.cc200 return REAL(dispatch_x_f)(dq, (void*)asan_ctxt, \
217 return REAL(dispatch_after_f)(when, dq, (void*)asan_ctxt, in INTERCEPT_DISPATCH_X_F_3()
231 REAL(dispatch_group_async_f)(group, dq, (void*)asan_ctxt, in INTERCEPTOR()
260 REAL(dispatch_async)(dq, asan_block);
267 REAL(dispatch_group_async)(dg, dq, asan_block);
274 REAL(dispatch_after)(when, queue, asan_block);
280 REAL(dispatch_source_set_cancel_handler)(ds, work);
285 REAL(dispatch_source_set_cancel_handler)(ds, asan_block);
292 REAL(dispatch_source_set_event_handler)(ds, asan_block);
/external/llvm-project/flang/lib/Evaluate/
Dint-power.h18 template <typename REAL, typename INT>
19 ValueWithRealFlags<REAL> TimesIntPowerOf(const REAL &factor, const REAL &base,
21 ValueWithRealFlags<REAL> result{factor};
23 result.value = REAL::NotANumber();
32 REAL squares{base};
51 template <typename REAL, typename INT>
52 ValueWithRealFlags<REAL> IntPower(
53 const REAL &base, const INT &power, Rounding rounding = defaultRounding) {
54 REAL one{REAL::FromInteger(INT{1}).value};
/external/llvm-project/compiler-rt/lib/msan/
Dmsan_interceptors.cpp136 SIZE_T res = REAL(fread_unlocked)(ptr, size, nmemb, file); in INTERCEPTOR()
157 void *res = REAL(memccpy)(dest, src, c, n); in INTERCEPTOR()
259 REAL(memset)(sret, 0, sizeof(*sret)); in INTERCEPTOR()
288 SIZE_T n = REAL(strlen)(src); in INTERCEPTOR()
290 char *res = REAL(strcpy)(dest, src); in INTERCEPTOR()
298 SIZE_T copy_size = REAL(strnlen)(src, n); in INTERCEPTOR()
301 char *res = REAL(strncpy)(dest, src, n); in INTERCEPTOR()
311 SIZE_T n = REAL(strlen)(src); in INTERCEPTOR()
313 char *res = REAL(stpcpy)(dest, src); in INTERCEPTOR()
327 SIZE_T n = REAL(strlen)(src); in INTERCEPTOR()
[all …]
/external/llvm-project/compiler-rt/lib/tsan/dd/
Ddd_interceptors.cpp45 return REAL(pthread_mutex_destroy)(m); in INTERCEPTOR()
51 int res = REAL(pthread_mutex_lock)(m); in INTERCEPTOR()
58 int res = REAL(pthread_mutex_trylock)(m); in INTERCEPTOR()
67 return REAL(pthread_mutex_unlock)(m); in INTERCEPTOR()
72 int res = REAL(pthread_spin_destroy)(m); in INTERCEPTOR()
80 int res = REAL(pthread_spin_lock)(m); in INTERCEPTOR()
87 int res = REAL(pthread_spin_trylock)(m); in INTERCEPTOR()
96 return REAL(pthread_spin_unlock)(m); in INTERCEPTOR()
102 return REAL(pthread_rwlock_destroy)(m); in INTERCEPTOR()
108 int res = REAL(pthread_rwlock_rdlock)(m); in INTERCEPTOR()
[all …]
/external/compiler-rt/lib/tsan/dd/
Ddd_interceptors.cc46 return REAL(pthread_mutex_destroy)(m); in INTERCEPTOR()
52 int res = REAL(pthread_mutex_lock)(m); in INTERCEPTOR()
59 int res = REAL(pthread_mutex_trylock)(m); in INTERCEPTOR()
68 return REAL(pthread_mutex_unlock)(m); in INTERCEPTOR()
73 int res = REAL(pthread_spin_destroy)(m); in INTERCEPTOR()
81 int res = REAL(pthread_spin_lock)(m); in INTERCEPTOR()
88 int res = REAL(pthread_spin_trylock)(m); in INTERCEPTOR()
97 return REAL(pthread_spin_unlock)(m); in INTERCEPTOR()
103 return REAL(pthread_rwlock_destroy)(m); in INTERCEPTOR()
109 int res = REAL(pthread_rwlock_rdlock)(m); in INTERCEPTOR()
[all …]
/external/llvm-project/compiler-rt/lib/memprof/
Dmemprof_interceptors.cpp29 if (REAL(strnlen)) { in MaybeRealStrnlen()
30 return REAL(strnlen)(s, maxlen); in MaybeRealStrnlen()
70 return REAL(func)(__VA_ARGS__); \
93 #define COMMON_INTERCEPTOR_BLOCK_REAL(name) REAL(name)
165 REAL(pthread_attr_getdetachstate)(attr, &detached); in INTERCEPTOR()
175 result = REAL(pthread_create)(thread, attr, memprof_thread_start, &param); in INTERCEPTOR()
205 uptr from_length = REAL(strlen)(from); in INTERCEPTOR()
207 uptr to_length = REAL(strlen)(to); in INTERCEPTOR()
210 return REAL(strcat)(to, from); in INTERCEPTOR()
220 uptr to_length = REAL(strlen)(to); in INTERCEPTOR()
[all …]
/external/llvm-project/compiler-rt/lib/tsan/rtl/
Dtsan_interceptors_mac.cpp156 REAL(OSAtomicEnqueue)(list, item, offset);
161 void *item = REAL(OSAtomicDequeue)(list, offset); in TSAN_INTERCEPTOR()
173 REAL(OSAtomicFifoEnqueue)(list, item, offset); in TSAN_INTERCEPTOR()
179 void *item = REAL(OSAtomicFifoDequeue)(list, offset); in TSAN_INTERCEPTOR()
189 return REAL(OSSpinLockLock)(lock); in TSAN_INTERCEPTOR()
192 REAL(OSSpinLockLock)(lock); in TSAN_INTERCEPTOR()
199 return REAL(OSSpinLockTry)(lock); in TSAN_INTERCEPTOR()
202 bool result = REAL(OSSpinLockTry)(lock); in TSAN_INTERCEPTOR()
211 return REAL(OSSpinLockUnlock)(lock); in TSAN_INTERCEPTOR()
215 REAL(OSSpinLockUnlock)(lock); in TSAN_INTERCEPTOR()
[all …]
Dtsan_interceptors_posix.cpp321 #define BLOCK_REAL(name) (BlockingCall(thr), REAL(name))
439 res = REAL(__cxa_atexit)((void (*)(void *a))at_exit_wrapper, 0, 0); in setup_at_exit_wrapper()
445 res = REAL(__cxa_atexit)(cxa_at_exit_wrapper, ctx, dso); in setup_at_exit_wrapper()
472 int res = REAL(on_exit)(on_exit_wrapper, ctx); in TSAN_INTERCEPTOR()
628 REAL(longjmp_symname)(env, val); in DEFINE_REAL()
636 REAL(siglongjmp_symname)(env, val); in TSAN_INTERCEPTOR()
645 REAL(_longjmp)(env, val); in TSAN_INTERCEPTOR()
736 return REAL(strcpy)(dst, src); in TSAN_INTERCEPTOR()
744 return REAL(strncpy)(dst, src, n); in TSAN_INTERCEPTOR()
750 return REAL(strdup)(str); in TSAN_INTERCEPTOR()
[all …]
Dtsan_interceptors_libdispatch.cpp170 REAL(name##_f)(q, new_context, dispatch_callback_wrap); \
182 REAL(name##_f)(q, &new_context, dispatch_callback_wrap); \
196 REAL(name)(q, new_context, dispatch_callback_wrap); \
208 REAL(name)(q, &new_context, dispatch_callback_wrap); \
263 REAL(dispatch_after_f)(when, queue, new_context, dispatch_callback_wrap); in DISPATCH_INTERCEPT_SYNC_F()
325 return REAL(dispatch_semaphore_signal)(dsema); in TSAN_INTERCEPTOR()
331 long_t result = REAL(dispatch_semaphore_wait)(dsema, timeout); in TSAN_INTERCEPTOR()
339 long_t result = REAL(dispatch_group_wait)(group, timeout); in TSAN_INTERCEPTOR()
351 REAL(dispatch_group_leave)(group); in TSAN_INTERCEPTOR()
407 REAL(dispatch_group_notify_f)(group, q, new_context, dispatch_callback_wrap); in DECLARE_REAL()
[all …]
/external/llvm-project/compiler-rt/lib/fuzzer/
DFuzzerInterceptors.cpp19 #define REAL(x) __interception::PTR_TO_REAL(x) macro
153 int result = REAL(bcmp)(s1, s2, n); in DEFINE_REAL()
161 int result = REAL(memcmp)(s1, s2, n); in memcmp()
169 int result = REAL(strncmp)(s1, s2, n); in strncmp()
177 int result = REAL(strcmp)(s1, s2); in strcmp()
184 int result = REAL(strncasecmp)(s1, s2, n); in strncasecmp()
191 int result = REAL(strcasecmp)(s1, s2); in strcasecmp()
199 char *result = REAL(strstr)(s1, s2); in strstr()
206 char *result = REAL(strcasestr)(s1, s2); in strcasestr()
214 void *result = REAL(memmem)(s1, len1, s2, len2); in memmem()
[all …]
/external/rust/crates/libfuzzer-sys/libfuzzer/
DFuzzerInterceptors.cpp19 #define REAL(x) __interception::PTR_TO_REAL(x) macro
153 int result = REAL(bcmp)(s1, s2, n); in DEFINE_REAL()
161 int result = REAL(memcmp)(s1, s2, n); in memcmp()
169 int result = REAL(strncmp)(s1, s2, n); in strncmp()
177 int result = REAL(strcmp)(s1, s2); in strcmp()
184 int result = REAL(strncasecmp)(s1, s2, n); in strncasecmp()
191 int result = REAL(strcasecmp)(s1, s2); in strcasecmp()
199 char *result = REAL(strstr)(s1, s2); in strstr()
206 char *result = REAL(strcasestr)(s1, s2); in strcasestr()
214 void *result = REAL(memmem)(s1, len1, s2, len2); in memmem()
[all …]
/external/compiler-rt/lib/esan/
Desan_interceptors.cpp63 return REAL(func)(__VA_ARGS__); \
148 #define COMMON_INTERCEPTOR_BLOCK_REAL(name) REAL(name)
249 return REAL(strcpy)(dst, src); // NOLINT in INTERCEPTOR()
259 return REAL(strncpy)(dst, src, n); in INTERCEPTOR()
266 return REAL(open)(name, flags, mode); in INTERCEPTOR()
274 return REAL(open64)(name, flags, mode); in INTERCEPTOR()
285 return REAL(creat)(name, mode); in INTERCEPTOR()
293 return REAL(creat64)(name, mode); in INTERCEPTOR()
304 return REAL(unlink)(path); in INTERCEPTOR()
311 return REAL(fread)(ptr, size, nmemb, f); in INTERCEPTOR()
[all …]
/external/compiler-rt/lib/tsan/rtl/
Dtsan_interceptors_mac.cc145 REAL(OSAtomicEnqueue)(list, item, offset);
150 void *item = REAL(OSAtomicDequeue)(list, offset); in TSAN_INTERCEPTOR()
162 REAL(OSAtomicFifoEnqueue)(list, item, offset); in TSAN_INTERCEPTOR()
168 void *item = REAL(OSAtomicFifoDequeue)(list, offset); in TSAN_INTERCEPTOR()
178 return REAL(OSSpinLockLock)(lock); in TSAN_INTERCEPTOR()
181 REAL(OSSpinLockLock)(lock); in TSAN_INTERCEPTOR()
188 return REAL(OSSpinLockTry)(lock); in TSAN_INTERCEPTOR()
191 bool result = REAL(OSSpinLockTry)(lock); in TSAN_INTERCEPTOR()
200 return REAL(OSSpinLockUnlock)(lock); in TSAN_INTERCEPTOR()
204 REAL(OSSpinLockUnlock)(lock); in TSAN_INTERCEPTOR()
[all …]
Dtsan_interceptors.cc319 #define BLOCK_REAL(name) (BlockingCall(thr), REAL(name))
416 int res = REAL(__cxa_atexit)(at_exit_wrapper, ctx, dso); in setup_at_exit_wrapper()
442 int res = REAL(on_exit)(on_exit_wrapper, ctx); in TSAN_INTERCEPTOR()
574 REAL(longjmp)(env, val); in DEFINE_REAL()
582 REAL(siglongjmp)(env, val); in TSAN_INTERCEPTOR()
659 return REAL(strcpy)(dst, src); // NOLINT in TSAN_INTERCEPTOR()
667 return REAL(strncpy)(dst, src, n); in TSAN_INTERCEPTOR()
673 return REAL(strdup)(str); in TSAN_INTERCEPTOR()
695 void *res = REAL(mmap)(addr, sz, prot, flags, fd, off); in TSAN_INTERCEPTOR()
714 void *res = REAL(mmap64)(addr, sz, prot, flags, fd, off); in TSAN_INTERCEPTOR()
[all …]
Dtsan_libdispatch_mac.cc142 REAL(name##_f)(q, new_context, dispatch_callback_wrap); \
156 REAL(name##_f)(q, &new_context, dispatch_callback_wrap); \
170 REAL(name)(q, new_context, dispatch_callback_wrap); \
182 REAL(name)(q, &new_context, dispatch_callback_wrap); \
210 REAL(dispatch_after_f)(when, queue, new_context, dispatch_callback_wrap); in DISPATCH_INTERCEPT_B()
272 return REAL(dispatch_semaphore_signal)(dsema); in TSAN_INTERCEPTOR()
278 long_t result = REAL(dispatch_semaphore_wait)(dsema, timeout); in TSAN_INTERCEPTOR()
286 long_t result = REAL(dispatch_group_wait)(group, timeout); in TSAN_INTERCEPTOR()
295 REAL(dispatch_group_leave)(group); in TSAN_INTERCEPTOR()
348 REAL(dispatch_group_notify_f)(group, q, new_context, dispatch_callback_wrap); in TSAN_INTERCEPTOR()
[all …]
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_interceptors.inc207 common_flags()->strict_string_checks ? (REAL(strlen)(s)) + 1 : (n) )
250 return REAL(memset)(dst, v, size); \
264 return REAL(memmove)(dst, src, size); \
279 return REAL(memcpy)(dst, src, size); \
286 { return REAL(mmap)(addr, sz, prot, flags, fd, off); }
363 // in which case the REAL(strlen) typically used in
370 SIZE_T result = REAL(strlen)(s);
384 SIZE_T length = REAL(strnlen)(s, maxlen);
419 char *domain = REAL(textdomain)(domainname);
421 COMMON_INTERCEPTOR_INITIALIZE_RANGE(domain, REAL(strlen)(domain) + 1);
[all …]
/external/llvm-project/compiler-rt/lib/lsan/
Dlsan_mac.cpp114 return REAL(dispatch_x_f)(dq, (void *)lsan_ctxt, \
125 return REAL(dispatch_after_f)(when, dq, (void *)lsan_ctxt, in INTERCEPT_DISPATCH_X_F_3()
132 REAL(dispatch_group_async_f) in INTERCEPTOR()
159 REAL(dispatch_async)(dq, lsan_block);
165 REAL(dispatch_group_async)(dg, dq, lsan_block);
171 REAL(dispatch_after)(when, queue, lsan_block);
177 REAL(dispatch_source_set_cancel_handler)(ds, work);
181 REAL(dispatch_source_set_cancel_handler)(ds, lsan_block);
187 REAL(dispatch_source_set_event_handler)(ds, lsan_block);
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_interceptors.inc132 COMMON_INTERCEPTOR_READ_STRING_OF_LEN((ctx), (s), REAL(strlen)(s), (n))
218 // in which case the REAL(strlen) typically used in
225 SIZE_T result = REAL(strlen)(s);
239 SIZE_T length = REAL(strnlen)(s, maxlen);
254 char *domain = REAL(textdomain)(domainname);
256 COMMON_INTERCEPTOR_INITIALIZE_RANGE(domain, REAL(strlen)(domain) + 1);
369 uptr len1 = REAL(strlen)(s1);
370 uptr len2 = REAL(strlen)(s2);
383 char *r = REAL(strstr)(s1, s2);
398 char *r = REAL(strcasestr)(s1, s2);
[all …]
/external/llvm-project/llvm/test/Transforms/InstCombine/
Dcabs-discrete.ll6 ; CHECK-NEXT: [[CALL:%.*]] = tail call double @cabs(double [[REAL:%.*]], double [[IMAG:%.*]])
15 ; CHECK-NEXT: [[CALL:%.*]] = tail call float @cabsf(float [[REAL:%.*]], float [[IMAG:%.*]])
24 ; CHECK-NEXT: [[CALL:%.*]] = tail call fp128 @cabsl(fp128 [[REAL:%.*]], fp128 [[IMAG:%.*]])
33 ; CHECK-NEXT: [[TMP1:%.*]] = fmul fast double [[REAL:%.*]], [[REAL]]
45 ; CHECK-NEXT: [[TMP1:%.*]] = fmul fast float [[REAL:%.*]], [[REAL]]
57 ; CHECK-NEXT: [[TMP1:%.*]] = fmul fast fp128 [[REAL:%.*]], [[REAL]]

123456