repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
angelcs1990/SRequest
Example/SRequest/SDemoTestRequest.h
// // SDemoTestRequest.h // SRequest_Example // // Created by chens on 2018/8/29. // Copyright © 2018年 <EMAIL>. All rights reserved. // #import "SDemoBaseRequest.h" @interface SDemoTestRequest : SDemoBaseRequest @end
angelcs1990/SRequest
SRequest/Classes/SRequest/SRequest.h
// // SRequest.h // SRequest // // Created by chens on 2018/7/30. // Copyright © 2018年 chens. All rights reserved. // #import "SBaseHttpRequest.h" #import "SRequestChain.h" #import "SRequestConfig.h" @class SRequest; @protocol SRequestResultHandleProtocol <NSObject> @optional - (id)requestHandleSuccessData:(i...
angelcs1990/SRequest
SRequest/Classes/SRequest/SRequestChain.h
// // SRequestChain.h // AFNetworking // // Created by chens on 2018/8/30. // #import <Foundation/Foundation.h> @class SRequestChain; @class SRequest; @class SRequestChainRetBlock; typedef SRequestChain *(^requestObjectChain)(id value); typedef SRequestChain *(^requestFloatChain)(double value); typedef SRequestCh...
angelcs1990/SRequest
Binary/SRequest-0.1.0/ios/SRequest.framework/Versions/A/Headers/SRequestConfig.h
// // SRequestConfig.h // SRequest // // Created by chens on 2018/7/30. // Copyright © 2018年 chens. All rights reserved. // #import <Foundation/Foundation.h> #import "SRequestMacro.h" SFinal_Class @interface SRequestConfig : NSObject + (instancetype)shareInstance; /** 请求基地址 */ @property (nonatomic, copy) NSS...
angelcs1990/SRequest
Example/Pods/Target Support Files/SRequest/SRequest-umbrella.h
#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 #import "SBaseHttpRequest.h" #import "SRequest+Chain.h" #import "SRequest.h" #import "SRequestAgent.h" #import "SRequestChain...
angelcs1990/SRequest
SRequest/Classes/SRequest/SRequest+Chain.h
<reponame>angelcs1990/SRequest // // SRequest+Chain.h // SRequest // // Created by chens on 2018/7/31. // Copyright © 2018年 chens. All rights reserved. // #import "SRequest.h" @interface SRequest (Chain) @property (nonatomic, strong) SRequestChain *chain; #pragma mark - chain method + (instancetype)Get; + (inst...
angelcs1990/SRequest
SRequest/Classes/SRequest/SRequestAgent.h
// // SRequestAgent.h // SRequest // // Created by chens on 2018/7/30. // Copyright © 2018年 chens. All rights reserved. // #import <Foundation/Foundation.h> #import "SBaseHttpRequest.h" @interface SRequestAgent : NSObject + (instancetype)shareInstance; - (void)startRequest:(SBaseHttpRequest *)request; - (void...
angelcs1990/SRequest
SRequest/Classes/SRequest/SBaseHttpRequest.h
// // SBaseHttpRequest.h // SRequest // // Created by chens on 2018/7/30. // Copyright © 2018年 chens. All rights reserved. // #import <Foundation/Foundation.h> #import "SRequestConfig.h" #import "SRequestMacro.h" typedef NS_ENUM(NSInteger, SHttpRequestActionMethod) { SHttpRequestActionType_Get, SHttpReq...
angelcs1990/SRequest
Example/SRequest/SAppDelegate.h
<filename>Example/SRequest/SAppDelegate.h // // SAppDelegate.h // SRequest // // Created by <EMAIL> on 08/29/2018. // Copyright (c) 2018 <EMAIL>. All rights reserved. // @import UIKit; @interface SAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
angelcs1990/SRequest
Example/SRequest/SDemoBaseRequest.h
<filename>Example/SRequest/SDemoBaseRequest.h<gh_stars>0 // // SDemoBaseRequest.h // SRequest_Example // // Created by chens on 2018/8/29. // Copyright © 2018年 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> //#import <SRequest/SRequest-umbrella.h> #import <SRequest/SRequest.h> #import <SRequest/SRequest...
angelcs1990/SRequest
SRequest/Classes/SRequest/SRequestMacro.h
<reponame>angelcs1990/SRequest<gh_stars>0 // // SRequestMacro.h // SRequest // // Created by chens on 2018/7/30. // Copyright © 2018年 chens. All rights reserved. // #ifndef SRequestMacro_h #define SRequestMacro_h #if defined(__has_attribute) && __has_attribute(objc_subclassing_restricted) # define SFinal_Class _...
angelcs1990/SRequest
Example/SRequest/SViewController.h
<reponame>angelcs1990/SRequest<filename>Example/SRequest/SViewController.h // // SViewController.h // SRequest // // Created by <EMAIL> on 08/29/2018. // Copyright (c) 2018 <EMAIL>. All rights reserved. // @import UIKit; @interface SViewController : UIViewController @end
Kholodets/huffman
lib/bitio.c
<gh_stars>1-10 /** * Provides bit input and output functionality for huffman encoding project * @file bitio.c * @author Kholodets */ #include <stdio.h> int inBitIndex; int outBitIndex; int inOpen = 0; int outOpen = 0; FILE *inStream; FILE *outStream; unsigned char inBuffer; unsigned char outBuffer; int openBitIn...
Kholodets/huffman
lib/huffman.h
<filename>lib/huffman.h struct Node { int freq; int isLeaf; unsigned char val; struct Node *parent; struct Node *left; struct Node *right; }; int countLetters(FILE *stream, struct Node **letters); struct Node* generateTree(struct Node **freqs); int encodeTree(struct Node *head); struct Node *decodeTree(); i...
Kholodets/huffman
main.c
<gh_stars>1-10 #include <stdio.h> #include <stdlib.h> #include <string.h> #include "lib/bitio.h" #include "lib/huffman.h" int main(int argc, char *argv[]) { if(argc < 2) { fprintf(stderr, "You didn't provide any arguments!\n"); return 1; } int inf = 0; int outf = 0; char flags[8]; int flagc = 0; int ed = ...
Kholodets/huffman
lib/bitio.h
int openBitIn(FILE *stream); int closeBitIn(); int openBitOut(FILE *stream); int closeBitOut(); int readBit(); int writeBit(int value);
Kholodets/huffman
lib/huffman.c
/* * Provides the main data structures and functionality for huffman encoding and decoding * @file huffman.c * @author Kholodets */ #include <stdlib.h> #include <stdio.h> #include "bitio.h" struct Node { int freq; int isLeaf; unsigned char val; struct Node *parent; struct Node *left; struct Node *right; }; ...
a3diti/iObfs
ObfsThread.h
// // ObfsThread.h // iObfs // Copyright © 2016 <NAME>. All rights reserved. Available under // BSD license; see https://github.com/mtigas/iObfs/blob/master/LICENSE // #import <Foundation/Foundation.h> @interface ObfsThread : NSThread @property (nonatomic) unsigned int obfs4SocksPort; @property (nonatomic) unsig...
a3diti/iObfs
example/ExampleObfs/TorProxyURLProtocol.h
<reponame>a3diti/iObfs // // TorProxyURLProtocol.h // // Onion Browser fork by <NAME> // Copyright 2012-2016 <NAME>. All rights reserved. // https://github.com/OnionBrowser/iOS-OnionBrowser/blob/master/LICENSE // // Created by <NAME> on 11/30/07. // Copyright 2007. All rights reserved. #import "CKHTTPConnection....
a3diti/iObfs
example/ExampleObfs/NSData+CocoaDevUsersAdditions.h
<gh_stars>10-100 /* * Based on public domain example and information on the CocoaDev Wiki: * http://cocoadev.com/wiki/NSDataCategory */ #import <Foundation/Foundation.h> @interface NSData (NSDataExtension) // Returns range [start, null byte), or (NSNotFound, 0). - (NSRange) rangeOfNullTerminatedBytesFrom:(int)st...
a3diti/iObfs
example/ExampleObfs/ExampleObfs-Bridging-Header.h
<filename>example/ExampleObfs/ExampleObfs-Bridging-Header.h // // ExampleObfs-Bridging-Header.h // ExampleObfs // // Created by <NAME> on 4/10/16. // Copyright © 2016 <NAME>. All rights reserved. // #ifndef ExampleObfs_Bridging_Header_h #define ExampleObfs_Bridging_Header_h #import <Tor/Tor.h> #import "TorProxyUR...
a3diti/iObfs
example/ExampleObfs/CKHTTPConnection.h
// // CKHTTPConnection.m // // Onion Browser fork by <NAME> // Copyright 2012-2016 <NAME>. All rights reserved. // https://github.com/OnionBrowser/iOS-OnionBrowser/blob/master/LICENSE // // Created by Mike on 17/03/2009. // Copyright 2009 Karelia Software. All rights reserved. // // Originally from ConnectionKit...
koobonil/Boss2D_plugins
Boss2D_plugins/firebase_cpp_sdk_4.5.1/firebase_cpp_sdk/include/firebase/analytics.h
<filename>Boss2D_plugins/firebase_cpp_sdk_4.5.1/firebase_cpp_sdk/include/firebase/analytics.h // Copyright 2016 Google Inc. All Rights Reserved. #ifndef FIREBASE_ANALYTICS_CLIENT_CPP_INCLUDE_FIREBASE_ANALYTICS_H_ #define FIREBASE_ANALYTICS_CLIENT_CPP_INCLUDE_FIREBASE_ANALYTICS_H_ #include <cstddef> #include <cstdint>...
koobonil/Boss2D_plugins
Boss2D_plugins/firebase_cpp_sdk_4.5.1/firebase_cpp_sdk/include/firebase/database/transaction.h
<reponame>koobonil/Boss2D_plugins // Copyright 2016 Google Inc. All Rights Reserved. #ifndef FIREBASE_DATABASE_CLIENT_CPP_SRC_INCLUDE_FIREBASE_DATABASE_TRANSACTION_H_ #define FIREBASE_DATABASE_CLIENT_CPP_SRC_INCLUDE_FIREBASE_DATABASE_TRANSACTION_H_ #include "firebase/database/common.h" #include "firebase/database/dat...
sebasbad/Pong-Demo
Pong Demo/GameScene.h
// // GameScene.h // Pong Demo // // Copyright (c) 2016 <NAME>. All rights reserved. // #import <SpriteKit/SpriteKit.h> @interface GameScene : SKScene @end
toxicFork/PBRVulkan
PBRVulkan/RayTracer/src/Tracer/Widgets/SceneWidget.h
#pragma once #include "Widget.h" namespace Interface { class SceneWidget final : public Widget { public: ~SceneWidget() = default; void Render(Tracer::Settings& settings) override; }; }
toxicFork/PBRVulkan
PBRVulkan/RayTracer/src/Tracer/Widgets/Widget.h
<filename>PBRVulkan/RayTracer/src/Tracer/Widgets/Widget.h #pragma once namespace Tracer { struct Settings; } namespace Interface { class Widget { public: virtual ~Widget() = default; virtual void Render(Tracer::Settings& settings) = 0; }; }
toxicFork/PBRVulkan
PBRVulkan/RayTracer/src/Assets/Light.h
<reponame>toxicFork/PBRVulkan #pragma once #include <glm/glm.hpp> namespace Assets { enum LightType { QuadLight, SphereLight }; struct alignas(16) Light final { glm::vec4 position{}; glm::vec4 emission{}; glm::vec4 u{}; glm::vec4 v{}; glm::vec4 area{}; }; }
toxicFork/PBRVulkan
PBRVulkan/RayTracer/src/Vulkan/Raytracer.h
<filename>PBRVulkan/RayTracer/src/Vulkan/Raytracer.h #pragma once #include "Vulkan.h" #include "Rasterizer.h" #include "RaytracerGraphicsPipeline.h" namespace Vulkan { /* * Raytracer assumes that swap chain is already initialized by rasterizer. */ class Raytracer : public Rasterizer { public: NON_COPIABLE(...
toxicFork/PBRVulkan
PBRVulkan/RayTracer/src/Geometry/Global.h
#pragma once #include <glm/glm.hpp> namespace Uniforms { struct alignas(16) Global final { glm::mat4 view = glm::mat4(1.f); glm::mat4 projection = glm::mat4(1.f); glm::vec3 direction{}; uint32_t lights{}; uint32_t hasHDR{}; uint32_t ssp{}; uint32_t maxDepth{}; uint32_t frame{}; float aperture{}; ...
toxicFork/PBRVulkan
PBRVulkan/RayTracer/src/Vulkan/CommandPool.h
#pragma once #include "Vulkan.h" namespace Vulkan { class CommandPool final { public: NON_COPIABLE(CommandPool) CommandPool(const class Device& device); ~CommandPool(); [[nodiscard]] VkCommandPool Get() const { return commandPool; } [[nodiscard]] const Device& GetDevice() const { return de...
toxicFork/PBRVulkan
PBRVulkan/RayTracer/src/Tracer/Menu.h
<gh_stars>0 #pragma once #include <imgui.h> #include <memory> #include "Compiler.h" #include "../Vulkan/Vulkan.h" namespace Interface { class Widget; } namespace Vulkan { class Device; class SwapChain; class RenderPass; class CommandPool; } namespace Tracer { struct Settings { bool UseRasterizer{}; bool...
toxicFork/PBRVulkan
PBRVulkan/RayTracer/src/Assets/Material.h
#pragma once #include <glm/glm.hpp> namespace Assets { enum MaterialType { DISNEY, GLASS }; // Material data structure layout is 32 * 4 bytes struct alignas(16) Material final { Material() { albedo = glm::vec4(1.0f, 1.0f, 1.0f, DISNEY); emission = glm::vec4(0.0f, 0.0f, 0.0f, 0.0f); metallic = ...
toxicFork/PBRVulkan
PBRVulkan/RayTracer/src/Tracer/Widgets/RendererWidget.h
#pragma once #include "Widget.h" namespace Interface { class RendererWidget final : public Widget { public: ~RendererWidget() = default; void Render(Tracer::Settings& settings) override; }; }
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/dpcpp_out/CUDACore/prefixScan.h
<reponame>lauracappelli/pixeltrack-standalone-test-oneapi #ifndef HeterogeneousCore_CUDAUtilities_interface_prefixScan_h #define HeterogeneousCore_CUDAUtilities_interface_prefixScan_h #include <CL/sycl.hpp> #include <cstdint> #include <dpct/dpct.hpp> #include <math.h> #include <tbb/tbb_exception.h> #ifdef DPCPP_COMPA...
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/dpcpp_out/plugin-SiPixelClusterizer/gpuClusteringConstants.h
#ifndef RecoLocalTracker_SiPixelClusterizer_plugins_gpuClusteringConstants_h #define RecoLocalTracker_SiPixelClusterizer_plugins_gpuClusteringConstants_h #include "../CUDADataFormats/gpuClusteringConstants.h" #endif // RecoLocalTracker_SiPixelClusterizer_plugins_gpuClusteringConstants_h
lauracappelli/pixeltrack-standalone-test-oneapi
pixel-standalone/input.h
<reponame>lauracappelli/pixeltrack-standalone-test-oneapi #ifndef input_h_ #define input_h_ #include <fstream> #include "pixelgpudetails.h" struct alignas(128) Input { SiPixelFedCablingMapGPU cablingMap; unsigned int word[pixelgpudetails::MAX_FED_WORDS]; unsigned char fedId[pixelgpudetails::MAX_FED_WORDS]; u...
lauracappelli/pixeltrack-standalone-test-oneapi
pixel-standalone/cute/check.h
<reponame>lauracappelli/pixeltrack-standalone-test-oneapi #ifndef cute_check_h #define cute_check_h // C++ standard headers #include <iostream> #include <sstream> #include <stdexcept> // CUDA headers #include <cuda.h> #include <cuda_runtime.h> namespace cute { [[noreturn]] inline void abortOnCudaError(const char*...
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/SiPixel_convertiti/CUDADataFormats/TrackingRecHit2DCUDA.h
<filename>src/cuda/SiPixel_convertiti/CUDADataFormats/TrackingRecHit2DCUDA.h #include "TrackingRecHit2DHeterogeneous.h"
lauracappelli/pixeltrack-standalone-test-oneapi
pixel-standalone/analyzer_cuda.h
#ifndef analyzer_cuda_h_ #define analyzer_cuda_h_ class Input; class Output; namespace cuda { void analyze(Input const& input, Output& output, double& totaltime); } #endif // analyzer_cuda_h_
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/SiPixel_convertiti/dpcpp_out/CUDACore/cudaCheck.h
<reponame>lauracappelli/pixeltrack-standalone-test-oneapi<filename>src/cuda/SiPixel_convertiti/dpcpp_out/CUDACore/cudaCheck.h #ifndef HeterogeneousCore_CUDAUtilities_cudaCheck_h #define HeterogeneousCore_CUDAUtilities_cudaCheck_h // C++ standard headers #include <CL/sycl.hpp> #include <dpct/dpct.hpp> #include <iostrea...
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/SiPixel_convertiti/dpcpp_out/CUDACore/currentDevice.h
<reponame>lauracappelli/pixeltrack-standalone-test-oneapi<gh_stars>0 #ifndef HeterogenousCore_CUDAUtilities_currentDevice_h #define HeterogenousCore_CUDAUtilities_currentDevice_h #include <CL/sycl.hpp> #include <dpct/dpct.hpp> #include "cudaCheck.h" namespace cms { namespace cuda { inline int currentDevice() { ...
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/SiPixel_convertiti/dpcpp_out/DataFormats/PixelErrors.h
<reponame>lauracappelli/pixeltrack-standalone-test-oneapi #ifndef DataFormats_SiPixelDigi_interface_PixelErrors_h #define DataFormats_SiPixelDigi_interface_PixelErrors_h #include <map> #include <vector> #include <cstdint> #include "SiPixelRawDataError.h" // Better ideas for the placement of these? struct PixelError...
lauracappelli/pixeltrack-standalone-test-oneapi
pixel-standalone/rawtodigi_cuda.h
#ifndef rawtodigi_cuda_h_ #define rawtodigi_cuda_h_ #include <cuda_runtime.h> class Input; class Output; namespace cuda { __global__ void rawtodigi_kernel( const Input* input, Output* output, bool useQualityInfo, bool includeErrors, bool debug); } // namespace cuda #endif // rawtodigi_cuda_h_
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/SiPixel_convertiti/CUDACore/getCachingHostAllocator.h
#ifndef HeterogeneousCore_CUDACore_src_getCachingHostAllocator #define HeterogeneousCore_CUDACore_src_getCachingHostAllocator #include "cudaCheck.h" #include "CachingHostAllocator.h" #include "getCachingDeviceAllocator.h" namespace cms::cuda::allocator { inline notcub::CachingHostAllocator& getCachingHostAllocator...
lauracappelli/pixeltrack-standalone-test-oneapi
pixel-standalone/cute/HistoContainer.h
#ifndef HeterogeneousCore_CUDAUtilities_interface_HistoContainer_h #define HeterogeneousCore_CUDAUtilities_interface_HistoContainer_h #include <CL/sycl.hpp> #include <dpct/dpct.hpp> #include <algorithm> #ifndef DPCPP_COMPATIBILITY_TEMP #include <atomic> #endif // __CUDA_ARCH__ #include <cstddef> #include <cstdint> #i...
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/SiPixel_convertiti/DataFormats/FEDRawDataCollection.h
#ifndef FEDRawData_FEDRawDataCollection_h #define FEDRawData_FEDRawDataCollection_h /** \class FEDRawDataCollection * An EDCollection storing the raw data for all FEDs in a Event. * * Reference: DaqPrototype/DaqPersistentData/interface/DaqFEDOpaqueData.h * * \author <NAME> - <NAME>' */ #include "FEDRawDat...
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/SiPixel_convertiti/dpcpp_out/CUDACore/allocate_device.h
#ifndef HeterogeneousCore_CUDAUtilities_allocate_device_h #define HeterogeneousCore_CUDAUtilities_allocate_device_h #include <CL/sycl.hpp> #include <dpct/dpct.hpp> namespace cms { namespace cuda { // Allocate device memory void *allocate_device(int dev, size_t nbytes, sycl::queue *stream); // Free device m...
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/SiPixel_convertiti/CUDACore/eventWorkHasCompleted.h
<filename>src/cuda/SiPixel_convertiti/CUDACore/eventWorkHasCompleted.h<gh_stars>0 #ifndef HeterogeneousCore_CUDAUtilities_eventWorkHasCompleted_h #define HeterogeneousCore_CUDAUtilities_eventWorkHasCompleted_h #include "cudaCheck.h" #include <cuda_runtime.h> namespace cms { namespace cuda { /** * Returns tr...
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/dpcpp_out/CUDACore/allocate_host.h
#ifndef HeterogeneousCore_CUDAUtilities_allocate_host_h #define HeterogeneousCore_CUDAUtilities_allocate_host_h #include <CL/sycl.hpp> #include <dpct/dpct.hpp> namespace cms { namespace cuda { // Allocate pinned host memory (to be called from unique_ptr) void *allocate_host(size_t nbytes, sycl::queue *strea...
lauracappelli/pixeltrack-standalone-test-oneapi
pixel-standalone/GPUSimpleVector.h
<filename>pixel-standalone/GPUSimpleVector.h #ifndef GPUSimpleVector_h_ #define GPUSimpleVector_h_ // author: <NAME>, CERN, 2018 #include <type_traits> #include <utility> #if defined DIGI_CUDA #include <cuda.h> #elif defined DIGI_ALPAKA #if defined ALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLED || defined ALPAKA_ACC_CPU_BT_OM...
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/dpcpp_out/plugin-SiPixelClusterizer/gpuClusterChargeCut.h
<reponame>lauracappelli/pixeltrack-standalone-test-oneapi<gh_stars>0 #ifndef RecoLocalTracker_SiPixelClusterizer_plugins_gpuClusterChargeCut_h #define RecoLocalTracker_SiPixelClusterizer_plugins_gpuClusterChargeCut_h #include <CL/sycl.hpp> #include <dpct/dpct.hpp> #include <cstdint> #include <cstdio> #include "../CUD...
lauracappelli/pixeltrack-standalone-test-oneapi
pixel-standalone/cute/SiPixelDigiErrorsCUDA.h
#ifndef CUDADataFormats_SiPixelDigi_interface_SiPixelDigiErrorsCUDA_h #define CUDADataFormats_SiPixelDigi_interface_SiPixelDigiErrorsCUDA_h #include <CL/sycl.hpp> #include <dpct/dpct.hpp> #include "../pixelgpudetails.h" #include "device_unique_ptr.h" #include "host_unique_ptr.h" #include "../GPUSimpleVector.h" class ...
lauracappelli/pixeltrack-standalone-test-oneapi
pixel-standalone/analyzer_oneapi.h
<reponame>lauracappelli/pixeltrack-standalone-test-oneapi #ifndef analyzer_oneapi_h_ #define analyzer_oneapi_h_ #include <CL/sycl.hpp> class Input; class Output; namespace oneapi { void analyze(cl::sycl::device device, Input const &input, Output &output, double &totaltime); } #endif // analyzer_oneapi_h_
lauracappelli/pixeltrack-standalone-test-oneapi
pixel-standalone/modules.h
<reponame>lauracappelli/pixeltrack-standalone-test-oneapi #ifndef modules_h_ #define modules_h_ #include <CL/sycl.hpp> #include <dpct/dpct.hpp> namespace gpuClustering { constexpr uint32_t MaxNumModules = 2000; constexpr uint16_t InvId = 9999; // must be > MaxNumModules } // namespace gpuClustering inline int countM...
lauracappelli/pixeltrack-standalone-test-oneapi
pixel-standalone/pixelgpudetails.h
<gh_stars>0 #ifndef pixelgpudetails_h_ #define pixelgpudetails_h_ #include <cstdint> #include <map> #include "cute/SiPixelRawDataError.h" namespace pixelgpudetails { // Maximum fed for phase1 is 150 but not all of them are filled // Update the number FED based on maximum fed found in the cabling map constexpr u...
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/SiPixel_convertiti/dpcpp_out/CUDACore/copyAsync.h
#ifndef HeterogeneousCore_CUDAUtilities_copyAsync_h #define HeterogeneousCore_CUDAUtilities_copyAsync_h #include <CL/sycl.hpp> #include <dpct/dpct.hpp> #include "cudaCheck.h" #include "device_unique_ptr.h" #include "host_unique_ptr.h" #include <type_traits> namespace cms { namespace cuda { // Single element te...
lauracappelli/pixeltrack-standalone-test-oneapi
pixel-standalone/rawtodigi_oneapi.h
#ifndef rawtodigi_oneapi_h_ #define rawtodigi_oneapi_h_ #include <CL/sycl.hpp> class Input; class Output; namespace oneapi { void rawtodigi(const Input* input, Output* output, const uint32_t wordCounter, bool useQualityInfo, bool includeErrors, ...
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/SiPixel_convertiti/CUDACore/EventCache.h
#ifndef HeterogeneousCore_CUDAUtilities_EventCache_h #define HeterogeneousCore_CUDAUtilities_EventCache_h #include <vector> #include <cuda_runtime.h> //#include "Framework/ReusableObjectHolder.h" #include "SharedEventPtr.h" class CUDAService; namespace cms { namespace cuda { class EventCache { public: ...
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/dpcpp_out/CUDACore/cuda_assert.h
<filename>src/cuda/dpcpp_out/CUDACore/cuda_assert.h // The omission of #include guards is on purpose: it does make sense to #include // this file multiple times, setting a different value of GPU_DEBUG beforehand. #ifdef DPCPP_COMPATIBILITY_TEMP #ifndef GPU_DEBUG // disable asserts #ifndef NDEBUG #define NDEBUG #endif ...
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/dpcpp_out/CUDADataFormats/SiPixelClustersCUDA.h
#ifndef CUDADataFormats_SiPixelCluster_interface_SiPixelClustersCUDA_h #define CUDADataFormats_SiPixelCluster_interface_SiPixelClustersCUDA_h #include <CL/sycl.hpp> #include <dpct/dpct.hpp> #include "CUDACore/device_unique_ptr.h" #include "CUDACore/host_unique_ptr.h" #include "CUDACore/cudaCompat.h" class SiPixelClus...
lauracappelli/pixeltrack-standalone-test-oneapi
pixel-standalone/output.h
<gh_stars>0 #ifndef output_h_ #define output_h_ #ifdef DIGI_NAIVE #include <vector> #elif defined DIGI_CUDA || defined DIGI_ALPAKA || defined DIGI_CUPLA || defined DIGI_KOKKOS || defined DIGI_ONEAPI #include "GPUSimpleVector.h" #endif #include "pixelgpudetails.h" struct alignas(128) Output { uint16_t xx[pixelgpude...
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/SiPixel_convertiti/CUDACore/memsetAsync.h
#ifndef HeterogeneousCore_CUDAUtilities_memsetAsync_h #define HeterogeneousCore_CUDAUtilities_memsetAsync_h #include "cudaCheck.h" #include "device_unique_ptr.h" #include <type_traits> namespace cms { namespace cuda { template <typename T> inline void memsetAsync(device::unique_ptr<T>& ptr, T value, cudaSt...
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/SiPixel_convertiti/CUDADataFormats/ZVertexHeterogeneous.h
<reponame>lauracappelli/pixeltrack-standalone-test-oneapi #ifndef CUDADataFormatsVertexZVertexHeterogeneous_H #define CUDADataFormatsVertexZVertexHeterogeneous_H #include "ZVertexSoA.h" #include "HeterogeneousSoA.h" #include "PixelTrackHeterogeneous.h" using ZVertexHeterogeneous = HeterogeneousSoA<ZVertexSoA>; #ifnde...
lauracappelli/pixeltrack-standalone-test-oneapi
src/cuda/SiPixel_convertiti/dpcpp_out/CUDACore/device_unique_ptr.h
#ifndef HeterogeneousCore_CUDAUtilities_interface_device_unique_ptr_h #define HeterogeneousCore_CUDAUtilities_interface_device_unique_ptr_h #include <CL/sycl.hpp> #include <dpct/dpct.hpp> #include <memory> #include <functional> #include "allocate_device.h" #include "currentDevice.h" namespace cms { namespace cuda ...
wondervictor/Rina
src/server.h
<filename>src/server.h /** * @brief Server Application * @author <NAME> * @date 2017-10-23 * */ #ifndef RINA_SERVER_H #define RINA_SERVER_H #include <map> #include <vector> #include "./socket.h" #include "./thread.h" #include "model.h" namespace Rina { /** * @brief Rina Server * */ class RinaServer { pub...
wondervictor/Rina
src/client.h
<reponame>wondervictor/Rina /** * @brief Client Application * @author <NAME> * @date 2017-10-23 * */ #ifndef RINA_CLIENT_H #define RINA_CLIENT_H #include <string> #include "./socket.h" #include "./thread.h" #include "model.h" namespace Rina { class RinaClient { public: RinaClient() = default; int init(i...
wondervictor/Rina
src/socket.h
/** * @brief Socket * @author <NAME> * @date 2017-10-23 * */ #ifndef RINA_SOCKET_H #define RINA_SOCKET_H #include <string> #include <netdb.h> #include <sys/socket.h> #include <vector> #include <map> #define CHECK(x, m, handle) if ((x) == (m)) { \ handle; \ ...
wondervictor/Rina
src/log.h
/** * @brief Log * @author <NAME> * @date 2017-10-23 * */ #ifndef RINA_LOG_H #define RINA_LOG_H #include <stdio.h> #include <errno.h> #define NONE "\e[0m" #define BLACK "\e[0;30m" #define RED "\e[0;31m" #define GREEN "\e[0;32m" #define BROWN "\e[0;33m" #define BLUE "\e[0;34m" #define...
wondervictor/Rina
src/model.h
/** * @brief Model * @author <NAME> * @date 2017-10-30 * */ #ifndef RINA_MODEL_H #define RINA_MODEL_H #include <string> #include <vector> // 登录 #define LOGIN "*2c411521vn148-e=1r" // 登出 #define LOGOUT "e21874vnwv1o2870810" // 请求聊天记录 #define GET_ALL "1321c32-23@(*^&*#Bv" // 登录成功 #define LOGI...
wondervictor/Rina
src/thread.h
/** * @brief Thread Package * @author <NAME> * @date 2017-10-23 * */ #ifndef RINA_THREAD_H #define RINA_THREAD_H #include <thread> #include <map> namespace Rina { class ThreadManager { public: ThreadManager(); void createThread(int key, void(*handle)(void*), void* data); std::thread* getThread(int key...
Creeper23456/FuckLCYBatch
arduino/esp_music_fucker/HttpGet.h
#include <ESP8266HTTPClient.h> String gethttp_API(String url,int port); // http get 请求函数 String gethttp_API(String url,int port){ String payload=""; WiFiClient client; HTTPClient http; if (http.begin(client,url ),port) { int httpCode = http.GET(); payload = http.getString(); http.end...
devdawei/DVVPictureCrop
DVVPictureCrop/ViewController.h
// // ViewController.h // DVVPictureCrop // // Created by David on 2019/4/28. // Copyright © 2019 devdawei. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
devdawei/DVVPictureCrop
DVVPictureCrop/DVVPictureCrop/DVVPictureCropViewController.h
<filename>DVVPictureCrop/DVVPictureCrop/DVVPictureCropViewController.h // // DVVPictureCropViewController.h // DVVPictureCrop // // Created by David on 2019/5/7. // Copyright © 2019 devdawei. All rights reserved. // #import <UIKit/UIKit.h> #import "DVVPictureCropView.h" NS_ASSUME_NONNULL_BEGIN @protocol DVVPictu...
devdawei/DVVPictureCrop
DVVPictureCrop/DVVPictureCrop/DVVPictureCropView.h
<gh_stars>0 // // DVVPictureCropView.h // DVVPictureCrop // // Created by David on 2019/4/28. // Copyright © 2019 devdawei. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @protocol DVVPictureCropViewDelegate; @interface DVVPictureCropView : UIView /// 需要裁剪的图像 @property (nonatomic, copy...
exploshot/qwertycoin-gui
src/NodeAdapter.h
<reponame>exploshot/qwertycoin-gui // Copyright (c) 2011-2015 The Cryptonote developers // Copyright (c) 2017-2018, The karbo developers // Copyright (c) 2018, The Qwertcoin developers // // This file is part of Qwertycoin. // // Qwertycoin is free software: you can redistribute it and/or modify // it under the terms o...
exploshot/qwertycoin-gui
src/gui/InfoDialog.h
// Copyright (c) 2017 The Karbowanec developers // Copyright (c) 2018-2019 The Qwertycoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include <QDialog> namespace Ui { class InfoDialog; } names...
exploshot/qwertycoin-gui
src/gui/OverviewFrame.h
<filename>src/gui/OverviewFrame.h<gh_stars>10-100 // Copyright (c) 2011-2015 The Cryptonote developers // Copyright (c) 2017-2018, The karbo developers // Copyright (c) 2018, The Qwertcoin developers // // This file is part of Qwertycoin. // // Qwertycoin is free software: you can redistribute it and/or modify // it un...
exploshot/qwertycoin-gui
src/gui/TransactionsModel.h
// Copyright (c) 2011-2015 The Cryptonote developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include <QAbstractItemModel> #include <QSortFilterProxyModel> #include <WalletLegacy/IWalletLegacy.h> name...
d-pauls/corebox
command.h
<filename>command.h<gh_stars>0 #pragma once #define CALL(name, ...) ___##name##_main(__VA_ARGS__) #define COMMAND(name, ...) int CALL(name, __VA_ARGS__) #define DECLARE(name, ...) COMMAND(name, ); #define MACRO_STR(str) MACRO_STR_H(str) #define MACRO_STR_H(str) #str /* helper macro */
d-pauls/corebox
util/tty.c
#include <errno.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include "command.h" COMMAND(tty, int argc, char *argv[]) { char *name; if (argc > 1) { fprintf(stderr, "%s: extra operand '%s'\n", argv[0], argv[1]); return 1; } if (!(name = ttyname(STDIN_FILENO))) { fprintf(stderr, "%s: %s\n"...
d-pauls/corebox
util/false.c
<reponame>d-pauls/corebox #include "command.h" COMMAND(false, void) { return 1; }
d-pauls/corebox
util/sleep.c
#include <errno.h> #include <limits.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "command.h" COMMAND(sleep, int argc, char *argv[]) { char *prg, *str, *end; unsigned int total; long num; int err; prg = argv[0]; total = 0; errno = 0; err = 0; if (argc < 2) { f...
d-pauls/corebox
util/uname.c
<gh_stars>0 #include <errno.h> #include <stdio.h> #include <string.h> #include <sys/utsname.h> #include <unistd.h> #include "command.h" static char optstring[] = "amnrsvo"; #ifdef _GNU_SOURCE #include <getopt.h> static struct option longopts[] = { {"all", no_argument, NULL, 'a'}, {"machine", no_argument, NU...
d-pauls/corebox
util/arch.c
<reponame>d-pauls/corebox #include <errno.h> #include <stdio.h> #include <string.h> #include <sys/utsname.h> #include "command.h" COMMAND(arch, int argc, char *argv[]) { struct utsname name; if (argc > 1) { fprintf(stderr, "%s: extra operand '%s'\n", argv[0], argv[1]); return 1; } if (uname(&name) == -1) { ...
d-pauls/corebox
gen.c
<filename>gen.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include "hash.h" #define MAX_COMMANDS 256 static int add_to_list(unsigned long hash_val) { static unsigned long hash_list[MAX_COMMANDS]; static size_t hash_index = 0; if (hash_index == MAX_COMMANDS) { fprintf(stderr, "Unsufficient spac...
d-pauls/corebox
util/yes.c
#include <stdio.h> #include "command.h" COMMAND(yes, int argc, char *argv[]) { if (argc < 2) { while (1) puts("y"); } else { while (1) { int i; for (i = 1; i < argc - 1; ++i) printf("%s ", argv[i]); puts(argv[i]); } } return 0; }
d-pauls/corebox
util/pwd.c
#include <errno.h> #include <getopt.h> #include <limits.h> #include <pwd.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "command.h" static char optstring[] = "LP"; #ifdef _GNU_SOURCE #include <getopt.h> sta...
d-pauls/corebox
util/id.c
<filename>util/id.c #include <errno.h> #include <grp.h> #include <pwd.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "command.h" static char optstring[] = "gGnruz"; #ifdef _GNU_SOURCE #include <getopt.h> struct option longopts[] = { {"group", no_a...
d-pauls/corebox
util/cat.c
<reponame>d-pauls/corebox<filename>util/cat.c #include <errno.h> #include <stdbool.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include "command.h" static char optstring[] = "uetAnbTEsv"; #ifdef _GNU_SOURCE #include <getopt.h> static struct option longopts[] = { {"show-all", no_argument, NULL,...
d-pauls/corebox
util/basename.c
#include <libgen.h> #include <stdio.h> #include <string.h> #include "command.h" /* we do not want basename to be defined */ #if defined(basename) && basename == __xpg_basename #define basename_func __xpg_basename #undef basename #else #define basename_func basename #endif COMMAND(basename, int argc, char *argv[])...
d-pauls/corebox
util/clear.c
#include <stdio.h> #include "command.h" COMMAND(clear, void) { /* \033[H - Move cursor to top left corner * \033[2J - Clear entire screen * \033[3J - Clear entire screen and scrollback buffer */ fputs("\033[H\033[2J\033[3J", stdout); return 0; }
d-pauls/corebox
util/echo.c
<reponame>d-pauls/corebox<gh_stars>0 #include <ctype.h> #include <errno.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "command.h" static int get_num(int c, bool is_hex) { if (c >= '0' && c <= '9') return c - '0'; c = tolower(c); if (is_hex && c >=...
d-pauls/corebox
util/head.c
<reponame>d-pauls/corebox #include <errno.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "command.h" static char optstring[] = "c:n:qvz"; #ifdef _GNU_SOURCE #include <getopt.h> static struct option longopts[] = { {"bytes", required_argument, NULL, ...
d-pauls/corebox
util/base64.c
#include <errno.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "command.h" static char optstring[] = "diw:"; #ifdef _GNU_SOURCE #include <getopt.h> static struct option longopts[] = { {"decode", no_argument, NULL, 'd'}, {"ignore-garbage", no_a...
d-pauls/corebox
hash.h
<reponame>d-pauls/corebox #pragma once static unsigned long hash(const char *str) { unsigned long hash = 5381; unsigned char c; while ((c = *str++)) hash = hash * 33 + c; return hash; }
d-pauls/corebox
main.c
<gh_stars>0 #include <stdio.h> #include <string.h> #include <sys/ioctl.h> #include <unistd.h> #include "GEN.h" #include "command.h" #include "hash.h" #define TARGET "corebox" #define TGT "CoreBox" #define VERSION "0.0.1" #define SWITCH(str, hash) \ case hash: \ /* pr...
d-pauls/corebox
util/groups.c
<gh_stars>0 #include <errno.h> #include <grp.h> #include <pwd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "command.h" COMMAND(groups, int argc, char *argv[]) { int cap, ret; gid_t *groups; struct passwd *pass; struct group *grp; ret = 0; for (int i = 0; i < argc;...
d-pauls/corebox
util/true.c
<reponame>d-pauls/corebox<filename>util/true.c #include "command.h" COMMAND(true, void) { return 0; }
d-pauls/corebox
util/whoami.c
#include <errno.h> #include <pwd.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include "command.h" COMMAND(whoami, int argc, char *argv[]) { struct passwd *pw; if (argc > 1) { fprintf(stderr, "%s: extra operand '%s'\n", argv[0], argv[1]); return 1; } if (!(pw = getpwuid(geteuid()))) { fpr...