text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_suffix|>de RD_VIEW_UI_FUNCTION_DEF(null); EV_EXPAND_RULE_INFO_FUNCTION_DEF(text); EV_EXPAND_RULE_INFO_FUNCTION_DEF(disasm); EV_EXPAND_RULE_INFO_FUNCTION_DEF(memory); EV_EXPAND_RULE_INFO_FUNCTION_DEF(bitmap); EV_EXPAND_RULE_INFO_FUNCTION_DEF(color); EV_EXPAND_RULE_INFO_FUNCTION_DEF(geo3d); RD_VIEW_UI_FUNCTION_D...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef RADDBG_WIDGETS_H #define RADDBG_WIDGETS_H //////////////////////////////// //~ rjf: Cell Types typedef U32 RD_CellFlags; enum { //- rjf: expander RD_CellFlag_Expander = (1<<0...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> case T_DbgScriptCmdKind_StepInto: t_dbg_send_cmd_and_wait_stop(str8_lit("step_into"), timeout_us); break; case T_DbgScriptCmdKind_StepOut: t_dbg_send_cmd_and_wait_stop(str8_lit("step_out"), timeout_us); break; case T_DbgScriptCmdKind_StepOverInst: t...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> count; RD_Marker *v; } RD_MarkerArray; typedef struct MarkerNode { struct MarkerNode *next; RD_Marker v; } RD_MarkerNode; typedef struct RD_MarkerList { U64 count; RD_MarkerNode *first; RD_MarkerNode *last; } RD_MarkerList; typedef struct RD_DisasmResult { String8 tex...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>include "dwarf/dwarf_coff.h" #include "dwarf/dwarf_elf.h" #include "radcon/radcon.h" #include "radcon/radcon_coff.h" #include "radcon/radcon_cv.h" #include "radcon/radcon_elf.h" #include "radcon/radcon_pdb.h" #include "radcon/radcon_dwarf.h" #include "base/base_inc.c" #include "linker/base_ext/base_inc.c...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #include "lib_rdi/rdi.c" #include "lib_rdi/rdi_parse.c" #if defined(X64_H) # include "rdi/x64/rdi_x64.c" #endif //////////////////////////////// //~ rjf: RDI Enum <=> Base Enum internal Arch arch_f...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>AL VARIABLES")\ X(Constants, constants, "CONSTANTS")\ X(Procedures, procedures, "PROCEDURES")\ X(Scopes, scopes, "SCOPES")\ X(ScopeVMap, scope_vmap, "SCOPE VMAP")\ X(InlineSites, inli...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //- GENERATED CODE C_LINKAGE_BEGIN U8 rdi_reg_code_from_x64_table[189] = { RDI_RegCodeX64_nil, RDI_RegCodeX64_rax, RDI_RegCodeX64_rcx, RDI_RegCodeX64_rdx, RDI_RegCodeX64_rbx, RDI_RegCodeX64_rsp, RDI...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c<|fim_suffix|>TA_H #define RDI_X64_META_H C_LINKAGE_BEGIN extern U8 rdi_reg_code_from_x64_table[189]; C_LINKAGE_END #endif // RDI_X64_META_H <|fim_middle|>) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //- GENERATED CODE #ifndef RDI_X64_ME<|e...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>opensource.org/license/mit/) #include "rdi/x64/generated/rdi_x64.meta.c" <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed <|fim_middle|>under the MIT license (https://<|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyri<|fim_suffix|> "rdi/x64/generated/rdi_x64.meta.h" #endif // RDI_X64_H <|fim_middle|>ght (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef RDI_X64_H #define RDI_X64_H #include<|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://open<|fim_suffix|>= RDI_BinarySectionFlag_Execute; } return(result); } internal RDIM_BinarySectionList c2r_rdi_binary_sections_from_coff_sections(Arena *arena, String8 image_data, String8 string_table, U64 sectab_count, COFF...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef RDI_FROM_COFF_H #define RDI_FROM_COFF_H internal RDI_Arch <|fim_suffix|>ags); internal RDIM_BinarySectionList c2r_rdi_binary_sections_from_coff_sections(Arena *arena, String8 image_d...
fim
EpicGamesExt/raddebugger
c
// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef RDI_FROM_DWARF_H #define RDI_FROM_DWARF_H //////////////////////////////// //~ rjf: Unique Tag Tree Deduplication Types typedef enum D2R_UniqueTagKind { D2R_UniqueTagKind_Type, D2R_UniqueTagKind_Name...
fim
EpicGamesExt/raddebugger
c
// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) // TODO: // // [ ] d2r_types alias size and byte size on __float80 typedef mismatch #if 0 // TODO(rjf): this uses concepts from the old parser - replace with p2r-style exemplar testing to catch regressions inte...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> dst_section->name = name; dst_section->flags = flags; dst_section->voff_first = voff_first; dst_section->voff_opl = voff_opl; dst_section->foff_first = foff_first; dst_section->foff_opl = foff_opl; } } return result; } <|fim_prefix|>// Copyright (c...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>on_table(Arena *arena, String8 data, ELF_Bin *bin, ELF_Shdr64Array *shdrs); #endif // RDI_FROM_ELF_H <|fim_prefix|>// Copyright <|fim_middle|>(c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef RDI_FROM_ELF_H #define RDI_FROM_ELF_H internal RDIM_BinarySe...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>, U32 reg_byte_pos, S64 offset, B32 extra_indirection); internal void p2r_location_case_list_push_over_lvar_addr_range(Arena *arena, RDIM_LocationCaseList *loc_cases, RDIM_Location loc, CV_LvarAddrRange *range, COFF_SectionHeader *section, CV_LvarAddrGap *gaps, U64 gap_count); ///////////////////////////...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>array = push_array(arena, String8, dump_hashes_count); { U64 idx = 0; for EachNode(n, String8Node, rdi_paths.first) { Temp scratch = scratch_begin(0, 0); String8 rdi_path = n->string; String8 path = rdi_path; String8 data = data_from_file_path(scratch....
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef RDI_MAKE_LOCAL_H #define RDI_MAKE_LOCAL_H //- rjf: base layer memory ops #define RDIM_MEMSET_OVERRIDE #define RDIM_MEMCPY_OVERRIDE #define rdim_memset MemorySet #define rdim_memcpy MemoryCop...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //- GENERATED CODE C_LINKAGE_BEGIN String8* r_d3d11_g_vshad_kind_source_table[5] = { &r_d3d11_g_rect_sha<|fim_suffix|>r_shader_src"), str8_lit_comp("r_d3d11_g_mesh_shader_src"), str8_lit_comp("r_d3d...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>;\n" "\n" "struct Vertex2Pixel\n" "{\n" " float4 position : SV_POSITION;\n" " float2 texcoord : TEX;\n" " float4 color : COL;\n" "};\n" "\n" "Vertex2Pixel vs_main(CPU2Vertex c2v)\n" "{\n" " Vertex2Pixel v2p;\n" " v2p.position = mul(float4(c2v.position, 1.f), xform);\n" " v2p.texcoord = c2v.texcoo...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //////////////////////////////// //~ rjf: Input Layout Element Tables global D3D11_INPUT_ELEMENT_DESC r_d3d11_g_rect_ilay_elements[] = { { "POS", 0, DXGI_FORMAT_R32G32B32A32_FLOAT, 0, ...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef RENDER_D3D11_H #define RENDER_D3D11_H #include <combaseapi.h> #include <dcommon.h> #include <initguid.h> #include <windows.h> #include <d3d11_1.h> #include <d3dcompiler.h> #pragma comment(l...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //- GENERATED CODE C_LINKAGE_BEGIN String8 r_tex2d_format_display_string_table[9] = { str8_lit_comp("R8"), str8_lit_comp("RG8"), str8_lit_comp("RGBA8"), str8_lit_comp("BGRA8"), str8_lit_comp("R16"),...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>]; extern U8 r_pass_kind_batch_table[3]; C_LINKAGE_END #endif // RENDER_META_H <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //- GENERATED CODE #ifndef RENDER_META_H #define RENDER_META_H typedef enum R_Tex2DFormat { R_Tex2DFor...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.o<|fim_suffix|>&r_ogl_rect_vshad_src, &r_ogl_blur_vshad_src, }; String8 * r_ogl_shader_kind_pshad_src_table[2] = { &r_ogl_rect_pshad_src, &r_ogl_blur_pshad_src, }; R_OGL_AttributeArray r_ogl_shader_kind_input_attribu...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //- GENERATED CODE #ifndef RENDER_OPENGL_META_H #define RENDER_OPENGL_<|fim_suffix|>.x * texture(tex, texcoord).rgb;\n" " for(int i = 1; i < blur_count; i += 1)\n" " {\n" " float weight = kerne...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>Handle r) { R_OGL_Window *outer = (R_OGL_Window *)r.u64[0]; R_OGL_LNX_Window *w_r = (R_OGL_LNX_Window *)outer->os.u64[0]; eglSwapBuffers(r_ogl_lnx_state->display, w_r->surface); } <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) ...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef RENDER_OPENGL_LINUX_EGL_H #define RENDER_OPENGL_LINUX_EGL_H #define glTexImage3D glTexImage3D__static #define glTexSubImage3D glTexSubImage3D__static #define glActiveTexture glActiveTexture_...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>ug_mode = 1; #endif glXCreateContextAttribsARBProc glXCreateContextAttribsARB = 0; glXCreateContextAttribsARB = (glXCreateContextAttribsARBProc)glXGetProcAddressARB((U8 *)"glXCreateContextAttribsARB"); int context_options[] = { GLX_CONTEXT_MAJOR_VERSION_ARB, 3, GLX_CONTEXT_MINO...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>LX_CONTEXT_FLAGS_ARB 0x2094 #define GLX_CONTEXT_DEBUG_BIT_ARB 0x00000001 #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002 typedef GLXContext (*glXCreateContextAttribsARBProc)(Display*, GLXFBConfig, GLXContext, Bool, const int*); global GLXContext r_ogl_lnx_ctx = 0; ...
fim
EpicGamesExt/raddebugger
c
// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //////////////////////////////// //~ rjf: Backend Includes #if R_OPENGL_LINUX_BACKEND == R_OPENGL_LINUX_BACKEND_GLX # include "glx/render_opengl_linux_glx.c" #elif R_OPENGL_LINUX_BACKEND == R_OPENGL_LINUX_BACKEND...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> #endif // RENDER_OPENGL_LINUX_H <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef RENDER_OPENGL_LINUX_H #define RENDER_OPENGL_LINUX_H //////////////////////////////// //~ rjf: Backend Constants #define R_OPENGL_LINUX_BACKEND...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //////////////////////////////// //~ rjf: OS Portion Includes #if OS_WINDOWS # include "render/opengl/win32/render_opengl_win32.c" #elif OS_LINUX # include "render/opengl/linux/render_opengl_linux.c...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef RENDER_OPENGL_H #define RENDER_OPENGL_H //////////////////////////////// //~ rjf: Defines typedef char GLchar; typedef ptrdiff_t GLsizeiptr; typedef ptrdiff_t GLintptr; #define GL_FRAMEBUF...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>make real gl ctx HGLRC real_ctx = 0; if(pf) { B32 debug_mode = cmd_line_has_flag(cmdline, str8_lit("opengl_debug")); #if BUILD_DEBUG debug_mode = 1; #endif int context_attribs[] = { WGL_CONTEXT_MAJOR_VERSION_ARB, 3, WGL_CONTEXT_MINOR_VERSION_ARB, 3, WGL_CONTEXT_FLAG...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef RENDER_OPENGL_WIN32_H #define RENDER_OPENGL_WIN32_H #include <GL/gl.h> #pragma comment(lib, "opengl32") #define WGL_DRAW_TO_WINDOW_ARB 0x2001 #define WGL_SUPPORT_OPENGL_ARB ...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> if(n == 0 || n->v.kind != kind) { n = push_array(arena, R_PassNode, 1); SLLQueuePush(list->first, list->last, n); list->count += 1; n->v.kind = kind; n->v.params = push_array(arena, U8, r_pass_kind_params_size_table[kind]); } return &n->v; } <|fim_prefix|>// Copyright (c) Epic G...
fim
EpicGamesExt/raddebugger
c
// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef RENDER_CORE_H #define RENDER_CORE_H #define r_hook C_LINKAGE //////////////////////////////// //~ rjf: Generated Code #include "generated/render.meta.h" //////////////////////////////// //~ rjf: Enums ...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #undef LAYER_COLOR #define LAYER_COLOR 0xc22121ff #include "render_core.c" #if R_BACKEND == R_BACKEND_STUB # include "stub/render_stub.c" #elif R_BACKEND == R_BACKEND_D3D11 # include "d3d1<|fim_suf...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> define R_BACKEND R_BACKEND_OPENGL #endif //////////////////////////////// //~ rjf: Main Includes #include "render_core.h" //////////////////////////////// //~ rjf: Backend Includes #if R_BACKEND == R_BACKEND_STUB # include "stub/render_stub.h" #elif R_BACKEND == R_BACKEND_D3D11 # include "d3d11/rende...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> r_hook void r_window_end_frame(WM_Window window, R_Handle window_equip) { } //- rjf: render pass submission r_hook void r_window_submit(WM_Window window, R_Handle window_equip, R_PassList *passes) { } <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource....
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>TUB_H #endif // RENDER_STUB_H <|fim_prefix|>// Copyright (c) <|fim_middle|>Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef RENDER_STUB_H #define RENDER_S<|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>0]); i += 1) { WaitForSingleObject(threads[i], INFINITE); } return 0; } <|fim_prefix|>#include <windows.h> DWORD thread_entry_point(void *p) { for(int i = 0; i < 100000; i += 1) { OutputDebugString("this is a test\n"); } return 0; } int main(int argc, char **argv) { HANDLE thread...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>v.sec_idx <= sections.count) { Assert(c13_lines_idx < c13_lines_count); U64 sec_voff = sections.v[header_node->v.sec_idx - 1].voff; c13_lines[c13_lines_idx++] = cv_c13_line_array_from_data(arena, raw_lines, sec_voff, header_node->v); } else { Asser...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //////////////////////////////// //~ rjf: Build Options #define BUILD_TITLE "ryan_scratch" #define BUILD_CONSOLE_INTERFACE 1 //////////////////////////////// //~ rjf: Includes //- rjf: [h] #includ...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //////////////////////////////// //~ rjf: Build Options #define BUILD_TITLE "textperf" #define OS_FEATURE_GRAPHICAL 1 //////////////////////////////// //~ rjf: Includes //- rjf: [h] #include "base...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>#define BUILD_CONSOLE_INTERFACE 1 #define NO_ASYNC 1 #include "base/base_inc.h" #include "x64/x64.h" #include "linker/hash_table.h" #include "coff/coff.h" #include "coff/coff_parse.h" #include "coff/coff_obj_writer.h" #include "coff/coff_lib_writer.h" #include "pe/pe.h" #include "pe/pe_section_flags.h" #...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>ull: {} break; case Arch_x64: { stap_parse_args_x64(n->string, arg); } break; case Arch_x86: case Arch_arm32: case Arch_arm64: { NotImplemented; } break; default: { InvalidPath; } break; } } scratch_end(scratch); return result; } internal B32 stap_rea...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>lue_size; STAP_ArgType type; union { U64 imm; struct { U32 reg_code; } reg; struct { S64 disp; struct { U32 reg_code; } base; struct { U32 reg_code; } index; U64 scale; } memory_ref; }; } STAP_Arg; typedef struct STA...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #define BUILD_TITLE "STAP Parser Test" #define BUILD_CONSOLE_<|fim_suffix|> (error.size == 0) { goto exit; } passed = 1; exit:; AssertAlways(passed); } <|fim_middle|>INTERFACE 1 #include "...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Ga<|fim_suffix|>lib, member_offsets[member_idx], &member_header); String8 member_data = str8_substr(out_lib, member_header.data_range); COFF_DataType member_type = coff_data_type_from_data(member_data); if (member_type == COFF_DataType_BigObj || member_type == COFF_...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Lic<|fim_suffix|>ensource.org/license/mit/) <|fim_middle|>ensed under the MIT license (https://op<|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>#endif // SYMBOL_SERVER_H <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef SYMBOL_SERVER_H #define SYMBOL_SERVER_H typedef enum SMSV_Status { SMSV_Status_Null, SMSV_Status_Pending, } SMSV_Status; internal void smsv_init(...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #include "symbol_server.c" #if OS_WINDOWS # include<|fim_suffix|>c" #else # include "symbol_server_stub.c" #endif <|fim_middle|> "win32/symbol_server/win32_symbol_server.<|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> #endif // SYMBOL_SERVER_INC_H <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef SYMBOL_SERVER_INC_H #define SYMBOL_SERVER_INC_H #include "symbol_server.h" #if OS_WINDO<|fim_middle|>WS # include "win32/symbol_server/win32_symb...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>ll_local_path(String8 path) { } internal SMSV_Status smsv_status_from_local_path(String8 path) { SMSV_Status status = SMSV_Status_Null; return status; } <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) internal void smsv_init(voi...
fim
EpicGamesExt/raddebugger
c
// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef SYMBOL_SERVER_STUB_H #define SYMBOL_SERVER_STUB_H #endif // SYMBOL_SERVER_STUB_H <|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //- GENERATED CODE C_LINKAGE_BEGIN String8 txt_lang_kind_ext_table[8] = { str8_lit_comp("null"), str8_lit_comp("c"), str8_lit_comp("cpp"), str8_lit_comp("odin"), str8_lit_comp("jai"), str8_lit_comp(...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>lang_kind_table[8]; extern TXT_TokenizerRuleArray txt_tokenizer_rules_from_lang_kind_table[8]; extern String8 txt_keywords__null[1]; extern String8 txt_multichar_symbols__null[1]; extern TXT_TokenizerRule txt_tokenizer_rules__null[1]; extern String8 txt_keywords__c[32]; extern String8 txt_multichar_symbol...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>okenArray TXT_TokenArray; struct TXT_TokenArray { U64 count; TXT_Token *v; }; typedef struct TXT_TokenArrayArray TXT_TokenArrayArray; struct TXT_TokenArrayArray { U64 count; TXT_TokenArray *v; }; typedef struct TXT_ScopeNode TXT_ScopeNode; struct TXT_ScopeNode { U64 first_num; U64 last_num; ...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>#include <assert.h> #include <stdbool.h> #include <string.h> #include "blake3.h" #include "blake3_impl.h" const char *blake3_version(void) { return BLAKE3_VERSION_STRING; } INLINE void chunk_state_init(blake3_chunk_state *self, const uint32_t key[8], uint8_t flags) { memc...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>#ifndef BLAKE3_H #define BLAKE3_H #include <stddef.h> #include <stdint.h> #if !defined(BLAKE3_API) # if defined(_WIN32) || defined(__CYGWIN__) # if defined(BLAKE3_DLL) # if defined(BLAKE3_DLL_EXPORTS) # define BLAKE3_API __declspec(dllexport) # else # define BLAKE3_API __declspec(d...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>#include <stdbool.h> #include <stddef.h> #include <stdint.h> #include "blake3_impl.h" #if defined(IS_X86) #if defined(_MSC_VER) #include <intrin.h> #elif defined(__GNUC__) #include <immintrin.h> #else #undef IS_X86 /* Unimplemented! */ #endif #endif #define MAYBE_UNUSED(x) (void)((x)) #if defined(IS_X...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>und_down_to_power_of_2(uint64_t x) { return 1ULL << highest_one(x | 1); } INLINE uint32_t counter_low(uint64_t counter) { return (uint32_t)counter; } INLINE uint32_t counter_high(uint64_t counter) { return (uint32_t)(counter >> 32); } INLINE uint32_t load32(const void *src) { const uint8_t *p = (...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> h_vecs[7], set1_128(IV[0]), set1_128(IV[1]), set1_128(IV[2]), set1_128(IV[3]), counter_low_vec, counter_high_vec, block_len_vec, block_flags_vec, }; round_fn4(v, msg_vecs, 0); round_fn4(v, msg_vecs, 1); round_fn4(v, msg_vecs, 2); round_fn4(v, msg_vecs, 3); ...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>#include "blake3_impl.h" #include <string.h> INLINE uint32_t rotr32(uint32_t w, uint32_t c) { return (w >> c) | (w << (32 - c)); } INLINE void g(uint32_<|fim_suffix|> flags_end, out); if (increment_counter) { counter += 1; } inputs += 1; num_inputs -= 1; out ...
fim
EpicGamesExt/raddebugger
c
#include <assert.h> #include <stdbool.h> #include <string.h> #include "blake3.h" #include "blake3_impl.h" const char *blake3_version(void) { return BLAKE3_VERSION_STRING; } INLINE void chunk_state_init(blake3_chunk_state *self, const uint32_t key[8], uint8_t flags) { memcpy(self->cv, k...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>#ifndef BLAKE3_H #define BLAKE3_H #include <stddef.h> #include <stdint.h> #if !defined(BLAKE3_API) # if defined(_WIN32) || defined(__CYGWIN__) # if defined(BLAKE3_DLL) # if defined(BLAKE3_DLL_EXPORTS) # define BLAKE3_API __declspec(dllexport) # else # define BLAKE3_API __declspec(d...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>vecs, 0); round_fn(v, msg_vecs, 1); round_fn(v, msg_vecs, 2); round_fn(v, msg_vecs, 3); round_fn(v, msg_vecs, 4); round_fn(v, msg_vecs, 5); round_fn(v, msg_vecs, 6); h_vecs[0] = xorv(v[0], v[8]); h_vecs[1] = xorv(v[1], v[9]); h_vecs[2] = xorv(v[2], v[10]); h_vecs[3]...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>#include "blake3_impl.h" #include <immintrin.h> #define _mm_shuffle_ps2(a, b, c) \ (_mm_castps_si128( \ _mm_shuffle_ps(_mm_castsi128_ps(a), _mm_castsi128_ps(b), (c)))) INLINE __m128i loadu_12...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>ny_portable(inputs, num_inputs, blocks, key, counter, increment_counter, flags, flags_start, flags_end, out); } // The dynamically detected SIMD degree of the current platform. size_t blake3_simd_degree(void) { #if defined(IS_X86) const enum cpu_f...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>ocks, const uint32_t key[8], uint64_t counter, bool increment_counter, uint8_t flags, uint8_t flags_start, uint8_t flags_end, uint8_t *out); #endif #if !defined(BLAKE3_NO_SSE41) void blake3_compress_in_place_sse41(uint32_t cv...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>n(const uint8_t *const *inputs, size_t num_inputs, size_t blocks, const uint32_t key[8], uint64_t counter, bool increment_counter, uint8_t flags, uint8_t flags_start, uint8_t flags_end, uint8_t *out...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>v[4] = state[4] ^ state[12]; cv[5] = state[5] ^ state[13]; cv[6] = state[6] ^ state[14]; cv[7] = state[7] ^ state[15]; } void blake3_compress_xof_portable(const uint32_t cv[8], const uint8_t block[BLAKE3_BLOCK_LEN], uint8_t block_l...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>#include "blake3_impl.h" #include <immintrin.h> #define DEGREE 4 #define _mm_shuffle_ps2(a, b, c) \ (_mm_castps_si128( \ _mm_shuffle_ps(_mm_castsi128_ps(a), _mm_castsi128_ps(b), (c)))) INLIN...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>#include "blake3_impl.h" #include <immintrin.h> #define DEGREE 4 #define _mm_shuffle_ps2(a, b, c) \ (_mm_castps_si128( \ _mm_shuffle_ps(_mm_castsi128_ps(a), _mm_castsi128_ps(b), (c)))) INLIN...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>#pragma once #include <stddef.h> #include <stdint.h> // returns index of bit that is equal to "bit" value in [lo,hi) interval starting from lo position (lsb->msb) // returns "hi" value if none found, or interval is empty // "bit" value must be 0 or 1 // "bits" array should be large enough to allow index...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> (1 << 1) static inline int md5_cpuid(void) { static int cpuid; int result = cpuid; if (result == 0) { int info[4]; MD5_CPUID_EX(7, 0, info); int has_bmi = info[1] & (1 << 3); int has_bmi2 = info[1] & (1 << 8); result |= MD5_CPUID_INIT; i...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>#pragma once // https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf #include <stddef.h> #include <stdint.h> // // interface // #define SHA1_DIGEST_SIZE 20 #define SHA1_BLOCK_SIZE 64 typedef struct { uint8_t buffer[SHA1_BLOCK_SIZE]; uint64_t count; uint32_t state[5]; } sha1_c...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>xt state s.val[0] = vaddq_u32(s.val[0], last.val[0]); s.val[1] = vaddq_u32(s.val[1], last.val[1]); } while (--count); // save the new state vst1q_u32_x2(state, s); #undef QROUND } #endif // defined(__aarch64__) || defined(_M_ARM64) static void sha256_process(uint32_...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>#pragma once // https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf // https://www.rfc-editor.org/rfc/rfc6234 #include <stddef.h> #include <stdint.h> // // interface // #define SHA384_DIGEST_SIZE 48 #define SHA512_DIGEST_SIZE 64 #define SHA512_BLOCK_SIZE 128 typedef struct { uint8_t bu...
fim
EpicGamesExt/raddebugger
c
#include <string.h> //------------------------------------------------- // UINTr = int the size of a register #ifdef __RAD64REGS__ #define RAD_UINTr RAD_U64 #define RAD_SINTr RAD_S64 #define readR read64 #define writeR write64 #define rrClzBytesR rrClzBytes64 #define rrCtzBytesR rrCtzBytes64 #else #define RAD_UI...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>#ifndef _RAD_LZB_SIMPLE_H_ #define _RAD_LZB_SIMPLE_H_ /*====================================================== To encode : Set up an rr_lzb_simple_context fill out m_tableSizeBits (14-16 is typical) allocate m_hashTable rr_lzb_simple_context c; c.m_tableSizeBits = 14; c.m_hashTable = OODLE_M...
fim
EpicGamesExt/raddebugger
c
// New radsort. #if !defined(RADSORT_H) #define RADSORT_H // To Use: // Create a less_than function and then call radsort. // // So, for an array of unsigned ints: // // RSFORCEINLINE int int_is_before( void * elementa, void * elementb ) // { // return *(unsigned int*)elementa < *(unsigned int*)elem...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>+; used = (used << 1) + cnt[tbl_bits + sub_bits]; } tbl_end = sub_start + (1 << sub_bits); tbl[sub_prefix] = (sub_start << 16) | 0x10 | (sub_bits & 0xf); } /* fill sub-table */ entry = (*gen->sorted << 16) | ((gen->len - tbl_bits) & 0xf); gen->sorted++; i = su...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>; if ((f[0] != 'u') && (i < 0)) { n64 = (stbsp__uint32)-i; fl |= STBSP__NEGATIVE; } } #ifndef STB_SPRINTF_NOFLOAT if (fl & STBSP__METRIC_SUFFIX) { if (n64 < 1024) pr = 0; else if (pr == -1) pr = 1; fv = (dou...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>/* * xxHash - Extremely Fast Hash algorithm * Development source file for `xxh3` * Copyright (C) 2019-2021 Yann Collet * * BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php) * * Redistribution and use in source and binary forms, with or without * modification, are permitted...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>/* * xxHash - Extremely Fast Hash algorithm * Copyright (C) 2020-2021 Yann Collet * * BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php) * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>ndif /* XXH_X86DISPATCH_H_13563687684 */ <|fim_prefix|>/* * xxHash - XXH3 Dispatcher for x86-based targets * Copyright (C) 2020-2021 Yann Collet * * BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php) * * Redistribution and use in source and binary forms, with or without * mo...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> /* * xxhash.c instantiates functions defined in xxhash.h */ #define XXH_STATIC_LINKING_ONLY /* access advanced declarations */ #define XXH_IMPLEMENTATION /* access definitions */ #include "xxhash.h" <|fim_prefix|>/* * xxHash - Extremely Fast Hash algorithm * Copyright (C) 2012-2021 Yann Collet...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) // command line global String8 g_stdout_file_name = str8_lit_comp("torture.out"); global String8 g_wdir; global String8 g_exemplar_dir; global String8 g_input_data_dir; global Str...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #pragma once //////////////////////////////// #define T_RESET "\x1b[0m" #define T_RED "\x1b[31m" #define T_GREEN "\x1b[32m" #define T_YELLOW "\x1b[33m" #define T_BLUE "\x1b[34m" typedef str...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //////////////////////////////// // Build Options #define BUILD_TITLE "TORTURE" #define BUILD_TESTS 1 #define BUILD_CONSOLE_INTERFACE 1 #define OS_FEATURE_GRAPHICAL 1 #define DMN_INIT_MANUAL 1 #def...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>set_next_omit_flags(UI_BoxFlags v) { UI_StackSetNextImpl(ui_state, OmitFlags, omit_flags, UI_BoxFlags, v) } internal UI_FocusKind ui_set_next_focus_hot(UI_FocusKind v) { UI_StackSetNextImpl(ui_state, FocusHot, focus_hot, UI_FocusKind, v) } internal UI_FocusKind ui_set_next_focus_active(UI_FocusKind v) { U...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //- GENERATED CODE #ifndef UI_META_H #define UI_META_H typedef struct UI_ParentNode UI_ParentNode; struct UI_ParentNode{UI_ParentNode *next; UI_Box * v;}; typedef struct UI_ChildLayoutAxisNode UI_C...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>rows + 1); //- rjf: compute cursor row range from cursor item Rng1S64 cursor_visibility_row_range = {0}; if(params->row_blocks.count == 0) { cursor_visibility_row_range = r1s64(cursor_item_idx-1, cursor_item_idx+3); } else { cursor_visibilit...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>id ui_scroll_list_begin(UI_ScrollListParams *params, UI_ScrollPt *scroll_pt_out, Vec2S64 *cursor_out, Vec2S64 *mark_out, Rng1S64 *visible_row_range_out, UI_ScrollListSignal *signal_out); internal void ui_scroll_list_end(void); //////////////////////////////// //~ rjf: Macro Loop Wrappers #define UI_Row ...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef UI_H #define UI_H //////////////////////////////// //~ rjf: Icon Info typedef enum UI_IconKind { UI_IconKind_Null, UI_IconKind_RightArrow, UI_IconKind_DownArrow, UI_IconKind_LeftArr...
fim
EpicGamesExt/raddebugger
c