repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/clapck/slarf.c
<gh_stars>1-10 /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/cblas/sger.c
<filename>library/src/main/cpp/nbis/commonnbis/src/lib/cblas/sger.c /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the ...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/f2c/s_copy.c
<filename>library/src/main/cpp/nbis/commonnbis/src/lib/f2c/s_copy.c /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the ...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/ioutil/filehead.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/lib/image/imageops.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/lib/image/rl.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/fft/cffti.c
<filename>library/src/main/cpp/nbis/commonnbis/src/lib/fft/cffti.c /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the c...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/fft/passb5.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/lib/image/parsargs.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/util/bres.c
<gh_stars>1-10 /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/bin/dpyimage/dpypipe.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/clapck/sorgqr.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/fft/passb2.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/fft/passf.c
<gh_stars>1-10 /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/lib/image/writihdr.c
<reponame>ThalesGroup/WSQForAndroid /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties....
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/lib/image/imgutil.c
<reponame>ThalesGroup/WSQForAndroid /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties....
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/lib/ihead/nullihdr.c
<gh_stars>1-10 /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/lib/image/binfill.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/clapck/slanst.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/clapck/slarfb.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/bin/rdimgwh/rdimgwh.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/clapck/sormqr.c
<filename>library/src/main/cpp/nbis/commonnbis/src/lib/clapck/sormqr.c /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in t...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/bin/djpegb/djpegb.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/clapck/slamch.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/clapck/sorgtr.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/fft/cfftf1.c
<filename>library/src/main/cpp/nbis/commonnbis/src/lib/fft/cfftf1.c /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the ...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/lib/image/imgavg.c
<reponame>ThalesGroup/WSQForAndroid /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties....
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/lib/image/imgsnip.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/ioutil/readutil.c
<gh_stars>1-10 /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/include/jconfig.h
<reponame>ThalesGroup/WSQForAndroid<gh_stars>1-10 /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/clapck/slapy2.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/bin/dpyimage/dpyio.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/clapck/sorm2l.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/clapck/sstebz.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/lib/image/findblob.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/fet/readfet.c
<filename>library/src/main/cpp/nbis/commonnbis/src/lib/fet/readfet.c<gh_stars>1-10 /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Gov...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/lib/ihead/getnset.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/bin/dpyimage/dpynorm.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/util/invbyte.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/clapck/slaset.c
<gh_stars>1-10 /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/clapck/slasrt.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/bin/djpegl/djpegl.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/lib/image/imgboost.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/fft/fft2dr.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/ioutil/fileroot.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/lib/wsq/encoder.c
<gh_stars>1-10 /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/lib/ihead/getcomp.c
<filename>library/src/main/cpp/nbis/imgtools/src/lib/ihead/getcomp.c<gh_stars>1-10 /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Gov...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/lib/image/binpad.c
<gh_stars>1-10 /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/clapck/slagtf.c
<filename>library/src/main/cpp/nbis/commonnbis/src/lib/clapck/slagtf.c /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in t...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/bin/dwsq/dwsq.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/ioutil/newext.c
<gh_stars>1-10 /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/bin/sd_rfmt/sd_rfmt.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/bin/dpyimage/dpyimage.c
<reponame>ThalesGroup/WSQForAndroid /******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties....
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/imgtools/src/bin/dpyimage/dpyx.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
ThalesGroup/WSQForAndroid
library/src/main/cpp/nbis/commonnbis/src/lib/clapck/ssyevx.c
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
mateoatr/core-setup
src/corehost/cli/deps_format.h
<reponame>mateoatr/core-setup<filename>src/corehost/cli/deps_format.h<gh_stars>1-10 // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #ifndef __DEPS_FORMAT_H_ #define...
gokuhs/devilutionX
vita/danzeffSDL/pspctrl_emu.h
<reponame>gokuhs/devilutionX<filename>vita/danzeffSDL/pspctrl_emu.h #ifndef INCLUDED_LIB_PSPCTRL_EMU_H #define INCLUDED_LIB_PSPCTRL_EMU_H #include <SDL/SDL.h> //This is a system to provide a crossplatform implementation of the controller //so that psp programs can be coded on the pc using a ps2 convertor and then //...
gokuhs/devilutionX
vita/touch.h
<reponame>gokuhs/devilutionX<filename>vita/touch.h #ifndef TOUCH_H #define TOUCH_H #ifdef USE_SDL1 #include <SDL/SDL.h> #else #include <SDL2/SDL.h> #endif #include <stdbool.h> void handle_touch(SDL_Event *event, int current_mouse_x, int current_mouse_y); void finish_simulated_mouse_clicks(int current_mouse_x, int cur...
gokuhs/devilutionX
vita/danzeffSDL/danzeff.h
#ifndef INCLUDED_KEYBOARDS_DANZEFF_H #define INCLUDED_KEYBOARDS_DANZEFF_H #ifdef USE_SDL1 #include <SDL/SDL.h> #include <SDL/SDL_image.h> #else #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #endif //Pure SDL version of danzeff. //Can be compiled on PC, PSP, whatever (if you add an input definition for i...
gokuhs/devilutionX
3rdParty/StormLib/src/StormPort.h
/*****************************************************************************/ /* StormPort.h Copyright (c) <NAME> 2001 */ /*---------------------------------------------------------------------------*/ /* Portability module for the StormLib library. Contains a wrapper symbols */ /* to ...
gokuhs/devilutionX
vita/danzeffSDL/fontNaga10.c
const unsigned char hankaku_font10[]={ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x04,0x04,0x04,0x04,0x00,0x00,0x04,0x00,0x00, 0x00,0x0a,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x0a,0x0a,0x1f,0x0a,0x1f,0x0a,0x0a,0x00,0x00, 0x00,0x04,0x1e,0x05,0x0e,0x14,0x0f,0x04,0x00,0x00, 0x00,0x00,0x16...
gokuhs/devilutionX
SourceS/sdl_compat.h
// Compatibility wrappers for SDL 1 & 2. #ifndef VITA #include <SDL.h> #else #ifdef USE_SDL1 #include <SDL/SDL.h> #else #include <SDL2/SDL.h> #endif #endif inline int SDLC_SetColorKey(SDL_Surface *surface, Uint32 key) { #ifdef USE_SDL1 return SDL_SetColorKey(surface, SDL_SRCCOLORKEY, key); #else retu...
gokuhs/devilutionX
vita/vita_aux_util.h
#ifndef VITAAUXUTIL_H #define VITAAUXUTIL_H #ifdef USE_SDL1 #include <SDL/SDL_events.h> #else #include <SDL2/SDL_events.h> #endif #define MAX(X, Y) ((X) > (Y) ? (X) : (Y)) #define RGB(r, g, b) (0xFF000000 | ((b) << 16) | ((g) << 8) | (r)) /*Mis Librerias pa PSP 4.3*/ /*Esto es una especie de pause pa PSP*/ typedef u...
gokuhs/devilutionX
vita/danzeffSDL/pspctrl_emu.c
<reponame>gokuhs/devilutionX #include "pspctrl_emu.h" #ifdef PSP SceCtrlData getCtrlFromJoystick(SDL_Joystick* joystick) { SceCtrlData newData; newData.Buttons = 0; newData.Lx = 0; newData.Ly = 0; SDL_JoystickUpdate(); //Buttons if (SDL_JoystickGetButton(joystick, 0)) newData.Buttons |= PSP_CTRL_TRIANGLE; i...
gokuhs/devilutionX
SourceX/miniwin/ddraw.h
<gh_stars>10-100 #include "devilution.h" #ifdef VITA #ifdef USE_SDL1 #include <SDL/SDL.h> #else #include <SDL2/SDL.h> #endif #else #include <SDL.h> #endif namespace dvl { extern SDL_Window *window; extern SDL_Renderer *renderer; extern SDL_Texture *texture; extern SDL_Palette *palette; extern SDL_Sur...
glennc/Lox
csharp/tool/generate.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #define NUM_CLASSES 6 int main() { const char *classes[NUM_CLASSES] = { "Binary:Expr left, Token op, Expr right", "Grouping:Expr exp", "Literal:object val", "Unary:Token op, Expr right", "Variabl...
COM-GND/com-gnd-espresso
src/ssr-heater-module.h
<filename>src/ssr-heater-module.h #ifndef SSRHEATERMODULE_H #define SSRHEATERMODULE_H #include <Arduino.h> class SsrHeaterModule { private: TaskHandle_t xHandle; unsigned char ssrControlPin; unsigned int cyclePeriod = 2000; unsigned int dutyPeriod = 1000; public: SsrHeaterModule(unsigned char ssr...
COM-GND/com-gnd-espresso
src/flow-fs2012-module.h
#ifndef FLOWFS2012_H #define FLOWFS2012_H #include <Arduino.h> #include <Wire.h> #define FS2012_I2C_ADDR 0x07 class FlowFs2012Module { private: TaskHandle_t xHandle; void _setRawFlowRate(int); TwoWire *I2C; int rawFlowRate = 0; public: FlowFs2012Module(TwoWire *twoWire); ~FlowFs2012Module(); ...
COM-GND/com-gnd-espresso
src/rotary-encoder-module.h
// #pragma once #include <Arduino.h> #include <AceButton.h> #include <driver/gpio.h> #include <ESP32Encoder.h> using namespace ace_button; class RotaryEncoderModuleCallbacks; class RotaryEncoderModule : public IEventHandler { private: ESP32Encoder encoder; RotaryEncoderModuleCallbacks *callbacks = nullptr; ...
COM-GND/com-gnd-espresso
src/pump-module.h
<reponame>COM-GND/com-gnd-espresso #ifndef PUMPMODULE_H #define PUMPMODULE_H #include <dimmable_light_linearized.h> // #include "pump-module-callbacks.h" class PumpModuleCallbacks; class PumpModule { private: TaskHandle_t xHandle; int zeroCrossPin; int pumpMin; int pumpMax; int pumpRange; int...
COM-GND/com-gnd-espresso
src/temperature-ntc-module.h
#ifndef TEMPNTCMODULE_H #define TEMPNTCMODULE_H #include <RunningAverage.h> #include <ESP32AnalogRead.h> class TemperatureNtcModule { private: TaskHandle_t xHandle; void _setTemperatureMv(int); public: int acFreq; ESP32AnalogRead adc; RunningAverage runAvg; int rawTemperature; // must be stat...
COM-GND/com-gnd-espresso
src/pressure-m323-module.h
#ifndef M323MODULE_H #define M323MODULE_H #include <ESP32AnalogRead.h> class PressureM323Module { private: TaskHandle_t xHandle; void _setPressureMv(int); public: int acFreq; ESP32AnalogRead adc; int rawPressure; // must be static so that the RTOS task can change it /* * Sensor range is ....
WeepingDogel/weepingdogel.h
weepingdogel.h
<reponame>WeepingDogel/weepingdogel.h<filename>weepingdogel.h<gh_stars>1-10 /* 笨狗偷懒专用倴文仢 By WeepingDogel */ #include<stdio.h> #include<math.h> #define GET_ARRAY_LEN(array,len){len = (sizeof(array) / sizeof(array[0]));} //δΈŠι’θΏ™δΈͺζ˜―θŽ·ε–ζ•°η»„ι•ΏεΊ¦ #define PrintLOGO(){printf("\033[33;5;1m╔╗╔╗╔╗───────────────╔═══╗────────╔╗\n║║║║║║──...
axispod/vmpl
tests/at.h
<gh_stars>1-10 #pragma once #include <vmpl/at.h> #include <iostream> #include "testf.h" namespace vmpl_tests { void test_at() { std::cout << "== at tests ==" << std::endl; typedef vmpl::holder<> empty_holder; typedef vmpl::holder<int> one_type_holder; typedef vmpl::holder<char, int> two_types_holder...
axispod/vmpl
include/vmpl/empty.h
#pragma once #include "holder.h" namespace vmpl { template<typename ... Args> struct empty { static const bool value = false; }; template<typename ... Args> struct empty<holder<Args...>> { static const bool value = false; }; template<> struct empty<> { static const bool value = true; }; template...
axispod/vmpl
tests/front.h
<gh_stars>1-10 #pragma once #include <vmpl/front.h> #include <iostream> #include "testf.h" namespace vmpl_tests { void test_front() { std::cout << "== front tests ==" << std::endl; typedef vmpl::holder<> empty_holder; typedef vmpl::holder<int> one_type_holder; typedef vmpl::holder<char, int> two_typ...
axispod/vmpl
include/vmpl/push.h
#pragma once #include "holder.h" namespace vmpl { template<typename T, typename ... Args> struct push_back : public make_holder<Args..., T> {}; template<typename T, typename ... Args> struct push_front : public make_holder<T, Args...> {}; }
axispod/vmpl
include/vmpl/erase.h
<filename>include/vmpl/erase.h #pragma once #include "holder.h" #include "split.h" namespace vmpl { namespace { template<unsigned Position, unsigned Length, typename ...Args> struct erase_helper { typedef typename split<Position, Args...> split_type; typedef typename make_holder<typename split_type::hea...
axispod/vmpl
tests/testf.h
#pragma once #include <vmpl/holder.h> #include <type_traits> #include <typeinfo> #include <iostream> #include <string> namespace tests { namespace { template<typename T> struct print_type { static void print(std::ostream& stream) { stream << typeid(T).name(); } }; template<> struct print_...
axispod/vmpl
include/vmpl/integer_sequence.h
#pragma once #include <type_traits> #include <cinttypes> namespace vmpl { // integer_sequence from C++14 template<typename T, T ... indices> struct integer_sequence { typedef T value_type; static T size() { return sizeof...(indices); } }; template<typename T, typename currentIndex, T ...indices> struct make...
axispod/vmpl
include/vmpl/replace.h
#pragma once #include "holder.h" namespace vmpl { namespace { template<typename From, typename To, typename Src> struct get_type { typedef Src type; }; template<typename From, typename To> struct get_type<From, To, From> { typedef To type; }; } template<typename From, typename To, typename...
axispod/vmpl
include/vmpl/holder.h
#pragma once namespace vmpl { /** * Container for list of variadic types. */ template<typename ...Args> struct holder; namespace { template<typename ...Args> struct to_holder { typedef holder<Args...> type; }; template<typename T> struct to_holder<T> { typedef holder<T> type; }; tem...
axispod/vmpl
include/vmpl/numrics.h
<gh_stars>1-10 #pragma once #include <cstdint> namespace vmpl { template<std::size_t N> using size_t_ = std::integral_constant<std::size_t, N>; template<int N> using int_ = std::integral_constant<int, N>; template<unsigned int N> using uint_ = std::integral_constant<unsigned int, N>; }
axispod/vmpl
include/vmpl/get.h
#pragma once #include "holder.h" namespace vmpl { namespace { template<typename ... Args> struct get_helper; template<typename T, typename ... Args> struct get_helper<T, Args...> { typedef T type; }; template<typename DT, typename ... Args> struct safe_get_helper; template<typename DT, typen...
axispod/vmpl
include/vmpl/back.h
#pragma once #include "holder.h" namespace vmpl { namespace { template<typename ... Args> struct back_helper; template<typename T, typename ... Args> struct back_helper<T, Args...> { typedef typename back_helper<Args...>::type type; }; template<typename T> struct back_helper<T> { typedef h...
axispod/vmpl
include/vmpl/at.h
#pragma once #include "holder.h" #include <utility> namespace vmpl { namespace { template<unsigned Pos, typename ... Args> struct at_helper { typedef typename at_helper<Pos - 1, Args...>::type type; }; template<unsigned Pos, typename Head, typename ... Args> struct at_helper<Pos, Head, Args...> { ...
axispod/vmpl
include/vmpl/size.h
#pragma once #include "holder.h" namespace vmpl { template<typename ... Args> struct size { static const unsigned value = sizeof...(Args); }; template<typename ... Args> struct size<holder<Args...>> { static const unsigned value = sizeof...(Args); }; }
axispod/vmpl
tests/function_info.h
#pragma once #include <vmpl/function_info.h> #include <functional> #include "testf.h" namespace vmpl_tests { namespace { double func1(int a, char b) { return 0.0f; } struct foo { char func2(double, int) { return 'a'; } }; struct foo2 { int operator()(float, char) { retu...
axispod/vmpl
include/vmpl/front.h
<filename>include/vmpl/front.h #pragma once #include "holder.h" namespace vmpl { namespace { template<typename ... Args> struct front_helper; template<typename T, typename ... Args> struct front_helper<T, Args...> { typedef holder<T> type; }; template<> struct front_helper<> { typedef hold...
axispod/vmpl
include/vmpl/pair.h
<reponame>axispod/vmpl #pragma once namespace vmpl { template<typename First, typename Second> struct pair { typedef First first_type; typedef Second second_type; }; template<typename T> struct is_pair { static const bool value = false; }; template<typename First, typename Second> struct is_pair < pa...
axispod/vmpl
include/vmpl/transform.h
<filename>include/vmpl/transform.h #pragma once #include "holder.h" namespace vmpl { namespace { template<typename Applier, typename T> struct apply_helper { typedef typename Applier::template apply<T>::type type; }; template<typename Applier, typename ... Args> struct transform_helper { typede...
axispod/vmpl
tests/holder.h
#pragma once #include <vmpl/holder.h> #include <iostream> #include "testf.h" namespace vmpl_tests { void test_holder() { std::cout << "== make_holder tests ==" << std::endl; // Make holder algorithm tests::assert_equal< vmpl::holder<>, vmpl::make_holder<>::type >(std::cout, "vmpl::make_holder<>"); ...
axispod/vmpl
include/vmpl/insert.h
#pragma once #include "holder.h" #include "split.h" namespace vmpl { namespace { template<typename T, unsigned Position, typename ... Args> struct insert_helper { typedef split<Position, Args...> split_type; typedef typename make_holder<typename split_type::head_type, T, typename split_type::tail_type>:...
axispod/vmpl
include/vmpl/pop.h
#pragma once #include "holder.h" #include "split.h" namespace vmpl { template<typename ... Args> struct pop_front { typedef typename split<1, Args...>::tail_type type; }; template<typename ... Args> struct pop_front<holder<Args...>> { typedef typename split<1, Args...>::tail_type type; }; template<type...
axispod/vmpl
include/vmpl/function_info.h
#pragma once #include <type_traits> #include "holder.h" namespace vmpl { template<typename _Tr, typename _Ta> struct function_description { typedef _Tr return_type; typedef _Ta arguments_type; }; template<typename _Tf, typename _Tr, bool _C, typename ..._Ta> struct make_functi...
axispod/vmpl
include/vmpl/splice.h
<gh_stars>1-10 #pragma once #include "holder.h" #include "split.h" namespace vmpl { template<unsigned int Begin, unsigned int Length, typename ... Args> struct splice { typedef typename split<Length, typename split<Begin, Args...>::tail_type>::head_type type; }; template<unsigned int Begin, unsigned int Lengt...
axispod/vmpl
include/vmpl/map.h
<filename>include/vmpl/map.h #pragma once #include <type_traits> #include "holder.h" #include "pair.h" #include "numrics.h" #include "at.h" #include "erase.h" #include "insert.h" #include "replace.h" namespace vmpl { namespace { template<int Pos, typename First, typename ... Args> struct map_index_helper; t...
axispod/vmpl
tests/back.h
<filename>tests/back.h #pragma once #include <vmpl/back.h> #include <iostream> #include "testf.h" namespace vmpl_tests { void test_back() { std::cout << "== back tests ==" << std::endl; typedef vmpl::holder<> empty_holder; typedef vmpl::holder<int> one_type_holder; typedef vmpl::holder<char, int> tw...
axispod/vmpl
include/vmpl/reverse.h
#pragma once #include "holder.h" #include "at.h" namespace vmpl { namespace { template<typename ... Args> struct reverse_helper; template<typename Head, typename ... Args> struct reverse_helper<Head, Args...> { typedef typename make_holder<typename reverse_helper<Args...>::type, Head>::type type; };...
axispod/vmpl
tests/get.h
<filename>tests/get.h<gh_stars>1-10 #pragma once #include <vmpl/get.h> #include "testf.h" namespace vmpl_tests { void test_get() { std::cout << "== get tests ==" << std::endl; typedef vmpl::holder<> empty_holder; typedef vmpl::holder<int> one_type_holder; typedef vmpl::holder<char, int> two_types_ho...