003 File Manager
Current Path:
/usr/src/contrib/llvm-project/openmp/runtime/src
usr
/
src
/
contrib
/
llvm-project
/
openmp
/
runtime
/
src
/
📁
..
📄
dllexports
(49.75 KB)
📄
exports_so.txt
(2.97 KB)
📄
extractExternal.cpp
(14.86 KB)
📁
i18n
📁
include
📄
kmp.h
(150.49 KB)
📄
kmp_affinity.cpp
(184.91 KB)
📄
kmp_affinity.h
(28.58 KB)
📄
kmp_alloc.cpp
(69.75 KB)
📄
kmp_atomic.cpp
(179.29 KB)
📄
kmp_atomic.h
(90.96 KB)
📄
kmp_barrier.cpp
(88.39 KB)
📄
kmp_cancel.cpp
(11.35 KB)
📄
kmp_config.h.cmake
(3.37 KB)
📄
kmp_csupport.cpp
(138.04 KB)
📄
kmp_debug.cpp
(3.54 KB)
📄
kmp_debug.h
(8.17 KB)
📄
kmp_debugger.cpp
(10.44 KB)
📄
kmp_debugger.h
(1.97 KB)
📄
kmp_dispatch.cpp
(90.11 KB)
📄
kmp_dispatch.h
(17.22 KB)
📄
kmp_dispatch_hier.h
(41.94 KB)
📄
kmp_environment.cpp
(14.35 KB)
📄
kmp_environment.h
(2.22 KB)
📄
kmp_error.cpp
(16 KB)
📄
kmp_error.h
(2.11 KB)
📄
kmp_ftn_cdecl.cpp
(1018 B)
📄
kmp_ftn_entry.h
(41.9 KB)
📄
kmp_ftn_extra.cpp
(971 B)
📄
kmp_ftn_os.h
(30.82 KB)
📄
kmp_ftn_stdcall.cpp
(895 B)
📄
kmp_global.cpp
(19.3 KB)
📄
kmp_gsupport.cpp
(91.3 KB)
📄
kmp_i18n.cpp
(27.56 KB)
📄
kmp_i18n.h
(6.77 KB)
📄
kmp_import.cpp
(1.04 KB)
📄
kmp_io.cpp
(6.38 KB)
📄
kmp_io.h
(1.1 KB)
📄
kmp_itt.cpp
(4.96 KB)
📄
kmp_itt.h
(14.32 KB)
📄
kmp_itt.inl
(38.74 KB)
📄
kmp_lock.cpp
(134.18 KB)
📄
kmp_lock.h
(52.92 KB)
📄
kmp_omp.h
(8.34 KB)
📄
kmp_os.h
(44.1 KB)
📄
kmp_platform.h
(5.35 KB)
📄
kmp_runtime.cpp
(289.73 KB)
📄
kmp_safe_c_api.h
(2.28 KB)
📄
kmp_sched.cpp
(37.33 KB)
📄
kmp_settings.cpp
(191.93 KB)
📄
kmp_settings.h
(3.26 KB)
📄
kmp_stats.cpp
(29.13 KB)
📄
kmp_stats.h
(40.94 KB)
📄
kmp_stats_timing.cpp
(3.59 KB)
📄
kmp_stats_timing.h
(3.6 KB)
📄
kmp_str.cpp
(22.28 KB)
📄
kmp_str.h
(4.48 KB)
📄
kmp_stub.cpp
(9.68 KB)
📄
kmp_stub.h
(1.56 KB)
📄
kmp_taskdeps.cpp
(29.79 KB)
📄
kmp_taskdeps.h
(3.93 KB)
📄
kmp_tasking.cpp
(177.28 KB)
📄
kmp_threadprivate.cpp
(26.22 KB)
📄
kmp_utility.cpp
(10.73 KB)
📄
kmp_version.cpp
(7.04 KB)
📄
kmp_version.h
(2.38 KB)
📄
kmp_wait_release.cpp
(905 B)
📄
kmp_wait_release.h
(32.1 KB)
📄
kmp_wrapper_getpid.h
(2.04 KB)
📄
kmp_wrapper_malloc.h
(7.2 KB)
📄
libomp.rc.var
(2.81 KB)
📄
ompt-event-specific.h
(4.38 KB)
📄
ompt-general.cpp
(23.73 KB)
📄
ompt-internal.h
(3.62 KB)
📄
ompt-specific.cpp
(14.43 KB)
📄
ompt-specific.h
(5.32 KB)
📄
test-touch.c
(688 B)
📁
thirdparty
📄
tsan_annotations.cpp
(5.92 KB)
📄
tsan_annotations.h
(6.77 KB)
📄
z_Linux_asm.S
(41.09 KB)
📄
z_Linux_util.cpp
(81.69 KB)
📄
z_Windows_NT-586_asm.asm
(30.37 KB)
📄
z_Windows_NT-586_util.cpp
(3.49 KB)
📄
z_Windows_NT_util.cpp
(52.15 KB)
Editing: kmp_str.h
/* * kmp_str.h -- String manipulation routines. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef KMP_STR_H #define KMP_STR_H #include <stdarg.h> #include <string.h> #include "kmp_os.h" #ifdef __cplusplus extern "C" { #endif // __cplusplus #if KMP_OS_WINDOWS #define strdup _strdup #endif /* some macros to replace ctype.h functions */ #define TOLOWER(c) ((((c) >= 'A') && ((c) <= 'Z')) ? ((c) + 'a' - 'A') : (c)) struct kmp_str_buf { char *str; // Pointer to buffer content, read only. unsigned int size; // Do not change this field! int used; // Number of characters printed to buffer, read only. char bulk[512]; // Do not use this field! }; // struct kmp_str_buf typedef struct kmp_str_buf kmp_str_buf_t; #define __kmp_str_buf_init(b) \ { \ (b)->str = (b)->bulk; \ (b)->size = sizeof((b)->bulk); \ (b)->used = 0; \ (b)->bulk[0] = 0; \ } void __kmp_str_buf_clear(kmp_str_buf_t *buffer); void __kmp_str_buf_reserve(kmp_str_buf_t *buffer, int size); void __kmp_str_buf_detach(kmp_str_buf_t *buffer); void __kmp_str_buf_free(kmp_str_buf_t *buffer); void __kmp_str_buf_cat(kmp_str_buf_t *buffer, char const *str, int len); void __kmp_str_buf_catbuf(kmp_str_buf_t *dest, const kmp_str_buf_t *src); int __kmp_str_buf_vprint(kmp_str_buf_t *buffer, char const *format, va_list args); int __kmp_str_buf_print(kmp_str_buf_t *buffer, char const *format, ...); void __kmp_str_buf_print_size(kmp_str_buf_t *buffer, size_t size); /* File name parser. Usage: kmp_str_fname_t fname = __kmp_str_fname_init( path ); // Use fname.path (copy of original path ), fname.dir, fname.base. // Note fname.dir concatenated with fname.base gives exact copy of path. __kmp_str_fname_free( & fname ); */ struct kmp_str_fname { char *path; char *dir; char *base; }; // struct kmp_str_fname typedef struct kmp_str_fname kmp_str_fname_t; void __kmp_str_fname_init(kmp_str_fname_t *fname, char const *path); void __kmp_str_fname_free(kmp_str_fname_t *fname); // Compares file name with specified pattern. If pattern is NULL, any fname // matched. int __kmp_str_fname_match(kmp_str_fname_t const *fname, char const *pattern); /* The compiler provides source locations in string form ";file;func;line;col;;". It is not convenient for manipulation. This structure keeps source location in more convenient form. Usage: kmp_str_loc_t loc = __kmp_str_loc_init( ident->psource, 0 ); // use loc.file, loc.func, loc.line, loc.col. // loc.fname is available if second argument of __kmp_str_loc_init is true. __kmp_str_loc_free( & loc ); If psource is NULL or does not follow format above, file and/or func may be NULL pointers. */ struct kmp_str_loc { char *_bulk; // Do not use thid field. kmp_str_fname_t fname; // Will be initialized if init_fname is true. char *file; char *func; int line; int col; }; // struct kmp_str_loc typedef struct kmp_str_loc kmp_str_loc_t; kmp_str_loc_t __kmp_str_loc_init(char const *psource, int init_fname); void __kmp_str_loc_free(kmp_str_loc_t *loc); int __kmp_str_eqf(char const *lhs, char const *rhs); char *__kmp_str_format(char const *format, ...); void __kmp_str_free(char **str); int __kmp_str_match(char const *target, int len, char const *data); int __kmp_str_match_false(char const *data); int __kmp_str_match_true(char const *data); void __kmp_str_replace(char *str, char search_for, char replace_with); void __kmp_str_split(char *str, char delim, char **head, char **tail); char *__kmp_str_token(char *str, char const *delim, char **buf); int __kmp_str_to_int(char const *str, char sentinel); void __kmp_str_to_size(char const *str, size_t *out, size_t dfactor, char const **error); void __kmp_str_to_uint(char const *str, kmp_uint64 *out, char const **error); #ifdef __cplusplus } // extern "C" #endif // __cplusplus #endif // KMP_STR_H // end of file //
Upload File
Create Folder