/freebsd/contrib/file/src/ |
H A D | compress.c | 673 bz.next_in = CCAST(char *, RCAST(const char *, old)); in uncompressbzlib() 675 bz.next_out = RCAST(char *, *newch); in uncompressbzlib() 716 xz.next_out = RCAST(uint8_t *, *newch); in uncompressxzlib() 761 out.dst = RCAST(void *, *newch); in uncompresszstd() 862 in = fmemopen(RCAST(void *, old), bytes_max, "r"); in uncompresslrzip() 918 *buf = RCAST(unsigned char *, msg); in makeerror() 946 posix_spawn_file_actions_t *fa = RCAST(posix_spawn_file_actions_t *, v); in movedesc() 962 posix_spawn_file_actions_t *fa = RCAST(posix_spawn_file_actions_t *, v); in closedesc() 1030 buf = RCAST(char *, ubuf); in filter_error() 1181 args = RCAST(char *const *, RCAST(intptr_t, compr[method].argv)); in uncompressbuf()
|
H A D | cdf.c | 149 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole2() 150 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole2() 163 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole4() 164 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole4() 179 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole8() 180 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole8() 355 const char *b = RCAST(const char *, sst->sst_tab); in cdf_check_stream_offset() 356 const char *e = RCAST(const char *, p) + tail; in cdf_check_stream_offset() 439 return cdf_read(info, CAST(off_t, pos), RCAST(char *, buf) + offs, len); in cdf_read_sector() 460 (void)memcpy(RCAST(char *, buf) + offs, in cdf_read_short_sector() [all …]
|
H A D | is_tar.c | 103 const union record *header = RCAST(const union record *, in is_tar() 104 RCAST(const void *, buf)); in is_tar()
|
H A D | readelf.c | 557 if (NAMEEQUALS(RCAST(char *, &nbuf[noff]), "GNU") && in do_bid_note() 585 if (namesz == 4 && memcmp(RCAST(char *, &nbuf[noff]), "Go", 3) == 0 && in do_bid_note() 590 RCAST(const char *, &nbuf[doff]))) == -1) in do_bid_note() 602 const char *name = RCAST(const char *, &nbuf[noff]); in do_os_note() 719 const char *name = RCAST(const char *, &nbuf[noff]); in do_pax_note() 758 const char *name = RCAST(const char *, &nbuf[noff]); in do_memtag_note() 799 const char *name = RCAST(const char *, &nbuf[noff]); in do_core_note() 848 RCAST(char *, pi.cpi_name), sizeof(pi.cpi_name)), in do_core_note() 877 elf_getu32(swap, *RCAST(uint32_t *, (nbuf + in do_core_note() 988 RCAST(char *, cname))) == -1) in do_core_note() [all …]
|
H A D | der.c | 244 return snprintf(buf, blen, "%.*s", len, RCAST(const char *, q)); in der_data() 266 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_offs() 305 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_cmp()
|
H A D | softmagic.c | 770 cp = strndup(RCAST(const char *, ms->search.s), in mprint() 1337 ms->search.s = RCAST(const char *, s) + offset; in mcopy() 1369 buf = RCAST(const char *, s) + offset; in mcopy() 1370 end = last = RCAST(const char *, s) + bytecnt + offset; in mcopy() 1455 (void)memset(RCAST(char *, RCAST(void *, p)) + nbytes, '\0', in mcopy() 1625 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget() 1813 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget() 1998 const unsigned char *a = RCAST(const unsigned char *, s1); in file_strncmp() 1999 const unsigned char *b = RCAST(const unsigned char *, s2); in file_strncmp() 2338 rc = file_regexec(ms, rx, RCAST(const char *, search), in magiccheck()
|
H A D | apprentice.c | 614 char *b = RCAST(char *, map->magic[i]); in apprentice_unmap() 1420 return strcmp(*RCAST(char *const *, p1), *RCAST(char *const *, p2)); in cmpstrp() 3558 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in swap2() 3559 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in swap2() 3572 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in swap4() 3573 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in swap4() 3588 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in swap8() 3589 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in swap8() 3687 const unsigned char *s = RCAST(const unsigned char *, ss); in file_pstring_get_length()
|
H A D | magic.c | 334 return buffer_apprentice(ms, RCAST(struct magic **, bufs), in magic_load_buffers() 500 while ((r = sread(fd, RCAST(void *, &buf[nbytes]), in file_or_fd() 522 if ((nbytes = read(fd, RCAST(void *, buf), howmany)) == -1) { in file_or_fd()
|
H A D | file.h | 442 #define RCAST(T, b) reinterpret_cast<T>(b) macro 446 #define RCAST(T, b) ((T)(uintptr_t)(b)) macro
|
H A D | funcs.c | 835 const unsigned char *s = RCAST(const unsigned char *, str); in file_printable()
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_wait_release.h | 48 return KMP_TEST_THEN_ADD4_32(RCAST(volatile kmp_int32 *, f)); 63 return KMP_TEST_THEN_ADD4_64(RCAST(volatile kmp_int64 *, f)); 78 return KMP_TEST_THEN_ADD4_64(RCAST(volatile kmp_int64 *, f)); 93 return KMP_TEST_THEN_ADD4_64(RCAST(volatile kmp_int64 *, f)); 161 void *get_void_p() { return RCAST(void *, CCAST(PtrType *, loc)); } 253 void *get_void_p() { return RCAST(void *, loc); } 943 return (RCAST(unsigned char *, CCAST(kmp_uint64 *, loc)))[offset]; 1034 __kmp_resume_32(gtid, RCAST(kmp_flag_32<> *, flag)); 1037 __kmp_resume_64(gtid, RCAST(kmp_flag_64<> *, flag)); 1040 __kmp_atomic_resume_64(gtid, RCAST(kmp_atomic_flag_64<> *, flag)); [all …]
|
H A D | kmp_tasking.cpp | 981 RCAST(kmp_int32 *, &taskdata->td_flags), 982 *RCAST(kmp_int32 *, &flags_old), 983 *RCAST(kmp_int32 *, &flags_new))) { 1409 if (KMP_COMPARE_AND_STORE_ACQ32(RCAST(kmp_int32 *, &task->td_flags), 1410 *RCAST(kmp_int32 *, &flags_old), 1411 *RCAST(kmp_int32 *, &flags_new))) { 2294 RCAST(std::atomic<kmp_uint32> *, 2969 RCAST(std::atomic<kmp_uint32> *, &(taskgroup->count)), 0U); 4297 RCAST(std::atomic<kmp_uint32> *, 4325 std::atomic<kmp_uint32> *spin = RCAST( [all …]
|
H A D | kmp_alloc.cpp | 1412 al->fb_data = RCAST(kmp_allocator_t *, traits[i].value); in __kmpc_init_allocator() 1415 al->memkind = RCAST(void **, traits[i].value); in __kmpc_init_allocator() 1558 al = RCAST(kmp_allocator_t *, allocator); in __kmp_alloc() 1767 al = RCAST(kmp_allocator_t *, allocator); in __kmp_calloc() 1830 al = RCAST(kmp_allocator_t *, CCAST(omp_allocator_handle_t, allocator)); in ___kmpc_free()
|
H A D | kmp_settings.cpp | 3778 traits[count].value = RCAST(omp_uintptr_t, omp_high_bw_mem_alloc); in __kmp_stg_parse_allocator() 3791 traits[count].value = RCAST(omp_uintptr_t, omp_large_cap_mem_alloc); in __kmp_stg_parse_allocator() 3798 traits[count].value = RCAST(omp_uintptr_t, omp_default_mem_alloc); in __kmp_stg_parse_allocator() 3806 traits[count].value = RCAST(omp_uintptr_t, omp_const_mem_alloc); in __kmp_stg_parse_allocator() 3814 traits[count].value = RCAST(omp_uintptr_t, omp_low_lat_mem_alloc); in __kmp_stg_parse_allocator() 3822 traits[count].value = RCAST(omp_uintptr_t, omp_cgroup_mem_alloc); in __kmp_stg_parse_allocator() 3830 traits[count].value = RCAST(omp_uintptr_t, omp_pteam_mem_alloc); in __kmp_stg_parse_allocator() 3838 traits[count].value = RCAST(omp_uintptr_t, omp_thread_mem_alloc); in __kmp_stg_parse_allocator() 5803 const kmp_setting_t *a = RCAST(const kmp_setting_t *, _a); in __kmp_stg_cmp() 5804 const kmp_setting_t *b = RCAST(const kmp_setting_t *, _b); in __kmp_stg_cmp()
|
H A D | kmp_stats.cpp | 368 const kmp_stats_event *ev1 = RCAST(const kmp_stats_event *, event1); in compare_two_events() 369 const kmp_stats_event *ev2 = RCAST(const kmp_stats_event *, event2); in compare_two_events()
|
H A D | kmp_dispatch_hier.h | 277 (RCAST(volatile char *, &(bdata->val[current_index])))[id] = v; in barrier() 323 val = RCAST(volatile kmp_int64 *, &(bdata->val[current_index])); in barrier()
|
H A D | kmp_os.h | 235 #define RCAST(type, var) reinterpret_cast<type>(var) macro 291 #define RCAST(type, var) (type)(var)
|
H A D | kmp_dispatch.cpp | 1817 init = test_then_add<ST>(RCAST(volatile ST *, &sh->u.s.iteration), in __kmp_dispatch_next_algorithm() 1836 if (compare_and_swap<ST>(RCAST(volatile ST *, &sh->u.s.iteration), in __kmp_dispatch_next_algorithm() 1886 init = test_then_add<ST>(RCAST(volatile ST *, &sh->u.s.iteration), in __kmp_dispatch_next_algorithm() 1911 if (compare_and_swap<ST>(RCAST(volatile ST *, &sh->u.s.iteration), in __kmp_dispatch_next_algorithm()
|
H A D | kmp_gsupport.cpp | 1905 __kmpc_doacross_post(&loc, gtid, RCAST(kmp_int64 *, count)); in __kmp_GOMP_doacross_post() 1962 __kmpc_doacross_post(&loc, gtid, RCAST(kmp_int64 *, count)); in KMP_EXPAND_NAME()
|
H A D | kmp_affinity.cpp | 1762 sub_id = (int)(RCAST(kmp_intptr_t, obj->userdata)); in __kmp_hwloc_get_sub_id() 1770 lower->userdata = RCAST(void *, sub_id + 1); in __kmp_hwloc_get_sub_id()
|
H A D | kmp_barrier.cpp | 1565 (RCAST(volatile char *, in __kmp_hierarchical_barrier_release()
|
H A D | kmp_lock.cpp | 1422 RCAST(volatile kmp_int64 *, tail_id_p), KMP_PACK_64(head, head), in __kmp_release_queuing_lock()
|
H A D | kmp_runtime.cpp | 6891 KMP_SSCANF(flag_addr_str, "%p", RCAST(void **, &flag_addr)); in __kmp_register_library_startup()
|