name
stringlengths
1
473k
code
stringlengths
7
647k
asm
stringlengths
4
3.39M
file
stringlengths
8
196
deVsprintf
int deVsprintf (char* string, size_t size, const char* format, va_list list) { int res; DE_ASSERT(string && format); #if (DE_COMPILER == DE_COMPILER_MSC) # if (DE_OS == DE_OS_WINCE) res = _vsnprintf(string, size, format, list); # else res = vsnprintf_s(string, size, _TRUNCATE, format, list); # endif #else res ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx callq 0x4cbbe0 movl %eax, -0x24(%rbp) movl -0x24(%rbp), %eax addq $0x30, %rsp popq %rbp retq n...
/kaydenl[P]VK-GL-CTS/framework/delibs/debase/deString.c
deSprintf
int deSprintf (char* string, size_t size, const char* format, ...) { va_list list; int res; DE_ASSERT(string && format); va_start(list, format); res = deVsprintf(string, size, format, list); va_end(list); return res; }
pushq %rbp movq %rsp, %rbp subq $0xf0, %rsp testb %al, %al je 0xe0103b movaps %xmm0, -0xc0(%rbp) movaps %xmm1, -0xb0(%rbp) movaps %xmm2, -0xa0(%rbp) movaps %xmm3, -0x90(%rbp) movaps %xmm4, -0x80(%rbp) movaps %xmm5, -0x70(%rbp) movaps %xmm6, -0x60(%rbp) movaps %xmm7, -0x50(%rbp) movq %r9, -0xc8(%rbp) movq %r8, -0xd0(%rb...
/kaydenl[P]VK-GL-CTS/framework/delibs/debase/deString.c
deStrcat
char* deStrcat (char* s1, size_t size, const char* s2) { #if (DE_COMPILER == DE_COMPILER_MSC) && (DE_OS != DE_OS_WINCE) (void)strcat_s(s1, size, s2); return s1; #else return strncat(s1, s2, size); #endif }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x10(%rbp), %rdx callq 0x4cbd80 addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
/kaydenl[P]VK-GL-CTS/framework/delibs/debase/deString.c
main
int main(int argc, char **argv) { zip_source_t *from; zip_source_t *to; int c, err; int compress = 1; int decompress = 0; progname = argv[0]; while ((c = getopt(argc, argv, "du")) != -1) { switch (c) { case 'd': compress = 0; decompress = 1; break; case 'u': compres...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movl %edi, %ebp movq (%rsi), %rax movq %rax, 0x3bb2(%rip) # 0x6138 movb $0x1, %cl xorl %edx, %edx leaq 0x1a73(%rip), %r14 # 0x4004 movl %ecx, %r12d movl %edx, %r15d movl %ebp, %edi movq %rbx, %rsi movq %r14, %rdx call...
/Bios597407[P]libzip/regress/hole.c
open_file
static zip_source_t * open_file(const char *fname) { zip_error_t error; zip_source_t *src; zip_error_init(&error); if ((src = zip_source_file_create(fname, 0, 0, &error)) == NULL) { fprintf(stderr, "%s: can't open file %s: %s\n", progname, fname, zip_error_strerror(&error)); zip_error_fini(&error); ...
pushq %r14 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx leaq 0x8(%rsp), %r14 movq %r14, %rdi callq 0x21d0 movq %rbx, %rdi xorl %esi, %esi xorl %edx, %edx movq %r14, %rcx callq 0x2050 testq %rax, %rax je 0x26ed addq $0x18, %rsp popq %rbx popq %r14 retq leaq 0x8(%rsp), %rdi movq %rbx, %rsi callq 0x229e
/Bios597407[P]libzip/regress/hole.c
source_hole_create
zip_source_t * source_hole_create(const char *fname, int flags, zip_error_t *error) { hole_t *ud = hole_new(fname, flags, error); if (ud == NULL) { return NULL; } return zip_source_function_create(source_hole_cb, ud, error); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rdx, %r15 movl %esi, %ebp movq %rdi, %r12 movl $0x28, %edi callq 0x2180 testq %rax, %rax je 0x2900 movq %rax, %rbx movq %r12, %rdi callq 0x2220 movq %rax, 0x10(%rbx) testq %rax, %rax je 0x28f8 movl $0x28, %edi callq 0x2180 testq %r...
/Bios597407[P]libzip/regress/source_hole.c
main
int main(int argc, char** argv) { if (argc) if (argc < 3) { std::cerr << "Usage: " << argv[0] << " in.pic out.png\n"; return 1; } auto const in_filename = argv[1]; auto const out_filename = argv[2]; auto images = LoadSpritesheet(in_filename); auto const spritesheet_width = 10; auto c...
pushq %rbp movq %rsp, %rbp subq $0x120, %rsp # imm = 0x120 movl $0x0, -0x4(%rbp) movl %edi, -0x8(%rbp) movq %rsi, -0x10(%rbp) cmpl $0x0, -0x8(%rbp) je 0x2544 cmpl $0x3, -0x8(%rbp) jge 0x2542 movq 0xfadc(%rip), %rdi # 0x11fe8 leaq 0x9af1(%rip), %rsi # 0xc004 callq 0x21b0 movq %rax, %rdi movq -0x10(%...
/footballhead[P]explorer-utils/mksheet/mksheet.cc
Image::Blit(Image const&, Image const&, int, int)
void Image::Blit(Image const& src, Image const& mask, int x, int y) { for (auto yy = 0; yy < src.GetHeight(); ++yy) { for (auto xx = 0; xx < src.GetWidth(); ++xx) { if (mask.Get(xx, yy) == color_black) { Set(xx + x, yy + y, src.Get(xx, yy)); } } } }
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movl %r8d, -0x20(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x38(%rbp) movl $0x0, -0x24(%rbp) movl -0x24(%rbp), %eax movl %eax, -0x3c(%rbp) movq -0x10(%rbp), %rdi callq 0x2a00 movl %eax, %...
/footballhead[P]explorer-utils/explorer-utils/image.cc
(anonymous namespace)::LoadCgaSpritesheet(std::vector<unsigned char, std::allocator<unsigned char>> const&)
std::vector<Image> LoadCgaSpritesheet(std::vector<uint8_t> const& data) { auto const num_images = data.size() / kImageAlignmentInBytes; std::vector<Image> images(num_images, Image(kImageWidth, kImageHeight)); for (auto image_index = 0; image_index < num_images; ++image_index) { auto& image = images[image_ind...
pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movq %rdi, -0x98(%rbp) movq %rdi, %rax movq %rax, -0xa0(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rdi callq 0x4590 shrq $0x8, %rax movq %rax, -0x18(%rbp) movb $0x0, -0x19(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x90(%rbp)...
/footballhead[P]explorer-utils/explorer-utils/spritesheet.cc
(anonymous namespace)::LoadEgaSpritesheet(std::vector<unsigned char, std::allocator<unsigned char>> const&)
std::vector<Image> LoadEgaSpritesheet(std::vector<uint8_t> const& data) { auto const num_images = data.size() / kImageAlignmentInBytes; std::vector<Image> images(num_images, Image(kImageWidth, kImageHeight)); // TODO 15x15 for (auto image_index = 0; image_index < num_images; ++image_...
pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movq %rdi, -0xa0(%rbp) movq %rdi, %rax movq %rax, -0xa8(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rdi callq 0x4590 shrq $0x8, %rax movq %rax, -0x18(%rbp) movb $0x0, -0x19(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x98(%rbp) leaq -0x40(%rbp), %rdi mo...
/footballhead[P]explorer-utils/explorer-utils/spritesheet.cc
LoadSpritesheet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::vector<Image> LoadSpritesheet(std::string const& filename) { auto const data = ReadBinaryFile(filename); if (memcmp(data.data(), cga_header.data(), cga_header.size()) == 0) { return LoadCgaSpritesheet(data); } if (memcmp(data.data(), ega_header.data(), ega_header.size()) == 0) { return LoadEgaSprit...
pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x58(%rbp) movq %rdi, %rax movq %rax, -0x50(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rsi leaq -0x28(%rbp), %rdi callq 0x51c0 leaq -0x28(%rbp), %rdi callq 0x4520 movq %rax, -0x48(%rbp) leaq 0x7d19(%rip), %rdi # 0xc0c5 callq 0x4540 ...
/footballhead[P]explorer-utils/explorer-utils/spritesheet.cc
ReadBinaryFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::vector<uint8_t> ReadBinaryFile(std::string const& file) { std::ifstream in(file, std::ios_base::binary); if (!in.good()) { throw std::runtime_error("Failed to open file: "s + file); } return std::vector<uint8_t>(std::istreambuf_iterator<char>(in), std::istreambuf_iterator...
pushq %rbp movq %rsp, %rbp subq $0x2c0, %rsp # imm = 0x2C0 movq %rdi, -0x2a8(%rbp) movq %rdi, %rax movq %rax, -0x2a0(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rsi leaq -0x218(%rbp), %rdi movl $0x4, %edx callq 0x22c0 movq -0x218(%rbp), %rax movq -0x18(%rax), %rax leaq -0x218(%rbp,%...
/footballhead[P]explorer-utils/explorer-utils/file.cc
stbi_write_tga
STBIWDEF int stbi_write_tga(char const *filename, int x, int y, int comp, const void *data) { stbi__write_context s = { 0 }; if (stbi__start_write_file(&s,filename)) { int r = stbi_write_tga_core(&s, x, y, comp, (void *) data); stbi__end_write_file(&s); return r; } else return 0; }
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq %r8, -0x28(%rbp) leaq -0x80(%rbp), %rdi xorl %esi, %esi movl $0x58, %edx callq 0x20f0 movq -0x10(%rbp), %rsi leaq -0x80(%rbp), %rdi callq 0x64e0 cmpl $0x0, %eax je 0x6b0e movl -0x...
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
stbiw__zlib_bitrev
static int stbiw__zlib_bitrev(int code, int codebits) { int res=0; while (codebits--) { res = (res << 1) | (code & 1); code >>= 1; } return res; }
pushq %rbp movq %rsp, %rbp movl %edi, -0x4(%rbp) movl %esi, -0x8(%rbp) movl $0x0, -0xc(%rbp) movl -0x8(%rbp), %eax movl %eax, %ecx addl $-0x1, %ecx movl %ecx, -0x8(%rbp) cmpl $0x0, %eax je 0x7c3b movl -0xc(%rbp), %eax shll %eax movl -0x4(%rbp), %ecx andl $0x1, %ecx orl %ecx, %eax movl %eax, -0xc(%rbp) movl -0x4(%rbp), ...
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
stbiw__encode_png_line
static void stbiw__encode_png_line(unsigned char *pixels, int stride_bytes, int width, int height, int y, int n, int filter_type, signed char *line_buffer) { static int mapping[] = { 0,1,2,3,4 }; static int firstmap[] = { 0,1,0,5,6 }; int *mymap = (y != 0) ? mapping : firstmap; int i; int type = mymap[fi...
pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq 0x18(%rbp), %rax movl 0x10(%rbp), %eax movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl %ecx, -0x14(%rbp) movl %r8d, -0x18(%rbp) movl %r9d, -0x1c(%rbp) movl -0x18(%rbp), %edx leaq 0x9fb2(%rip), %rax # 0x122e0 leaq 0x9f8b(%rip), %rcx # 0x1...
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
stbi_write_png
STBIWDEF int stbi_write_png(char const *filename, int x, int y, int comp, const void *data, int stride_bytes) { FILE *f; int len; unsigned char *png = stbi_write_png_to_mem((const unsigned char *) data, stride_bytes, x, y, comp, &len); if (png == NULL) return 0; f = stbiw__fopen(filename, "wb"); if (...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq %r8, -0x28(%rbp) movl %r9d, -0x2c(%rbp) movq -0x28(%rbp), %rdi movl -0x2c(%rbp), %esi movl -0x14(%rbp), %edx movl -0x18(%rbp), %ecx movl -0x1c(%rbp), %r8d leaq -0x3c(%rbp), %r9 ca...
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
stbiw__fopen
static FILE *stbiw__fopen(char const *filename, char const *mode) { FILE *f; #if defined(_MSC_VER) && defined(STBI_WINDOWS_UTF8) wchar_t wMode[64]; wchar_t wFilename[1024]; if (0 == MultiByteToWideChar(65001 /* UTF8 */, 0, filename, -1, wFilename, sizeof(wFilename))) return 0; if (0 == MultiByteToWide...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x2240 movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
stbi_write_png_to_func
STBIWDEF int stbi_write_png_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int stride_bytes) { int len; unsigned char *png = stbi_write_png_to_mem((const unsigned char *) data, stride_bytes, x, y, comp, &len); if (png == NULL) return 0; func(context, png, len); ST...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movl 0x10(%rbp), %eax movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movl %ecx, -0x20(%rbp) movl %r8d, -0x24(%rbp) movq %r9, -0x30(%rbp) movq -0x30(%rbp), %rdi movl 0x10(%rbp), %esi movl -0x1c(%rbp), %edx movl -0x20(%rbp), %ecx movl -0x24(%rbp), %r8d lea...
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
stbi_write_jpg
STBIWDEF int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality) { stbi__write_context s = { 0 }; if (stbi__start_write_file(&s,filename)) { int r = stbi_write_jpg_core(&s, x, y, comp, data, quality); stbi__end_write_file(&s); return r; } else ret...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq %r8, -0x28(%rbp) movl %r9d, -0x2c(%rbp) leaq -0x88(%rbp), %rdi xorl %esi, %esi movl $0x58, %edx callq 0x20f0 movq -0x10(%rbp), %rsi leaq -0x88(%rbp), %rdi callq 0x64e0 cmpl $0x0, ...
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
stbiw__outfile
static int stbiw__outfile(stbi__write_context *s, int rgb_dir, int vdir, int x, int y, int comp, int expand_mono, void *data, int alpha, int pad, const char *fmt, ...) { if (y < 0 || x < 0) { return 0; } else { va_list v; va_start(v, fmt); stbiw__writefv(s, fmt, v); va_end(v); ...
pushq %rbp movq %rsp, %rbp pushq %rbx subq $0x118, %rsp # imm = 0x118 testb %al, %al je 0x9baf movaps %xmm0, -0xd0(%rbp) movaps %xmm1, -0xc0(%rbp) movaps %xmm2, -0xb0(%rbp) movaps %xmm3, -0xa0(%rbp) movaps %xmm4, -0x90(%rbp) movaps %xmm5, -0x80(%rbp) movaps %xmm6, -0x70(%rbp) movaps %xmm7, -0x60(%rbp) movq 0...
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
stbiw__writefv
static void stbiw__writefv(stbi__write_context *s, const char *fmt, va_list v) { while (*fmt) { switch (*fmt++) { case ' ': break; case '1': { unsigned char x = STBIW_UCHAR(va_arg(v, int)); s->func(s->context,&x,1); break; } case '2': { int x...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rax cmpb $0x0, (%rax) je 0x9e92 movq -0x10(%rbp), %rax movq %rax, %rcx incq %rcx movq %rcx, -0x10(%rbp) movsbl (%rax), %eax addl $-0x20, %eax movl %eax, %ecx movq %rcx, -0x38(%rbp) subl $0x...
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
stbiw__write_pixels
static void stbiw__write_pixels(stbi__write_context *s, int rgb_dir, int vdir, int x, int y, int comp, void *data, int write_alpha, int scanline_pad, int expand_mono) { stbiw_uint32 zero = 0; int i,j, j_end; if (y <= 0) return; if (stbi__flip_vertically_on_write) vdir *= -1; if (vdir < 0) ...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movl 0x28(%rbp), %eax movl 0x20(%rbp), %eax movl 0x18(%rbp), %eax movq 0x10(%rbp), %rax movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl %ecx, -0x14(%rbp) movl %r8d, -0x18(%rbp) movl %r9d, -0x1c(%rbp) movl $0x0, -0x20(%rbp) cmpl $0x0, -0x18(%rbp) jg 0x9...
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
stbiw__write_pixel
static void stbiw__write_pixel(stbi__write_context *s, int rgb_dir, int comp, int write_alpha, int expand_mono, unsigned char *d) { unsigned char bg[3] = { 255, 0, 255}, px[3]; int k; if (write_alpha < 0) stbiw__write1(s, d[comp - 1]); switch (comp) { case 2: // 2 pixels = mono + alpha, alpha ...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl %ecx, -0x14(%rbp) movl %r8d, -0x18(%rbp) movq %r9, -0x20(%rbp) movw 0x2220(%rip), %ax # 0xc1e4 movw %ax, -0x23(%rbp) movb 0x2218(%rip), %al # 0xc1e6 movb %al, -0x21(%rbp) cmpl $0x0, -0x14(%rbp...
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
stbiw__write_hdr_scanline
static void stbiw__write_hdr_scanline(stbi__write_context *s, int width, int ncomp, unsigned char *scratch, float *scanline) { unsigned char scanlineheader[4] = { 2, 2, 0, 0 }; unsigned char rgbe[4]; float linear[3]; int x; scanlineheader[2] = (width&0xff00)>>8; scanlineheader[3] = (width&0x00ff); ...
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq %rcx, -0x18(%rbp) movq %r8, -0x20(%rbp) movl 0x3320(%rip), %eax # 0xd6a0 movl %eax, -0x24(%rbp) movl -0xc(%rbp), %eax andl $0xff00, %eax # imm = 0xFF00 sarl $0x8, %eax movb %al, -0x22(%rbp)...
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
stbiw__linear_to_rgbe
static void stbiw__linear_to_rgbe(unsigned char *rgbe, float *linear) { int exponent; float maxcomp = stbiw__max(linear[0], stbiw__max(linear[1], linear[2])); if (maxcomp < 1e-32f) { rgbe[0] = rgbe[1] = rgbe[2] = rgbe[3] = 0; } else { float normalize = (float) frexp(maxcomp, &exponent) * 256.0f...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movss (%rax), %xmm0 movss %xmm0, -0x20(%rbp) movq -0x10(%rbp), %rax movss 0x4(%rax), %xmm0 movq -0x10(%rbp), %rax ucomiss 0x8(%rax), %xmm0 jbe 0xa790 movq -0x10(%rbp), %rax movss 0x4(%rax), %xmm0 movss %xmm0,...
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
stbiw__crc32
static unsigned int stbiw__crc32(unsigned char *buffer, int len) { #ifdef STBIW_CRC32 return STBIW_CRC32(buffer, len); #else static unsigned int crc_table[256] = { 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3, 0x0eDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl $0xffffffff, -0x10(%rbp) # imm = 0xFFFFFFFF movl $0x0, -0x14(%rbp) movl -0x14(%rbp), %eax cmpl -0xc(%rbp), %eax jge 0xaada movl -0x10(%rbp), %eax shrl $0x8, %eax movq -0x8(%rbp), %rcx movslq -0x14(%rbp), %rdx movzbl (%rcx,%rdx), %ecx movl -0x10...
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
stbiw__jpg_processDU
static int stbiw__jpg_processDU(stbi__write_context *s, int *bitBuf, int *bitCnt, float *CDU, int du_stride, float *fdtbl, int DC, const unsigned short HTDC[256][2], const unsigned short HTAC[256][2]) { const unsigned short EOB[2] = { HTAC[0x00][0], HTAC[0x00][1] }; const unsigned short M16zeroes[2] = { HTAC[0xF0...
pushq %rbp movq %rsp, %rbp pushq %rbx subq $0x1a8, %rsp # imm = 0x1A8 movq 0x20(%rbp), %rax movq 0x18(%rbp), %rax movl 0x10(%rbp), %eax movq %rdi, -0x18(%rbp) movq %rsi, -0x20(%rbp) movq %rdx, -0x28(%rbp) movq %rcx, -0x30(%rbp) movl %r8d, -0x34(%rbp) movq %r9, -0x40(%rbp) movq 0x20(%rbp), %rax movw (%rax), %...
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
stbiw__jpg_writeBits
static void stbiw__jpg_writeBits(stbi__write_context *s, int *bitBufP, int *bitCntP, const unsigned short *bs) { int bitBuf = *bitBufP, bitCnt = *bitCntP; bitCnt += bs[1]; bitBuf |= bs[0] << (24 - bitCnt); while(bitCnt >= 8) { unsigned char c = (bitBuf >> 16) & 255; stbiw__putc(s, c); if(c...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x10(%rbp), %rax movl (%rax), %eax movl %eax, -0x24(%rbp) movq -0x18(%rbp), %rax movl (%rax), %eax movl %eax, -0x28(%rbp) movq -0x20(%rbp), %rax movzwl 0x2(%rax), %eax addl -0x28(...
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
stbiw__jpg_DCT
static void stbiw__jpg_DCT(float *d0p, float *d1p, float *d2p, float *d3p, float *d4p, float *d5p, float *d6p, float *d7p) { float d0 = *d0p, d1 = *d1p, d2 = *d2p, d3 = *d3p, d4 = *d4p, d5 = *d5p, d6 = *d6p, d7 = *d7p; float z1, z2, z3, z4, z5, z11, z13; float tmp0 = d0 + d7; float tmp7 = d0 - d7; float...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq 0x18(%rbp), %rax movq 0x10(%rbp), %rax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movq -0x8(%rbp), %rax movss (%rax), %xmm0 movss %xmm0, -0x34(%rbp) movq -0x10(%rbp), %rax movss (...
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
stbiw__jpg_calcBits
static void stbiw__jpg_calcBits(int val, unsigned short bits[2]) { int tmp1 = val < 0 ? -val : val; val = val < 0 ? val-1 : val; bits[1] = 1; while(tmp1 >>= 1) { ++bits[1]; } bits[0] = val & ((1<<bits[1])-1); }
pushq %rbp movq %rsp, %rbp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) cmpl $0x0, -0x4(%rbp) jge 0xb48b xorl %eax, %eax subl -0x4(%rbp), %eax movl %eax, -0x18(%rbp) jmp 0xb491 movl -0x4(%rbp), %eax movl %eax, -0x18(%rbp) movl -0x18(%rbp), %eax movl %eax, -0x14(%rbp) cmpl $0x0, -0x4(%rbp) jge 0xb4a8 movl -0x4(%rbp), %e...
/footballhead[P]explorer-utils/stb_image_write/stb_image_write.h
bool bsplib::read_env<double>(char const*, double&)
bool read_env( const char * str, T & result ) { #if HAS_DUPENV_S_WIN32 char * env = NULL; if (_dupenv_s( &env, NULL , str) ) return false; #else const char * env = std::getenv( str ); #endif if (env) { std::istringstream s( env ); #if HAS_DUPENV_S_WIN32 ...
pushq %rbp movq %rsp, %rbp subq $0x1f0, %rsp # imm = 0x1F0 movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0x18400 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0x1bc4b movq -0x20(%rbp), %rax movq %rax, -0x1e8(%rbp) leaq -0x1c1(%rbp), %rdi movq %rdi, -0x1e0(%rbp) callq 0x18610 m...
/wijnand-suijlen[P]bsponmpi/src/config.h
hash_table_get_item
void * hash_table_get_item( const hash_table_t * table, void * key ) { unsigned i = (unsigned) hash( table->ghash, (* table->hash )( key ) ); const hash_table_bucket_t *b = table->buckets[i].next; while (b) { if ( (*table->is_equal)(key, b->data) ) return b->data; b = b->next; ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movq 0x38(%rax), %rax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rax movq 0x28(%rax), %rax movq -0x18(%rbp), %rdi callq *%rax movq %rax, %rcx movq -0x30(%rbp), %rax imulq %rcx, %rax movq -0x10(%rbp), %rcx add...
/wijnand-suijlen[P]bsponmpi/src/util.c
sptk::CepstrumToMinimumPhaseImpulseResponse::Run(std::vector<double, std::allocator<double>> const&, std::vector<double, std::allocator<double>>*) const
bool CepstrumToMinimumPhaseImpulseResponse::Run( const std::vector<double>& cepstrum, std::vector<double>* minimum_phase_impulse_response) const { // Check inputs. if (!is_valid_ || cepstrum.size() != static_cast<std::size_t>(num_input_order_ + 1) || NULL == minimum_phase_impulse_response) { ...
cmpb $0x1, 0x10(%rdi) jne 0x37cb pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdx, %r14 xorl %eax, %eax testq %rdx, %rdx je 0x37d0 movq %rsi, %r15 movq %rdi, %rbx movq (%rsi), %r12 movq 0x8(%rsi), %rcx subq %r12, %rcx sarq $0x3, %rcx movslq 0x8(%rdi), %rdx incq %rdx cmpq %rdx, %rcx jne 0x37d0 movq (%r14...
/sp-nitech[P]SPTK/src/conversion/cepstrum_to_minimum_phase_impulse_response.cc
bool sptk::WriteStream<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(int, int, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::ostrea...
bool WriteStream(int write_point, int write_size, const std::vector<std::string>& sequence_to_write, std::ostream* output_stream, int* actual_write_size) { if (write_point < 0 || write_size <= 0 || NULL == output_stream) { return false; } const int end(write_point + write_si...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %rbx testl %edi, %edi sets %al testl %esi, %esi setle %cl orb %al, %cl testq %rbx, %rbx sete %al orb %cl, %al je 0x3bc0 xorl %r13d, %r13d jmp 0x3c43 movq %rdx, %r15 movl %esi, %r12d movl %edi, %ebp movq 0x8(%rdx), %rax subq (%rdx), ...
/sp-nitech[P]SPTK/src/utils/sptk_utils.cc
bool sptk::ReadStream<unsigned char>(unsigned char*, std::istream*)
bool ReadStream(T* data_to_read, std::istream* input_stream) { if (NULL == data_to_read || NULL == input_stream || input_stream->eof()) { return false; } const int type_byte(sizeof(*data_to_read)); input_stream->read(reinterpret_cast<char*>(data_to_read), type_byte); return (type_byte == input_stream->g...
pushq %rbx movq %rsi, %rbx testq %rdi, %rdi sete %al testq %rsi, %rsi sete %cl orb %al, %cl jne 0x4970 movq (%rbx), %rax movq -0x18(%rax), %rax testb $0x2, 0x20(%rbx,%rax) jne 0x4970 movq %rdi, %rsi pushq $0x1 popq %rdx movq %rbx, %rdi callq 0x22a0 cmpq $0x1, 0x8(%rbx) jne 0x4970 movq (%rbx), %rax movq -0x18(%rax), %ra...
/sp-nitech[P]SPTK/src/utils/sptk_utils.cc
bool sptk::ReadStream<float>(bool, int, int, int, std::vector<float, std::allocator<float>>*, std::istream*, int*)
bool ReadStream(bool zero_padding, int stream_skip, int read_point, int read_size, std::vector<T>* sequence_to_read, std::istream* input_stream, int* actual_read_size) { if (stream_skip < 0 || read_point < 0 || read_size <= 0 || NULL == sequence_to_read || NULL == input_stream ||...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %ecx, %r15d movl %edx, %r13d movl %edx, %eax orl %esi, %eax sets %al testl %ecx, %ecx setle %cl orb %al, %cl testq %r8, %r8 sete %al testq %r9, %r9 sete %dl orb %al, %dl orb %cl, %dl jne 0x5a72 movq %r9, %rbx movq (%r9), %rax movq -0x18(%...
/sp-nitech[P]SPTK/src/utils/sptk_utils.cc
bool sptk::ReadStream<double>(bool, int, int, int, std::vector<double, std::allocator<double>>*, std::istream*, int*)
bool ReadStream(bool zero_padding, int stream_skip, int read_point, int read_size, std::vector<T>* sequence_to_read, std::istream* input_stream, int* actual_read_size) { if (stream_skip < 0 || read_point < 0 || read_size <= 0 || NULL == sequence_to_read || NULL == input_stream ||...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %ecx, %r15d movl %edx, %r13d movl %edx, %eax orl %esi, %eax sets %al testl %ecx, %ecx setle %cl orb %al, %cl testq %r8, %r8 sete %al testq %r9, %r9 sete %dl orb %al, %dl orb %cl, %dl jne 0x5bdb movq %r9, %rbx movq (%r9), %rax movq -0x18(%...
/sp-nitech[P]SPTK/src/utils/sptk_utils.cc
bool sptk::ReadStream<long double>(bool, int, int, int, std::vector<long double, std::allocator<long double>>*, std::istream*, int*)
bool ReadStream(bool zero_padding, int stream_skip, int read_point, int read_size, std::vector<T>* sequence_to_read, std::istream* input_stream, int* actual_read_size) { if (stream_skip < 0 || read_point < 0 || read_size <= 0 || NULL == sequence_to_read || NULL == input_stream ||...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %ecx, %r15d movl %edx, %r13d movl %edx, %eax orl %esi, %eax sets %al testl %ecx, %ecx setle %cl orb %al, %cl testq %r8, %r8 sete %al testq %r9, %r9 sete %dl orb %al, %dl orb %cl, %dl jne 0x5d19 movq %r9, %rbx movq (%r9), %rax movq -...
/sp-nitech[P]SPTK/src/utils/sptk_utils.cc
bool sptk::WriteStream<signed char>(int, int, std::vector<signed char, std::allocator<signed char>> const&, std::ostream*, int*)
bool WriteStream(int write_point, int write_size, const std::vector<T>& sequence_to_write, std::ostream* output_stream, int* actual_write_size) { if (write_point < 0 || write_size <= 0 || NULL == output_stream) { return false; } const int end(write_point + write_size); if ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %rbx testl %edi, %edi sets %al testl %esi, %esi setle %cl orb %al, %cl testq %rbx, %rbx sete %al orb %cl, %al je 0x609a xorl %r12d, %r12d jmp 0x6104 movq %rdx, %rbp movl %esi, %r15d movl %edi, %r13d leal (%r15,%r13), %ecx movq (%rdx...
/sp-nitech[P]SPTK/src/utils/sptk_utils.cc
despot::BaseTag::BaseTag(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
BaseTag::BaseTag(string params_file) : robot_pos_unknown_(false) { current_ = this; ifstream fin(params_file.c_str(), ifstream::in); Init(fin); }
pushq %rbp movq %rsp, %rbp subq $0x270, %rsp # imm = 0x270 movq %rsi, -0x238(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x230(%rbp) callq 0x2feb0 movq -0x230(%rbp), %rdi addq $0x38, %rdi callq 0x296c0 jmp 0x2b24c movq -0x230(%rbp), %rdi addq $0x40, %rdi callq 0x2fef0...
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/base/base_tag.cpp
despot::BaseTag::OppTransitionDistribution(int) const
map<int, double> BaseTag::OppTransitionDistribution(int state) const { Coord rob = floor_.GetCell(rob_[state]), opp = floor_.GetCell(opp_[state]); map<int, double> distribution; if (opp.x == rob.x) { int index = floor_.Inside(opp + Coord(1, 0)) ? floor_.GetIndex(opp + Coord(1, 0)) : floor_.GetIndex(opp); ...
pushq %rbp movq %rsp, %rbp subq $0x2d0, %rsp # imm = 0x2D0 movq %rdi, -0x120(%rbp) movq %rdi, %rax movq %rax, -0x140(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0x130(%rbp) movq %rdi, %rax addq $0x58, %rax movq %rax, -0x138(%rbp) addq $0xb0, %r...
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/base/base_tag.cpp
non-virtual thunk to despot::BaseTag::~BaseTag()
bool BaseTag::Step(State& s, double random_num, ACT_TYPE action, double& reward) const { TagState& state = static_cast<TagState&>(s); bool terminal = false; if (action == TagAction()) { if (rob_[state.state_id] == opp_[state.state_id]) { reward = TAG_REWARD; terminal = true; } else { reward = -TAG_REW...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi addq $-0x50, %rdi popq %rbp jmp 0x2c090 nopw %cs:(%rax,%rax)
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/base/base_tag.cpp
despot::BaseTag::Step(despot::State&, double, int, double&) const
bool BaseTag::Step(State& s, double random_num, ACT_TYPE action, double& reward) const { TagState& state = static_cast<TagState&>(s); bool terminal = false; if (action == TagAction()) { if (rob_[state.state_id] == opp_[state.state_id]) { reward = TAG_REWARD; terminal = true; } else { reward = -TAG_REW...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movsd %xmm0, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq %rcx, -0x28(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x68(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) movb $0x0, -0x31(%rbp) movl -0x1c(%rbp), %eax movl %eax, -0x5c(%rbp) ...
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/base/base_tag.cpp
despot::BaseTag::PrintTransitions() const
void BaseTag::PrintTransitions() const { for (int s = 0; s < NumStates(); s++) { cout << "State " << s << endl; PrintState(*GetState(s)); for (int a = 0; a < NumActions(); a++) { cout << "Applying action " << a << " on " << endl; for (int i = 0; i < transition_probabilities_[s][a].size(); i++) { co...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) movl $0x0, -0xc(%rbp) movq -0x28(%rbp), %rdi movl -0xc(%rbp), %eax movl %eax, -0x2c(%rbp) movq (%rdi), %rax callq *0x10(%rax) movl %eax, %ecx movl -0x2c(%rbp), %eax cmpl %ecx, %eax jge 0x2c5dc movq 0x2dbb9(%ri...
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/base/base_tag.cpp
non-virtual thunk to despot::BaseTag::CreateParticleUpperBound(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const
ParticleUpperBound* BaseTag::CreateParticleUpperBound(string name) const { if (name == "TRIVIAL") { return new TrivialParticleUpperBound(this); } else if (name == "MDP") { return new MDPUpperBound(this, *this); } else if (name == "SP" || name == "DEFAULT") { return new TagSPParticleUpperBound(this); } else i...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi addq $-0x38, %rdi popq %rbp jmp 0x2c680 nopw (%rax,%rax)
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/base/base_tag.cpp
despot::BaseTag::CreateScenarioUpperBound(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const
ScenarioUpperBound* BaseTag::CreateScenarioUpperBound(string name, string particle_bound_name) const { if (name == "TRIVIAL" || name == "DEFAULT" || name == "MDP" || name == "SP" || name == "MANHATTAN") { return CreateParticleUpperBound(name); } else if (name == "LOOKAHEAD") { return new LookaheadUpperBound(t...
pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movq %rsi, -0x98(%rbp) movq %rdi, %rax movq -0x98(%rbp), %rdi movq %rdi, -0x90(%rbp) movq %rdx, -0x88(%rbp) movq %rax, -0x10(%rbp) movq %rdi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x80(%rbp) leaq 0x1ba29(%rip), %rsi # 0x4835e callq 0x2fdf0 ...
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/base/base_tag.cpp
non-virtual thunk to despot::BaseTag::CreateScenarioUpperBound(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const
ScenarioUpperBound* BaseTag::CreateScenarioUpperBound(string name, string particle_bound_name) const { if (name == "TRIVIAL" || name == "DEFAULT" || name == "MDP" || name == "SP" || name == "MANHATTAN") { return CreateParticleUpperBound(name); } else if (name == "LOOKAHEAD") { return new LookaheadUpperBound(t...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rdi addq $-0x38, %rdi popq %rbp jmp 0x2c8f0 nop
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/base/base_tag.cpp
non-virtual thunk to despot::BaseTag::CreateBeliefUpperBound(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const
BeliefUpperBound* BaseTag::CreateBeliefUpperBound(string name) const { if (name == "TRIVIAL") { return new TrivialBeliefUpperBound(this); } else if (name == "DEFAULT" || name == "MDP") { return new MDPUpperBound(this, *this); } else if (name == "MANHATTAN") { return new TagManhattanUpperBound(this); } else { ...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi addq $-0x38, %rdi popq %rbp jmp 0x2cbe0 nopw (%rax,%rax)
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/base/base_tag.cpp
despot::BaseTag::CreateScenarioLowerBound(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const
ScenarioLowerBound* BaseTag::CreateScenarioLowerBound(string name, string particle_bound_name) const { const DSPOMDP* model = this; const StateIndexer* indexer = this; const StatePolicy* policy = this; const MMAPInferencer* mmap_inferencer = this; if (name == "TRIVIAL") { return new TrivialParticleLowerBound(mo...
pushq %rbp movq %rsp, %rbp subq $0x480, %rsp # imm = 0x480 movq %rsi, -0x2c8(%rbp) movq %rdi, %rax movq -0x2c8(%rbp), %rdi movq %rdi, -0x2c0(%rbp) movq %rdx, -0x2b8(%rbp) movq %rax, -0x10(%rbp) movq %rdi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x2b0(%rbp) movq %rax, %rcx addq $...
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/base/base_tag.cpp
despot::BaseTag::ComputeDefaultActions(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const
void BaseTag::ComputeDefaultActions(string type) const { if (type == "MDP") { const_cast<BaseTag*>(this)->ComputeOptimalPolicyUsingVI(); int num_states = NumStates(); default_action_.resize(num_states); for (int s = 0; s < num_states; s++) { default_action_[s] = policy_[s].action; } } else if (type == "...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rsi, -0x50(%rbp) movq %rdi, %rax movq -0x50(%rbp), %rdi movq %rdi, -0x48(%rbp) movq %rax, -0x8(%rbp) movq %rdi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x40(%rbp) leaq 0x1a496(%rip), %rsi # 0x48297 callq 0x2fdf0 testb $0x1, %al jne 0x2de0c jmp 0x2de85 movq -0x...
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/base/base_tag.cpp
non-virtual thunk to despot::BaseTag::Tau(despot::Belief const*, int, unsigned long) const
Belief* BaseTag::Tau(const Belief* belief, ACT_TYPE action, OBS_TYPE obs) const { static vector<double> probs = vector<double>(NumStates()); const vector<State*>& particles = static_cast<const ParticleBelief*>(belief)->particles(); double sum = 0; for (int i = 0; i < particles.size(); i++) { TagState* state =...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq %rcx, -0x20(%rbp) movq -0x8(%rbp), %rdi addq $-0x38, %rdi movq -0x10(%rbp), %rsi movl -0x14(%rbp), %edx movq -0x20(%rbp), %rcx popq %rbp jmp 0x2f040 nopl (%rax)
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/base/base_tag.cpp
despot::BaseTag::Reward(int, int) const
double BaseTag::Reward(int s, ACT_TYPE action) const { const TagState* state = states_[s]; double reward = 0; if (action == TagAction()) { if (rob_[state->state_id] == opp_[state->state_id]) { reward = TAG_REWARD; } else { reward = -TAG_REWARD; } } else { reward = -1; } return reward; }
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x30(%rbp) addq $0x98, %rdi movslq -0xc(%rbp), %rsi callq 0x30990 movq -0x30(%rbp), %rdi movq (%rax), %rax movq %rax, -0x18(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -0x20(%rbp) m...
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/base/base_tag.cpp
despot::TagSHRPolicy::TagSHRPolicy(despot::DSPOMDP const*, despot::ParticleLowerBound*)
TagSHRPolicy(const DSPOMDP* model, ParticleLowerBound* bound) : DefaultPolicy(model, bound), tag_model_(static_cast<const BaseTag*>(model)) { floor_ = tag_model_->floor(); }
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x40(%rbp) movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0x29210 movq -0x40(%rbp), %rax leaq 0x28874(%rip), %rcx # 0x59858 addq $0x10, %rcx movq %rcx, (%rax) addq $...
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/base/base_tag.cpp
despot::Floor::GetIndex(int, int) const
inline int GetIndex(int x, int y) const { return (x >= 0 && x < num_cols_ && y >= 0 && y < num_rows_) ? floor_[y][x] : INVALID; }
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) cmpl $0x0, -0xc(%rbp) jl 0x31395 movq -0x18(%rbp), %rcx movl -0xc(%rbp), %eax cmpl 0x4(%rcx), %eax jge 0x31395 cmpl $0x0, -0x10(%rbp) jl 0x31395 movq -0x18(%rbp), %rcx movl -0x10(%r...
/AdaCompNUS[P]despot/include/despot/util/floor.h
despot::TagSHRPolicy::Action(std::vector<despot::State*, std::allocator<despot::State*>> const&, despot::RandomStreams&, despot::History&) const
ACT_TYPE Action(const vector<State*>& particles, RandomStreams& streams, History& history) const { // If history is empty then take a random move if (history.Size() == 0) { return Random::RANDOM.NextInt(tag_model_->NumActions() - 1); } // If we just saw an opponent then TAG if (history.LastObservation()...
pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x90(%rbp) movq -0x28(%rbp), %rdi callq 0x36cc0 cmpq $0x0, %rax jne 0x34d4f movq -0x90(%rbp), %rax movq 0x20(%rax), %rdi mo...
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/base/base_tag.cpp
despot::NoisyLaserTag::Init()
void NoisyLaserTag::Init() { for (int i = 0; i < NBEAMS; i++) SetReading(same_loc_obs_, 101, i); reading_distributions_.resize(NumStates()); for (int s = 0; s < NumStates(); s++) { reading_distributions_[s].resize(NBEAMS); for (int d = 0; d < NBEAMS; d++) { double dist = LaserRange(*states_[s], d); fo...
pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x50(%rbp) movl $0x0, -0xc(%rbp) movl -0xc(%rbp), %eax cmpl 0x15be4(%rip), %eax # 0x5a468 jge 0x448aa movq -0x50(%rbp), %rdi addq $0xf8, %rdi movslq -0xc(%rbp), %rdx movl $0x65, %esi callq 0x44d10 movl -0xc(%rbp), %e...
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/noisy_laser_tag/noisy_laser_tag.cpp
despot::NoisyLaserTag::Step(despot::State&, double, int, double&, unsigned long&) const
bool NoisyLaserTag::Step(State& state, double random_num, ACT_TYPE action, double& reward, OBS_TYPE& obs) const { Random random(random_num); bool terminal = BaseTag::Step(state, random.NextDouble(), action, reward); if (terminal) { obs = same_loc_obs_; } else { if (rob_[state.state_id] == opp_[state.state_id]...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movsd %xmm0, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x68(%rbp) movsd -0x18(%rbp), %xmm0 leaq -0x34(%rbp), %rdi callq 0x293f0 movq -0x10(%rbp), %rax movq %ra...
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/noisy_laser_tag/noisy_laser_tag.cpp
MyPlanner::MyPlanner()
MyPlanner() { }
pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xc8(%rbp) leaq -0x29(%rbp), %rdi movq %rdi, -0xc0(%rbp) callq 0x29770 movq -0xc0(%rbp), %rdx leaq 0xe06(%rip), %rsi # 0x4835e leaq -0x28(%rbp), %rdi callq 0x2fff0 jmp 0x47563 leaq -0x61(%rbp), %rdi movq %rdi, -0xd...
/AdaCompNUS[P]despot/examples/cpp_models/tag/src/noisy_laser_tag/main.cpp
main
int main(int argc, char **argv) { char *p = "../test.txt"; if (argc == 2) { p = argv[1]; } ip_tables_t *ipts = parse_tables(p); print_tables(ipts); packet_t *pkts[2]; pkts[0] = new_tcp_pkt("192.168.1.100", "192.168.1.101", 12345, 80, TCP_SYN); pkts[1] = new_tcp_pkt("192.168.1.101", "192.168.1.100", 12345,...
cmpl $0x2, %edi jne 0x33a7 movq 0x8(%rsi), %rdi jmp 0x33ae leaq 0x5c56(%rip), %rdi # 0x9004 pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp callq 0x381d movq %rax, %rbx movq %rax, %rdi callq 0x3769 leaq 0x5c3d(%rip), %r14 # 0x9010 leaq 0x5c44(%rip), %r15 # 0x901e pushq ...
/Freeind[P]ita/main.c
free_chain
static void free_chain(ip_chain_t *ipc) { if (ipc == NULL) { return; } list_del(&ipc->list); ip_rule_t *p = NULL, *q = NULL; list_for_each_entry_safe(p, q, &ipc->rules, list) { free_rule(p); } _free(ipc); }
testq %rdi, %rdi je 0x4629 pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx movq 0x28(%rdi), %rax movq 0x30(%rdi), %rcx movq %rcx, 0x8(%rax) movq %rax, (%rcx) xorps %xmm0, %xmm0 movups %xmm0, 0x28(%rdi) leaq 0x38(%rdi), %r14 movq 0x38(%rdi), %rdi cmpq %r14, %rdi je 0x4612 movq (%rdi), %r15 addq $-0x50, %rdi callq 0x462...
/Freeind[P]ita/iptables.c
find_chain
static ip_chain_t *find_chain(const char *name, ip_table_t *ipt) { int c = map_int_get_v(name, m_chain); ip_chain_t *p = NULL; if (c != CHAIN_NONE && ipt->chains[c] != NULL) { return ipt->chains[c]; } list_for_each_entry(p, &ipt->child_chains, list) { if (strcmp(name, p->name) == 0) { return p; } } r...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 leaq 0x99eb(%rip), %rsi # 0xe1b0 callq 0x367d cmpl $0x5, %eax je 0x47da cltq movq (%rbx,%rax,8), %r15 testq %r15, %r15 jne 0x4803 addq $0x28, %rbx movq %rbx, %r12 movq (%r12), %r12 cmpq %rbx, %r12 je 0x4800 leaq -0x28(%r12), %r1...
/Freeind[P]ita/iptables.c
parse_tcp
static int parse_tcp(void *data, char **str, int inv) { match_tcp_t *m = (match_tcp_t *)data; int inv_type = 0; char *p = *str; char *q = p; char *r = NULL; q = strtok(NULL, " \t\n"); if (q == NULL) { log_err("opt \"%s\" arg is null", p); goto err; } if (strcmp(p, "--sport") == 0) { if (parse_port(q, m...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %edx, %ebp movq %rdi, %rbx movq (%rsi), %r15 leaq 0x49bc(%rip), %rsi # 0x932d xorl %edi, %edi callq 0x3230 testq %rax, %rax je 0x49ee movq %rax, %r14 leaq 0x4afe(%rip), %rsi # 0x9485 movq %r15, %rdi callq 0x3150 testl %eax, %eax je 0x4a04 leaq 0x4af3...
/Freeind[P]ita/iptables_ext.c
parse_pkt
packet_t *parse_pkt(const uint8_t *data, int len) { if (0 > len && len > 65535) { log_err("%s packet len %d is invalid\n", __FUNCTION__, len); return NULL; } if (!data) { log_err("%s data is null\n", __FUNCTION__); return NULL; } packet_t *pkt = _new(packet_t); pkt->len = len; pkt->payload = len; pkt...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax testq %rdi, %rdi je 0x52ef movl %esi, %ebp movq %rdi, %r14 pushq $0x60 popq %rdi callq 0x34a0 movq %rax, %rbx movl %ebp, (%rax) movl %ebp, 0x8(%rax) movslq %ebp, %r15 movq %r15, %rdi callq 0x34a0 movq %rax, 0x10(%rbx) movq %rax, %rdi movq %r14, %rsi movq %r15, %rdx...
/Freeind[P]ita/packet.c
mwTestMem
static const void *mwTestMem(const void *p, unsigned len, int c) { const unsigned char *ptr; ptr = (const unsigned char *) p; while (len--) { if (*ptr != (unsigned char)c) { return (const void *)ptr; } ptr ++; } return NULL; }
movq %rdi, %rax subl $0x1, %esi jb 0x64c0 cmpb %dl, (%rax) jne 0x64c2 incq %rax jmp 0x64b2 xorl %eax, %eax retq
/Freeind[P]ita/memwatch.c
mwMalloc
void *mwMalloc(size_t size, const char *file, int line) { size_t needed; mwData *mw; char *ptr; void *p; mwAutoInit(); MW_MUTEX_LOCK(); TESTS(file, line); mwCounter ++; needed = mwDataSize + mwOverflowZoneSize * 2 + size; if (needed < size) { /* theoretical case: req size + mw overhead exceeded size_t l...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx callq 0x6542 cmpl $0x0, 0x76d3(%rip) # 0xe744 je 0x7080 pushq $0x1 popq %rdx movq %r14, %rdi movl %ebp, %esi callq 0x65ab movq 0x76d9(%rip), %r12 # 0xe760 incq %r12 movq %r12, 0x76cf(%rip) ...
/Freeind[P]ita/memwatch.c
mwFreeUp
static size_t mwFreeUp(size_t needed, int urgent) { void *p; mwData *mw, *mw2; char *data; /* free grabbed NML memory */ for (;;) { if (mwDrop_(1, MW_VAL_NML, 1) == 0) { break; } p = malloc(needed); if (p == NULL) { continue; } free(p); return needed; } /* free normal NML memory */ mw = mw...
pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx pushq $0x1 popq %rdi movl $0xfc, %esi movl %edi, %edx callq 0x7f85 testl %eax, %eax jne 0x739e leaq 0x7410(%rip), %r14 # 0xe730 movq (%r14), %r14 testq %r14, %r14 je 0x7335 testb $0x1, 0x34(%r14) jne 0x7339 addq $0x8, %r14 jmp 0x7320 xorl %ebx, %ebx jmp 0x739e leaq ...
/Freeind[P]ita/memwatch.c
mwWriteOF
static void mwWriteOF(void *p) { int i; unsigned char *ptr; ptr = (unsigned char *) p; for (i = 0; i < mwOverflowZoneSize; i++) { *(ptr + i) = mwOverflowZoneTemplate[i % 8]; } return; }
xorl %eax, %eax leaq 0x2cba(%rip), %rcx # 0xa06a cmpq $0x8, %rax je 0x73c1 movb (%rax,%rcx), %dl movb %dl, (%rdi,%rax) incq %rax jmp 0x73b0 retq
/Freeind[P]ita/memwatch.c
mwRealloc
void *mwRealloc(void *p, size_t size, const char *file, int line) { int oldUseLimit, i; mwData *mw; char *ptr; mwAutoInit(); if (p == NULL) { return mwMalloc(size, file, line); } if (size == 0) { mwFree(p, file, line); return NULL; } MW_MUTEX_LOCK(); /* do the quick ownership test */ mw = (mwData *...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %ecx, %ebx movq %rdx, %r14 movq %rsi, %r12 movq %rdi, %r15 callq 0x6542 testq %r15, %r15 je 0x74b9 testq %r12, %r12 je 0x74d4 cmpb $0x0, 0x7317(%rip) # 0xe710 leaq -0x38(%r15), %rbp cmoveq %r15, %rbp leaq -0x8(%rbp), %r13 movq ...
/Freeind[P]ita/memwatch.c
mwStrdup
char *mwStrdup(const char *str, const char *file, int line) { size_t len; char *newstring; MW_MUTEX_LOCK(); if (str == NULL) { mwIncErr(); mwWrite("strdup: <%ld> %s(%d), strdup(NULL) called\n", mwCounter, file, line); FLUSH(); MW_MUTEX_UNLOCK(); return NULL; } len = strlen(str) + 1; newstring = ...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movl %edx, %ebx movq %rsi, %r14 testq %rdi, %rdi je 0x792d movq %rdi, %r15 callq 0x30d0 movq %rax, %r12 incq %r12 movq %r12, %rdi movq %r14, %rsi movl %ebx, %edx callq 0x7051 testq %rax, %rax je 0x7951 movq %rax, %rdi movq %r15, %rsi movq %r12, %rdx addq $0x8, %rsp...
/Freeind[P]ita/memwatch.c
mwVerify
int mwVerify(int exp, const char *exps, const char *fn, int ln) { int i; char buffer[MW_TRACE_BUFFER + 8]; if (exp) { return 0; } mwAutoInit(); MW_MUTEX_LOCK(); TESTS(fn, ln); mwIncErr(); mwCounter++; mwWrite("verify trap: <%ld> %s(%d), %s\n", mwCounter, fn, ln, exps); if (mwAriFunction != NULL) { sprint...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x810, %rsp # imm = 0x810 xorl %ebp, %ebp testl %edi, %edi jne 0x7d78 movl %ecx, %ebx movq %rdx, %r14 movq %rsi, %r15 callq 0x6542 cmpl $0x0, 0x6a96(%rip) # 0xe744 je 0x7cbd pushq $0x1 popq %rdx movq %r14, %rdi movl %ebx, %esi callq 0x65ab cal...
/Freeind[P]ita/memwatch.c
mwDrop_
static unsigned mwDrop_(unsigned kb, int type, int silent) { unsigned i = kb; mwGrabData *gd, *tmp, *pr; const void *p; if (mwGrabList == NULL && kb == 0) { return 0; } if (!kb) { i = kb = 60000U; } pr = NULL; gd = mwGrabList; for (; kb;) { if (gd == NULL) { if (i - kb > 0 && !silent) { mwWrite...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq 0x75ce(%rip), %r12 # 0xf568 testq %r12, %r12 sete %al testl %edi, %edi sete %cl xorl %ebp, %ebp testb %al, %cl jne 0x80bb movl %esi, %r15d testl %edi, %edi movl $0xea60, %ebp # imm = 0xEA60 cmovnel %edi, %ebp cmpl $0x...
/Freeind[P]ita/memwatch.c
mwNoMansLand
void mwNoMansLand(int level) { mwAutoInit(); TESTS(NULL, 0); switch (level) { case MW_NML_NONE: (void) mwDrop_(0, MW_VAL_NML, 0); break; case MW_NML_FREE: break; case MW_NML_ALL: (void) mwGrab_(0, MW_VAL_NML, 0); break; default: return; } mwNML = level; }
pushq %rbx movl %edi, %ebx callq 0x6542 cmpl $0x0, 0x6669(%rip) # 0xe744 je 0x80e9 pushq $0x1 popq %rdx xorl %edi, %edi xorl %esi, %esi callq 0x65ab cmpl $0x2, %ebx je 0x8107 cmpl $0x1, %ebx je 0x8113 testl %ebx, %ebx jne 0x8119 xorl %edi, %edi movl $0xfc, %esi xorl %edx, %edx callq 0x7f85 jmp 0x8113 xorl %edi, %e...
/Freeind[P]ita/memwatch.c
mwFlushR
static int mwFlushR() { if ((mwFlushing == mwFlushingB1) && (mwFlushing == mwFlushingB2)) { return mwFlushing; } if (mwFlushing == mwFlushingB1) { mwFlushingB2 = mwFlushing; } if (mwFlushing == mwFlushingB2) { mwFlushingB1 = mwFlushing; } if (mwFlushingB1 == mwFlushingB2) { mwFlushing = mwFlushingB1; } ...
movl 0x740f(%rip), %eax # 0xf598 movl 0x7405(%rip), %edx # 0xf594 movl %eax, %esi xorl %edx, %esi movl 0x73f7(%rip), %ecx # 0xf590 movl %eax, %edi xorl %ecx, %edi orl %esi, %edi je 0x8212 cmpl %edx, %eax jne 0x81af movl %eax, 0x73e5(%rip) # 0xf590 movl %eax, %ecx jmp 0x81b3 cmpl %ecx, %eax jne 0x81b...
/Freeind[P]ita/memwatch.c
test
int test(char *URL) { CURLM *cm = NULL; struct curl_slist *headers = NULL; char buffer[246]; /* naively fixed-size */ int res = 0; int i; for(i = 0; i < NUM_HANDLES; i++) eh[i] = NULL; start_test_timing(); if(test_argc < 4) return 99; snprintf(buffer, sizeof(buffer), "Host: %s", HOST); ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xf8, %rsp movq %rdi, %r14 xorps %xmm0, %xmm0 movaps %xmm0, 0x2e36(%rip) # 0x5100 callq 0x2eb8 leaq 0x30b2(%rip), %rcx # 0x5388 movq %rax, (%rcx) movq %rdx, 0x8(%rcx) leaq 0x3098(%rip), %rax # 0x537c movl $0x63, %r15d cmpl $0x4, (%rax...
/macressler[P]curl/tests/libtest/lib540.c
loop
static int loop(int num, CURLM *cm, const char *url, const char *userpwd, struct curl_slist *headers) { CURLMsg *msg; long L; int Q, U = -1; fd_set R, W, E; struct timeval T; int res = 0; res = init(num, cm, url, userpwd, headers); if(res) return res; while(U) { int M = -99;...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1c8, %rsp # imm = 0x1C8 movq %r8, 0x38(%rsp) movq %rcx, 0x10(%rsp) movq %rdx, %r15 movq %rsi, %rbx movl %edi, %ebp movl $0xffffffff, 0x8(%rsp) # imm = 0xFFFFFFFF callq 0x2040 movq %rax, %r13 movl %ebp, %ebp leaq 0x2c37(%rip), %r12 ...
/macressler[P]curl/tests/libtest/lib540.c
hexdump
char *hexdump(const unsigned char *buffer, size_t len) { static char dump[200 * 3 + 1]; char *p = dump; size_t i; if(len > 200) return NULL; for(i = 0; i<len; i++, p += 3) snprintf(p, 4, "%02x ", buffer[i]); return dump; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax cmpq $0xc8, %rsi jbe 0x2dbf xorl %ebx, %ebx jmp 0x2e09 movq %rsi, %r14 testq %rsi, %rsi je 0x2e02 movq %rdi, %r15 leaq 0x234f(%rip), %rbx # 0x5120 leaq 0x5d6(%rip), %r12 # 0x33ae xorl %ebp, %ebp movq %rbx, %r13 movzbl (%r15,%rbp), %...
/macressler[P]curl/tests/libtest/first.c
tutil_tvnow
struct timeval tutil_tvnow(void) { /* ** gettimeofday() is not granted to be increased monotonically, due to ** clock drifting and external source time synchronization it can jump ** forward or backward in time. */ struct timeval now; (void)gettimeofday(&now, NULL); return now; }
pushq %rbx subq $0x10, %rsp movq %rsp, %rbx movq %rbx, %rdi xorl %esi, %esi callq 0x2180 movq (%rbx), %rax movq 0x8(%rbx), %rdx addq $0x10, %rsp popq %rbx retq
/macressler[P]curl/tests/libtest/testutil.c
tutil_tvdiff
long tutil_tvdiff(struct timeval newer, struct timeval older) { return (long)(newer.tv_sec-older.tv_sec)*1000+ (long)(newer.tv_usec-older.tv_usec)/1000; }
movq %rsi, %rax subq %rdx, %rdi subq %rcx, %rax movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF imulq %rcx imulq $0x3e8, %rdi, %rcx # imm = 0x3E8 movq %rdx, %rax shrq $0x3f, %rax sarq $0x7, %rdx addq %rdx, %rax addq %rcx, %rax retq
/macressler[P]curl/tests/libtest/testutil.c
curlx_ultous
unsigned short curlx_ultous(unsigned long ulnum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #endif DEBUGASSERT(ulnum <= (unsigned long) CURL_MASK_USHORT); return (unsigned short)(ulnum & (unsigned long) CURL_MASK_USHORT); #ifdef __IN...
movq %rdi, %rax retq
/macressler[P]curl/lib/warnless.c
curlx_ultouc
unsigned char curlx_ultouc(unsigned long ulnum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #endif DEBUGASSERT(ulnum <= (unsigned long) CURL_MASK_UCHAR); return (unsigned char)(ulnum & (unsigned long) CURL_MASK_UCHAR); #ifdef __INTEL_...
movq %rdi, %rax retq
/macressler[P]curl/lib/warnless.c
curlx_ultosi
int curlx_ultosi(unsigned long ulnum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #endif DEBUGASSERT(ulnum <= (unsigned long) CURL_MASK_SINT); return (int)(ulnum & (unsigned long) CURL_MASK_SINT); #ifdef __INTEL_COMPILER # pragma war...
movq %rdi, %rax andl $0x7fffffff, %eax # imm = 0x7FFFFFFF retq
/macressler[P]curl/lib/warnless.c
curlx_uztoso
curl_off_t curlx_uztoso(size_t uznum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #elif defined(_MSC_VER) # pragma warning(push) # pragma warning(disable:4310) /* cast truncates constant value */ #endif DEBUGASSERT(uznum <= (size_t) CU...
movq %rdi, %rax btrq $0x3f, %rax retq
/macressler[P]curl/lib/warnless.c
curlx_uztosi
int curlx_uztosi(size_t uznum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #endif DEBUGASSERT(uznum <= (size_t) CURL_MASK_SINT); return (int)(uznum & (size_t) CURL_MASK_SINT); #ifdef __INTEL_COMPILER # pragma warning(pop) #endif }
movq %rdi, %rax andl $0x7fffffff, %eax # imm = 0x7FFFFFFF retq
/macressler[P]curl/lib/warnless.c
curlx_uztoui
unsigned int curlx_uztoui(size_t uznum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #endif #if (SIZEOF_INT < SIZEOF_SIZE_T) DEBUGASSERT(uznum <= (size_t) CURL_MASK_UINT); #endif return (unsigned int)(uznum & (size_t) CURL_MASK_UINT); #i...
movq %rdi, %rax retq
/macressler[P]curl/lib/warnless.c
curlx_sltosi
int curlx_sltosi(long slnum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #endif DEBUGASSERT(slnum >= 0); #if (SIZEOF_INT < SIZEOF_LONG) DEBUGASSERT((unsigned long) slnum <= (unsigned long) CURL_MASK_SINT); #endif return (int)(slnum &...
movq %rdi, %rax andl $0x7fffffff, %eax # imm = 0x7FFFFFFF retq
/macressler[P]curl/lib/warnless.c
curlx_sltoui
unsigned int curlx_sltoui(long slnum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #endif DEBUGASSERT(slnum >= 0); #if (SIZEOF_INT < SIZEOF_LONG) DEBUGASSERT((unsigned long) slnum <= (unsigned long) CURL_MASK_UINT); #endif return (uns...
movq %rdi, %rax retq
/macressler[P]curl/lib/warnless.c
curlx_sltous
unsigned short curlx_sltous(long slnum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #endif DEBUGASSERT(slnum >= 0); DEBUGASSERT((unsigned long) slnum <= (unsigned long) CURL_MASK_USHORT); return (unsigned short)(slnum & (long) CURL_M...
movq %rdi, %rax retq
/macressler[P]curl/lib/warnless.c
curlx_uztosz
ssize_t curlx_uztosz(size_t uznum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #endif DEBUGASSERT(uznum <= (size_t) CURL_MASK_SSIZE_T); return (ssize_t)(uznum & (size_t) CURL_MASK_SSIZE_T); #ifdef __INTEL_COMPILER # pragma warning(po...
movq %rdi, %rax btrq $0x3f, %rax retq
/macressler[P]curl/lib/warnless.c
curlx_sotouz
size_t curlx_sotouz(curl_off_t sonum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #endif DEBUGASSERT(sonum >= 0); return (size_t)(sonum & (curl_off_t) CURL_MASK_USIZE_T); #ifdef __INTEL_COMPILER # pragma warning(pop) #endif }
movq %rdi, %rax retq
/macressler[P]curl/lib/warnless.c
curlx_sztosi
int curlx_sztosi(ssize_t sznum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #endif DEBUGASSERT(sznum >= 0); #if (SIZEOF_INT < SIZEOF_SIZE_T) DEBUGASSERT((size_t) sznum <= (size_t) CURL_MASK_SINT); #endif return (int)(sznum & (ssize_t...
movq %rdi, %rax andl $0x7fffffff, %eax # imm = 0x7FFFFFFF retq
/macressler[P]curl/lib/warnless.c
curlx_uitous
unsigned short curlx_uitous(unsigned int uinum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #endif DEBUGASSERT(uinum <= (unsigned int) CURL_MASK_USHORT); return (unsigned short) (uinum & (unsigned int) CURL_MASK_USHORT); #ifdef __INTE...
movl %edi, %eax retq
/macressler[P]curl/lib/warnless.c
curlx_uitouc
unsigned char curlx_uitouc(unsigned int uinum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #endif DEBUGASSERT(uinum <= (unsigned int) CURL_MASK_UCHAR); return (unsigned char) (uinum & (unsigned int) CURL_MASK_UCHAR); #ifdef __INTEL_CO...
movl %edi, %eax retq
/macressler[P]curl/lib/warnless.c
ly_err_clean
void ly_err_clean(int with_errno) { struct ly_err_item *i, *next; i = ly_err_location()->errlist; ly_err_location()->errlist = NULL; for (; i; i = next) { next = i->next; free(i->msg); free(i->path); free(i); } if (with_errno) { ly_err_location()->no = L...
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %edi, %ebx callq 0xd0f0 movq 0x10(%rax), %r14 callq 0xd0f0 movq $0x0, 0x10(%rax) testq %r14, %r14 je 0xdc87 movq 0x8(%r14), %rdi movq 0x18(%r14), %r15 callq 0xc0c0 movq 0x10(%r14), %rdi callq 0xc0c0 movq %r14, %rdi callq 0xc0c0 movq %r15, %r14 ...
/RIFTIO[P]libyang/src/common.c
strnodetype
const char * strnodetype(LYS_NODE type) { switch (type) { case LYS_UNKNOWN: return NULL; case LYS_AUGMENT: return "augment"; case LYS_CONTAINER: return "container"; case LYS_CHOICE: return "choice"; case LYS_LEAF: return "leaf"; case LYS_LEAFLIST: ...
pushq %rbp movq %rsp, %rbp xorl %eax, %eax cmpl $0x1ff, %edi # imm = 0x1FF jg 0xde2b cmpl $0x1f, %edi jg 0xde63 leal -0x1(%rdi), %ecx cmpl $0x7, %ecx ja 0xdf04 leaq 0x7b1ea(%rip), %rdx # 0x89000 movslq (%rdx,%rcx,4), %rcx addq %rdx, %rcx jmpq *%rcx leaq 0x81af1(%rip), %rax # 0x8f917 jmp 0xdf61 cmpl $...
/RIFTIO[P]libyang/src/common.c
transform_json2xml
static const char * _transform_json2xml(const struct lys_module *module, const char *expr, int schema, const char ***prefixes, const char ***namespaces, uint32_t *ns_count) { const char *cur_expr, *end, *prefix, *ptr; char *out, *name; size_t out_size, out_used, name_len; const struc...
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %r9, -0x48(%rbp) movq %r8, -0x40(%rbp) movl %edx, -0x54(%rbp) movq %rdi, -0x90(%rbp) testq %rdi, %rdi je 0xe881 movq %rsi, %rbx testq %rsi, %rsi je 0xe881 testq %rcx, %rcx setne %al movq -0x40(%rbp), %rdi testq %rdi,...
/RIFTIO[P]libyang/src/common.c
transform_schema2json
const char * transform_schema2json(const struct lys_module *module, const char *expr) { const char *end, *cur_expr, *ptr; char *out; uint16_t i; size_t out_size, out_used, pref_len; const struct lys_module *mod; struct lyxp_expr *exp = NULL; out_size = strlen(expr) + 1; out = malloc(out...
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rsi, %rbx movq %rdi, -0x58(%rbp) movq %rsi, %rdi callq 0xc670 movq %rax, %r14 incq %r14 movq %r14, %rdi callq 0xced0 testq %rax, %rax je 0xf3d8 movq %rax, %r13 movq %rbx, %rdi callq 0xd160 movq %rax, %r12 testq %rax...
/RIFTIO[P]libyang/src/common.c
ly_ctx_new_yl_common
static struct ly_ctx * ly_ctx_new_yl_common(const char *search_dir, const char *input, LYD_FORMAT format, struct lyd_node* (*parser_func)(struct ly_ctx*, const char*, LYD_FORMAT, int,...)) { unsigned int u; struct lyd_node *module, *node; const char *name, *revision; struct ly_set f...
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rcx, %rbx movl %edx, %r14d movq %rsi, %r15 xorps %xmm0, %xmm0 movaps %xmm0, -0x40(%rbp) callq 0xd950 movq %rax, %rdi xorl %r12d, %r12d testq %rax, %rax je 0xfd64 movq %rdi, -0x30(%rbp) movq -0x30(%rbp), %rdi movq %r...
/RIFTIO[P]libyang/src/context.c
ly_ctx_get_module_iter
lys_module * ly_ctx_get_module_iter(const struct ly_ctx *ctx, uint32_t *idx) { if (!ctx || !idx) { ly_errno = LY_EINVAL; return NULL; } for ( ; *idx < (unsigned)ctx->models.used; (*idx)++) { if (!ctx->models.list[(*idx)]->disabled) { return ctx->models.list[(*idx)++]; ...
pushq %rbp movq %rsp, %rbp testq %rdi, %rdi sete %al testq %rsi, %rsi sete %cl orb %al, %cl jne 0x101c7 movl (%rsi), %ecx cmpl 0x603c(%rdi), %ecx jae 0x101d2 movq 0x6040(%rdi), %rdx movl %ecx, %eax movq (%rdx,%rax,8), %rax incl %ecx testb $0x40, 0x40(%rax) movl %ecx, (%rsi) je 0x101d4 cmpl 0x603c(%rdi), %ecx jb 0x101ad...
/RIFTIO[P]libyang/src/context.c
ly_ctx_get_module_by
static const struct lys_module * ly_ctx_get_module_by(const struct ly_ctx *ctx, const char *key, int offset, const char *revision, int with_disabled) { int i; struct lys_module *result = NULL; if (!ctx || !key) { ly_errno = LY_EINVAL; return NULL; } for (i = 0; i < ctx->models.used...
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movl %r8d, -0x2c(%rbp) movq %rcx, -0x38(%rbp) testq %rdi, %rdi sete %al movq %rsi, -0x48(%rbp) testq %rsi, %rsi sete %cl orb %al, %cl jne 0x102cc movq %rdi, %r12 movslq 0x603c(%rdi), %r14 testq %r14, %r14 jle 0x102d7 movl...
/RIFTIO[P]libyang/src/context.c
ly_ctx_get_module_imp_clb
API ly_module_imp_clb ly_ctx_get_module_imp_clb(const struct ly_ctx *ctx, void **user_data) { if (!ctx) { ly_errno = LY_EINVAL; return NULL; } if (user_data) { *user_data = ctx->imp_clb_data; } return ctx->imp_clb; }
testq %rdi, %rdi je 0x10419 testq %rsi, %rsi je 0x10411 movq 0x6068(%rdi), %rax movq %rax, (%rsi) movq 0x6060(%rdi), %rax retq pushq %rbp movq %rsp, %rbp callq 0xd7a0 movl $0x3, (%rax) xorl %eax, %eax popq %rbp retq
/RIFTIO[P]libyang/src/context.c