repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
ic-lab-duth/NoCpad
src/include/fifo_queue_oh.h
#ifndef __FIFO_QUEUE__ #define __FIFO_QUEUE__ #include "../include/duth_fun.h" #include "../include/nvhls_assert.h" template <typename T, unsigned SIZE> class fifo_queue { public : //typedef sc_uint< clog2<SIZE>::val > wb_depth_t; T mem[SIZE]; sc_uint<SIZE> push_ptr; sc_uint<SIZE> pop_ptr; sc_uint<...
ic-lab-duth/NoCpad
src/include/dnp_ace_v0.h
#ifndef __DNP_ACE_DEF__ #define __DNP_ACE_DEF__ // Definition of Duth Network Protocol for ACE network. // Interconnect's internal packetization protocol namespace dnp { enum { // !!!! THIS MUST BE 24. 20 is temp for router synth!!! PHIT_W = 24, // Phit Width V_W = 2, // Virtual Channel S_W = 3,...
ic-lab-duth/NoCpad
examples/nocpad_ACE_4m-2s_1stage/ic_top.h
<reponame>ic-lab-duth/NoCpad #ifndef _ACE_IC_TOP_H_ #define _ACE_IC_TOP_H_ #pragma once #include "../../src/ace/acelite_master_if.h" #include "../../src/ace/ace_master_if.h" #include "../../src/ace/ace_slave_if.h" #include "../../src/ace/ace_home.h" #include "../../src/router_wh.h" #include "systemc.h" #include "nv...
ic-lab-duth/NoCpad
src/router_vc.h
#ifndef WH_ROUTER_CON_CR_H #define WH_ROUTER_CON_CR_H #include <systemc.h> #include "./include/flit_axi.h" #include "./include/duth_fun.h" #include "./include/arbiters.h" #include "./include/fifo_queue_oh.h" #include "nvhls_connections.h" // Select In/Out Ports, the type of flit and the Routing Computation calculat...
ic-lab-duth/NoCpad
src/include/arbiters.h
<reponame>ic-lab-duth/NoCpad #ifndef __ARBITERS_HEADER__ #define __ARBITERS_HEADER__ enum arb_type {FIXED, MATRIX, ROUND_ROBIN, WEIGHTED_RR, DEFICIT_RR, STRATIFIED_RR, PHASE}; template<unsigned SIZE, arb_type ARB_TYPE, unsigned S=0, unsigned DOMAINS=0> class arbiter { public: arbiter(); unsigned arbitrate(); };...
ic-lab-duth/NoCpad
src/include/dnp20_axi.h
<gh_stars>1-10 #ifndef __DNP20_V0_DEF__ #define __DNP20_V0_DEF__ // Definition of Duth Network Protocol. // Interconnect's internal packetization protocol namespace dnp { enum { PHIT_W = 24, // Phit Width V_W = 2, // Virtual Channel S_W = 4, // Source D_W = 4, // Destination ...
ic-lab-duth/NoCpad
tb/tb_ace/harness.h
#ifndef ACE_IC_HARNESS_H #define ACE_IC_HARNESS_H #include "systemc.h" #include <mc_scverify.h> #include "./ic_top.h" #define NVHLS_VERIFY_BLOCKS (ic_top) #include "nvhls_verify.h" #include "stdlib.h" #include <string> #include "../../tb/tb_ace/acelite_master.h" #include "../../tb/tb_ace/ace_master.h" #include "....
ic-lab-duth/NoCpad
src/ace/ace_home.h
// --------------------------------------------------------- // // HOME-NODE - Sorts the coherent transactions // // --------------------------------------------------------- // #ifndef _ACE_HOME_H_ #define _ACE_HOME_H_ #include "systemc.h" #include "nvhls_connections.h" #include "../include/ace.h" #in...
ic-lab-duth/NoCpad
src/include/axi_for_ace.h
<gh_stars>1-10 /* * Copyright (c) 2017-2019, NVIDIA CORPORATION. All rights reserved. * * Modifications Copyright (c) 2019-2020 Integrated Circuits Lab, Democritus University of Thrace, Greece. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance w...
ic-lab-duth/NoCpad
src/axi_master_if.h
// --------------------------------------------------------- // // MASTER-IF Is where the MASTER CONNECTS!!!!! // // // // Aka. Master <-> Master-IF <-> NoC <-> Slave-IF <-> Slave // // --------------------------------------------------------- // ...
ic-lab-duth/NoCpad
tb/tb_ace/ace_master.h
#ifndef _ACE_MASTER_H_ #define _ACE_MASTER_H_ #include "systemc.h" #include "../helper_non_synth.h" #include "../../src/include/dnp_ace_v0.h" #include "../tb_wrap.h" #include <deque> #include <queue> #include <iostream> #include <fstream> #include <string> #include <sstream> #define AXI4_MAX_LEN 4 // FIXE...
ic-lab-duth/NoCpad
tb/tb_ace/ace_slave.h
<gh_stars>1-10 #ifndef AXI_SLAVE_H #define AXI_SLAVE_H #include "systemc.h" #include "../../src/include/dnp_ace_v0.h" #include <deque> #include <queue> #include <iostream> #include <fstream> #include <string> #include <sstream> #define AXI_TID_NUM 5 #define AXI_ADDR_MAX 0xffffffff template <unsigned int RD_M_LAN...
ic-lab-duth/NoCpad
src/axi_master_if_reord.h
// --------------------------------------------------------- // // MASTER-IF Is where the MASTER CONNECTS!!!!! // // // // Aka. Master <-> Master-IF <-> NoC <-> Slave-IF <-> Slave // // --------------------------------------------------------- // ...
ic-lab-duth/NoCpad
tb/tb_axi_con/axi_master.h
<gh_stars>1-10 #ifndef AXI_MASTER_H #define AXI_MASTER_H #include "systemc.h" #include <axi/axi4.h> #include "../helper_non_synth.h" #include "../../src/include/flit_axi.h" #include "../tb_wrap.h" #include <deque> #include <queue> #include <iostream> #include <fstream> #include <string> #include <sstream> #define...
ic-lab-duth/NoCpad
src/include/ace.h
<reponame>ic-lab-duth/NoCpad #ifndef _AXI_ACE_H_ #define _AXI_ACE_H_ #include <systemc> #include <nvhls_connections.h> #include <nvhls_assert.h> #include <nvhls_message.h> #include <nvhls_module.h> #include <UIntOrEmpty.h> #include <axi/axi4_encoding.h> #include <axi/axi4_configs.h> #include "./axi_for_ace.h" /** ...
ic-lab-duth/NoCpad
src/include/axi4_configs_extra.h
<filename>src/include/axi4_configs_extra.h #ifndef __AXI_CONFIG_DUTH_H__ #define __AXI_CONFIG_DUTH_H__ namespace axi { // Extension of Matchlib AXI configuration namespace cfg { /** * \brief A standard AXI configuration with SIZE field. */ struct standard_duth { enum { useACE = 0, dataWidth ...
ic-lab-duth/NoCpad
tb/tb_ace/ace_coherency_checker.h
#ifndef AXI_COHERENCY_CHECKER_H #define AXI_COHERENCY_CHECKER_H #include "systemc.h" #include "../../src/include/dnp_ace_v0.h" #include <deque> #include <queue> #include <iostream> #include <fstream> #include <string> #include <sstream> template <unsigned int RD_M_LANES, unsigned int RD_S_LANES, unsigned int WR_M_...
ic-lab-duth/NoCpad
tb/tb_ace/acelite_master.h
<gh_stars>1-10 #ifndef _ACE_LITE_MASTER_H_ #define _ACE_LITE_MASTER_H_ #include "systemc.h" #include "../helper_non_synth.h" #include "../../src/include/dnp_ace_v0.h" #include "../tb_wrap.h" #include <deque> #include <queue> #include <iostream> #include <fstream> #include <string> #include <sstream> #define AXI4_M...
ic-lab-duth/NoCpad
tb/tb_axi_con/harness.h
#ifndef AXI_IC_HARNESS_H #define AXI_IC_HARNESS_H #include "systemc.h" #include <mc_scverify.h> #define NVHLS_VERIFY_BLOCKS (ic_top) #include "stdlib.h" #include <string> #include "../../tb/tb_axi_con/axi_master.h" #include "../../tb/tb_axi_con/axi_slave.h" #include <iostream> #include <fstream> SC_MODULE(harnes...
ic-lab-duth/NoCpad
src/ace/acelite_master_if.h
// --------------------------------------------------------- // // MASTER-IF Is where the MASTER CONNECTS!!!!! // // // // Aka. Master <-> Master-IF <-> NoC <-> Slave-IF <-> Slave // // --------------------------------------------------------- // ...
ic-lab-duth/NoCpad
src/include/rc.h
#ifndef __ROUTING_COMPUTATION_HEADER__ #define __ROUTING_COMPUTATION_HEADER__ #include <systemc.h> #include "./dnp_ace_v0.h" enum rc_t {RC_DIRECT, RC_XY, RC_FIXED, RC_TYPE, RC_COMMON}; // Direct RC : The Dst Node is the Output port //template<rc_t TYPE, typename...T > //inline unsigned char do_rc(T...params); templ...
ic-lab-duth/NoCpad
src/axi_slave_if.h
<filename>src/axi_slave_if.h // --------------------------------------------------------- // // SLAVE-IF Is where the SLAVE CONNECTS!!!!! // // // // Aka. Master <-> Master-IF <-> NoC <-> Slave-IF <-> Slave // // --------------------------------...
ic-lab-duth/NoCpad
src/include/onehot.h
<gh_stars>1-10 #ifndef __ONEHOT_CLASS__ #define __ONEHOT_CLASS__ #include <systemc.h> #include "./duth_fun.h" //============================================================================// //============================== One-Hot Class ========================// //===================================================...
ic-lab-duth/NoCpad
tb/helper_non_synth.h
#ifndef __DUTH_HELPER_NON_SYNTH__ #define __DUTH_HELPER_NON_SYNTH__ unsigned int my_log2c(unsigned int val) { /// ceil(log2) integer calculation. Returns -1 for log2(0) unsigned int ret = -1; while (val != 0) { val >>= 1; ret++; } return ret; } #endif // __DUTH_HELPER_NON_SYNTH__
ic-lab-duth/NoCpad
tb/tb_wrap.h
<reponame>ic-lab-duth/NoCpad #ifndef __TB_WRAP_H__ #define __TB_WRAP_H__ #include "systemc.h" #include "nvhls_connections.h" #ifndef __SYNTHESIS__ #include <string> #include <iostream> #endif template<class T> struct msg_tb_wrap { T dut_msg; sc_time time_gen; sc_time time_inj; sc_time time_ej; ...
ic-lab-duth/NoCpad
src/include/duth_fun.h
<filename>src/include/duth_fun.h #ifndef __DUTH_FUN_LIB_H__ #define __DUTH_FUN_LIB_H__ #include <systemc.h> #ifdef HLS_CATAPULT #include <ac_sc.h> #include <ac_int.h> #endif #include "./onehot.h" template <unsigned N> class onehot; //============================================================================// //...
ic-lab-duth/NoCpad
src/ace/ace_master_if.h
// --------------------------------------------------------- // // MASTER-IF Is where the MASTER CONNECTS!!!!! // // // // Aka. Master <-> Master-IF <-> NoC <-> Slave-IF <-> Slave // // --------------------------------------------------------- // ...
ic-lab-duth/NoCpad
src/include/flit_ace.h
#ifndef __FLIT_DNP_H__ #define __FLIT_DNP_H__ #include "systemc.h" #include "nvhls_connections.h" #include "./dnp_ace_v0.h" #ifndef __SYNTHESIS__ #include <string> #include <iostream> #endif enum FLIT_TYPE {HEAD=0 , BODY=1, TAIL=3, SINGLE=2}; template<unsigned char PHIT_NUM> struct flit_dnp { sc_uint<2> type;...
ic-lab-duth/NoCpad
examples/nocpad_2m-2s_2d-mesh_basic-order/ic_top_2d.h
#ifndef AXI4_TOP_IC_H #define AXI4_TOP_IC_H #pragma once #include "../../src/axi_master_if.h" #include "../../src/axi_slave_if.h" #include "../../src/router_wh.h" #include "systemc.h" #include "nvhls_connections.h" #pragma hls_design top // Bundle of configuration parameters template < unsigned char MASTER_NUM_...
ic-lab-duth/NoCpad
src/router_wh.h
<reponame>ic-lab-duth/NoCpad<filename>src/router_wh.h #ifndef WH_ROUTER_CON_ST_BUF_H #define WH_ROUTER_CON_ST_BUF_H #include "systemc.h" #include "./include/flit_axi.h" #include "./include/duth_fun.h" #include "./include/arbiters.h" #include "nvhls_connections.h" // Select In/Out Ports, the type of flit and the Rout...
nickaj/cafhash
hashobj.c
<reponame>nickaj/cafhash /* Copyright 2014 The University of Edinburgh */ /* 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 */ /* ...
Gottox/qemuconf
qemuconf.c
<filename>qemuconf.c /* * qemuconf.c * Copyright (C) 2015 tox <<EMAIL>> * * Distributed under terms of the MIT license. */ #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <limits.h> #include <string.h> #include <libgen.h> #include <ctype.h> #define DROP(x, y) { for(y = i; i < len && x; i++); ...
miguelmoraperea/CommandInterpreter
src/CommandInterpreter.c
<gh_stars>0 /***************************************************************************** * Module name: CommandInterpreter.c * * First written on 2019/05/13 by <NAME>. * * Module Description: * This module contains functions that parse an input line into arguments and * executes the command if is found in a li...
miguelmoraperea/CommandInterpreter
mocks/Mocks_Commands.h
/***************************************************************************** * Module name: CommandsList.h * * First written on May 16, 2019 by Miguel. * * Module Description: * This module contains the interface of the mock commands. * *************************************************************************...
miguelmoraperea/CommandInterpreter
src/main.c
<gh_stars>0 /***************************************************************************** * Module name: main.c * * First written on May 23, 2019 by Miguel. * *****************************************************************************/ #include <stdio.h> #include "CommandInterpreter.h" #define MAX_SIZE_O...
miguelmoraperea/CommandInterpreter
inc/CommandInterpreter.h
<reponame>miguelmoraperea/CommandInterpreter<filename>inc/CommandInterpreter.h<gh_stars>0 /***************************************************************************** * Module name: CommandInterpreter.h * * First written on 2019/05/13 by <NAME>. * * Module Description: * This is the interface for Command Interp...
miguelmoraperea/CommandInterpreter
mocks/Mocks_Commands.c
<gh_stars>0 /***************************************************************************** * Module name: Mocks_Commands.c * * First written on May 23, 2019 by Miguel. * * Module Description: * This module contains a list of mock commands and their implementation. * *********************************************...
altafan/secp256k1-zkp
lib/main.c
#include "stdio.h" #include "stdlib.h" #include "string.h" #include "secp256k1.h" #include "secp256k1_ecdh.h" #include "secp256k1_generator.h" #include "secp256k1_rangeproof.h" #include "secp256k1_preallocated.h" #include "secp256k1_surjectionproof.h" #ifndef SECP256K1_CONTEXT_ALL #define SECP256K1_CONTEXT_ALL SECP256...
izabala123/Nemoh
Nemoh_c/date.c
<reponame>izabala123/Nemoh<gh_stars>10-100 #include <time.h> #include <stdio.h> #ifdef __GNUC__ void printcreditsc_(char *str) { #else void PRINTCREDITSC(char *str) { #endif // GNU_C char *end = str; while (*end != '.') end++; *end = '\0'; printf("NEMOH V1.0 - January 2014. Copyright 2014 Ecole...
gorkaerana/tuplex
tuplex/core/include/DataSet.h
//--------------------------------------------------------------------------------------------------------------------// // // // Tuplex: Blazing Fast Python Data Scien...
gorkaerana/tuplex
tuplex/codegen/include/IFailable.h
//--------------------------------------------------------------------------------------------------------------------// // // // Tuplex: Blazing Fast Python Data Scien...
zethon/ttvg
src/DelayedSound.h
<filename>src/DelayedSound.h #pragma once #include <memory> #include <SFML/Audio.hpp> #include "ResourceManager.h" namespace tt { class DelayedSound; using DelayedSoundPtr = std::unique_ptr<DelayedSound>; class DelayedSound { public: static DelayedSoundPtr create(const std::string& name, float delay,...
zethon/ttvg
src/Player.h
#pragma once #include <boost/signals2.hpp> #include "AnimatedSprite.h" #include "Item.h" namespace tt { class Player; using PlayerPtr = std::shared_ptr<Player>; class Player : public AnimatedSprite { public: static constexpr auto CLASS_NAME = "Player"; static const struct luaL_Reg LuaMethods[]; using ...
zethon/ttvg
src/ResourceManager.h
#pragma once #include <optional> #include <iostream> #include <boost/filesystem.hpp> #include <nlohmann/json.hpp> #include <SFML/Graphics/Font.hpp> #include <SFML/Audio.hpp> namespace nl = nlohmann; namespace tt { class ResourceManager { using TextureCache = std::map<std::string, sf::Texture>; using Sound...
zethon/ttvg
src/Screen.h
#pragma once #include <memory> #include <boost/any.hpp> #include <SFML/Graphics.hpp> #include "ResourceManager.h" #include "IUpdateable.h" namespace tt { constexpr std::uint16_t SCREEN_SPLASH = 10; constexpr std::uint16_t SCREEN_INTRO = 20; constexpr std::uint16_t SCREEN_SHART = 30; constexpr std::uint16_t SCREEN...
zethon/ttvg
src/Background.h
<reponame>zethon/ttvg #pragma once #include <cmath> #include <set> #include <memory> #include <optional> #include <nlohmann/json.hpp> #include <SFML/Graphics.hpp> #include "TTUtils.h" #include "Tiles.hpp" #include "Transition.h" #include "Zone.h" namespace nl = nlohmann; namespace tt { class ResourceManager; cla...
zethon/ttvg
src/ItemFactory.h
<gh_stars>1-10 #pragma once #include <memory> #include <nlohmann/json.hpp> #include "ResourceManager.h" namespace nl = nlohmann; namespace tt { class ItemFactory { ResourceManager& _resources; public: static constexpr auto CLASS_NAME = "ItemFactory"; static const struct luaL_Reg LuaMethods[]; ...
zethon/ttvg
src/Vehicle.h
#pragma once #include <vector> #include <SFML/Graphics.hpp> #include <SFML/Audio.hpp> #include "GameTypes.h" #include "Path.hpp" #include "AnimatedSprite.h" #include "Intersection.h" #include "Tiles.hpp" namespace tt { class Background; using BackgroundSharedPtr = std::shared_ptr<Background>; class Vehicle; using ...
zethon/ttvg
src/Scenes/Hud.h
#pragma once #include "../Screen.h" #include "../Player.h" namespace tt { class Hud : public Screen { sf::Font _statusFont; std::shared_ptr<sf::RectangleShape> _background; std::shared_ptr<sf::Text> _zoneText; std::shared_ptr<sf::Text> _healthText; std::shared_ptr<sf::Tex...
zethon/ttvg
src/Zone.h
#pragma once #include <string> #include <optional> #include <lua/lua.hpp> #include <nlohmann/json.hpp> #include <SFML/Graphics.hpp> #include "Transition.h" namespace tt { struct Zone { static constexpr auto CLASS_NAME = "Zone"; static const struct luaL_Reg LuaMethods[]; struct Callbacks { ...
zethon/ttvg
src/Scenes/DescriptionText.h
#pragma once #include "../Screen.h" namespace tt { class DescriptionText : public Screen { sf::Font _font; std::shared_ptr<sf::Text> _text; std::shared_ptr<sf::RectangleShape> _background; public: static constexpr auto CLASS_NAME = "DescriptionText"; static c...
zethon/ttvg
src/TooterLogger.h
#pragma once #include <memory> #include <spdlog/spdlog.h> #include <lua/lua.hpp> namespace tt { namespace log { constexpr auto GLOBAL_LOGGER = "tt"; using SpdLogPtr = std::shared_ptr<spdlog::logger>; [[maybe_unused]] SpdLogPtr rootLogger(); SpdLogPtr initializeLogger(const std::string& name); } // namespace log...
zethon/ttvg
src/TTLua.h
<reponame>zethon/ttvg #pragma once #include <string> #include <iostream> #include <memory> #include <any> #include <vector> #include <functional> #include <optional> #include <fmt/core.h> #include <lua/lua.hpp> namespace tt { inline static void dumpstack(lua_State* L) { int top = lua_gettop(L); for (int i =...
zethon/ttvg
src/GameOverScreen.h
#pragma once #include "Screen.h" namespace tt { class GameOverScreen : public Screen { sf::Font _font; public: GameOverScreen(ResourceManager& res, sf::RenderTarget& target); PollResult poll(const sf::Event& e) override; }; } // namespace tt
zethon/ttvg
src/Transition.h
#pragma once #include <set> #include <SFML/Graphics.hpp> #include <nlohmann/json.hpp> namespace nl = nlohmann; namespace tt { struct Transition { sf::Vector2f position; bool enabled; std::string newscene; std::string selectEvent; bool operator==(const Transition& other) ...
zethon/ttvg
src/VehicleFactory.h
<reponame>zethon/ttvg #pragma once #include <memory> #include <nlohmann/json.hpp> #include <SFML/Audio.hpp> #include "Path.hpp" #include "ResourceManager.h" #include "Intersection.h" namespace nl = nlohmann; namespace tt { class PathFactory; using PathFactoryPtr = std::shared_ptr<PathFactory>; class Vehicle; usi...
zethon/ttvg
src/Item.h
#pragma once #include <vector> #include <variant> #include <optional> #include <SFML/Graphics.hpp> #include <nlohmann/json.hpp> #include "AnimatedSprite.h" namespace nl = nlohmann; namespace tt { class Item; using ItemPtr = std::shared_ptr<Item>; // Item callbacks can be null or non-null and empty. // If the cal...
zethon/ttvg
src/Intersection.h
<reponame>zethon/ttvg #pragma once #include <string> #include <optional> #include <boost/spirit/home/x3.hpp> #include <SFML/Graphics.hpp> #include "GameTypes.h" #include "TTUtils.h" using namespace std::string_literals; // Types of L and T intersections // // * *** // * LO * TO ...
zethon/ttvg
src/Scenes/ModalWindow.h
#pragma once #include <deque> #include "../Screen.h" namespace tt { class Player; using PlayerPtr = std::shared_ptr<Player>; enum class ModalType { Default = 0, Messages, Options, Inventory }; class ModalWindow : public Screen { public: enum class Alignment { TOP, CENTER, ...
zethon/ttvg
src/PathFactory.h
#pragma once #include <nlohmann/json.hpp> #include <SFML/Graphics.hpp> #include "Path.hpp" #include "Intersection.h" namespace nl = nlohmann; namespace tt { class PathFactory; using PathFactoryPtr = std::shared_ptr<PathFactory>; //////////////////////////////////////////////////////////// /// \brief RiboPath gen...
zethon/ttvg
src/AnimatedSprite.h
#pragma once #include <functional> #include <SFML/Graphics.hpp> #include "GameTypes.h" #include "IUpdateable.h" namespace tt { class AnimatedSprite; using AnimatedSpritePtr = std::shared_ptr<AnimatedSprite>; class AnimatedSprite; using AnimatedSpritePtr = std::shared_ptr<AnimatedSprite>; using AnimeCallback = std...
zethon/ttvg
src/IUpdateable.h
<reponame>zethon/ttvg #pragma once #include <memory> namespace tt { class IUpdateable; using IUpdateablePtr = std::shared_ptr<IUpdateable>; class IUpdateable { public: virtual ~IUpdateable() = default; virtual std::uint16_t timestep() = 0; }; } // namespace
zethon/ttvg
src/GameScreen.h
<gh_stars>1-10 #pragma once #include <lua/lua.hpp> #include <SFML/Graphics.hpp> #include "Scenes/Scene.h" #include "Scenes/ModalWindow.h" #include "Screen.h" #include "AnimatedSprite.h" #include "Player.h" #include "TTLua.h" #include "TTUtils.h" #include "TooterLogger.h" namespace tt { namespace { int Utils_open...
zethon/ttvg
src/IntroScreen.h
<filename>src/IntroScreen.h #pragma once #include <SFML/Audio.hpp> #include "Screen.h" namespace tt { using TextPtr = std::shared_ptr<sf::Text>; using TextList = std::vector<TextPtr>; class IntroScreen : public Screen { sf::Font _font; sf::Texture _bgt; sf::Sound _tomWillKillSound; ...
zethon/ttvg
src/Scenes/Tucson.h
#pragma once #include <boost/range/adaptor/indexed.hpp> #include <nlohmann/json.hpp> #include <SFML/Graphics.hpp> #include "../Vehicle.h" #include "../VehicleFactory.h" #include "../Background.h" #include "../Player.h" #include "Scene.h" namespace nl = nlohmann; namespace tt { class Tucson : public Scene { pu...
zethon/ttvg
src/Scenes/Scene.h
#pragma once #include <lua/lua.hpp> #include <nlohmann/json.hpp> #include "../Screen.h" #include "../Player.h" #include "../Background.h" #include "../Item.h" #include "../ItemFactory.h" #include "../TooterLogger.h" #include "../DelayedSound.h" #include "Hud.h" #include "DescriptionText.h" #include "DebugWindow.h" ...
zethon/ttvg
src/GameTypes.h
<reponame>zethon/ttvg #pragma once namespace tt { enum Direction { NONE = 0x00, UP = 0x01, DOWN = 0x02, LEFT = 0x04, RIGHT = 0x08 }; enum AnimatedState { STILL, ANIMATED }; } // namespace
zethon/ttvg
src/Engine.h
<gh_stars>1-10 #pragma once #include <memory> #include <boost/filesystem.hpp> #include <SFML/Graphics.hpp> #include "ResourceManager.h" #include "Screen.h" #include "TooterLogger.h" namespace tt { using RenderTargetPtr = std::shared_ptr<sf::RenderTarget>; class TooterEngine { ResourceManager _resourceManag...
zethon/ttvg
src/Scenes/DebugWindow.h
#pragma once #include "../Screen.h" namespace tt { class DebugWindow : public Screen { sf::Font _debugFont; std::shared_ptr<sf::RectangleShape> _background; std::shared_ptr<sf::Text> _debugText; public: DebugWindow(ResourceManager& resmgr, sf::RenderTarget& target); void setText(c...
zethon/ttvg
tests/Test.h
#pragma once #include <iostream> #include <boost/test/data/test_case.hpp> #include <boost/algorithm/string/replace.hpp> #include <test-config.h> namespace std { template<typename T> std::ostream& operator<<(std::ostream& out, const sf::Vector2<T> item) { auto[x, y] = item; out << "{ x=" << x << " y=...
zethon/ttvg
src/TTUtils.h
<reponame>zethon/ttvg #pragma once #include <string> #include <ostream> #include <random> #include <iterator> #include <cmath> #include <boost/spirit/home/x3.hpp> #include <nlohmann/json.hpp> #include <SFML/Graphics.hpp> namespace nl = nlohmann; namespace sf { void from_json(const nl::json& j, Vector2f& v); } /...
mike-pt/xhyve
src/pci_e82545.c
<reponame>mike-pt/xhyve /* * Copyright (c) 2016 <NAME> <<EMAIL>> * Copyright (c) 2015 <NAME> <<EMAIL>> * Copyright (c) 2013 <NAME>, Avere Systems * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * a...
mike-pt/xhyve
src/pci_ahci.c
<filename>src/pci_ahci.c /*- * Copyright (c) 2013 <NAME> <<EMAIL>> * Copyright (c) 2015 xhyve developers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source c...
mike-pt/xhyve
src/vmm/io/vrtc.c
/*- * Copyright (c) 2014, <NAME> (<EMAIL>) * Copyright (c) 2015 xhyve developers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above...
mike-pt/xhyve
src/pci_uart.c
<gh_stars>1000+ /*- * Copyright (c) 2012 NetApp, Inc. * Copyright (c) 2015 xhyve developers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retai...
mike-pt/xhyve
src/vmm/intel/vmx_msr.c
<filename>src/vmm/intel/vmx_msr.c /*- * Copyright (c) 2011 NetApp, Inc. * Copyright (c) 2015 xhyve developers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of sour...
mike-pt/xhyve
src/vmm/io/vatpic.c
/*- * Copyright (c) 2014 <NAME> <<EMAIL>> * Copyright (c) 2015 xhyve developers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above ...
mike-pt/xhyve
include/xhyve/pci_emul.h
/*- * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
mike-pt/xhyve
src/mevent_test.c
<filename>src/mevent_test.c /*- * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * ...
mike-pt/xhyve
include/xhyve/support/misc.h
#pragma once #include <stdint.h> #include <stdio.h> #include <stdlib.h> #define UNUSED __attribute__ ((unused)) #define CTASSERT(x) _Static_assert ((x), "CTASSERT") #define XHYVE_PAGE_SIZE 0x1000 #define XHYVE_PAGE_MASK (XHYVE_PAGE_SIZE - 1) #define XHYVE_PAGE_SHIFT 12 #define __aligned(x) __attribute__ ((aligned ((x...
mike-pt/xhyve
include/xhyve/mem.h
<reponame>mike-pt/xhyve /*- * Copyright (c) 2012 NetApp, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * not...
mike-pt/xhyve
include/xhyve/firmware/kexec.h
#pragma once #include <stdint.h> #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpacked" struct setup_header { uint8_t setup_sects; /* The size of the setup in sectors */ uint16_t root_flags; /* If set, the root is mounted readonly */ uint32_t syssize; /* The size of the 32-bit code in 16-byte pa...
mike-pt/xhyve
include/xhyve/vga.h
/*- * Copyright (c) 2015 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
mike-pt/xhyve
src/firmware/kexec.c
/*- * Copyright (c) 2015 xhyve developers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
mike-pt/xhyve
src/vmm/vmm.c
<reponame>mike-pt/xhyve /*- * Copyright (c) 2011 NetApp, Inc. * Copyright (c) 2015 xhyve developers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code mu...
MiniCamel/BGECycleScrollView
Example/Pods/Target Support Files/Pods-BGECycleScrollView_Example/Pods-BGECycleScrollView_Example-umbrella.h
<gh_stars>0 #ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_BGECycleScrollView_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pod...
lucaspar/distributed_computing
openacc_demo/vector_addition.c
// pgcc -acc vector_addition.c #include <stdio.h> #include <stdlib.h> void vecaddgpu(float *restrict r, float *a, float *b, int n) { #pragma acc kernels loop copyin(a [0:n], b [0:n]) copyout(r [0:n]) for (int i = 0; i < n; ++i) r[i] = a[i] + b[i]; } int main(int argc, char *argv[]) { int n; /* vect...
Roshan-Thomas/ECEN-210-C-Programs
Lab Files/31.8.2020/compute_dimensional_weight.c
/********************************************************* * From C PROGRAMMING: A MODERN APPROACH, Second Edition * * By <NAME> * * Copyright (c) 2008, 1996 <NAME> & Company, Inc. * * All rights reserved. * * This program may be freely distr...
Roshan-Thomas/ECEN-210-C-Programs
Lab Files/31.8.2020/variable_size_array.c
/*** Last modification: 12 September 2017 ***/ #include <stdio.h> #include <stdlib.h> #include <math.h> //------------------------------------------------------------ int main(argc, argv) int argc; char **argv; { double sum, *table;// This is a variable-size table of real numbers // "*double" means that table is a ...
Roshan-Thomas/ECEN-210-C-Programs
Lab Files/31.8.2020/hello_ECEN.c
<reponame>Roshan-Thomas/ECEN-210-C-Programs /*** Last modification: 12 September 2017 ***/ #include <stdio.h> main() { // Just saying hello printf("Hello ECEN 303! \n"); }/* end of main() */
Roshan-Thomas/ECEN-210-C-Programs
Lab Files/31.8.2020/convert_temperature_c_to_f.c
<reponame>Roshan-Thomas/ECEN-210-C-Programs /********************************************************* * From C PROGRAMMING: A MODERN APPROACH, Second Edition * * By <NAME> * * Copyright (c) 2008, 1996 <NAME> & Company, Inc. * * All rights reserved. ...
Roshan-Thomas/ECEN-210-C-Programs
Lab Files/31.8.2020/infinite_loop.c
<reponame>Roshan-Thomas/ECEN-210-C-Programs /*** Last modification: 12 September 2017 ***/ #include <stdio.h> #include <math.h> #define TRUE 1 main() { int iter=0; double x, y, PI; x=1.0; PI=4.0*atan(x); printf("PI=%1.12f \n", PI); // Running an infinite loop printf("I am running y=cos(x) forever...\n"); d...
Roshan-Thomas/ECEN-210-C-Programs
Class Files/30.8.2020/print-variables.c
#include <stdio.h> /************************************** Lecture of 30 August 2020 Learning about printf() and variable declaration. ***************************************/ int main() { int i; // declaring an integer variable double x; // declaring a double-precision floating-point (real number) variable char...
Roshan-Thomas/ECEN-210-C-Programs
Class Files/30.8.2020/cosine-and-defining-a-constant.c
<filename>Class Files/30.8.2020/cosine-and-defining-a-constant.c<gh_stars>0 #include <stdio.h> #include <math.h> /************************************** Lecture of 30 August 2020 Learning about calling a cosine function and defining a constant. ***************************************/ #define PI 3.141592653589 int...
Roshan-Thomas/ECEN-210-C-Programs
Lab Files/31.8.2020/fixed_size_array.c
<filename>Lab Files/31.8.2020/fixed_size_array.c /*** Last modification: 12 September 2017 ***/ #include <stdio.h> #include <math.h> //------------------------------------------------------------ int main(argc, argv) int argc; char **argv; { int sum1, table1[20];// This is a fixed-size table of 20 integers double s...
Roshan-Thomas/ECEN-210-C-Programs
Lab Files/31.8.2020/hyperbolic_tangent_function.c
/*** Last modification: 12 September 2017 ***/ #include <stdio.h> #include <math.h> #define TRUE 1 static double hypertan(double x); int main(argc, argv) int argc; char **argv; { double x, y; FILE *fptr; printf("########## Hyperbolic Tangent Function ##########\n"); // Compare our function to the system funct...
ivan-mogilko/ags-refactoring
Common/ac/spritefile.h
<gh_stars>1-10 //============================================================================= // // Adventure Game Studio (AGS) // // Copyright (C) 1999-2011 <NAME> and 2011-20xx others // The full list of copyright holders can be found in the Copyright.txt // file, which is part of this source code distribution. // /...
ivan-mogilko/ags-refactoring
Common/util/memorystream.h
<reponame>ivan-mogilko/ags-refactoring //============================================================================= // // Adventure Game Studio (AGS) // // Copyright (C) 1999-2011 <NAME> and 2011-20xx others // The full list of copyright holders can be found in the Copyright.txt // file, which is part of this source...
ivan-mogilko/ags-refactoring
Common/font/fonts.h
//============================================================================= // // Adventure Game Studio (AGS) // // Copyright (C) 1999-2011 <NAME> and 2011-20xx others // The full list of copyright holders can be found in the Copyright.txt // file, which is part of this source code distribution. // // The AGS sourc...
ivan-mogilko/ags-refactoring
Common/font/ttffontrenderer.h
<reponame>ivan-mogilko/ags-refactoring //============================================================================= // // Adventure Game Studio (AGS) // // Copyright (C) 1999-2011 <NAME> and 2011-20xx others // The full list of copyright holders can be found in the Copyright.txt // file, which is part of this source...