Home
last modified time | relevance | path

Searched refs:RCAST (Results 1 – 23 of 23) sorted by relevance

/freebsd/contrib/file/src/
H A Dcdf.c149 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()
460 (void)memcpy(RCAST(char *, buf) + offs, in cdf_read_short_sector()
461 RCAST(const char *, sst->sst_tab) + pos, len); in cdf_read_short_sector()
[all …]
H A Dcompress.c659 bz.next_in = CCAST(char *, RCAST(const char *, old)); in uncompressbzlib()
661 bz.next_out = RCAST(char *, *newch); in uncompressbzlib()
702 xz.next_out = RCAST(uint8_t *, *newch); in uncompressxzlib()
747 out.dst = RCAST(void *, *newch); in uncompresszstd()
851 *buf = RCAST(unsigned char *, msg); in makeerror()
879 posix_spawn_file_actions_t *fa = RCAST(posix_spawn_file_actions_t *, v); in movedesc()
895 posix_spawn_file_actions_t *fa = RCAST(posix_spawn_file_actions_t *, v); in closedesc()
963 buf = RCAST(char *, ubuf); in filter_error()
1106 args = RCAST(char *const *, RCAST(intptr_t, compr[method].argv)); in uncompressbuf()
H A Dis_tar.c103 const union record *header = RCAST(const union record *, in is_tar()
104 RCAST(const void *, buf)); in is_tar()
H A Dreadelf.c553 if (namesz == 4 && strcmp(RCAST(char *, &nbuf[noff]), "GNU") == 0 && in do_bid_note()
581 if (namesz == 4 && strcmp(RCAST(char *, &nbuf[noff]), "Go") == 0 && in do_bid_note()
586 RCAST(const char *, &nbuf[doff]))) == -1) in do_bid_note()
598 const char *name = RCAST(const char *, &nbuf[noff]); in do_os_note()
697 const char *name = RCAST(const char *, &nbuf[noff]); in do_pax_note()
739 const char *name = RCAST(const char *, &nbuf[noff]); in do_core_note()
789 RCAST(char *, pi.cpi_name), sizeof(pi.cpi_name)), in do_core_note()
818 elf_getu32(swap, *RCAST(uint32_t *, (nbuf + in do_core_note()
929 RCAST(char *, cname))) == -1) in do_core_note()
1256 if (namesz == 7 && strcmp(RCAST(char *, &nbuf[noff]), "NetBSD") == 0) { in donote()
[all …]
H A Dder.c244 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 Dsoftmagic.c770 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()
1454 (void)memset(RCAST(char *, RCAST(void *, p)) + nbytes, '\0', in mcopy()
1625 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget()
1637 RCAST(const void *, s + offset + off)); in mget()
1809 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget()
1994 const unsigned char *a = RCAST(const unsigned char *, s1); in file_strncmp()
1995 const unsigned char *b = RCAST(const unsigned char *, s2); in file_strncmp()
[all …]
H A Dapprentice.c610 char *b = RCAST(char *, map->magic[i]); in apprentice_unmap()
1402 return strcmp(*RCAST(char *const *, p1), *RCAST(char *const *, p2)); in cmpstrp()
3528 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in swap2()
3529 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in swap2()
3542 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in swap4()
3543 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in swap4()
3558 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in swap8()
3559 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in swap8()
3657 const unsigned char *s = RCAST(const unsigned char *, ss); in file_pstring_get_length()
H A Dmagic.c334 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 Dfile.h431 #define RCAST(T, b) reinterpret_cast<T>(b) macro
435 #define RCAST(T, b) ((T)(uintptr_t)(b)) macro
H A Dfuncs.c818 const unsigned char *s = RCAST(const unsigned char *, str); in file_printable()
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_wait_release.h48 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); }
939 return (RCAST(unsigned char *, CCAST(kmp_uint64 *, loc)))[offset];
1030 __kmp_resume_32(gtid, RCAST(kmp_flag_32<> *, flag));
1033 __kmp_resume_64(gtid, RCAST(kmp_flag_64<> *, flag));
1036 __kmp_atomic_resume_64(gtid, RCAST(kmp_atomic_flag_64<> *, flag));
[all …]
H A Dkmp_tasking.cpp982 RCAST(kmp_int32 *, &taskdata->td_flags),
983 *RCAST(kmp_int32 *, &flags_old),
984 *RCAST(kmp_int32 *, &flags_new))) {
2285 RCAST(std::atomic<kmp_uint32> *,
4288 RCAST(std::atomic<kmp_uint32> *,
4319 std::atomic<kmp_uint32> *spin = RCAST(
4333 KMP_FSYNC_SPIN_PREPARE(RCAST(void *, spin));
4344 KMP_FSYNC_SPIN_ACQUIRED(RCAST(void *, spin));
4778 kmp_int32 *lb = RCAST(kmp_int32 *, task->shareds);
4781 kmp_int64 *lb = RCAST(kmp_int64 *, task->shareds);
[all …]
H A Dkmp_alloc.cpp1412 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 Dkmp_stats.cpp368 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 Dkmp_settings.cpp3778 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()
5809 const kmp_setting_t *a = RCAST(const kmp_setting_t *, _a); in __kmp_stg_cmp()
5810 const kmp_setting_t *b = RCAST(const kmp_setting_t *, _b); in __kmp_stg_cmp()
H A Dkmp_dispatch_hier.h277 (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 Dkmp_os.h234 #define RCAST(type, var) reinterpret_cast<type>(var) macro
290 #define RCAST(type, var) (type)(var)
H A Dkmp_dispatch.cpp1816 init = test_then_add<ST>(RCAST(volatile ST *, &sh->u.s.iteration), in __kmp_dispatch_next_algorithm()
1835 if (compare_and_swap<ST>(RCAST(volatile ST *, &sh->u.s.iteration), in __kmp_dispatch_next_algorithm()
1885 init = test_then_add<ST>(RCAST(volatile ST *, &sh->u.s.iteration), in __kmp_dispatch_next_algorithm()
1910 if (compare_and_swap<ST>(RCAST(volatile ST *, &sh->u.s.iteration), in __kmp_dispatch_next_algorithm()
H A Dkmp_gsupport.cpp1905 __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 Dkmp_affinity.cpp1739 sub_id = (int)(RCAST(kmp_intptr_t, obj->userdata)); in __kmp_hwloc_get_sub_id()
1747 lower->userdata = RCAST(void *, sub_id + 1); in __kmp_hwloc_get_sub_id()
H A Dkmp_barrier.cpp1565 (RCAST(volatile char *, in __kmp_hierarchical_barrier_release()
H A Dkmp_lock.cpp1422 RCAST(volatile kmp_int64 *, tail_id_p), KMP_PACK_64(head, head), in __kmp_release_queuing_lock()
H A Dkmp_runtime.cpp6876 KMP_SSCANF(flag_addr_str, "%p", RCAST(void **, &flag_addr)); in __kmp_register_library_startup()