task_name stringlengths 4 18 | source_code stringlengths 134 18.1k | x86_64 stringlengths 1.13k 35.8k | aarch64_linux stringlengths 1.42k 36.4k | riscv64 stringlengths 1.57k 39.1k | aarch64_apple stringlengths 1.18k 31.7k |
|---|---|---|---|---|---|
ackermann | /* Ackermann.c: calculate the Ackermann function (as far as that is possible),
* and discuss its properties.
Compile: cc -o ackermann ackermann.c
( Use the flag -D_SHORT_STRINGS if your compiler cannot handle multiline
strings.)
For usage information, give the command ackermann -h or see USAGE define... | .text
.intel_syntax noprefix
.file "ackermann.c"
.globl ack # -- Begin function ack
.p2align 4, 0x90
.type ack,@function
ack: # @ack
.cfi_startproc
# %bb.0:
push rbp
.cfi_def_cfa_offset 16
.cfi_offset rbp, -16
mov rbp, rsp
.cfi_def_cfa_register ... | .text
.file "ackermann.c"
.globl ack // -- Begin function ack
.p2align 2
.type ack,@function
ack: // @ack
.cfi_startproc
// %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] // 16-byte Folded Spill
add x29, sp, #16
... | .text
.attribute 4, 16
.attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.file "ackermann.c"
.globl ack # -- Begin function ack
.p2align 1
.type ack,@function
ack: # @ack
.cfi_startproc
# %bb.0:
addi sp, sp, -32
.cfi_def_cfa_o... | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0
.globl _ack ; -- Begin function ack
.p2align 2
_ack: ; @ack
.cfi_startproc
; %bb.0:
sub sp, sp, #48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #3... |
audio-codec | /**
* @file
* @author [sunzhenliang](https://github.com/HiSunzhenliang)
* @brief A-law algorithm for encoding and decoding (16bit pcm <=> a-law).
* This is the implementation of [G.711](https://en.wikipedia.org/wiki/G.711)
* in C.
**/
/**
* Linear input code | Compressed code | Linear output code
* -----------... | .text
.intel_syntax noprefix
.file "audio-codec.c"
.globl encode # -- Begin function encode
.p2align 4, 0x90
.type encode,@function
encode: # @encode
.cfi_startproc
# %bb.0:
push rbp
.cfi_def_cfa_offset 16
.cfi_offset rbp, -16
mov rbp, rsp
.cfi_def_cf... | .text
.file "audio-codec.c"
.globl encode // -- Begin function encode
.p2align 2
.type encode,@function
encode: // @encode
.cfi_startproc
// %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
str x0, [sp, #72]
str x1, [sp, #64]
str x2, [sp, #56]
strb wzr, ... | .text
.attribute 4, 16
.attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.file "audio-codec.c"
.globl encode # -- Begin function encode
.p2align 1
.type encode,@function
encode: # @encode
.cfi_startproc
# %bb.0:
addi sp, sp, -112
.c... | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0
.globl _encode ; -- Begin function encode
.p2align 2
_encode: ; @encode
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
str x0, [sp, #72]
str x1, [sp, #64]
str x2,... |
avl-tree | "/* A balanced binary search tree(AVLTree) implementation\n * Written by Coleman\n * Released under (...TRUNCATED) | "\t.text\n\t.intel_syntax noprefix\n\t.file\t\"avl-tree.c\"\n\t.globl\tprintTree (...TRUNCATED) | "\t.text\n\t.file\t\"avl-tree.c\"\n\t.globl\tprintTree // -- Begin function pr(...TRUNCATED) | "\t.text\n\t.attribute\t4, 16\n\t.attribute\t5, \"rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifence(...TRUNCATED) | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 15, 0\n\t.globl\t_prin(...TRUNCATED) |
bit-kernels | "#include \"libmin.h\"\n\n#define NUM_ELEMENTS 100 // Total numbers to test\n#define TABLE_SIZE 25(...TRUNCATED) | "\t.text\n\t.intel_syntax noprefix\n\t.file\t\"bit-kernels.c\"\n\t.globl\tcount_bits_naive (...TRUNCATED) | "\t.text\n\t.file\t\"bit-kernels.c\"\n\t.globl\tcount_bits_naive // -- Begin function(...TRUNCATED) | "\t.text\n\t.attribute\t4, 16\n\t.attribute\t5, \"rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifence(...TRUNCATED) | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 15, 0\n\t.globl\t_coun(...TRUNCATED) |
bloom-filter | "#include \"libmin.h\"\n#include \"tinybloom.h\"\n\n#define NUM_ITEMS 2048\n#define NUM_BUCKETS NUM_(...TRUNCATED) | "\t.text\n\t.intel_syntax noprefix\n\t.file\t\"bloom-filter.c\"\n\t.globl\tbad_search (...TRUNCATED) | "\t.text\n\t.file\t\"bloom-filter.c\"\n\t.globl\tbad_search // -- Begin functio(...TRUNCATED) | "\t.text\n\t.attribute\t4, 16\n\t.attribute\t5, \"rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifence(...TRUNCATED) | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 15, 0\n\t.globl\t_bad_(...TRUNCATED) |
boyer-moore-search | "/* C Program for Bad Character Heuristic of Boyer\nMoore String Matching Algorithm */\n// SOURCE: h(...TRUNCATED) | "\t.text\n\t.intel_syntax noprefix\n\t.file\t\"boyer-moore-search.c\"\n\t.globl\tbadCharHeuristic (...TRUNCATED) | "\t.text\n\t.file\t\"boyer-moore-search.c\"\n\t.globl\tbadCharHeuristic // -- Begin f(...TRUNCATED) | "\t.text\n\t.attribute\t4, 16\n\t.attribute\t5, \"rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifence(...TRUNCATED) | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 15, 0\n\t.globl\t_badC(...TRUNCATED) |
bubble-sort | "#include \"libmin.h\"\n\n// supported sizes: 256 (default), 512, 1024, 2048\n#define DATASET_SIZE 2(...TRUNCATED) | "\t.text\n\t.intel_syntax noprefix\n\t.file\t\"bubble-sort.c\"\n\t.globl\tprint_data (...TRUNCATED) | "\t.text\n\t.file\t\"bubble-sort.c\"\n\t.globl\tprint_data // -- Begin function(...TRUNCATED) | "\t.text\n\t.attribute\t4, 16\n\t.attribute\t5, \"rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifence(...TRUNCATED) | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 15, 0\n\t.globl\t_prin(...TRUNCATED) |
ccmac | "// bench_horner_fp64.c\n// Simple FP64 Horner benchmark: y = (((cD*x + cD-1)*x + ... )*x + c0)\n// (...TRUNCATED) | "\t.text\n\t.intel_syntax noprefix\n\t.file\t\"ccmac.c\"\n\t.section\t.rodata.cst8,\"aM\",@progbits,(...TRUNCATED) | "\t.text\n\t.file\t\"ccmac.c\"\n\t.section\t.rodata.cst8,\"aM\",@progbits,8\n\t.p2align\t3, 0x0 (...TRUNCATED) | "\t.text\n\t.attribute\t4, 16\n\t.attribute\t5, \"rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifence(...TRUNCATED) | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 15, 0\n\t.section\t__T(...TRUNCATED) |
checkers | "#include \"libmin.h\"\n\n#include \"consttypes.h\"\n#include \"functions.h\"\n\n#include \"test0-tx(...TRUNCATED) | "\t.text\n\t.intel_syntax noprefix\n\t.file\t\"checkers.c\"\n\t.globl\tmain (...TRUNCATED) | "\t.text\n\t.file\t\"checkers.c\"\n\t.globl\tmain // -- Begin function ma(...TRUNCATED) | "\t.text\n\t.attribute\t4, 16\n\t.attribute\t5, \"rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifence(...TRUNCATED) | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 15, 0\n\t.globl\t_main(...TRUNCATED) |
cipher | "#include \"libmin.h\"\n\nvoid\nencipher(uint32_t *const in,\n\t uint32_t *const out,\n\t const uint(...TRUNCATED) | "\t.text\n\t.intel_syntax noprefix\n\t.file\t\"cipher.c\"\n\t.globl\tencipher (...TRUNCATED) | "\t.text\n\t.file\t\"cipher.c\"\n\t.globl\tencipher // -- Begin function enci(...TRUNCATED) | "\t.text\n\t.attribute\t4, 16\n\t.attribute\t5, \"rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifence(...TRUNCATED) | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 15, 0\n\t.globl\t_enci(...TRUNCATED) |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 136