repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
lizrice/learning-ebpf | https://github.com/lizrice/learning-ebpf | null | null | null | null | 1,730 | null | null | apache-2.0 | null | null | null | null | null | null | null | chapter5/xdp.bpf.c | null | null | null | null | null | null | C | 2026-05-04T19:07:42.261180 | #include "vmlinux.h"
#include <bpf/bpf_helpers.h>
u32 count = 0;
SEC("xdp")
int hello(struct xdp_md *ctx) {
count++;
bpf_printk("Hello World %d", count);
return XDP_PASS;
}
char LICENSE[] SEC("license") = "Dual BSD/GPL"; |
lizrice/learning-ebpf | https://github.com/lizrice/learning-ebpf | null | null | null | null | 1,730 | null | null | apache-2.0 | null | null | null | null | null | null | null | chapter5/hello-buffer-config.c | null | null | null | null | null | null | C | 2026-05-04T19:07:42.268793 | #include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <bpf/libbpf.h>
#include "hello-buffer-config.h"
#include "hello-buffer-config.skel.h"
static int libbpf_print_fn(enum libbpf_print_level level, const char *format, va_list args)
{
if (level >= LIBBPF_DEBUG)
return 0;
return vfprintf(stderr, format... |
lizrice/learning-ebpf | https://github.com/lizrice/learning-ebpf | null | null | null | null | 1,730 | null | null | apache-2.0 | null | null | null | null | null | null | null | chapter3/hello-func.bpf.c | null | null | null | null | null | null | C | 2026-05-04T19:07:42.367678 | #include <linux/bpf.h>
#include <bpf/bpf_helpers.h>
static __attribute((noinline)) int get_opcode(struct bpf_raw_tracepoint_args *ctx) {
return ctx->args[1];
}
SEC("raw_tp/")
int hello(struct bpf_raw_tracepoint_args *ctx) {
int opcode = get_opcode(ctx);
bpf_printk("Syscall: %d", opcode);
return 0;
}
... |
lizrice/learning-ebpf | https://github.com/lizrice/learning-ebpf | null | null | null | null | 1,730 | null | null | apache-2.0 | null | null | null | null | null | null | null | chapter3/hello.bpf.c | null | null | null | null | null | null | C | 2026-05-04T19:07:42.368973 | #include <linux/bpf.h>
#include <bpf/bpf_helpers.h>
int counter = 0;
SEC("xdp")
int hello(struct xdp_md *ctx) {
bpf_printk("Hello World %d", counter);
counter++;
return XDP_PASS;
}
char LICENSE[] SEC("license") = "Dual BSD/GPL";
|
lizrice/learning-ebpf | https://github.com/lizrice/learning-ebpf | null | null | null | null | 1,730 | null | null | apache-2.0 | null | null | null | null | null | null | null | chapter5/hello-buffer-config.h | null | null | null | null | null | null | C | 2026-05-04T19:07:42.469423 | #ifndef HELLO_BUFFER_CONFIG_H
#define HELLO_BUFFER_CONFIG_H
struct data_t {
int pid;
int uid;
char command[16];
char message[12];
char path[16];
};
#endif
|
lizrice/learning-ebpf | https://github.com/lizrice/learning-ebpf | null | null | null | null | 1,730 | null | null | apache-2.0 | null | null | null | null | null | null | null | chapter8/hello.bpf.c | null | null | null | null | null | null | C | 2026-05-04T19:07:43.003677 | #include "vmlinux.h"
#include <bpf/bpf_endian.h>
#include <bpf/bpf_helpers.h>
#include "packet.h"
SEC("xdp")
int ping(struct xdp_md *ctx) {
long protocol = lookup_protocol(ctx);
if (protocol == 1) // ICMP
{
bpf_printk("Hello ping");
// return XDP_DROP;
}
return XDP_PASS;
}
char L... |
lizrice/learning-ebpf | https://github.com/lizrice/learning-ebpf | null | null | null | null | 1,730 | null | null | apache-2.0 | null | null | null | null | null | null | null | chapter6/hello-verifier.c | null | null | null | null | null | null | C | 2026-05-04T19:07:43.090884 | #include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <bpf/libbpf.h>
#include "hello-verifier.h"
#include "hello-verifier.skel.h"
static int libbpf_print_fn(enum libbpf_print_level level, const char *format, va_list args)
{
if (level >= LIBBPF_DEBUG)
return 0;
return vfprintf(stde... |
lizrice/learning-ebpf | https://github.com/lizrice/learning-ebpf | null | null | null | null | 1,730 | null | null | apache-2.0 | null | null | null | null | null | null | null | chapter7/hello.c | null | null | null | null | null | null | C | 2026-05-04T19:07:43.111209 | #include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <bpf/libbpf.h>
#include "hello.h"
#include "hello.skel.h"
static int libbpf_print_fn(enum libbpf_print_level level, const char *format, va_list args)
{
if (level >= LIBBPF_DEBUG)
return 0;
return vfprintf(stderr, format, args);... |
lizrice/learning-ebpf | https://github.com/lizrice/learning-ebpf | null | null | null | null | 1,730 | null | null | apache-2.0 | null | null | null | null | null | null | null | chapter6/hello-verifier.h | null | null | null | null | null | null | C | 2026-05-04T19:07:43.400033 | struct data_t {
int pid;
int uid;
int counter;
char command[16];
char message[12];
};
struct msg_t {
char message[12];
};
|
lizrice/learning-ebpf | https://github.com/lizrice/learning-ebpf | null | null | null | null | 1,730 | null | null | apache-2.0 | null | null | null | null | null | null | null | chapter8/network.bpf.c | null | null | null | null | null | null | C | 2026-05-04T19:07:43.498901 | #include "network.h"
#include <bcc/proto.h>
#include <linux/pkt_cls.h>
int tcpconnect(void *ctx) {
bpf_trace_printk("[tcpconnect]\n");
return 0;
}
int socket_filter(struct __sk_buff *skb) {
unsigned char *cursor = 0;
struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet));
// Look for IP p... |
lizrice/learning-ebpf | https://github.com/lizrice/learning-ebpf | null | null | null | null | 1,730 | null | null | apache-2.0 | null | null | null | null | null | null | null | chapter8/network.h | null | null | null | null | null | null | C | 2026-05-04T19:07:43.597884 | #include <linux/icmp.h>
#include <linux/if_ether.h>
#include <linux/ip.h>
static __always_inline unsigned short is_icmp_ping_request(void *data,
void *data_end) {
struct ethhdr *eth = data;
if (data + sizeof(struct ethhdr) > data_end)
return 0;
if (... |
lizrice/learning-ebpf | https://github.com/lizrice/learning-ebpf | null | null | null | null | 1,730 | null | null | apache-2.0 | null | null | null | null | null | null | null | chapter5/hello-buffer-config.bpf.c | null | null | null | null | null | null | C | 2026-05-04T19:07:44.083588 | #include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
#include "hello-buffer-config.h"
char message[12] = "Hello World";
struct {
__uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY);
__uint(key_size, sizeof(u32));
__uint(value_size, sizeof(u32));
} output SE... |
lizrice/learning-ebpf | https://github.com/lizrice/learning-ebpf | null | null | null | null | 1,730 | null | null | apache-2.0 | null | null | null | null | null | null | null | chapter5/find-map.c | null | null | null | null | null | null | C | 2026-05-04T19:07:44.125281 | #include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <bpf/bpf.h>
// Run this as root
int main()
{
struct bpf_map_info info = {};
unsigned int len = sizeof(info);
int findme = bpf_obj_get("/sys/fs/bpf/findme");
if (findme <= 0) {
printf("No FD\n");
} else {
bpf_obj_g... |
lizrice/learning-ebpf | https://github.com/lizrice/learning-ebpf | null | null | null | null | 1,730 | null | null | apache-2.0 | null | null | null | null | null | null | null | chapter7/hello.h | null | null | null | null | null | null | C | 2026-05-04T19:07:44.202231 | struct data_t {
int pid;
int uid;
char command[16];
char message[12];
char path[16];
};
struct msg_t {
char message[12];
};
|
lizrice/learning-ebpf | https://github.com/lizrice/learning-ebpf | null | null | null | null | 1,730 | null | null | apache-2.0 | null | null | null | null | null | null | null | chapter8/packet.h | null | null | null | null | null | null | C | 2026-05-04T19:07:44.466999 | #define TC_ACT_UNSPEC (-1)
#define TC_ACT_OK 0
#define TC_ACT_RECLASSIFY 1
#define TC_ACT_SHOT 2
#define ETH_P_IP 0x0800
#define ICMP_PING 8
#define ETH_ALEN 6
#define ETH_HLEN 14
#define IP_SRC_OFF (ETH_HLEN + offsetof(struct iphdr, saddr))
#define IP_DST_OFF (ETH_HLEN + offsetof(struct iphdr, dad... |
lizrice/learning-ebpf | https://github.com/lizrice/learning-ebpf | null | null | null | null | 1,730 | null | null | apache-2.0 | null | null | null | null | null | null | null | chapter7/hello.bpf.c | null | null | null | null | null | null | C | 2026-05-04T19:07:47.535819 | #include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
#include "hello.h"
const char kprobe_sys_msg[16] = "sys_execve";
const char kprobe_msg[16] = "do_execve";
const char fentry_msg[16] = "fentry_execve";
const char tp_msg[16] = "tp_execve";
const char tp_btf_exe... |
lizrice/learning-ebpf | https://github.com/lizrice/learning-ebpf | null | null | null | null | 1,730 | null | null | apache-2.0 | null | null | null | null | null | null | null | chapter8/ping.bpf.c | null | null | null | null | null | null | C | 2026-05-04T19:07:49.173956 | #include "network.h"
#include <bcc/proto.h>
#include <linux/pkt_cls.h>
int xdp(struct xdp_md *ctx) {
void *data = (void *)(long)ctx->data;
void *data_end = (void *)(long)ctx->data_end;
if (is_icmp_ping_request(data, data_end)) {
bpf_trace_printk("Got ping packet");
return XDP_DROP;
}
return... |
dav/word2vec | https://github.com/dav/word2vec | null | null | null | null | 1,728 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/distance.c | null | null | null | null | null | null | C | 2026-05-04T19:07:56.423358 | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... |
dav/word2vec | https://github.com/dav/word2vec | null | null | null | null | 1,728 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/word-analogy.c | null | null | null | null | null | null | C | 2026-05-04T19:07:56.427373 | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... |
dav/word2vec | https://github.com/dav/word2vec | null | null | null | null | 1,728 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/word2vec.c | null | null | null | null | null | null | C | 2026-05-04T19:07:56.438638 | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... |
dav/word2vec | https://github.com/dav/word2vec | null | null | null | null | 1,728 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/compute-accuracy.c | null | null | null | null | null | null | C | 2026-05-04T19:07:56.474716 | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... |
dav/word2vec | https://github.com/dav/word2vec | null | null | null | null | 1,728 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/word2phrase.c | null | null | null | null | null | null | C | 2026-05-04T19:07:56.489518 | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/atomics/dummy/stdatomic.h | null | null | null | null | null | null | C | 2026-05-04T19:07:59.630716 | /*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/aix/math.h | null | null | null | null | null | null | C | 2026-05-04T19:07:59.636574 | /*
* Work around the class() function in AIX math.h clashing with
* identifiers named "class".
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/avisynth/avs/capi.h | null | null | null | null | null | null | C | 2026-05-04T19:07:59.637601 | // Avisynth C Interface Version 0.20
// Copyright 2003 Kevin Atkinson
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later versio... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/avisynth/avs/config.h | null | null | null | null | null | null | C | 2026-05-04T19:07:59.650773 | // Avisynth C Interface Version 0.20
// Copyright 2003 Kevin Atkinson
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later versio... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/atomics/win32/stdatomic.h | null | null | null | null | null | null | C | 2026-05-04T19:07:59.652010 | /*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/atomics/gcc/stdatomic.h | null | null | null | null | null | null | C | 2026-05-04T19:07:59.659015 | /*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/atomics/pthread/stdatomic.h | null | null | null | null | null | null | C | 2026-05-04T19:07:59.683553 | /*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/avisynth/avisynth_c.h | null | null | null | null | null | null | C | 2026-05-04T19:07:59.708920 | // Avisynth C Interface Version 0.20
// Copyright 2003 Kevin Atkinson
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later versio... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/atomics/pthread/stdatomic.c | null | null | null | null | null | null | C | 2026-05-04T19:07:59.768309 | /*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/atomics/suncc/stdatomic.h | null | null | null | null | null | null | C | 2026-05-04T19:07:59.771148 | /*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/avisynth/avs/types.h | null | null | null | null | null | null | C | 2026-05-04T19:08:00.396599 | // Avisynth C Interface Version 0.20
// Copyright 2003 Kevin Atkinson
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later versio... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/float/limits.h | null | null | null | null | null | null | C | 2026-05-04T19:08:00.834696 | /*
* Work around broken floating point limits on some systems.
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/cuda/dynlink_loader.h | null | null | null | null | null | null | C | 2026-05-04T19:08:00.835457 | /*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/float/float.h | null | null | null | null | null | null | C | 2026-05-04T19:08:00.933493 | /*
* Work around broken floating point limits on some systems.
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/avisynth/windowsPorts/basicDataTypeConversions.h | null | null | null | null | null | null | C | 2026-05-04T19:08:00.934162 | #ifndef __DATA_TYPE_CONVERSIONS_H__
#define __DATA_TYPE_CONVERSIONS_H__
#include <stdint.h>
#include <wchar.h>
#ifdef __cplusplus
namespace avxsynth {
#endif // __cplusplus
typedef int64_t __int64;
typedef int32_t __int32;
#ifdef __cplusplus
typedef bool BOOL;
#else
typedef uint32_t BOOL;
#endif // __cplusplus
typed... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/dispatch_semaphore/semaphore.h | null | null | null | null | null | null | C | 2026-05-04T19:08:00.935662 | /*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/avisynth/windowsPorts/windows2linux.h | null | null | null | null | null | null | C | 2026-05-04T19:08:01.014888 | #ifndef __WINDOWS2LINUX_H__
#define __WINDOWS2LINUX_H__
/*
* LINUX SPECIFIC DEFINITIONS
*/
//
// Data types conversions
//
#include <stdlib.h>
#include <string.h>
#include "basicDataTypeConversions.h"
#ifdef __cplusplus
namespace avxsynth {
#endif // __cplusplus
//
// purposefully define the following MSFT definitio... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/os2threads.h | null | null | null | null | null | null | C | 2026-05-04T19:08:01.477692 | /*
* Copyright (c) 2011-2017 KO Myung-Hun <komh@chollian.net>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or ... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/avisynth/avxsynth_c.h | null | null | null | null | null | null | C | 2026-05-04T19:08:01.518284 | // Avisynth C Interface Version 0.20
// Copyright 2003 Kevin Atkinson
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later versio... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/msvcrt/snprintf.c | null | null | null | null | null | null | C | 2026-05-04T19:08:01.558931 | /*
* C99-compatible snprintf() and vsnprintf() implementations
* Copyright (c) 2012 Ronald S. Bultje <rsbultje@gmail.com>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free S... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/getopt.c | null | null | null | null | null | null | C | 2026-05-04T19:08:01.561862 | /*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/strtod.c | null | null | null | null | null | null | C | 2026-05-04T19:08:01.563473 | /*
* C99-compatible strtod() implementation
* Copyright (c) 2012 Ronald S. Bultje <rsbultje@gmail.com>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/w32pthreads.h | null | null | null | null | null | null | C | 2026-05-04T19:08:01.571178 | /*
* Copyright (C) 2010-2011 x264 project
*
* Authors: Steven Walters <kemuri9@gmail.com>
* Pegasys Inc. <http://www.pegasys-inc.com>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as ... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/va_copy.h | null | null | null | null | null | null | C | 2026-05-04T19:08:01.590098 | /*
* MSVC Compatible va_copy macro
* Copyright (c) 2012 Derek Buitenhuis
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the ... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/avio_dir_cmd.c | null | null | null | null | null | null | C | 2026-05-04T19:08:01.701600 | /*
* Copyright (c) 2014 Lukasz Marek
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publis... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/w32dlfcn.h | null | null | null | null | null | null | C | 2026-05-04T19:08:01.742674 | /*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/avio_reading.c | null | null | null | null | null | null | C | 2026-05-04T19:08:02.074877 | /*
* Copyright (c) 2014 Stefano Sabatini
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/decode_audio.c | null | null | null | null | null | null | C | 2026-05-04T19:08:02.126913 | /*
* Copyright (c) 2001 Fabrice Bellard
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pub... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/encode_audio.c | null | null | null | null | null | null | C | 2026-05-04T19:08:02.163828 | /*
* Copyright (c) 2001 Fabrice Bellard
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pub... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/demuxing_decoding.c | null | null | null | null | null | null | C | 2026-05-04T19:08:02.187064 | /*
* Copyright (c) 2012 Stefano Sabatini
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/extract_mvs.c | null | null | null | null | null | null | C | 2026-05-04T19:08:02.226789 | /*
* Copyright (c) 2012 Stefano Sabatini
* Copyright (c) 2014 Clément Bœsch
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the right... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/decode_video.c | null | null | null | null | null | null | C | 2026-05-04T19:08:02.237458 | /*
* Copyright (c) 2001 Fabrice Bellard
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pub... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/encode_video.c | null | null | null | null | null | null | C | 2026-05-04T19:08:02.286180 | /*
* Copyright (c) 2001 Fabrice Bellard
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pub... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/filter_audio.c | null | null | null | null | null | null | C | 2026-05-04T19:08:02.287391 | /*
* copyright (c) 2013 Andrew Kelley
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any lat... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/filtering_audio.c | null | null | null | null | null | null | C | 2026-05-04T19:08:02.380367 | /*
* Copyright (c) 2010 Nicolas George
* Copyright (c) 2011 Stefano Sabatini
* Copyright (c) 2012 Clément Bœsch
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, i... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/filtering_video.c | null | null | null | null | null | null | C | 2026-05-04T19:08:02.694364 | /*
* Copyright (c) 2010 Nicolas George
* Copyright (c) 2011 Stefano Sabatini
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the righ... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/http_multiclient.c | null | null | null | null | null | null | C | 2026-05-04T19:08:02.761957 | /*
* Copyright (c) 2015 Stephan Holljes
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pub... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/hw_decode.c | null | null | null | null | null | null | C | 2026-05-04T19:08:02.775081 | /*
* Copyright (c) 2017 Jun Zhao
* Copyright (c) 2017 Kaixuan Liu
*
* HW Acceleration API (video decoding) decode sample
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free ... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/metadata.c | null | null | null | null | null | null | C | 2026-05-04T19:08:02.784847 | /*
* Copyright (c) 2011 Reinhard Tartler
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/muxing.c | null | null | null | null | null | null | C | 2026-05-04T19:08:02.861476 | /*
* Copyright (c) 2003 Fabrice Bellard
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pub... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/qsvdec.c | null | null | null | null | null | null | C | 2026-05-04T19:08:02.906972 | /*
* Copyright (c) 2015 Anton Khirnov
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/resampling_audio.c | null | null | null | null | null | null | C | 2026-05-04T19:08:02.922016 | /*
* Copyright (c) 2012 Stefano Sabatini
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/remuxing.c | null | null | null | null | null | null | C | 2026-05-04T19:08:02.946147 | /*
* Copyright (c) 2013 Stefano Sabatini
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/scaling_video.c | null | null | null | null | null | null | C | 2026-05-04T19:08:03.128513 | /*
* Copyright (c) 2012 Stefano Sabatini
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/vaapi_transcode.c | null | null | null | null | null | null | C | 2026-05-04T19:08:03.433352 | /*
* Video Acceleration API (video transcoding) transcode sample
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, ... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/vaapi_encode.c | null | null | null | null | null | null | C | 2026-05-04T19:08:03.434096 | /*
* Video Acceleration API (video encoding) encode sample
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/transcode_aac.c | null | null | null | null | null | null | C | 2026-05-04T19:08:03.501561 | /*
* Copyright (c) 2013-2018 Andreas Unterweger
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your optio... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/print_options.c | null | null | null | null | null | null | C | 2026-05-04T19:08:03.538400 | /*
* Copyright (c) 2012 Anton Khirnov
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any lat... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/doc/examples/transcoding.c | null | null | null | null | null | null | C | 2026-05-04T19:08:03.589535 | /*
* Copyright (c) 2010 Nicolas George
* Copyright (c) 2011 Stefano Sabatini
* Copyright (c) 2014 Andrey Utkin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, in... |
yangchaojiang/yjPlay | https://github.com/yangchaojiang/yjPlay | null | null | null | null | 1,725 | null | null | apache-2.0 | null | null | null | null | null | null | null | ffmpeg/src/main/jni/ffmpeg/compat/msvcrt/snprintf.h | null | null | null | null | null | null | C | 2026-05-04T19:08:06.329950 | /*
* C99-compatible snprintf() and vsnprintf() implementations
* Copyright (c) 2012 Ronald S. Bultje <rsbultje@gmail.com>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free S... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/launch_saxpy.c | null | null | null | null | null | null | C | 2026-05-04T19:08:09.257978 | /* launch_saxpy.c — Run a BarraCUDA-compiled SAXPY kernel on real hardware.
*
* Build: gcc -std=c99 -O2 -I src/runtime
* examples/launch_saxpy.c src/runtime/bc_runtime.c
* -ldl -lm -o launch_saxpy
* Run: ./barracuda --amdgpu-bin -o test.hsaco tests/canonical.cu
* ./launch_saxpy... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/amdgpu/ra_ssa.h | null | null | null | null | null | null | C | 2026-05-04T19:08:09.265573 | #ifndef BARRACUDA_RA_SSA_H
#define BARRACUDA_RA_SSA_H
#include "amdgpu.h"
/*
* Divergence-aware SSA register allocator.
* Spills uniform VGPRs cheaply (readfirstlane, 4 bytes scratch)
* and preserves divergent VGPRs in registers (256 bytes scratch each).
* Operates on SSA form before phi elimination.
*
* Refere... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/amdgpu/enc_tab.c | null | null | null | null | null | null | C | 2026-05-04T19:08:09.272089 | #include "amdgpu.h"
/*
* AMDGCN opcode encoding tables.
* Maps amd_op_t -> (format, hw_opcode, mnemonic) for each target generation.
* GFX11 (gfx1100, RDNA 3) and GFX10 (gfx1030, RDNA 2) opcodes extracted
* by assembling with llvm-mc and reading the bones.
* Two manuals, twice the fun.
*/
/* ---- GFX11 Encoding... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/amdgpu/amd_rplan.c | null | null | null | null | null | null | C | 2026-05-04T19:08:09.279465 | #include "amdgpu.h"
#include <string.h>
#include <stdio.h>
/*
* Resource planning pass for AMDGPU kernels.
*
* Scans BIR, stamps target-specific constants onto mfunc_t.
* Downstream passes read decisions, never ask questions.
* Modelled on tensix/coarsen.c — same philosophy, different planet.
*
* The GPU hardwa... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/amdgpu/ra_ssa.c | null | null | null | null | null | null | C | 2026-05-04T19:08:09.280693 | #include "amdgpu.h"
#include <string.h>
#include <stdio.h>
/*
* Divergence-aware SSA register allocator for AMDGCN.
*
* On Wave64 (CDNA3/MI300X), spilling a divergent VGPR costs 64 dwords
* of scratch per lane. Spilling a uniform VGPR costs 1 dword — extract
* via v_readfirstlane, store as scalar, broadcast back... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/amdgpu/sched.h | null | null | null | null | null | null | C | 2026-05-04T19:08:09.281552 | #ifndef BARRACUDA_AMDGPU_SCHED_H
#define BARRACUDA_AMDGPU_SCHED_H
#include "amdgpu.h"
/*
* Instruction scheduling for AMDGPU backend.
*
* Reorders instructions within basic blocks to hide memory
* latency. Runs between isel and regalloc on virtual registers.
*/
void amdgpu_sched(amd_module_t *A);
#endif /* BA... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/amdgpu/encode.h | null | null | null | null | null | null | C | 2026-05-04T19:08:09.295733 | #ifndef BARRACUDA_AMDGPU_ENCODE_H
#define BARRACUDA_AMDGPU_ENCODE_H
#include "amdgpu.h"
/* Binary-encode a single machine function into A->code[].
Called by emit.c during ELF generation. */
void encode_function(amd_module_t *A, uint32_t mf_idx);
/* Return the encoding table for the current target */
const amd_enc... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/amdgpu/amdgpu.h | null | null | null | null | null | null | C | 2026-05-04T19:08:09.297310 | #ifndef BARRACUDA_AMDGPU_H
#define BARRACUDA_AMDGPU_H
#include "bir.h"
/*
* AMDGPU backend for BarraCUDA.
* Targets CDNA 2/3 (gfx90a/gfx942), RDNA 2 (gfx1030), RDNA 3 (gfx1100), RDNA 4 (gfx1200).
* Compiles BIR SSA to AMDGCN machine IR, then emits assembly text
* or binary ELF code objects (.hsaco).
* Built with... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/amdgpu/sched.c | null | null | null | null | null | null | C | 2026-05-04T19:08:09.299647 | /* sched.c -- instruction scheduler for AMDGPU backend
*
* Per-block list scheduling that reorders instructions to hide memory
* latency. Strips wait instructions, builds a dependency DAG, schedules
* by critical-path priority, then re-inserts waits just before the
* first consumer of each load.
*
* Runs on virt... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/amdgpu/encode.c | null | null | null | null | null | null | C | 2026-05-04T19:08:09.301234 | #include "encode.h"
#include <string.h>
/*
* AMDGCN binary instruction encoding.
* Turns machine instructions into the dwords the hardware actually chews on.
* Each format has its own encoder, because AMD's ISA designers apparently
* considered "consistency" a four-letter word.
*/
/* ---- Helpers ---- */
/* Inl... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/amdgpu/verify.c | null | null | null | null | null | null | C | 2026-05-04T19:08:09.886068 | /*
* verify.c — post-isel verification pass
*
* Catches encoding violations before they become "Reason: Unknown"
* on actual hardware. The GPU is not your friend; it will eat your
* instructions and blame you for the indigestion.
*
* Five checks, two phases. Takes about as long as a sneeze.
*/
#include "veri... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/amdgpu/verify.h | null | null | null | null | null | null | C | 2026-05-04T19:08:09.889796 | #ifndef BARRACUDA_AMDGPU_VERIFY_H
#define BARRACUDA_AMDGPU_VERIFY_H
#include "amdgpu.h"
/*
* Post-isel verification pass.
*
* Checks machine instructions for encoding violations that would
* silently miscompile into GPU faults. Runs twice: once after isel
* (virtual regs ok) and once after regalloc (physical on... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/barracuda.h | null | null | null | null | null | null | C | 2026-05-04T19:08:09.926252 | #ifndef BARRACUDA_H
#define BARRACUDA_H
#include <stdint.h>
#include <stdio.h>
#include <string.h>
/* The universe has limits. So do our buffers. No malloc, no madness. */
#define BC_MAX_SOURCE (4 * 1024 * 1024)
#define BC_MAX_TOKENS (1 << 20)
#define BC_MAX_IDENT 256
#define BC_MAX_ERRORS 64... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/fe/bc_err.h | null | null | null | null | null | null | C | 2026-05-04T19:08:09.950004 | /* bc_err.h — Error localisation for BarraCUDA
*
* Every diagnostic gets a numeric ID (E001..E129). English is compiled in;
* external translation files loaded via --lang override individual messages.
* A Japanese dev can Google "BarraCUDA E020" regardless of locale.
* No malloc. No nonsense. */
#ifndef BARRACUDA... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/fe/bc_err.c | null | null | null | null | null | null | C | 2026-05-04T19:08:09.951722 | /* bc_err.c — Error localisation for BarraCUDA
*
* Compiled-in English defaults + optional external translation file.
* Fixed 32KB buffer for translations. No malloc. Bounded loops.
* If your error message doesn't fit in 32KB, you have bigger problems
* than localisation. */
#include "bc_err.h"
#include <stdio.h>... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/fe/lexer.h | null | null | null | null | null | null | C | 2026-05-04T19:08:09.953033 | #ifndef BARRACUDA_LEXER_H
#define BARRACUDA_LEXER_H
#include "token.h"
typedef struct {
const char *src;
uint32_t src_len;
uint32_t pos;
uint32_t line;
uint32_t line_start;
token_t *tokens;
uint32_t num_tokens;
uint32_t max_tokens;
bc_error_t errors[BC_MAX_E... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/fe/ast.h | null | null | null | null | null | null | C | 2026-05-04T19:08:09.961360 | #ifndef BARRACUDA_AST_H
#define BARRACUDA_AST_H
#include "barracuda.h"
#define BC_MAX_NODES (1 << 18)
typedef enum {
AST_NONE = 0,
AST_INT_LIT,
AST_FLOAT_LIT,
AST_STRING_LIT,
AST_CHAR_LIT,
AST_BOOL_LIT,
AST_NULL_LIT,
AST_IDENT,
AST_BINARY,
AST_UNARY_PREFIX,
AST_UNARY_P... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/fe/lexer.c | null | null | null | null | null | null | C | 2026-05-04T19:08:09.962806 | #include "lexer.h"
#include <ctype.h>
#include <stdarg.h>
/* 80 keywords walk into a sorted bar */
typedef struct {
const char *name;
int type;
} kw_entry_t;
static const kw_entry_t keywords[] = {
{"__constant__", TOK_CU_CONSTANT},
{"__device__", TOK_CU_DEVICE},
{"__forceinl... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/fe/parser.h | null | null | null | null | null | null | C | 2026-05-04T19:08:09.998487 | #ifndef BARRACUDA_PARSER_H
#define BARRACUDA_PARSER_H
#include "ast.h"
#include "token.h"
typedef struct {
const token_t *tokens;
uint32_t num_tokens;
uint32_t pos;
const char *src;
ast_node_t *nodes;
uint32_t num_nodes;
uint32_t max_nodes;
/* Lau... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/fe/parser.c | null | null | null | null | null | null | C | 2026-05-04T19:08:10.016424 | #include "parser.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
/* Every node gets a name. Even the ones that probably shouldn't exist. */
static const char *ast_names[] = {
[AST_NONE] = "NONE",
[AST_INT_LIT] = "int_lit",
[AST_FLOAT_LIT] = "float_lit",
[AST_STRING_LIT... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/fe/preproc.h | null | null | null | null | null | null | C | 2026-05-04T19:08:10.721618 | #ifndef BARRACUDA_PREPROC_H
#define BARRACUDA_PREPROC_H
#include "barracuda.h"
/*
* CUDA preprocessor for BarraCUDA.
* Runs before the lexer on raw source text.
* Handles: #include, #define/#undef, macro expansion,
* #ifdef/#ifndef/#if/#elif/#else/#endif, #pragma, #error.
* Output: single expanded sourc... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ir/bir_cfold.h | null | null | null | null | null | null | C | 2026-05-04T19:08:10.770459 | #ifndef BARRACUDA_BIR_CFOLD_H
#define BARRACUDA_BIR_CFOLD_H
#include "bir.h"
/*
* Constant folding.
*
* Runs after mem2reg, before DCE. Evaluates constant expressions
* at compile time (arithmetic, comparisons, conversions, select)
* and replaces them with constant values. DCE cleans up the
* now-dead instruc... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/fe/preproc.c | null | null | null | null | null | null | C | 2026-05-04T19:08:10.771751 | /* ============================================================
* preproc.c — CUDA Preprocessor for BarraCUDA
*
* Runs before the lexer on raw source text.
* Handles: #include, #define/#undef, macro expansion,
* #ifdef/#ifndef/#if/#elif/#else/#endif, #pragma, #error.
* Output: single expanded source buff... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ir/bir.h | null | null | null | null | null | null | C | 2026-05-04T19:08:10.773705 | #ifndef BARRACUDA_BIR_H
#define BARRACUDA_BIR_H
#include "barracuda.h"
/*
* BarraCUDA Intermediate Representation.
* SSA form, flat arrays, index-based references.
* No malloc. No mercy. No hardware assumptions.
*/
/* ---- Limits ---- */
#define BIR_MAX_TYPES (1 << 14)
#define BIR_MAX_TYPE_FIELDS (1 << 16... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/fe/token.h | null | null | null | null | null | null | C | 2026-05-04T19:08:10.774678 | #ifndef BARRACUDA_TOKEN_H
#define BARRACUDA_TOKEN_H
#include "barracuda.h"
typedef enum {
TOK_INT_LIT,
TOK_FLOAT_LIT,
TOK_STRING_LIT,
TOK_CHAR_LIT,
TOK_IDENT,
TOK_LPAREN, /* ( */
TOK_RPAREN, /* ) */
TOK_LBRACKET, /* [ */
TOK_RBRACKET, /*... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ir/bir_cfold.c | null | null | null | null | null | null | C | 2026-05-04T19:08:10.775767 | #include "bir_cfold.h"
#include <math.h>
/*
* bir_cfold: constant folding.
*
* Single forward pass per function. SSA guarantees defs dominate
* uses, so when we reach an instruction all its operands have
* already been resolved through val_rewrite[]. After folding,
* DCE cleans up the dead instructions.
*/
/... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/fe/sema.h | null | null | null | null | null | null | C | 2026-05-04T19:08:10.776816 | #ifndef BARRACUDA_SEMA_H
#define BARRACUDA_SEMA_H
#include "barracuda.h"
#include "ast.h"
#include "parser.h"
/*
* Semantic analysis — the adult supervision between parser and codegen.
* Separate type system from BIR: preserves signedness, qualifiers, and
* other details the lowerer was happily ignoring.
*/
/* -... |
Zaneham/BarraCUDA | https://github.com/Zaneham/BarraCUDA | null | null | null | null | 1,670 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ir/bir.c | null | null | null | null | null | null | C | 2026-05-04T19:08:10.777730 | #include "bir.h"
#include <string.h>
/* ---- Name Tables ---- */
/* Every opcode gets a name. Even the ones that probably shouldn't exist. */
static const char *op_names[BIR_OP_COUNT] = {
[BIR_ADD] = "add",
[BIR_SUB] = "sub",
[BIR_MUL] = "mul",
[BIR_SDIV] = "sdiv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.