Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/file/src/
H A Dcompress.c595 *n = strlen(RCAST(char *, *newch)); in uncompresszlib()
616 bz.next_in = CCAST(char *, RCAST(const char *, old)); in uncompressbzlib()
618 bz.next_out = RCAST(char *, *newch); in uncompressbzlib()
637 snprintf(RCAST(char *, *newch), bytes_max, "bunzip error %d", rc); in uncompressbzlib()
638 *n = strlen(RCAST(char *, *newch)); in uncompressbzlib()
661 xz.next_out = RCAST(uint8_t *, *newch); in uncompressxzlib()
677 snprintf(RCAST(char *, *newch), bytes_max, "unxz error %d", rc); in uncompressxzlib()
678 *n = strlen(RCAST(char *, *newch)); in uncompressxzlib()
699 *buf = RCAST(unsigned char *, msg); in makeerror()
766 buf = RCAST(char *, ubuf); in filter_error()
[all …]
H A Dcdf.c134 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole2()
135 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole2()
148 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole4()
149 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole4()
164 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in _cdf_tole8()
165 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in _cdf_tole8()
339 const char *b = RCAST(const char *, sst->sst_tab); in cdf_check_stream_offset()
340 const char *e = RCAST(const char *, p) + tail; in cdf_check_stream_offset()
444 (void)memcpy(RCAST(char *, buf) + offs, in cdf_read_short_sector()
445 RCAST(const char *, sst->sst_tab) + pos, len); in cdf_read_short_sector()
[all …]
H A Dis_tar.c101 const union record *header = RCAST(const union record *, in is_tar()
102 RCAST(const void *, buf)); in is_tar()
H A Dreadelf.c552 if (namesz == 4 && strcmp(RCAST(char *, &nbuf[noff]), "GNU") == 0 && in do_bid_note()
580 if (namesz == 4 && strcmp(RCAST(char *, &nbuf[noff]), "Go") == 0 && in do_bid_note()
585 RCAST(const char *, &nbuf[doff]))) == -1) in do_bid_note()
597 const char *name = RCAST(const char *, &nbuf[noff]); in do_os_note()
696 const char *name = RCAST(const char *, &nbuf[noff]); in do_pax_note()
738 const char *name = RCAST(const char *, &nbuf[noff]); in do_core_note()
788 RCAST(char *, pi.cpi_name), sizeof(pi.cpi_name)), in do_core_note()
817 elf_getu32(swap, *RCAST(uint32_t *, (nbuf + in do_core_note()
921 RCAST(char *, cname))) == -1) in do_core_note()
1248 if (namesz == 7 && strcmp(RCAST(char *, &nbuf[noff]), "NetBSD") == 0) { in donote()
[all …]
H A Dder.c243 return snprintf(buf, blen, "%.*s", len, RCAST(const char *, q)); in der_data()
265 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_offs()
303 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_cmp()
H A Dsoftmagic.c766 cp = strndup(RCAST(const char *, ms->search.s), in mprint()
1308 ms->search.s = RCAST(const char *, s) + offset; in mcopy()
1340 buf = RCAST(const char *, s) + offset; in mcopy()
1341 end = last = RCAST(const char *, s) + bytecnt + offset; in mcopy()
1422 (void)memset(RCAST(char *, RCAST(void *, p)) + nbytes, '\0', in mcopy()
1579 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget()
1591 RCAST(const void *, s + offset + off)); in mget()
1741 mdebug(offset, RCAST(char *, RCAST(void *, p)), in mget()
1921 const unsigned char *a = RCAST(const unsigned char *, s1); in file_strncmp()
1922 const unsigned char *b = RCAST(const unsigned char *, s2); in file_strncmp()
[all …]
H A Dapprentice.c569 char *b = RCAST(char *, map->magic[i]); in apprentice_unmap()
1278 return strcmp(*RCAST(char *const *, p1), *RCAST(char *const *, p2)); in cmpstrp()
3365 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in swap2()
3366 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in swap2()
3379 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in swap4()
3380 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in swap4()
3395 uint8_t *s = RCAST(uint8_t *, RCAST(void *, &sv)); in swap8()
3396 uint8_t *d = RCAST(uint8_t *, RCAST(void *, &rv)); in swap8()
3493 const unsigned char *s = RCAST(const unsigned char *, ss); in file_pstring_get_length()
H A Dmagic.c317 return buffer_apprentice(ms, RCAST(struct magic **, bufs), in magic_load_buffers()
485 while ((r = sread(fd, RCAST(void *, &buf[nbytes]), in file_or_fd()
507 if ((nbytes = read(fd, RCAST(void *, buf), howmany)) == -1) { in file_or_fd()
H A Dfile.h408 #define RCAST(T, b) reinterpret_cast<T>(b) macro
412 #define RCAST(T, b) ((T)(uintptr_t)(b)) macro
H A Dfuncs.c763 const unsigned char *s = RCAST(const unsigned char *, str); in file_printable()
/freebsd-13.1/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_wait_release.h62 void *get_void_p() { return RCAST(void *, CCAST(P *, loc)); } in get_void_p()
88 void *get_void_p() { return RCAST(void *, loc); } in get_void_p()
634 return KMP_TEST_THEN_ADD4_32(RCAST(volatile kmp_int32 *, f));
649 return KMP_TEST_THEN_ADD4_64(RCAST(volatile kmp_int64 *, f));
947 return (RCAST(unsigned char *, CCAST(kmp_uint64 *, loc)))[offset];
1052 switch (RCAST(kmp_flag_64<> *, CCAST(void *, flag))->get_type()) {
H A Dkmp_tasking.cpp788 RCAST(kmp_int32 *, &taskdata->td_flags), in __kmp_free_task_and_ancestors()
789 *RCAST(kmp_int32 *, &flags_old), in __kmp_free_task_and_ancestors()
790 *RCAST(kmp_int32 *, &flags_new))) { in __kmp_free_task_and_ancestors()
1933 RCAST(std::atomic<kmp_uint32> *, in __kmpc_omp_taskwait_template()
3695 RCAST(std::atomic<kmp_uint32> *, in __kmp_task_team_wait()
3724 std::atomic<kmp_uint32> *spin = RCAST( in __kmp_tasking_barrier()
3738 KMP_FSYNC_SPIN_PREPARE(RCAST(void *, spin)); in __kmp_tasking_barrier()
3749 KMP_FSYNC_SPIN_ACQUIRED(RCAST(void *, spin)); in __kmp_tasking_barrier()
4154 kmp_int32 *lb = RCAST(kmp_int32 *, task->shareds); in get_lb()
4157 kmp_int64 *lb = RCAST(kmp_int64 *, task->shareds); in get_lb()
[all …]
H A Dkmp_alloc.cpp1399 al->fb_data = RCAST(kmp_allocator_t *, traits[i].value); in __kmpc_init_allocator()
1402 al->memkind = RCAST(void **, traits[i].value); in __kmpc_init_allocator()
1501 al = RCAST(kmp_allocator_t *, CCAST(omp_allocator_handle_t, allocator)); in __kmpc_alloc()
1672 al = RCAST(kmp_allocator_t *, CCAST(omp_allocator_handle_t, allocator)); in __kmpc_calloc()
1741 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.cpp3467 traits[count].value = RCAST(omp_uintptr_t, omp_high_bw_mem_alloc); in __kmp_stg_parse_allocator()
3480 traits[count].value = RCAST(omp_uintptr_t, omp_large_cap_mem_alloc); in __kmp_stg_parse_allocator()
3487 traits[count].value = RCAST(omp_uintptr_t, omp_default_mem_alloc); in __kmp_stg_parse_allocator()
3495 traits[count].value = RCAST(omp_uintptr_t, omp_const_mem_alloc); in __kmp_stg_parse_allocator()
3503 traits[count].value = RCAST(omp_uintptr_t, omp_low_lat_mem_alloc); in __kmp_stg_parse_allocator()
3511 traits[count].value = RCAST(omp_uintptr_t, omp_cgroup_mem_alloc); in __kmp_stg_parse_allocator()
3519 traits[count].value = RCAST(omp_uintptr_t, omp_pteam_mem_alloc); in __kmp_stg_parse_allocator()
3527 traits[count].value = RCAST(omp_uintptr_t, omp_thread_mem_alloc); in __kmp_stg_parse_allocator()
5389 const kmp_setting_t *a = RCAST(const kmp_setting_t *, _a); in __kmp_stg_cmp()
5390 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.h219 #define RCAST(type, var) reinterpret_cast<type>(var) macro
275 #define RCAST(type, var) (type)(var)
H A Dkmp_dispatch.cpp1652 init = test_then_add<ST>(RCAST(volatile ST *, &sh->u.s.iteration), in __kmp_dispatch_next_algorithm()
1671 if (compare_and_swap<ST>(RCAST(volatile ST *, &sh->u.s.iteration), in __kmp_dispatch_next_algorithm()
1721 init = test_then_add<ST>(RCAST(volatile ST *, &sh->u.s.iteration), in __kmp_dispatch_next_algorithm()
1746 if (compare_and_swap<ST>(RCAST(volatile ST *, &sh->u.s.iteration), in __kmp_dispatch_next_algorithm()
H A Dkmp_gsupport.cpp1846 __kmpc_doacross_post(&loc, gtid, RCAST(kmp_int64 *, count)); in __kmp_GOMP_doacross_post()
1903 __kmpc_doacross_post(&loc, gtid, RCAST(kmp_int64 *, count)); in KMP_EXPAND_NAME()
H A Dkmp_affinity.cpp1111 sub_id = (int)(RCAST(kmp_intptr_t, obj->userdata)); in __kmp_hwloc_get_sub_id()
1119 lower->userdata = RCAST(void *, sub_id + 1); in __kmp_hwloc_get_sub_id()
H A Dkmp_barrier.cpp1053 (RCAST(volatile char *, in __kmp_hierarchical_barrier_release()
H A Dkmp_lock.cpp1414 RCAST(volatile kmp_int64 *, tail_id_p), KMP_PACK_64(head, head), in __kmp_release_queuing_lock()
H A Dkmp_runtime.cpp6557 KMP_SSCANF(flag_addr_str, "%p", RCAST(void **, &flag_addr)); in __kmp_register_library_startup()