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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TorqueGameEngines/Torque2D | https://github.com/TorqueGameEngines/Torque2D | null | null | null | null | 1,567 | null | null | mit | null | null | null | null | null | null | null | engine/lib/freetype/android/freetype-2.4.12/freetype/include/freetype2/freetype/ftgzip.h | null | null | null | null | null | null | C | 2026-05-04T18:22:44.219190 | /***************************************************************************/
/* */
/* ftgzip.h */
/* */
/* Gz... |
TorqueGameEngines/Torque2D | https://github.com/TorqueGameEngines/Torque2D | null | null | null | null | 1,567 | null | null | mit | null | null | null | null | null | null | null | engine/lib/freetype/android/freetype-2.4.12/freetype/include/freetype2/freetype/ftincrem.h | null | null | null | null | null | null | C | 2026-05-04T18:22:44.347145 | /***************************************************************************/
/* */
/* ftincrem.h */
/* */
/* Fr... |
TorqueGameEngines/Torque2D | https://github.com/TorqueGameEngines/Torque2D | null | null | null | null | 1,567 | null | null | mit | null | null | null | null | null | null | null | engine/lib/freetype/android/freetype-2.4.12/freetype/include/freetype2/freetype/ftlcdfil.h | null | null | null | null | null | null | C | 2026-05-04T18:22:44.348399 | /***************************************************************************/
/* */
/* ftlcdfil.h */
/* */
/* Fr... |
TorqueGameEngines/Torque2D | https://github.com/TorqueGameEngines/Torque2D | null | null | null | null | 1,567 | null | null | mit | null | null | null | null | null | null | null | engine/lib/freetype/android/freetype-2.4.12/freetype/include/freetype2/freetype/ftimage.h | null | null | null | null | null | null | C | 2026-05-04T18:22:44.371500 | /***************************************************************************/
/* */
/* ftimage.h */
/* */
/* Fr... |
TorqueGameEngines/Torque2D | https://github.com/TorqueGameEngines/Torque2D | null | null | null | null | 1,567 | null | null | mit | null | null | null | null | null | null | null | engine/lib/freetype/android/freetype-2.4.12/freetype/include/freetype2/freetype/ftlist.h | null | null | null | null | null | null | C | 2026-05-04T18:22:44.418592 | /***************************************************************************/
/* */
/* ftlist.h */
/* */
/* Ge... |
TorqueGameEngines/Torque2D | https://github.com/TorqueGameEngines/Torque2D | null | null | null | null | 1,567 | null | null | mit | null | null | null | null | null | null | null | engine/lib/freetype/android/freetype-2.4.12/freetype/include/freetype2/freetype/ftlzw.h | null | null | null | null | null | null | C | 2026-05-04T18:22:44.594315 | /***************************************************************************/
/* */
/* ftlzw.h */
/* */
/* LZ... |
TorqueGameEngines/Torque2D | https://github.com/TorqueGameEngines/Torque2D | null | null | null | null | 1,567 | null | null | mit | null | null | null | null | null | null | null | engine/lib/freetype/android/freetype-2.4.12/freetype/include/freetype2/freetype/ftmac.h | null | null | null | null | null | null | C | 2026-05-04T18:22:44.706373 | /***************************************************************************/
/* */
/* ftmac.h */
/* */
/* Ad... |
TorqueGameEngines/Torque2D | https://github.com/TorqueGameEngines/Torque2D | null | null | null | null | 1,567 | null | null | mit | null | null | null | null | null | null | null | engine/lib/freetype/android/freetype-2.4.12/freetype/include/freetype2/freetype/ftmm.h | null | null | null | null | null | null | C | 2026-05-04T18:22:44.707053 | /***************************************************************************/
/* */
/* ftmm.h */
/* */
/* Fr... |
TorqueGameEngines/Torque2D | https://github.com/TorqueGameEngines/Torque2D | null | null | null | null | 1,567 | null | null | mit | null | null | null | null | null | null | null | engine/lib/freetype/android/freetype-2.4.12/freetype/include/freetype2/freetype/ftmodapi.h | null | null | null | null | null | null | C | 2026-05-04T18:22:44.822815 | /***************************************************************************/
/* */
/* ftmodapi.h */
/* */
/* Fr... |
TorqueGameEngines/Torque2D | https://github.com/TorqueGameEngines/Torque2D | null | null | null | null | 1,567 | null | null | mit | null | null | null | null | null | null | null | engine/lib/freetype/android/freetype-2.4.12/freetype/include/freetype2/freetype/ftmoderr.h | null | null | null | null | null | null | C | 2026-05-04T18:22:44.856332 | /***************************************************************************/
/* */
/* ftmoderr.h */
/* */
/* Fr... |
TorqueGameEngines/Torque2D | https://github.com/TorqueGameEngines/Torque2D | null | null | null | null | 1,567 | null | null | mit | null | null | null | null | null | null | null | engine/lib/freetype/android/freetype-2.4.12/freetype/include/freetype2/freetype/ftpfr.h | null | null | null | null | null | null | C | 2026-05-04T18:22:44.954367 | /***************************************************************************/
/* */
/* ftpfr.h */
/* */
/* Fr... |
TorqueGameEngines/Torque2D | https://github.com/TorqueGameEngines/Torque2D | null | null | null | null | 1,567 | null | null | mit | null | null | null | null | null | null | null | engine/lib/freetype/android/freetype-2.4.12/freetype/include/freetype2/freetype/ftotval.h | null | null | null | null | null | null | C | 2026-05-04T18:22:44.967878 | /***************************************************************************/
/* */
/* ftotval.h */
/* */
/* Fr... |
TorqueGameEngines/Torque2D | https://github.com/TorqueGameEngines/Torque2D | null | null | null | null | 1,567 | null | null | mit | null | null | null | null | null | null | null | engine/lib/freetype/android/freetype-2.4.12/freetype/include/freetype2/freetype/ftoutln.h | null | null | null | null | null | null | C | 2026-05-04T18:22:44.969281 | /***************************************************************************/
/* */
/* ftoutln.h */
/* */
/* Su... |
TorqueGameEngines/Torque2D | https://github.com/TorqueGameEngines/Torque2D | null | null | null | null | 1,567 | null | null | mit | null | null | null | null | null | null | null | engine/lib/freetype/android/freetype-2.4.12/freetype/include/freetype2/freetype/config/ftmodule.h | null | null | null | null | null | null | C | 2026-05-04T18:22:47.605468 | /* This is a generated file. */
FT_USE_MODULE( FT_Driver_ClassRec, tt_driver_class )
FT_USE_MODULE( FT_Driver_ClassRec, t1_driver_class )
FT_USE_MODULE( FT_Driver_ClassRec, cff_driver_class )
FT_USE_MODULE( FT_Driver_ClassRec, t1cid_driver_class )
FT_USE_MODULE( FT_Driver_ClassRec, pfr_driver_class )
FT_USE_MODULE( FT_... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/dft16/dft16_graph.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.144781 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
// #include "dft16.h"
#include "dft16_mmul0.h"
#include "dft16_mmul1.h"
#include "dft16_twiddle.h"
using namespace adf;
// ----------------------------... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/01-AIE-ML-programming-and-optimization/aie/src/system_settings.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.164447 | /*
Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
#pragma once
// Multiply 2 matrices (MxK) x (KxN)
#define A_ROWS sizeM
#define A_COLS sizeK
#define B_ROWS A_COLS
#define B_COLS sizeN
#define C_ROWS A_ROWS
#define C_COLS B_COLS
// // Input/Output Matrix Typ... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/01-AIE-ML-programming-and-optimization/aie/src/kernels.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.165305 | /*
Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
#pragma once
#include <adf.h>
#include "aie_api/aie.hpp"
#include "system_settings.h"
#ifndef OPTIMIZED_SOURCE
#define OPTIMIZED_SOURCE 0
#endif
template<typename ITYPE,typename OTYPE, int SHIFT_RESULT>
void Clas... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/01-AIE-ML-programming-and-optimization/aie/src/tiling_parameters.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.166440 | /*
Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
#pragma once
#include "adf.h"
#include "system_settings.h"
adf::tiling_parameters WriteAns_pattern = {
.buffer_dimension={A_COLS,A_ROWS},
.tiling_dimension={A_COLS,1},
.offset={0,0},
.tile_travers... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/dft7/dft7_graph.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.168801 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
#include "dft7_mmul0.h"
#include "dft7_mmul1.h"
#include "dft7_mmul2.h"
#include "dft7_twiddle.h"
using namespace adf;
// -----------------------------... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/01-AIE-ML-programming-and-optimization/aie/src/MultGraph.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.174364 | /*
Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
#pragma once
#include <adf.h>
#include "kernels.h"
#include "system_settings.h"
#include "tiling_parameters.h"
using namespace adf;
template<typename ITYPE,typename OTYPE, int SHIFT_RESULT,int ARRAY_COL>
class ... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/dft7/dft7_mmul0.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.175353 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
#include <aie_api/aie.hpp>
using namespace adf;
class dft7_0 {
public:
typedef cint16 TT_DATA;
typedef cint16 TT_TWID;
typedef cacc64 TT_ACC;
s... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/dft16/dft16_mmul0.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.183184 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
#include <aie_api/aie.hpp>
using namespace adf;
class dft16_0 {
public:
typedef cint16 TT_DATA;
typedef cint16 TT_TWID;
typedef cacc64 TT_ACC;
... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/dft16/dft16_twiddle.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.208009 | //
// Copyright (fid,C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#define DFT16_TWID {\
{32767,0},\
{32767,0},\
{32767,0},\
{32767,0},\
{32767,0},\
{32767,0},\
{32767,0},\
{32767,0},\
{32767,0},\
{30274,-12540},\
{23170,-23170},\
{12... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/dft16/dft16_mmul1.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.297437 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
#include <aie_api/aie.hpp>
using namespace adf;
class dft16_1 {
public:
typedef cint16 TT_DATA;
typedef cint16 TT_TWID;
typedef cacc64 TT_ACC;
... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/dft7/dft7_mmul1.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.987077 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
#include <aie_api/aie.hpp>
using namespace adf;
class dft7_1 {
public:
typedef cint16 TT_DATA;
typedef cint16 TT_TWID;
typedef cacc64 TT_ACC;
s... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/dft9/dft9_mmul0.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.988507 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
#include <aie_api/aie.hpp>
using namespace adf;
class dft9_0 {
public:
typedef cint16 TT_DATA;
typedef cint16 TT_TWID;
typedef cacc64 TT_ACC;
s... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/dft7/dft7_mmul2.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.989625 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
#include <aie_api/aie.hpp>
using namespace adf;
class dft7_2 {
public:
typedef cint16 TT_DATA;
typedef cint16 TT_TWID;
typedef cacc64 TT_ACC;
s... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/dft9/dft9_mmul2.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.993307 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
#include <aie_api/aie.hpp>
using namespace adf;
class dft9_2 {
public:
typedef cint16 TT_DATA;
typedef cint16 TT_TWID;
typedef cacc64 TT_ACC;
s... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/dft9/dft9_twiddle.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.994531 | //
// Copyright (fid,C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#define DFT9_TWID0 {\
{32767,0},\
{32767,0},\
{32767,0},\
{32767,0},\
{32767,0},\
{32767,0},\
{32767,0},\
{32767,0},\
{32767,0},\
{25102,-21063},\
{5690,-32270},\
{-16... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/dft9/dft9_mmul1.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.996050 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
#include <aie_api/aie.hpp>
using namespace adf;
class dft9_1 {
public:
typedef cint16 TT_DATA;
typedef cint16 TT_TWID;
typedef cacc64 TT_ACC;
s... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/dft9/dft9_graph.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.997066 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
#include "dft9_mmul0.h"
#include "dft9_mmul1.h"
#include "dft9_mmul2.h"
#include "dft9_mmul3.h"
#include "dft9_twiddle.h"
using namespace adf;
// -----... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/dft7/dft7_twiddle.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.997554 | //
// Copyright (fid,C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#define DFT7_TWID0 {\
{32767,0},\
{32767,0},\
{32767,0},\
{32767,0},\
{32767,0},\
{32767,0},\
{32767,0},\
{0,0},\
{32767,0},\
{20431,-25619},\
{-7292,-31946},\
{-29523... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/dft9/dft9_mmul3.h | null | null | null | null | null | null | C | 2026-05-04T18:22:51.999378 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
#include <aie_api/aie.hpp>
using namespace adf;
class dft9_3 {
public:
typedef cint16 TT_DATA;
typedef cint16 TT_TWID;
typedef cacc64 TT_ACC;
s... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/permute_i/permute_i_bd.h | null | null | null | null | null | null | C | 2026-05-04T18:22:52.389955 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
using namespace adf;
namespace permute_i {
typedef cint16 TT_DATA;
static constexpr unsigned NFFT7 = 7;
static constexpr unsigned NFFT9 = 9;
... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/hls/pfa1008_dma_src/pfa1008_dma_src.h | null | null | null | null | null | null | C | 2026-05-04T18:22:53.409843 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <complex>
#include <ap_fixed.h>
#include <hls_stream.h>
namespace pfa1008_dma_src {
static constexpr unsigned NFFT = 1008;
static constexpr unsigne... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/transpose0/transpose0_graph.h | null | null | null | null | null | null | C | 2026-05-04T18:22:53.412039 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
#include <aie_api/aie.hpp>
using namespace adf;
// ------------------------------------------------------------
// Top Level Graph
// -----------------... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/hls/pfa1008_permute_i/pfa1008_permute_i.h | null | null | null | null | null | null | C | 2026-05-04T18:22:53.413490 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <complex>
#include <ap_fixed.h>
#include <hls_stream.h>
namespace pfa1008_permute_i {
static constexpr unsigned NFFT = 1008;
static constexpr unsigne... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/hls/pfa1008_permute_i/pfa1008_permute_i_luts.h | null | null | null | null | null | null | C | 2026-05-04T18:22:53.415004 | //
// Copyright (fid,C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#define PERM_I_ADDR {\
0,\
144,\
288,\
432,\
576,\
720,\
864,\
112,\
256,\
400,\
544,\
688,\
832,\
976,\
224,\
368,\
512,\
656,\
800,\
944,\
80,\
336,\
48... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/transpose1/transpose1_graph.h | null | null | null | null | null | null | C | 2026-05-04T18:22:53.419480 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
#include <aie_api/aie.hpp>
using namespace adf;
// ------------------------------------------------------------
// Top Level Graph
// -----------------... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/permute_i/permute_i_graph.h | null | null | null | null | null | null | C | 2026-05-04T18:22:53.421486 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
#include <aie_api/aie.hpp>
using namespace adf;
// Buffer access patterns:
#include "permute_i_bd.h"
using namespace permute_i;
// ------------------... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/hls/pfa1008_dma_snk/pfa1008_dma_snk.h | null | null | null | null | null | null | C | 2026-05-04T18:22:53.422887 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <complex>
#include <ap_fixed.h>
#include <hls_stream.h>
namespace pfa1008_dma_snk {
static constexpr unsigned NFFT = 1008;
static constexpr unsigne... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/pfa1008/pfa1008_graph.h | null | null | null | null | null | null | C | 2026-05-04T18:22:53.425064 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
#include <vector>
#include "dft7_graph.h"
#include "transpose0_graph.h"
#include "dft9_graph.h"
#include "transpose1_graph.h"
#include "dft16_graph.h"
... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/aie/permute_o/permute_o_graph.h | null | null | null | null | null | null | C | 2026-05-04T18:22:55.174182 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <adf.h>
#include <aie_api/aie.hpp>
using namespace adf;
// ------------------------------------------------------------
// Top Level Graph
// -----------------... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/hls/pfa1008_permute_o/pfa1008_permute_o.h | null | null | null | null | null | null | C | 2026-05-04T18:22:55.175717 | //
// Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#pragma once
#include <complex>
#include <ap_fixed.h>
#include <hls_stream.h>
namespace pfa1008_permute_o {
static constexpr unsigned NFFT = 1008;
static constexpr unsigne... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/02-Prime-Factor-FFT/hls/pfa1008_permute_o/pfa1008_permute_o_luts.h | null | null | null | null | null | null | C | 2026-05-04T18:22:55.603988 | //
// Copyright (fid,C) 2023, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Mark Rollins
#define PERM_O_ADDR {\
0,\
71,\
142,\
213,\
284,\
355,\
426,\
490,\
561,\
569,\
640,\
711,\
782,\
853,\
917,\
988,\
51,\
122,\
130,\
201,\
272,\
336,\
40... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/03-AIE-ML-lenet_tutorial/design/aie_src/core02lut.h | null | null | null | null | null | null | C | 2026-05-04T18:22:55.604547 | #include <cstdint>
/*
Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
int8_t B02[2432] = {18, 7, 2, -6, 7, -5, 1, -9, 22, 0, -5, 7, 11, 0, -8, -7, 21, -2, -7, 2, 6, 1, 7, -1, 5, -1, -8, 4, -5, 12, 0, 5, -1, -12, 0, -1, 5, 0, -2, -11, -3, -6, 7, 5, -4, 0, 8, -13, -7... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/03-AIE-ML-lenet_tutorial/design/aie_src/core03.h | null | null | null | null | null | null | C | 2026-05-04T18:22:55.621867 | /*
Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
#ifndef CORE_03_H_
#define CORE_03_H_
#include <stdint.h>
#include <adf.h>
#include "aie_api/aie.hpp"
#include "aie_api/aie_adf.hpp"
#include <aie_api/utils.hpp>
#ifndef ROW_A_3
#define ROW_A_3 8
#endif
#ifn... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/03-AIE-ML-lenet_tutorial/design/aie_src/core01lut.h | null | null | null | null | null | null | C | 2026-05-04T18:22:55.627926 | /*
Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
#include <cstdint>
int8_t B[256] = {
-1, 15, 12, 6, -34, -18, 0, 0,
7, 37, 15, 15, -21, 16, 0, 0,
-22, 8, -5, -15, 7, 30, 0, 0,
-37, 10, 5, -17, 27, 11, 0, 0,
-21, 17, -2, -19, 21, 3, 0, 0,
... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/03-AIE-ML-lenet_tutorial/design/aie_src/core01.h | null | null | null | null | null | null | C | 2026-05-04T18:22:55.635416 | /*
Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
#ifndef CORE_01_H_
#define CORE_01_H_
#include <stdint.h>
#include <adf.h>
#include "aie_api/aie.hpp"
#include "aie_api/aie_adf.hpp"
#include <aie_api/utils.hpp>
#ifndef ROW_A
#define ROW_A 576
#endif
#ifndef CO... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/03-AIE-ML-lenet_tutorial/design/aie_src/core02.h | null | null | null | null | null | null | C | 2026-05-04T18:22:55.674785 | /*
Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
#ifndef CORE_02_H_
#define CORE_02_H_
#include <stdint.h>
#include <adf.h>
#include "aie_api/aie.hpp"
#include "aie_api/aie_adf.hpp"
#include <aie_api/utils.hpp>
using namespace adf;
#ifndef ROW_A_2
#define ROW... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/03-AIE-ML-lenet_tutorial/design/aie_src/core03lut.h | null | null | null | null | null | null | C | 2026-05-04T18:22:55.708620 | /*
Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
#include <cstdint>
int8_t B03[16896] = {7, 2, -1, 2, 9, 4, 3, -6, 8, -2, 3, -2, 2, 0, -2, -2, 2, 4, 5, 2, 1, 4, -3, -3, -3, 1, 0, 3, 1, -4, 3, -5, -1, 1, -7, -8, -2, -6, 7, -5, 3, 5, 2, 0, 2, -3, 11, 6, 1, -1, -1, 6... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/03-AIE-ML-lenet_tutorial/design/aie_src/core04lut.h | null | null | null | null | null | null | C | 2026-05-04T18:22:55.870263 | /*
Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
#include <cstdint>
int8_t B04[2048] = {-1, -9, 14, 2, 6, -4, -7, -10, 4, 2, 9, -11, -3, 1, -3, 2, 15, -6, 2, -8, 1, 7, 12, 6, 9, -11, 10, -9, 12, -10, 7, -11, -3, -1, 15, 12, -3, 12, 1, -1, 3, 13, 7, -3, -3, 4, 10,... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/03-AIE-ML-lenet_tutorial/design/aie_src/core05.h | null | null | null | null | null | null | C | 2026-05-04T18:22:55.901106 | /*
Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
#ifndef CORE_05_H_
#define CORE_05_H_
#include <stdint.h>
#include <adf.h>
#include "aie_api/aie.hpp"
#include "aie_api/aie_adf.hpp"
#include <aie_api/utils.hpp>
using namespace adf;
#ifndef ROW_A_5
#define R... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/03-AIE-ML-lenet_tutorial/design/aie_src/graph.h | null | null | null | null | null | null | C | 2026-05-04T18:22:56.248798 | /*
Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
#pragma once
#include "adf.h"
using namespace adf;
#include "core01.h"
#include "core02.h"
#include "core03.h"
#include "core05.h"
#include "core04.h"
#include "core01lut.h"
#include "core02lut.h"
#include "core... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/03-AIE-ML-lenet_tutorial/design/pl_src/datamover/globals.h | null | null | null | null | null | null | C | 2026-05-04T18:22:56.249362 | /*
Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
//#ifndef _GLOBALS_H
//#define _GLOBALS_H
#include "utils/x_hls_utils.h"
#include "assert.h"
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <math.h>
#include... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/03-AIE-ML-lenet_tutorial/design/aie_src/core05lut.h | null | null | null | null | null | null | C | 2026-05-04T18:22:56.268606 | /*
Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
#include <cstdint>
int8_t B05[16896] = {-4, 5, 0, -5, 1, 5, 4, 5, 11, 0, -1, 3, -1, 4, 3, -2, 13, 2, 4, -3, -1, -2, -10, 0, 2, 2, 2, -3, 0, 3, -1, -5, -5, -2, -5, 1, 8, -3, -6, 1, 0, 1, -2, 0, 0, 0, -4, 2, 2, 0, -2,... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/03-AIE-ML-lenet_tutorial/design/host_app_src/golden.h | null | null | null | null | null | null | C | 2026-05-04T18:22:56.299801 | /*
Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
#pragma once
uint32_t int32golden[] = {
0xF605F425,
0x00000000,
0x00000000,
0x00000000,
0xFE01FCF0,
0x00000000,
0x00000000,
0x00000000,
0x000005EE,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/04-AIE-API-based-FFT-for-many-instances-applications/src/fft1k_128_graph.h | null | null | null | null | null | null | C | 2026-05-04T18:22:56.334489 | //
// Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Donato Carlo Giorgio
#pragma once
#include <adf.h>
#include "adf/new_frontend/adf.h"
#include "fft1k_single_kernel.h"
using namespace adf;
#define N_INST 128 // Number of i... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/04-AIE-API-based-FFT-for-many-instances-applications/src/fft1k_128_new_graph.h | null | null | null | null | null | null | C | 2026-05-04T18:22:56.335169 | //
// Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Donato Carlo Giorgio
#pragma once
#include <adf.h>
#include "adf/new_frontend/adf.h"
#include "fft1k_single_kernel.h"
using namespace adf;
#define N_INST 128 // Number of i... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/04-AIE-API-based-FFT-for-many-instances-applications/src/fft1k_single_kernel.h | null | null | null | null | null | null | C | 2026-05-04T18:22:56.361501 | //
// Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Donato Carlo Giorgio
#pragma once
#include <adf.h>
#include <aie_api/aie.hpp>
#include "fft1k_single_twiddles.h"
using namespace adf;
#define REPS 2 // Used for batching the FFT
#define... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/04-AIE-API-based-FFT-for-many-instances-applications/src/fft1k_single_twiddles.h | null | null | null | null | null | null | C | 2026-05-04T18:22:56.450229 | //
// Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Donato Carlo Giorgio
// Twiddle vector indexes are stage number and entry
// Those twiddle factors are for RADIX - 4 FFT
#pragma once
#define TWID0_0 {{ 32767, 0}}
#define TWID0_1 {{ 3276... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/05-Softmax-Function/aie-ml/src/config.h | null | null | null | null | null | null | C | 2026-05-04T18:22:56.545576 | //
// Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Richard Buz
#pragma once
#define BUFFSZ 2048
#define NRUN 10 |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/05-Softmax-Function/aie-ml/src/softmax_graph.h | null | null | null | null | null | null | C | 2026-05-04T18:22:57.233571 | //
// Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved.
// SPDX-License-Identifier: MIT
//
// Author: Richard Buz
#pragma once
#include <adf.h>
#include "softmax_kernel.h"
#include "config.h"
using namespace adf;
class softmax_graph : public adf::graph {
private:
kernel smax_krnl;
public:
i... |
Xilinx/Vitis-Tutorials | https://github.com/Xilinx/Vitis-Tutorials | null | null | null | null | 1,566 | null | null | mit | null | null | null | null | null | null | null | AI_Engine_Development/AIE-ML/Design_Tutorials/03-AIE-ML-lenet_tutorial/design/aie_src/core04.h | null | null | null | null | null | null | C | 2026-05-04T18:22:59.439252 | /*
Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
#ifndef CORE_04_H_
#define CORE_04_H_
#include <stdint.h>
#include<adf.h>
#include "aie_api/aie.hpp"
#include "aie_api/aie_adf.hpp"
#include <aie_api/utils.hpp>
using namespace adf;
#ifndef ROW_A_4
#define ROW... |
posva/catimg | https://github.com/posva/catimg | null | null | null | null | 1,552 | null | null | mit | null | null | null | null | null | null | null | src/sh_color.c | null | null | null | null | null | null | C | 2026-05-04T18:23:03.330720 | #include "sh_color.h"
#include "sh_utils.h"
#include <math.h>
#include "khash.h"
uint32_t color_map[] = { 0x000000, 0x00005F, 0x000080, 0x000087, 0x0000AF, 0x0000D7, 0x0000FF, 0x005F5F, 0x005F87, 0x005FAF, 0x005FD7, 0x005FFF, 0x008000, 0x008080, 0x008700, 0x00875F, 0x008787, 0x0087AF, 0x0087D7, 0x0087FF, 0x00AF00, 0x0... |
posva/catimg | https://github.com/posva/catimg | null | null | null | null | 1,552 | null | null | mit | null | null | null | null | null | null | null | src/sh_color.h | null | null | null | null | null | null | C | 2026-05-04T18:23:03.331313 | #ifndef __SH_COLOR_H__
#define __SH_COLOR_H__
/*******************************************************************************
* sh_color *
* Wed Dec 18 CET 2013 *
* Copyright Eduardo San Marti... |
posva/catimg | https://github.com/posva/catimg | null | null | null | null | 1,552 | null | null | mit | null | null | null | null | null | null | null | src/sh_image.h | null | null | null | null | null | null | C | 2026-05-04T18:23:03.333269 | #ifndef __SH_IMAGE_H__
#define __SH_IMAGE_H__
/*******************************************************************************
* sh_image *
* Wed Dec 18 CET 2013 *
* Copyright Eduardo San Marti... |
posva/catimg | https://github.com/posva/catimg | null | null | null | null | 1,552 | null | null | mit | null | null | null | null | null | null | null | src/catimg.c | null | null | null | null | null | null | C | 2026-05-04T18:23:03.335277 | #define _DEFAULT_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sh_image.h"
#include "sh_utils.h"
#include <unistd.h>
#include <signal.h>
#include <sys/ioctl.h>
#define USAGE "Usage: catimg [-hct] [-w width | -H height] [-l loops] [-r resolution] image-file\n\n" \
" -h: Displays this me... |
posva/catimg | https://github.com/posva/catimg | null | null | null | null | 1,552 | null | null | mit | null | null | null | null | null | null | null | src/sh_image.c | null | null | null | null | null | null | C | 2026-05-04T18:23:03.339022 | #include "sh_image.h"
#include "sh_utils.h"
#include <string.h>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include <stdlib.h>
#include <assert.h>
typedef struct gif_result_t {
int delay;
unsigned char *data;
struct gif_result_t *next;
} gif_result;
STBIDEF unsigned char *stbi__xl... |
posva/catimg | https://github.com/posva/catimg | null | null | null | null | 1,552 | null | null | mit | null | null | null | null | null | null | null | src/sh_utils.h | null | null | null | null | null | null | C | 2026-05-04T18:23:03.356837 | #ifndef __SH_UTILS_H__
#define __SH_UTILS_H__
/*******************************************************************************
* sh_utils *
* Wed Dec 18 CET 2013 *
* Copyright Eduardo San Marti... |
posva/catimg | https://github.com/posva/catimg | null | null | null | null | 1,552 | null | null | mit | null | null | null | null | null | null | null | src/sh_utils.c | null | null | null | null | null | null | C | 2026-05-04T18:23:03.357332 | #define _DEFAULT_SOURCE
#include "sh_utils.h"
#ifdef WINDOWS
#include <windows.h>
#include <io.h>
#include <fcntl.h>
#define fileno _fileno
#define read _read
#else
#include <sys/ioctl.h>
#include <unistd.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
uint32_t terminal_columns()
{
#ifdef WINDOW... |
posva/catimg | https://github.com/posva/catimg | null | null | null | null | 1,552 | null | null | mit | null | null | null | null | null | null | null | src/khash.h | null | null | null | null | null | null | C | 2026-05-04T18:23:03.370591 | /* The MIT License
Copyright (c) 2008, 2009, 2011 by Attractive Chaos <attractor@live.co.uk>
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 ... |
lucavallin/barco | https://github.com/lucavallin/barco | null | null | null | null | 1,545 | null | null | mit | null | null | null | null | null | null | null | lib/log/log.h | null | null | null | null | null | null | C | 2026-05-04T18:23:06.309659 | /**
* Copyright (c) 2020 rxi
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See `log.c` for details.
*/
#ifndef LOG_H
#define LOG_H
#include <stdio.h>
#include <stdarg.h>
#include <stdbool.h>
#include <time.h>
#define LOG_VERSION "0.1.0"
typede... |
lucavallin/barco | https://github.com/lucavallin/barco | null | null | null | null | 1,545 | null | null | mit | null | null | null | null | null | null | null | include/sec.h | null | null | null | null | null | null | C | 2026-05-04T18:23:06.315848 | #ifndef SEC_H
#define SEC_H
#include <errno.h>
// Used to represent the result of a seccomp rule.
#define SEC_SCMP_FAIL SCMP_ACT_ERRNO(EPERM)
// Setup capabilities for the calling process
int sec_set_caps(void);
// Setup seccomp for the calling process
int sec_set_seccomp(void);
#endif
|
lucavallin/barco | https://github.com/lucavallin/barco | null | null | null | null | 1,545 | null | null | mit | null | null | null | null | null | null | null | include/user.h | null | null | null | null | null | null | C | 2026-05-04T18:23:06.320830 | #ifndef USER_H
#define USER_H
#include <sys/types.h>
enum {
// User namespace settings
USER_NAMESPACE_UID_PARENT_RANGE_START = 0,
USER_NAMESPACE_UID_CHILD_RANGE_START = 10000,
USER_NAMESPACE_UID_CHILD_RANGE_SIZE = 2000,
};
// Setup the user namespace for the process
int user_namespace_init(uid_t uid, int fd)... |
lucavallin/barco | https://github.com/lucavallin/barco | null | null | null | null | 1,545 | null | null | mit | null | null | null | null | null | null | null | src/barco.c | null | null | null | null | null | null | C | 2026-05-04T18:23:06.321693 | #include "argtable3.h"
#include "cgroups.h"
#include "container.h"
#include "log.h"
#include "user.h"
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <unistd.h>
enum {
// ARGTABLE_ARG_MAX is the maximum number of arguments
ARGTABLE_ARG_MAX = 20
};
/* global arg_xxx struc... |
lucavallin/barco | https://github.com/lucavallin/barco | null | null | null | null | 1,545 | null | null | mit | null | null | null | null | null | null | null | src/cgroups.c | null | null | null | null | null | null | C | 2026-05-04T18:23:06.326583 | #include "cgroups.h"
#include "log.h"
#include <fcntl.h>
#include <linux/limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
// This struct is used to store cgroups settings.
struct cgroups_setting {
char name[CGROUPS_CONTROL_FIELD_SIZE];
char value[CGROUP... |
lucavallin/barco | https://github.com/lucavallin/barco | null | null | null | null | 1,545 | null | null | mit | null | null | null | null | null | null | null | lib/argtable/argtable3.h | null | null | null | null | null | null | C | 2026-05-04T18:23:06.328157 | /*******************************************************************************
* argtable3: Declares the main interfaces of the library
*
* This file is part of the argtable3 library.
*
* Copyright (C) 1998-2001,2003-2011,2013 Stewart Heitmann
* <sheitmann@users.sourceforge.net>
* All rights reserved.
*
* Re... |
lucavallin/barco | https://github.com/lucavallin/barco | null | null | null | null | 1,545 | null | null | mit | null | null | null | null | null | null | null | include/container.h | null | null | null | null | null | null | C | 2026-05-04T18:23:06.330918 | #ifndef CONTAINER_H
#define CONTAINER_H
#include <sys/types.h>
enum {
// The stack size for the container
CONTAINER_STACK_SIZE = (1024 * 1024),
};
// Represents the configuration for a container.
typedef struct {
uid_t uid;
int fd;
char *hostname;
char *cmd;
char *arg;
char *mnt;
} container_config;
... |
lucavallin/barco | https://github.com/lucavallin/barco | null | null | null | null | 1,545 | null | null | mit | null | null | null | null | null | null | null | include/cgroups.h | null | null | null | null | null | null | C | 2026-05-04T18:23:06.342613 | #ifndef CGROUPS_H
#define CGROUPS_H
#include <fcntl.h>
// Used for cgroups limits initialization
#define CGROUPS_MEMORY_MAX "1G"
#define CGROUPS_CPU_WEIGHT "256"
#define CGROUPS_PIDS_MAX "64"
#define CGROUPS_CGROUP_PROCS "cgroup.procs"
enum { CGROUPS_CONTROL_FIELD_SIZE = 256 };
// Initializes cgroups for the hostnam... |
lucavallin/barco | https://github.com/lucavallin/barco | null | null | null | null | 1,545 | null | null | mit | null | null | null | null | null | null | null | lib/log/log.c | null | null | null | null | null | null | C | 2026-05-04T18:23:06.345102 | /*
* Copyright (c) 2020 rxi
*
* 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, publish, distri... |
lucavallin/barco | https://github.com/lucavallin/barco | null | null | null | null | 1,545 | null | null | mit | null | null | null | null | null | null | null | include/mount.h | null | null | null | null | null | null | C | 2026-05-04T18:23:06.345958 | #ifndef MOUNT_H
#define MOUNT_H
// Set the mount directory for the process
int mount_set(char *mnt);
#endif
|
lucavallin/barco | https://github.com/lucavallin/barco | null | null | null | null | 1,545 | null | null | mit | null | null | null | null | null | null | null | src/container.c | null | null | null | null | null | null | C | 2026-05-04T18:23:06.883733 | #define _GNU_SOURCE 1
#include "container.h"
#include "log.h"
#include "mount.h"
#include "sec.h"
#include "user.h"
#include <sched.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
// This is the function that will be called b... |
lucavallin/barco | https://github.com/lucavallin/barco | null | null | null | null | 1,545 | null | null | mit | null | null | null | null | null | null | null | src/sec.c | null | null | null | null | null | null | C | 2026-05-04T18:23:06.908117 | #include "sec.h"
#include "log.h"
#include <asm-generic/ioctls.h>
#include <linux/capability.h>
#include <linux/prctl.h>
#include <linux/sched.h>
#include <seccomp.h>
#include <stdio.h>
#include <sys/capability.h>
#include <sys/prctl.h>
#include <sys/stat.h>
// Capabilities are used to finely define the privileges of ... |
lucavallin/barco | https://github.com/lucavallin/barco | null | null | null | null | 1,545 | null | null | mit | null | null | null | null | null | null | null | src/mount.c | null | null | null | null | null | null | C | 2026-05-04T18:23:06.913523 | #include "mount.h"
#include "log.h"
#include <assert.h>
#include <libgen.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mount.h>
#include <sys/syscall.h>
#include <unistd.h>
// pivot_root is a system call to swap the mount at / with another.
// glibc does not provide a wrapper for it.
long pivot_root(const c... |
lucavallin/barco | https://github.com/lucavallin/barco | null | null | null | null | 1,545 | null | null | mit | null | null | null | null | null | null | null | src/user.c | null | null | null | null | null | null | C | 2026-05-04T18:23:06.945056 | #define _GNU_SOURCE 1
#include "user.h"
#include "log.h"
#include <fcntl.h>
#include <grp.h>
#include <linux/limits.h>
#include <sched.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
// Lets the parent process know that the user namespace is started.
// The parent calls user_namespace_set_user to upda... |
lucavallin/barco | https://github.com/lucavallin/barco | null | null | null | null | 1,545 | null | null | mit | null | null | null | null | null | null | null | tests/barco_test.c | null | null | null | null | null | null | C | 2026-05-04T18:23:06.949403 | #include <CUnit/Basic.h>
#include <CUnit/CUError.h>
#include <CUnit/CUnit.h>
#include <CUnit/TestDB.h>
#include <stdio.h>
int barco_suite_init(void) { return 0; }
int barco_suite_clean(void) { return 0; }
void barco_test(void) { CU_ASSERT(1 == 1); }
// The main() function for setting up and running the tests.
// Retu... |
pimoroni/pimoroni-pico | https://github.com/pimoroni/pimoroni-pico | null | null | null | null | 1,541 | null | null | mit | null | null | null | null | null | null | null | drivers/sdcard/pio_spi.c | null | null | null | null | null | null | C | 2026-05-04T18:23:12.106791 | /**
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "pio_spi.h"
// Just 8 bit functions provided here. The PIO program supports any frame size
// 1...32, but the software to do the necessary FIFO shuffling is left as an
// exercise for the reader :)
//
// Lik... |
pimoroni/pimoroni-pico | https://github.com/pimoroni/pimoroni-pico | null | null | null | null | 1,541 | null | null | mit | null | null | null | null | null | null | null | drivers/fatfs/diskio.h | null | null | null | null | null | null | C | 2026-05-04T18:23:12.107439 | /*-----------------------------------------------------------------------/
/ Low level disk interface modlue include file (C)ChaN, 2019 /
/-----------------------------------------------------------------------*/
#ifndef _DISKIO_DEFINED
#define _DISKIO_DEFINED
#ifdef __cplusplus
extern "C" {
#endif
/* St... |
pimoroni/pimoroni-pico | https://github.com/pimoroni/pimoroni-pico | null | null | null | null | 1,541 | null | null | mit | null | null | null | null | null | null | null | drivers/sdcard/sdcard.h | null | null | null | null | null | null | C | 2026-05-04T18:23:12.108860 | #ifndef _SDCARD_H_
#define _SDCARD_H_
/* SPI pin assignment */
/* Pico Wireless */
#ifndef SDCARD_SPI_BUS
#define SDCARD_SPI_BUS spi0
#endif
#ifndef SDCARD_PIN_SPI0_CS
#define SDCARD_PIN_SPI0_CS 22
#endif
#ifndef SDCARD_PIN_SPI0_SCK
#define SDCARD_PIN_SPI0_SCK 18
#endif
#ifndef SDCARD_PIN_SPI0_MOSI
#define ... |
pimoroni/pimoroni-pico | https://github.com/pimoroni/pimoroni-pico | null | null | null | null | 1,541 | null | null | mit | null | null | null | null | null | null | null | drivers/vl53l5cx/platform.c | null | null | null | null | null | null | C | 2026-05-04T18:23:12.110328 | /*******************************************************************************
* Copyright (c) 2020, STMicroelectronics - All Rights Reserved
*
* This file is part of the VL53L5CX Ultra Lite Driver and is dual licensed,
* either 'STMicroelectronics Proprietary license'
* or 'BSD 3-clause "New" or "Revised" License' ,... |
pimoroni/pimoroni-pico | https://github.com/pimoroni/pimoroni-pico | null | null | null | null | 1,541 | null | null | mit | null | null | null | null | null | null | null | drivers/fatfs/ffsystem.c | null | null | null | null | null | null | C | 2026-05-04T18:23:12.111470 | /*------------------------------------------------------------------------*/
/* Sample Code of OS Dependent Functions for FatFs */
/* (C)ChaN, 2018 */
/*------------------------------------------------------------------------*/
#include "... |
pimoroni/pimoroni-pico | https://github.com/pimoroni/pimoroni-pico | null | null | null | null | 1,541 | null | null | mit | null | null | null | null | null | null | null | drivers/fatfs/ff.h | null | null | null | null | null | null | C | 2026-05-04T18:23:12.113154 | /*----------------------------------------------------------------------------/
/ FatFs - Generic FAT Filesystem module R0.14b /
/-----------------------------------------------------------------------------/
/
/ Copyright (C) 2021, ChaN, all right reserved.
/
/ FatFs module is an open so... |
pimoroni/pimoroni-pico | https://github.com/pimoroni/pimoroni-pico | null | null | null | null | 1,541 | null | null | mit | null | null | null | null | null | null | null | drivers/scd4x/sensirion_i2c_hal.h | null | null | null | null | null | null | C | 2026-05-04T18:23:12.114521 | /*
* Copyright (c) 2018, Sensirion AG
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of conditio... |
pimoroni/pimoroni-pico | https://github.com/pimoroni/pimoroni-pico | null | null | null | null | 1,541 | null | null | mit | null | null | null | null | null | null | null | drivers/fatfs/ffconf.h | null | null | null | null | null | null | C | 2026-05-04T18:23:12.115493 | /*---------------------------------------------------------------------------/
/ FatFs Functional Configurations
/---------------------------------------------------------------------------*/
#define FFCONF_DEF 86631 /* Revision ID */
/*---------------------------------------------------------------------------/
/ F... |
pimoroni/pimoroni-pico | https://github.com/pimoroni/pimoroni-pico | null | null | null | null | 1,541 | null | null | mit | null | null | null | null | null | null | null | drivers/sdcard/sdcard.c | null | null | null | null | null | null | C | 2026-05-04T18:23:12.116738 | #include "sdcard.h"
#include "pico.h"
#include "pico/stdlib.h"
#include "hardware/clocks.h"
#ifndef SDCARD_PIO
#include "hardware/spi.h"
#else
#include "pio_spi.h"
#endif
#include "hardware/gpio.h"
//#include "hardware/gpio_ex.h"
#include "ff.h"
#include "diskio.h"
/*------------------------------------------------... |
pimoroni/pimoroni-pico | https://github.com/pimoroni/pimoroni-pico | null | null | null | null | 1,541 | null | null | mit | null | null | null | null | null | null | null | drivers/sdcard/pio_spi.h | null | null | null | null | null | null | C | 2026-05-04T18:23:12.313956 | /**
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _PIO_SPI_H
#define _PIO_SPI_H
#include "hardware/pio.h"
#ifndef NO_QSTR
#include "spi.pio.h"
#endif
typedef struct pio_spi_inst {
PIO pio;
uint sm;
uint cs_pin;
} pio_spi_inst_t;
void pio_spi_wri... |
pimoroni/pimoroni-pico | https://github.com/pimoroni/pimoroni-pico | null | null | null | null | 1,541 | null | null | mit | null | null | null | null | null | null | null | libraries/pico_vector/af-memory.c | null | null | null | null | null | null | C | 2026-05-04T18:23:12.980695 | #include "af-memory.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
void *af_tracked_malloc(size_t size) {
return malloc(size);
}
void *af_tracked_realloc(void *p, size_t size) {
return realloc(p, size);
}
void af_tracked_free(void *p) {
free(p);
}
void *af_malloc(size_t size) {
return... |
pimoroni/pimoroni-pico | https://github.com/pimoroni/pimoroni-pico | null | null | null | null | 1,541 | null | null | mit | null | null | null | null | null | null | null | libraries/pico_vector/af-file-io.c | null | null | null | null | null | null | C | 2026-05-04T18:23:12.981816 | #include "af-file-io.h"
#include "string.h"
static size_t ptr = 0;
void* fileio_open(const char* filename) {
ptr = 0;
return NULL;
}
void fileio_close(void* fhandle) {
ptr = 0;
return;
}
size_t fileio_read(void* fhandle, void *buf, size_t len) {
memcpy(buf, fhandle + ptr, len);
ptr += len;
... |
pimoroni/pimoroni-pico | https://github.com/pimoroni/pimoroni-pico | null | null | null | null | 1,541 | null | null | mit | null | null | null | null | null | null | null | drivers/vl53l5cx/platform.h | null | null | null | null | null | null | C | 2026-05-04T18:23:12.983224 | /*******************************************************************************
* Copyright (c) 2020, STMicroelectronics - All Rights Reserved
*
* This file is part of the VL53L5CX Ultra Lite Driver and is dual licensed,
* either 'STMicroelectronics Proprietary license'
* or 'BSD 3-clause "New" or "Revised" License' ,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.