repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
andrewvmail/google-api-objectivec-client-for-rest
Source/GeneratedServices/Reports/GTLRReportsObjects.h
// NOTE: This file was generated by the ServiceGenerator. // ---------------------------------------------------------------------------- // API: // Admin Reports API (admin/reports_v1) // Description: // Fetches reports for the administrators of G Suite customers about the // usage, collaboration, security, and...
andrewvmail/google-api-objectivec-client-for-rest
Source/GeneratedServices/FirebaseCloudMessaging/GTLRFirebaseCloudMessagingObjects.h
// NOTE: This file was generated by the ServiceGenerator. // ---------------------------------------------------------------------------- // API: // Firebase Cloud Messaging API (fcm/v1) // Description: // FCM send API that provides a cross-platform messaging solution to reliably // deliver messages at no cost. ...
juliusikkala/glslang
Test/inc1/path1/notHere.h
float4 p1; #include "local.h" #include "remote.h"
juliusikkala/glslang
Test/inc1/foo.h
#include "parent.h" float4 i3;
juliusikkala/glslang
Test/inc1/bar.h
float4 i2; #include "foo.h"
Thar0/armips
Core/ELF/ElfTypes.h
<gh_stars>100-1000 #pragma once /////////////////////// // ELF Header Constants // File type enum ElfType { ET_NONE =0, ET_REL =1, ET_EXEC =2, ET_DYN =3, ET_CORE =4, ET_LOPROC =0xFF00, ET_HIPROC =0xFFFF, }; // Machine/Architecture enum ElfMachine { EM_NONE =0, EM_MIPS ...
Thar0/armips
Commands/CDirectiveData.h
#pragma once #include "Commands/CAssemblerCommand.h" #include "Core/Expression.h" #include "Util/EncodingTable.h" enum class EncodingMode { Invalid, U8, U16, U32, U64, Ascii, Float, Double, Sjis, Custom }; class TableCommand: public CAssemblerCommand { public: TableCommand(const std::wstring& fileName, TextFile::En...
Thar0/armips
Util/CRC.h
#pragma once #include <cstddef> unsigned short getCrc16(unsigned char* Source, size_t len); unsigned int getCrc32(unsigned char* Source, size_t len); unsigned int getChecksum(unsigned char* Source, size_t len);
Thar0/armips
Commands/CDirectiveConditional.h
<reponame>Thar0/armips #pragma once #include "Commands/CAssemblerCommand.h" #include "Core/Expression.h" enum class ConditionType { IF, ELSE, ELSEIF, ENDIF, IFDEF, IFNDEF, }; class CDirectiveConditional: public CAssemblerCommand { public: CDirectiveConditional(ConditionType type); CDirectiveConditional(Condi...
Thar0/armips
Archs/ARM/ArmParser.h
#pragma once #include <memory> #include <string> class CAssemblerCommand; class CArmInstruction; class CThumbInstruction; class Expression; class Parser; struct ArmRegisterValue; struct ArmOpcodeVariables; struct ThumbOpcodeVariables; struct tArmOpcode; struct tThumbOpcode; struct ArmRegisterDescriptor { const wch...
Thar0/armips
Archs/MIPS/MipsOpcodes.h
<filename>Archs/MIPS/MipsOpcodes.h<gh_stars>100-1000 #pragma once #include <cstdint> #define MA_MIPS1 (1 << 0) #define MA_MIPS2 (1 << 1) #define MA_MIPS3 (1 << 2) #define MA_MIPS4 (1 << 3) #define MA_PSX (1 << 4) #define MA_PS2 (1 << 6) #define MA_PSP (1 << 7) #define MA_RSP (1 << 8) #define MA_EXPSX (1...
Thar0/armips
Archs/ARM/Pool.h
#pragma once #include "Commands/CAssemblerCommand.h" #include <cstdint> #include <vector> class ArmStateCommand: public CAssemblerCommand { public: ArmStateCommand(bool state); bool Validate(const ValidateState &state) override; void Encode() const override { }; void writeTempData(TempData& tempData) const overr...
Thar0/armips
Util/EncodingTable.h
#pragma once #include "Util/ByteArray.h" #include "Util/FileClasses.h" #include <map> #include <vector> class Trie { public: Trie(); void insert(const wchar_t* text, size_t value); void insert(wchar_t character, size_t value); bool findLongestPrefix(const wchar_t* text, size_t& result); private: struct LookupEn...
Thar0/armips
Commands/CAssemblerLabel.h
#pragma once #include "Commands/CAssemblerCommand.h" #include "Core/Expression.h" class Label; class CAssemblerLabel: public CAssemblerCommand { public: CAssemblerLabel(const std::wstring& name, const std::wstring& originalName); CAssemblerLabel(const std::wstring& name, const std::wstring& originalName, Expressio...
Thar0/armips
Core/ELF/ElfFile.h
<gh_stars>100-1000 #pragma once #include "Core/ELF/ElfTypes.h" #include "Util/ByteArray.h" #include <vector> enum ElfPart { ELFPART_SEGMENTTABLE, ELFPART_SECTIONTABLE, ELFPART_SEGMENTS, ELFPART_SEGMENTLESSSECTIONS }; class ElfSegment; class ElfSection; class ElfFile { public: bool load(const fs::path&fileName, b...
Thar0/armips
Parser/ExpressionParser.h
#pragma once class Expression; class Tokenizer; Expression parseExpression(Tokenizer& tokenizer, bool inUnknownOrFalseBlock); void allowFunctionCallExpression(bool allow);
Thar0/armips
Core/Expression.h
<reponame>Thar0/armips #pragma once #include <memory> #include <string> #include <vector> class Label; struct ExpressionFunctionEntry; struct ExpressionLabelFunctionEntry; enum class OperatorType { Invalid, Integer, Float, Identifier, String, MemoryPos, Add, Sub, Mult, Div, Mod, Neg, LogNot, BitNot, ...
Thar0/armips
Core/Assembler.h
<gh_stars>100-1000 #pragma once #include "Util/FileSystem.h" #include <memory> #include <string> #include <vector> class AssemblerFile; #define ARMIPS_VERSION_MAJOR 0 #define ARMIPS_VERSION_MINOR 11 #define ARMIPS_VERSION_REVISION 0 enum class ArmipsMode { FILE, MEMORY }; struct LabelDefinition { std::wstr...
Thar0/armips
Util/FileSystem.h
<filename>Util/FileSystem.h #pragma once #ifdef ARMIPS_USE_STD_FILESYSTEM #include <filesystem> #include <fstream> namespace fs { using namespace std::filesystem; using ifstream = std::ifstream; using ofstream = std::ofstream; using fstream = std::fstream; } #else #include <ghc/fs_fwd.hpp> namespace fs { usi...
Thar0/armips
Commands/CDirectiveFile.h
#pragma once #include "Commands/CAssemblerCommand.h" #include "Core/ELF/ElfRelocator.h" #include "Core/Expression.h" #include "Util/FileSystem.h" class AssemblerFile; class GenericAssemblerFile; class CDirectiveFile: public CAssemblerCommand { public: enum class Type { Invalid, Open, Create, Copy, Close }; CDirec...
Thar0/armips
Commands/CDirectiveArea.h
<reponame>Thar0/armips<filename>Commands/CDirectiveArea.h #pragma once #include "Commands/CAssemblerCommand.h" #include "Core/Expression.h" class CDirectiveArea: public CAssemblerCommand { public: CDirectiveArea(bool shared, Expression& size); bool Validate(const ValidateState &state) override; void Encode() const...
Thar0/armips
Archs/Architecture.h
<gh_stars>100-1000 #pragma once #include "Commands/CAssemblerCommand.h" #include "Util/ByteArray.h" #include <map> #include <memory> class IElfRelocator; class Tokenizer; class Parser; struct ExpressionFunctionEntry; using ExpressionFunctionMap = std::map<std::wstring, const ExpressionFunctionEntry>; class CArch...
Thar0/armips
Commands/CDirectiveMessage.h
#pragma once #include "Commands/CAssemblerCommand.h" #include "Core/Common.h" #include "Core/Expression.h" class CDirectiveMessage: public CAssemblerCommand { public: enum class Type { Warning, Error, Notice }; CDirectiveMessage(Type type, Expression exp); bool Validate(const ValidateState &state) override; void ...
Thar0/armips
Core/ELF/ElfRelocator.h
#pragma once #include "Core/ELF/ElfFile.h" #include <memory> struct ElfRelocatorCtor { std::wstring symbolName; size_t size; }; struct RelocationAction { RelocationAction(int64_t offset, uint32_t newValue) : offset(offset), newValue(newValue) {} int64_t offset; uint32_t newValue; }; class CAssemblerCommand; c...
Thar0/armips
Util/ByteArray.h
#pragma once #include "Util/FileSystem.h" #include <string> #include <sys/types.h> #if defined(_MSC_VER) && !defined(ssize_t) typedef intptr_t ssize_t; #endif typedef unsigned char byte; enum class Endianness { Big, Little }; class ByteArray { public: ByteArray(); ByteArray(const ByteArray& other); ByteArray(...
Thar0/armips
Archs/MIPS/MipsParser.h
<reponame>Thar0/armips #pragma once #include "Archs/MIPS/CMipsInstruction.h" #include <memory> #include <string> class CAssemblerCommand; class Expression; class Parser; struct MipsMacroDefinition; struct tMipsOpcode; struct MipsRegisterDescriptor { const wchar_t* name; int num; }; class MipsParser { public: s...
Thar0/armips
Main/CommandLineInterface.h
<gh_stars>100-1000 #pragma once #include "Core/Assembler.h" int runFromCommandLine(const std::vector<std::wstring>& arguments, ArmipsArguments settings = {});
Thar0/armips
Archs/ARM/Arm.h
#pragma once #include "Archs/ARM/Pool.h" #include "Archs/Architecture.h" #define ARM_SHIFT_LSL 0x00 #define ARM_SHIFT_LSR 0x01 #define ARM_SHIFT_ASR 0x02 #define ARM_SHIFT_ROR 0x03 #define ARM_SHIFT_RRX 0x04 enum ArmArchType { AARCH_GBA = 0, AARCH_NDS, AARCH_3DS, AARCH_LITTLE, AARCH_BIG, AARCH_INVALID }; typed...
Thar0/armips
Core/FileManager.h
<reponame>Thar0/armips #pragma once #include "Util/ByteArray.h" #include "Util/FileClasses.h" #include <memory> #include <vector> class SymbolData; struct SymDataModuleInfo; class AssemblerFile { public: virtual ~AssemblerFile() { }; virtual bool open(bool onlyCheck) = 0; virtual void close() = 0; virtual bo...
Thar0/armips
Commands/CommandSequence.h
<reponame>Thar0/armips #pragma once #include "Commands/CAssemblerCommand.h" #include <memory> #include <vector> class Label; class CommandSequence: public CAssemblerCommand { public: CommandSequence(); bool Validate(const ValidateState &state) override; void Encode() const override; void writeTempData(TempData&...
Thar0/armips
Archs/ARM/CArmInstruction.h
#pragma once #include "Archs/ARM/Arm.h" #include "Archs/ARM/ArmOpcodes.h" #include "Core/Expression.h" struct ArmOpcodeVariables { struct { unsigned char c,a; bool s,x,y; unsigned int NewEncoding; char NewType; bool UseNewEncoding; bool UseNewType; } Opcode; struct { unsigned char Type; bool Shift...
Thar0/armips
Archs/ARM/ArmExpressionFunctions.h
<reponame>Thar0/armips #pragma once #include "Core/ExpressionFunctions.h" extern const ExpressionFunctionMap armExpressionFunctions;
monktan89/srpc
src/generator/descriptor.h
/* Copyright (c) 2020 Sogou, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writi...
monktan89/srpc
src/rpc_define.h
<filename>src/rpc_define.h /* Copyright (c) 2020 Sogou, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicabl...
alex/reptyr
attach.c
<reponame>alex/reptyr<filename>attach.c<gh_stars>1-10 /* * Copyright (C) 2011 by <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitatio...
hagabb/katana
libsupport/include/katana/Strings.h
<reponame>hagabb/katana #ifndef KATANA_LIBSUPPORT_KATANA_STRINGS_H_ #define KATANA_LIBSUPPORT_KATANA_STRINGS_H_ #include <initializer_list> #include <limits> #include <string> #include <string_view> #include <vector> #include <fmt/format.h> #include "katana/config.h" /// @file Strings.h /// /// Basic string manipul...
hagabb/katana
libsupport/include/katana/OpaqueID.h
#pragma once #include <cstdint> #include <iostream> #include <boost/math/tools/precision.hpp> namespace katana { /// Base class for opaque ID types. /// /// Opaque ID types are: /// /// - copyable, assignable, swappable, movable /// - explicitly convertible to and from their value type /// - insertable into ostream...
hagabb/katana
libtsuba/include/tsuba/ReadGroup.h
<gh_stars>0 #ifndef KATANA_LIBTSUBA_TSUBA_READGROUP_H_ #define KATANA_LIBTSUBA_TSUBA_READGROUP_H_ #include <future> #include <list> #include <memory> #include "katana/Result.h" #include "tsuba/AsyncOpGroup.h" namespace tsuba { /// Track multiple, outstanding async writes and provide a mechanism to ensure /// that t...
hagabb/katana
libgalois/include/katana/LC_CSR_CSC_Graph.h
/* * This file belongs to the Galois project, a C++ library for exploiting * parallelism. The code is being released under the terms of the 3-Clause BSD * License (a copy is located in LICENSE.txt at the top-level directory). * * Copyright (C) 2018, The University of Texas at Austin. All rights reserved. * UNIVER...
sammacbeth/zopfli
src/zopfli/lz77.h
<reponame>sammacbeth/zopfli /* Copyright 2011 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
liuxuvip/OTB
Modules/Core/Metadata/include/otbDimapMetadataHelper.h
<filename>Modules/Core/Metadata/include/otbDimapMetadataHelper.h /* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file ex...
liuxuvip/OTB
Modules/IO/IOGDAL/include/otbGDALImageMetadataInterface.h
<gh_stars>0 /* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtai...
liuxuvip/OTB
Modules/Filtering/ImageManipulation/include/otbClampImageFilter.h
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
liuxuvip/OTB
Modules/Segmentation/Conversion/include/otbPersistentImageToOGRDataFilter.h
<reponame>liuxuvip/OTB /* * Copyright (C) 1999-2011 Insight Software Consortium * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use...
liuxuvip/OTB
Modules/Registration/Stereo/include/otbStereorectificationDisplacementFieldSource.h
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
liuxuvip/OTB
Modules/Wrappers/ApplicationEngine/include/otbWrapperCastImage.h
<reponame>liuxuvip/OTB /* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
liuxuvip/OTB
Modules/Core/Common/include/otbArrayTraits.h
<reponame>liuxuvip/OTB /* * Copyright (C) 2005-2021 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
liuxuvip/OTB
Modules/Core/Transform/include/otbTransformFactories.h
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
liuxuvip/OTB
Modules/ThirdParty/OssimPlugins/include/ossim/ossimTimeUtilities.h
<gh_stars>0 /* * Copyright (C) 2005-2019 by Centre National d'Etudes Spatiales (CNES) * * This file is licensed under MIT license: * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software wit...
liuxuvip/OTB
Modules/Adapters/GdalAdapters/include/otbCoordinateTransformation.h
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
liuxuvip/OTB
Modules/Feature/Textures/include/otbScalarImageToAdvancedTexturesFilter.h
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
liuxuvip/OTB
Modules/Core/Transform/include/otbSensorTransformFactory.h
/* * Copyright (C) 2005-2021 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
liuxuvip/OTB
Modules/Filtering/Polarimetry/include/otbReciprocalCoherencyToReciprocalMuellerImageFilter.h
<reponame>liuxuvip/OTB /* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
liuxuvip/OTB
Modules/Core/Metadata/include/otbSentinel1CalibrationLookupData.h
<reponame>liuxuvip/OTB /* * Copyright (C) 2005-2021 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
liuxuvip/OTB
Modules/Core/ImageBase/include/otbPixelComponentIterator.h
<reponame>liuxuvip/OTB<gh_stars>100-1000 /* * Copyright (C) 2005-2021 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with ...
liuxuvip/OTB
Modules/Core/Common/include/otbNotNull.h
<reponame>liuxuvip/OTB /* * Copyright (C) 2005-2021 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
liuxuvip/OTB
Modules/Filtering/Path/include/otbImageFittingPolygonListFilter.h
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
liuxuvip/OTB
Modules/Wrappers/ApplicationEngine/include/otbWrapperNumericalParameter.h
<filename>Modules/Wrappers/ApplicationEngine/include/otbWrapperNumericalParameter.h /* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may n...
liuxuvip/OTB
Modules/Core/Metadata/include/otbTerraSarXSarImageMetadataInterface.h
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
liuxuvip/OTB
Modules/Filtering/Projection/include/otbRationalTransform.h
<gh_stars>100-1000 /* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
liuxuvip/OTB
Modules/Filtering/Convolution/include/otbConvolutionImageFilter.h
<filename>Modules/Filtering/Convolution/include/otbConvolutionImageFilter.h<gh_stars>100-1000 /* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); *...
liuxuvip/OTB
Modules/Feature/Descriptors/include/otbImageToSIFTKeyPointSetFilter.h
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
liuxuvip/OTB
Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h
<filename>Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h /* * Copyright (C) 2005-2021 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use...
liuxuvip/OTB
Modules/Core/ObjectList/include/otbObjectList.h
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
liuxuvip/OTB
Modules/MPI/MPIConfig/include/otbMPIConfig.h
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
liuxuvip/OTB
Modules/Core/Common/include/otbImageToModulusAndDirectionImageFilter.h
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
liuxuvip/OTB
Modules/Core/Common/include/otbNumericTraits.h
<reponame>liuxuvip/OTB /* * Copyright (C) 2005-2021 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
liuxuvip/OTB
Modules/Core/Transform/include/otbSarSensorModel.h
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
liuxuvip/OTB
Modules/Filtering/ImageManipulation/include/otbEuclideanDistanceMetricWithMissingValue.h
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * Copyright (C) 2007-2012 Institut Mines Telecom / Telecom Bretagne * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fil...
liuxuvip/OTB
Modules/Feature/Descriptors/include/otbImageToSURFKeyPointSetFilter.h
<reponame>liuxuvip/OTB /* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
liuxuvip/OTB
Modules/Core/Metadata/include/otbDateTime.h
<reponame>liuxuvip/OTB /* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
liuxuvip/OTB
Modules/Radiometry/Indices/include/otbRadiometricIndex.h
<filename>Modules/Radiometry/Indices/include/otbRadiometricIndex.h<gh_stars>100-1000 /* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may ...
liuxuvip/OTB
Modules/Core/Common/include/otbAlgoClamp.h
<filename>Modules/Core/Common/include/otbAlgoClamp.h /* * Copyright (C) 2005-2021 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in comp...
liuxuvip/OTB
Modules/Segmentation/Conversion/include/otbLabelImageSmallRegionMergingFilter.h
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
liuxuvip/OTB
Modules/Radiometry/SARCalibration/include/otbSarBrightnessFunctor.h
<reponame>liuxuvip/OTB /* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
captainwong/learning_opengl_programming_guide_9th
01-triangles-qt/window.h
<gh_stars>1-10 #pragma once #include <qopenglwidget.h> #include <qopenglfunctions.h> #include <qopenglbuffer.h> class QOpenGLShaderProgram; class Window : public QOpenGLWidget, protected QOpenGLFunctions { Q_OBJECT public: explicit Window(QWidget* parent = nullptr); virtual ~Window(); protected: virtual void i...
captainwong/learning_opengl_programming_guide_9th
include/LoadShaders.h
#pragma once #include <GL/GL.h> #ifdef __cplusplus extern "C" { #endif // __cplusplus struct ShaderInfo { GLenum type; const char* source; GLuint shader; }; enum LoadType { LoadFromFile, LoadFromString, }; /** * @brief load shader and return gl program * */ GLuint LoadShaders(ShaderInfo* inf...
iamfantaser/philosophers
philo/srcs/utils/common_utils.c
<reponame>iamfantaser/philosophers #include "../../includes/main.h" int ft_atoi(const char *str) { char neg; int res; int i; neg = 1; i = 0; res = 0; while (str[i] == 32 || (str[i] > 8 && str[i] < 14)) i++; if (str[i] == '-' || str[i] == '+') { if (str[i] == '-') neg = -1; i++; } while (str[i] >...
iamfantaser/philosophers
philo/includes/main.h
#ifndef MAIN_H # define MAIN_H # include "functions.h" #endif
iamfantaser/philosophers
philo/srcs/actions/actions.c
<reponame>iamfantaser/philosophers<filename>philo/srcs/actions/actions.c #include "../../includes/main.h" int philo_take_fork(int id) { int n; n = g_info->phil[id - 1].hand[1]; pthread_mutex_lock(g_info->phil[id - 1 + n].fork); philo_print("has taken a fork", id); n = g_info->phil[id - 1].hand[0]; pthread_mutex...
iamfantaser/philosophers
philo/srcs/utils/utils.c
<reponame>iamfantaser/philosophers #include "../../includes/main.h" void philo_death_procedure(int id) { int i; i = 0; g_info->all_alive = 0; printf("%llu %d %s\n", (ft_time() - g_info->t_start) / 1000, id, "died"); while (i < g_info->count - 1) { g_info->phil[i].number_of_eat = 0; g_info->phil[i++].state =...
iamfantaser/philosophers
philo_bonus/srcs/philosophers.c
#include "../includes/main.h" static void *philo_big_bro(void *ph) { t_info *info; info = (t_info *)ph; usleep(3000); while (1) { usleep(500); if (((ft_time() - info->phil[info->cur - 1].last_meal) / 1000 ) >= info->time_to_die) { info->phil[info->cur - 1].state = DEAD; sem_wait(info->write_sem); ...
iamfantaser/philosophers
philo_bonus/srcs/actions/actions.c
#include "../../includes/main.h" int philo_action(t_info *info, t_philosopher *philo) { sem_wait(info->waiters); sem_wait(info->sem); philo_print(philo, "has taken a fork\n"); sem_wait(info->sem); philo->last_meal = ft_time(); philo_print(philo, "has taken a fork\n"); philo_print(philo, "is eating\n"); if (phi...
iamfantaser/philosophers
philo/includes/structures.h
<gh_stars>0 #ifndef STRUCTURES_H # define STRUCTURES_H # include "libs.h" typedef enum e_state { HUNGRY, EATING, SLEEPING, THINKING, DEAD, SATISFIED, } t_state; typedef struct s_philosopher { short hand[2]; int id; long long circle; long long last_meal; long long number_of_eat; pthre...
iamfantaser/philosophers
philo_bonus/srcs/utils/utils.c
<reponame>iamfantaser/philosophers #include "../../includes/main.h" void philo_print(t_philosopher *philo, char *str) { sem_wait(philo->write_sem); printf("%lld %d %s", (ft_time() - philo->time_start) / 1000, philo->id, str); sem_post(philo->write_sem); } void philo_clear_sem_all(t_info *info) { sem_close(info-...
iamfantaser/philosophers
philo_bonus/includes/libs.h
#ifndef LIBS_H # define LIBS_H # include <pthread.h> # include <unistd.h> # include <stdio.h> # include <stdlib.h> # include <sys/time.h> # include <sys/types.h> # include <sys/wait.h> # include <signal.h> # include <semaphore.h> # include <fcntl.h> # include <sys/stat.h> #endif
iamfantaser/philosophers
philo/includes/functions.h
<gh_stars>0 #ifndef FUNCTIONS_H # define FUNCTIONS_H # include "libs.h" # include "structures.h" char *ft_itoa_base(unsigned int num, int base); char *ft_ltoa_base(unsigned long long num, int base); int ft_atoi(const char *str); long long ft_time(void); void ft_usleep(long long stop_time, long long tim...
iamfantaser/philosophers
philo_bonus/includes/functions.h
<reponame>iamfantaser/philosophers #ifndef FUNCTIONS_H # define FUNCTIONS_H # include "libs.h" # include "structures.h" void ft_usleep(long long stop, long long pause); int ft_atoi(const char *str); void ft_error(char *str); long long ft_time(void); void philo_end_procedure(t_info *info, char *id); int philo_v...
iamfantaser/philosophers
philo_bonus/srcs/utils/time.c
<filename>philo_bonus/srcs/utils/time.c #include "../../includes/main.h" void ft_usleep(long long stop_time, long long time) { struct timeval step; long long dong; usleep(time * 900); dong = 0; while (dong < stop_time) { usleep(100); gettimeofday(&step, NULL); dong = (step.tv_sec) * 1000 * 1000 + (ste...
iamfantaser/philosophers
philo_bonus/srcs/utils/utils_2.c
<filename>philo_bonus/srcs/utils/utils_2.c #include "../../includes/main.h" void ft_error(char *str) { int len; len = 0; while (str[len]) len++; write (2, str, len); exit(3); } void philo_free(t_info *info) { int i; i = 0; free(info->sem); free(info->phil); } void philo_init_semaphores(t_info *info) { ...
iamfantaser/philosophers
philo/includes/libs.h
#ifndef LIBS_H # define LIBS_H # include <pthread.h> # include <unistd.h> # include <stdio.h> # include <stdlib.h> # include <sys/time.h> # include <fcntl.h> # include <limits.h> #endif
iamfantaser/philosophers
philo_bonus/includes/structures.h
<gh_stars>0 #ifndef STRUCTURES_H # define STRUCTURES_H # include "libs.h" typedef enum e_state { HUNGRY, SLEEPING, THINKING, DEAD, SATISFIED, } t_state; typedef struct s_philosopher { char hand[2]; char str[6]; int id; pid_t pid; sem_t *write_sem; sem_t *death; pthread_t *th...
iamfantaser/philosophers
philo/srcs/philosophers.c
<gh_stars>0 #include "../includes/main.h" static void philo_big_bro(void) { int i; i = 0; while (!g_info->ready) usleep(10); while (1) { usleep(500); if ((g_info->phil[i].number_of_eat != 0 && (g_info->time_to_die - ((ft_time() - g_info->phil[i].last_meal) / 1000)) <= 0)) { philo_death_procedure(...
plenck/projet_lowrisc_rocketchip_2021
application_yvon.c
// See LICENSE for license details. //#include <stdio.h> #include <stddef.h> #include <stdint.h> #include <memory.h> // #include <math.h> #include "encoding.h" #include "mini-printf.h" #include "diskio.h" #include "ff.h" #include "bits.h" #include "hid.h" #include "eth.h" #include "elfriscv.h" #include ...
Axe-hyx/Vulkan-Samples
samples/api/separate_image_sampler/separate_image_sampler.h
/* Copyright (c) 2021, <NAME> * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 the "License"; * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
midnight-wonderer/botton-debounce-example
src/main.c
<filename>src/main.c<gh_stars>0 // Copyright (c) 2018 <NAME> // under the MIT License https://opensource.org/licenses/MIT #define STM8S103 #include "button_debounce.h" #include "stm8s.h" // configure callbacks const ButtonDebounce_Config button_c3_debounce_config = { // "fell" event subscription .fell = &led_...
qinxiaoxin/resident
resident/resident/MacroUtils.h
// // MacroUtils.h // resident // // Created by <NAME> on 2/6/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #ifndef resident_MacroUtils_h #define resident_MacroUtils_h #endif #ifdef DEBUG #define debugLog(...) NSLog(__VA_ARGS__) #define debugMethod() NSLog(@"%s", __func__) #else #define debugLog(......
qinxiaoxin/resident
resident/resident/XHLoadingNavigationItemTitleView/TYDotIndicatorView.h
// // TYDotIndicatorView.h // TYDotIndicatorView // // Created by <NAME> on 14-1-12. // Copyright (c) 2014年. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger, TYDotIndicatorViewStyle) { TYDotIndicatorViewStyleSquare, TYDotIndicatorViewStyleRound, TYDotIndicatorViewStyleCircle ...
qinxiaoxin/resident
resident/resident/TableViewController.h
// // TableViewController.h // resident // // Created by <NAME> on 2/6/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface TableViewController : UITableViewController @end
qinxiaoxin/resident
resident/resident/XHLoadingNavigationItemTitleView/XHLoadingNavigationItemTitleView.h
// // XHLoadingNavigationItemTitleView.h // XHLoadingNavigationItemTitleView // // Created by qtone-1 on 14-4-10. // Copyright (c) 2014年. All rights reserved. // #import <UIKit/UIKit.h> @interface XHLoadingNavigationItemTitleView : UIView @property (nonatomic, strong) UIColor *titleColor; // default is [UIColor ...