text
stringlengths
5.71k
33.7k
#include <iostream> #include <fstream> #include <string> #include <cstdint> using namespace std; unsigned char songlength; int16_t maxRows = -1; bool verbose = false; uint8_t *xmdata = NULL; uint16_t notes[257][8]; uint16_t noteRows[1936][8]; ifstream XMFILE; ofstream ASMFILE; bool isPatternUsed(int patnum); bool ve...
/****************************************************************************** ** Copyright (C) 1996 by CEA ******************************************************************************* ** ** UNIT ** ** Version: 3.2 ** ** Author: <NAME> ** ** Date: 96/06/13 ** ** File: mr_psup...
template<class T> void rsImageProcessor<T>::gammaCorrection(rsImage<T>& img, T gamma) { T* p = img.getPixelPointer(0, 0); for(int i = 0; i < img.getNumPixels(); i++) p[i] = pow(p[i], gamma); } template<class T> void rsImageProcessor<T>::invert(rsImage<T>& img) { T* p = img.getPixelPointer(0, 0); for(int i ...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
#include "RobotAI.h" #include <iostream> #include <fstream> #include <queue> using namespace std; RobotAI::RobotAI() { } RobotAI::~RobotAI() { } //----------------------------------------------------- //1.必须完成的战斗核心 //----------------------------------------------------- ofstream fout("h:\\tes...
// **************************************************************************** // This file is part of the Integrating Vision Toolkit (IVT). // // The IVT is maintained by the Karlsruhe Institute of Technology (KIT) // (www.kit.edu) in cooperation with the company Keyetech (www.keyetech.de). // // Copyright (C) 2014 K...
/* Linear interpolation of a 2D matrix. Hope to speed up interp2 by * bypassing all the special checks. * * * * $Id: vgg_interp2.cxx,v 1.17 2005/01/25 16:06:06 awf Exp $ * Yoni, Wed Jul 25 12:14:22 2001 */ #include <mex.h> #include <stdlib.h> #include <math.h> #include <string.h> #include "vgg_real_2_int.h" /...
/*-------------netlist_gen.cpp------------------------------------------------// * * netlist generator * * Purpose: The BIAS project intends to re-implement the TrueNorth architechture * in analog electronics. For this purpose, we will need to create a * simple script that will create a ...
//=====================================================================// /*! @file @brief RX64M SOUND(WAV ファイルの再生) サンプル @n ・P07(176) ピンに赤色LED(VF:1.9V)を吸い込みで接続する @n ・DA0(P03):Left、DA1(P05):Right からアナログ出力する。@n ・MP3/WAV 形式ファイルの再生 @n ※GR-KAEDE で動かす場合、GR_KAEDE を有効にする。@n GR-KAEDE の SD カードハードウェアーには致命的な問題が...
#include "constants.h" #include <cuda_runtime_api.h> #include <driver_types.h> #include <stdio.h> #include <iostream> #include <chrono> #include <thread> #include <unistd.h> #include <fcntl.h> #include "cxxopts.hpp" #include "types.h" #include "gl_shader_utils.h" #include "use_cuda.h" #include "bvhBuilder.h" #incl...
/* * Copyright (c) 2001-2005 The Regents of The University of Michigan * Copyright (c) 2007 MIPS Technologies, Inc. * Copyright (c) 2007-2008 The Florida State University * Copyright (c) 2009 The University of Edinburgh * All rights reserved. * * Redistribution and use in source and binary forms, with or without...
#include "huffmanish.hh" Huffman::Huffman (const char * filepath) { //Read the file util::FilePiece filein(filepath); //Init uniq_lines to zero; uniq_lines = 0; line_text prev_line; //Check for unique lines. int num_lines = 0 ; while (true) { line_text new_line; num_lines++; try { ...
#include "data.hpp" #include "files.hpp" #define TINYGLTF_IMPLEMENTATION #define TINYGLTF_NO_STB_IMAGE_WRITE #define STB_IMAGE_IMPLEMENTATION #include <tiny_gltf.h> #include <stdexcept> #include "global.hpp" extern Application* app; using namespace DATA; // helper functions VkFormat findTinyGLTFImageFormat(tinygltf...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> #include <cmath> using namespace std; typedef int poly_type_; // expected int, long or long long class Point { public: poly_type_ x, y; Po...
//============================================================================ // Name : Giscup2015.cpp // Author : <NAME> // Version : // Copyright : // Description : GISCUP2015 main file //============================================================================ #include "data/RoadParser.h" #inc...
/* Copyright (c) 2005, Regents of Massachusetts Institute of Technology, * Brandeis University, Brown University, and University of Massachusetts * Boston. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
// $Id: WeventDisplay.cxx,v 1.6 2010/01/10 03:01:37 balewski Exp $ // //*-- Author : <NAME>, MIT #include <TH1.h> #include <TH2.h> #include <TMath.h> #include <TCanvas.h> #include <TStyle.h> #include <TFile.h> #include <TText.h> #include <TList.h> #include <TBox.h> #include <TPaveText.h> #include <TPad.h> #include <T...
#include "VoxImporter.h" #include "IO/Log.h" #include "Asset/PalleteAsset.h" #include "Asset/PrefabAsset.h" #include "World/Components.h" #include "World/World.h" #include <map> #include <vector> #include <charconv> //TODO: The importer should create the .asset file inline static const bool _Debug = false; inline s...
/************************************************************************************** Copyright 2015 Applied Research Associates, 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.ap...
/** * @file dtb.cpp * @brief dtb 解析实现 * @author Zone.N (<EMAIL>) * @version 1.0 * @date 2021-09-18 * @copyright MIT LICENSE * https://github.com/Simple-XX/SimpleKernel * Based on https://github.com/brenns10/sos * @par change log: * <table> * <tr><th>Date<th>Author<th>Description * <tr><td>2021-09-18<td>dig...
/* This code is provided under the BSD license. Copyright (c) 2014, Emlid Limited. All rights reserved. Written by <NAME> and <NAME> twitter.com/emlidtech || www.emlid.com || <EMAIL> Application: Mahory AHRS algorithm supplied with data from MPU9250 and LSM9DS1. Outputs roll, pitch and yaw in the console and sends qua...
// Copyright (c) 2009-2021 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: jglaser #include "MolecularForceCompute.h" #include "hoomd/Autotuner.h" #include "hoomd/CachedAllocator.h" #ifdef ENABLE_HIP #include "Molecula...
#include "header.h" #include <iostream> void ParseArgs(int argc, char *argv[], struct ARGS *a) { register int i; int form1; /* count of form1 options - list window(s) */ int form2; /* count of form2 options - operation performed on all windows */ int form3; /* count of form3 options - operation performed o...
//////////////////////////////////////////////////////////////////////////////// /// /// /// AliFemtoEventReaderESD - the reader class for the Alice ESD /// /// Reads in ESD information and converts it into internal AliFemtoEvent ...
//************************************************************************************** //16-Steps Sequencer Module for VCV Rack by Autodafe http://www.autodafe.net // //Based on code taken from the Fundamentals plugins by <NAME> http://www.vcvrack.com //************************************************************...
//===--- AccessSummaryAnalysis.cpp - SIL Access Summary Analysis ----------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
// // ofxLaserZoneTransform.cpp // example_HelloLaser // // Created by <NAME> on 07/02/2018. // // #include "ofxLaserZoneTransform.h" using namespace ofxLaser; ZoneTransform::~ZoneTransform() { if(initialised) removeListeners(); } ZoneTransform::ZoneTransform(int _index, string filename) { saveLabel = file...
/* * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights *...
#include <fusenetincludes.h> #include <assemblycache.h> #include <msxml2.h> #include <manifestimport.h> #include <manifestdata.h> #include <dbglog.h> // fwd declaration HRESULT CheckPlatform(LPMANIFEST_DATA pPlatformData); // return: 0 for all satisfied HRESULT CheckPlatformRequirementsEx(LPASSEMBLY_MA...
//===-- ThruISelLowering.cpp - Thru DAG Lowering Implementation -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------------...
// // Created by anton on 17.07.2020. // #define _GLIBCXX_PARALLEL #include "dbg_construction.hpp" #include "dbg_disjointigs.hpp" #include "minimizer_selection.hpp" #include "sparse_dbg.hpp" #include "rolling_hash.hpp" #include "hash_utils.hpp" #include "sequences/seqio.hpp" #include "common/dir_utils.hpp" #include "co...
/*============================================================================ CMake - Cross Platform Makefile Generator Copyright 2004-2009 Kitware, Inc. Copyright 2004 <NAME> (<EMAIL>) Copyright 2013 <NAME> (<EMAIL>) Distributed under the OSI-approved BSD License (the "License"); see accompanying file Co...
// Copyright (c) 2007-2015 <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 limitation the rights // to use, copy, modify, merge, publi...
#include <sbpl_perception/config_parser.h> #include <sbpl_perception/object_model.h> #include <perception_utils/vfh/vfh_pose_estimator.h> #include <perception_utils/perception_utils.h> #include <pcl/registration/icp.h> #include <pcl/registration/icp_nl.h> #include <pcl/registration/transformation_estimation_2D.h> #in...
#include "llvm/Module.h" #include "llvm/IRBuilder.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h" #include "llvm/Support/CommandLine.h" #include <sstream> #include "accept.h" using namespace llvm; bool acceptAllFAP; char const* functionarray [] = { "exp", "exp2", "pow", "sin", "cos", "tan", ...
/* * 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...
/////////////////////////////////////////////////////////////////////////////////////////////////// // LibGizmo // File Name : // Creation : 10/01/2012 // Author : <NAME> // Description : LibGizmo // ///Copyright (C) 2012 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy of // ...
/** \mainpage DHT12 sensor library * DHT12 Sensor Library * https://www.mischianti.org/2019/01/01/dht12-library-en/ * * The MIT License (MIT) * * Copyright (c) 2017 <NAME> www.mischianti.org All right reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software ...
/* * Copyright (c) 2016-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the LICENSE * file in the root directory of this source tree. * */ #include <gtest/gtest.h> #include <folly/json.h> #include "mcrouter/lib/IOBufUtil.h" #include "mcrouter/lib/carbon/CarbonMessageCo...
#include "pxt.h" #include "SoundOutput.h" #include "melody.h" //#define LOG DMESG #define LOG NOLOG namespace music { SINGLETON(WSynthesizer); // Tone generator arguments: // // sound: a pointer to the currently-playing sound, usable for looking up the // waveform or generator-specific state. // // position: offset...
/* * Slime.cpp * * Created on: Jul 21, 2017 * Author: Carl */ #include <math.h> #include <stdio.h> #include <stdlib.h> #include <fstream> #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include "Slime.h" void Slime::Init(Slime slime[]) { count = 0; for (int i = 0; i < max; i++) { slime[i].x =...
#include "vbomeshadj.h" #include "glutils.h" #define uint unsigned int #include <iostream> using std::cout; using std::cerr; using std::endl; #include <fstream> using std::ifstream; #include <sstream> using std::istringstream; #include "cookbookogl.h" VBOMeshAdj::VBOMeshAdj(const char * fileName, bool center) { ...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include "base/os.h" #include "test/test_cmn_util.h" #include "ksync/ksync_sock_user.h" #include "oper/ecmp_load_balance.h" #define MAX_VNET 4 void RouterIdDepInit(Agent *agent) { } const std::string svn_name("svn"); const std::string dvn_name...
/* * Copyright (c) 2003-2015 <NAME> <<EMAIL>>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php */ // XMLprefs.cpp : implementation file...
/** * Copyright © 2019 IBM Corporation * * 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 agr...
// Copyright 2021 <NAME> <EMAIL> // Copyright 2021 // Copyright 2021 // Copyright 2021 // Standard Libraries #include <iostream> #include <ctime> #include <chrono> #include <cmath> #include <cstring> #include <vector> #include <string> // SFML Libraries #include <SFML/Graphics.hpp> // Header file includes // Incl...
#include <iostream> #include <opencv_workbench/wb/Point.h> #include <opencv_workbench/wb/Cluster.h> #include <opencv_workbench/utils/OpenCV_Helpers.h> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/contrib/contrib.hpp> #include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #includ...
#ifndef NOM3DC1 #define NOM3DC1 #endif #include "m3dc1_scorec.h" #include <iostream> #include <assert.h> #include "apf.h" #include "petscksp.h" #include "PCU.h" #include "m3dc1_mesh.h" // debugging purpose #include "apfMesh.h" // debugging purpose using namespace std; static char help[] = "testing solver functions; \n ...
//======================================================================== // Heightmap example program using OpenGL 3 core profile // Copyright (c) 2010 <NAME> // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising fro...
/* * Copyright 2007-2015 The OpenMx Project * * 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 applicab...
#include "ZETA1.h" #define DEBUG false #define VERBOSE false #if DEBUG #define debug(x) Serial.print(x); #define debughex(x) Serial.print(x,HEX); #if VERBOSE #define vdebug(x) Serial.print(x); #define vdebughex(x) Serial.print(x,HEX); #else #define vdebug(x)...
#include "mcts.h" #include <math.h> #include <algorithm> #include <iomanip> using namespace std; using namespace UTILS; //----------------------------------------------------------------------------- MCTS::PARAMS::PARAMS() : Verbose(0), MaxDepth(100), NumSimulations(1000), NumStartStates(1000), Use...
// matrix.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream.h> #include <ap/apmatrix.h> #include <ap/apstring.h> #include <stdlib.h> #include <ctype.h> #include <fstream.h> #include <math.h> #include <conio.h> struct condition{ apstring good; apstring bad; apstrin...
/*============================================================================ * <NAME> * routines for Real gsp dnanseqs *============================================================================*/ /*===================================== * headers *=====================================*/ #include <stdio.h> #inc...
#include "triangulation_gr3.h" #include "../path/path_planning_gr3.h" #include "../useful/useful.h" #include "../path/path_planning_gr3.h" #include "../strategy/strategy_gr3.h" #include "../CtrlStruct_gr3.h" #include "init_pos_gr3.h" #include "opp_pos_gr3.h" #include <math.h> #include <stdio.h> #define PRINT_TRIANGULA...
// // Mach7: Pattern Matching Library for C++ // // Copyright 2011-2013, Texas A&M University. // Copyright 2014 <NAME>. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // ...
#include "ofxIniSettings.h" #include "ofxIniExtras.h" bool ofxIniSettings::load(string filename, bool clearFirst, bool setAsOutputFile) { if (setAsOutputFile) outputFilename = filename; filename = ofToDataPath(filename); ofLogVerbose() << "ini.loadSettings(\"" << filename << "\""; if (filename==...
/*************************************************************************** file : learn.cpp created : Wed Aug 28 16:36:00 CET 2004 copyright : (C) 2004 by <NAME> email : <EMAIL> version : $Id: learn.cpp,v 1.17.2.1 2008/05/30 22:1...
#include <pcl/point_cloud.h> #include <pcl/point_types.h> #include <pcl/common/time.h> //fps calculations #include <pcl/common/transforms.h> #include <pcl/io/hdl_grabber.h> #include <pcl/visualization/point_cloud_color_handlers.h> #include <pcl/visualization/cloud_viewer.h> #include <pcl/visualization/image_viewer.h> #...
/*************/ /* edjikes.c */ /*************/ /*******************/ /* System includes */ /*******************/ #include <windows.h> /****************/ /* Self include */ /****************/ #include "edjikes.h" /******************/ /* Other includes */ /******************/ /**********/ /* Macros */ /**********/ ...
/* * Copyright 2015 The SageTV Authors. 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 ap...
#include <kymco_maxxer90_motor_controller/kymco_maxxer90_hw2.hpp> using namespace kymco_maxxer90_ackermann_steering_controller; KymcoMaxxer90AckermannSteeringController::KymcoMaxxer90AckermannSteeringController(const ros::NodeHandle& n, const std::string& port1, const std::string& port2, const std::string& port3, con...
/* * candidateset.cpp * * Created on: Jun 1, 2014 * Author: <NAME> * Email: <EMAIL> */ #include "tree/iqtree.h" #include "candidateset.h" #include "utils/MPIHelper.h" void CandidateSet::init(Alignment *aln, int maxSize) { this->aln = aln; this->maxSize = maxSize; } CandidateSet::~CandidateSet() { } ...
#include <string> // string concat - error output #include <cassert> #include <iostream> // [DBG] #include "Parser.h" #include "Util.h" Parser::Parser(std::istream& input) { Lexer = std::make_unique<::Lexer>(input); } bool Parser::functionBuiltin(const std::string& name) { if (name == "print") retur...
// Copyright 2009-2018 NTESS. Under the terms // of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2009-2018, NTESS // All rights reserved. // // Portions are copyright of other developers: // See the file CONTRIBUTORS.TXT in the top level directo...
/* Functions and structures for maintaining a k-d tree database of image features. For more information, refer to: <NAME>. and <NAME>. Shape indexing using approximate nearest-neighbor search in high-dimensional spaces. In <EM>Conference on Computer Vision and Pattern Recognition (CVPR)</EM> (2003),...
/* This file is part of MADNESS. Copyright (C) 2007,2010 Oak Ridge National Laboratory This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option...
#include "PacketParser.h" #include "Util.h" #include <UdpLayer.h> #include <PayloadLayer.h> #include <IPv4Layer.h> #include <iostream> #include <openssl/hmac.h> #include <openssl/evp.h> #include <openssl/aes.h> #include <openssl/conf.h> #include <openssl/hmac.h> #include "Config.h" using namespace pcpp; using namespace...
#include "State.h" #include "MIDIScene.h" #include "../helpers/ResourcesManager.h" #include <iostream> #include <fstream> #include <sstream> #include <algorithm> std::map<std::string, State::OptionInfos> State::_sharedInfos; // Quality names. const std::map<std::string, Quality::Level> Quality::names = { { "LOW_RE...
#include "SoyImage.h" #include "SoyStream.h" #include "SoyPng.h" #include "SoyFourcc.h" #define USE_STB #if defined(USE_STB) //#define STBI_FAILURE_USERMSG // friendly messages (if not always accurate...) #define STB_IMAGE_IMPLEMENTATION #define STBI_NO_STDIO // all soy file access is abstracted so don't allow it...
/****************************************************************************** * Copyright (c) 2020, Intel Corporation. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception. * *****************************************************************************/ #include "systemc.h" #include "sc...
#include<iostream> #include<cmath> #include<ctime> #include<cstdlib> #include"tensor.cpp" #include"ConvLayer.cpp" #include"PoolLayer.cpp" #include"FlattenLayer.cpp" #include"MLP.cpp" #include"ActiLayer.cpp" #include"LossLayer.cpp" #include"Optimizer.cpp" #include"NormLayer.cpp" using namespace std; clas...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/browser_list.h" #include "base/logging.h" #include "base/message_loop.h" #include "base/metrics/histogram.h" #include "bu...
// Copyright 2017 <NAME>. All rights reserved. #include <GL/gl.h> #include <DM/DM_GeoDetail.h> #include <DM/DM_RenderTable.h> #include <DM/DM_SceneHook.h> #include <DM/DM_VPortAgent.h> #include <GR/GR_Primitive.h> #include <RE/RE_Render.h> #include <SOP/SOP_Node.h> #include <UT/UT_Map.h> #include <pxr/imaging/glf/d...
/** * @file * Unless noted otherwise, the portions of Isis written by the USGS are public * domain. See individual third-party library and package descriptions for * intellectual property information,user agreements, and related information. * * Although Isis has been used by the USGS, no warranty, expres...
// // Created by XRW's notebook on 2020/6/13. // #include "render.hpp" void Render::render(int type) { // renderer using jittered sampling to anti-aliasing int w = parser->getCamera()->getWidth(); int h = parser->getCamera()->getHeight(); pixels.resize(w); for (int i = 0; i < w; i++)p...
/**************************************** Daggorath PC-Port Version 0.2.1 <NAME> November 13, 2002 The copyright for Dungeons of Daggorath is held by <NAME>. (c) 1982, DynaMicro *****************************************/ // Dungeons of Daggorath // PC-Port // Filename: dungeon.cpp // // Implementation o...
/*************************************************************************/ /* */ /* FILE : OBJFUNC.CC */ /* AUTHOR : <NAME> */ /* DATE ...
//===-- MulleObjCRuntime.cpp -------------------------------------*- C++ //-*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------...
// [hdr wfs status] = load_mcords_hdr(fn, param); // // Loads MCORDS 2009 Antarctica DC-8 headers. // - The function reads one file at a time // - It returns enough information through the status structure so that // multiple files can // easily be concatenated (see create_records_mcords.m for example) // /...
/* Copyright 2017 Columbia University, SLD Group */ // // execute.cpp - <NAME> // Implementation of the execute stage // #include "execute.hpp" u_div_res_t execute::udiv_func(sc_uint<XLEN> num, sc_uint<XLEN> den) { sc_uint<XLEN> rem; sc_uint<XLEN> quotient; u_div_res_t u_div_res; rem = 0; quotient = 0; DIVIDE...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
#include "RMF01.h" namespace RMF01 { uint8_t Data; uint16_t Status; } // // Initialises the RMF01 device using custom settings. // void RMF01::Init ( BAND Band, BANDWIDTH Bandwidth, uint16_t Frequency, uint8_t Baud, LNA_GAIN Gain, SIGNAL_THRESHOLD Threshold, SIGNAL_DEVATION Devation, AFC FrequencyControl,...
/* Things to do for V2: - Better interface design. It's way too simplistic, take (some) notes from talos. - Seed: [ ] (Randomize) ?? Challenge - [] Prevent speedrun snipes // Shadows, Swamp, Town, Quarry stairs - [] Speed up various autoscrollers // Swamp platforms, Desert/Mountain elevators, Desert r...
// mc_sequence_data.hpp /////////////////////////////////////////////////////////////////////////////// //==================================================================================== // // ** PRESETS ** // // There are 7 presets that can be chosen from the menu. Each preset has different // music and graphics...
#include "Globals.h" #include "Application.h" #include "ModuleSceneIntro.h" #include "Primitive.h" #include "PhysBody3D.h" #include "PhysVehicle3D.h" #include "Obstacle.h" #include "ModulePlayer.h" ModuleSceneIntro::ModuleSceneIntro(Application* app, bool start_enabled) : Module(app, start_enabled) { } ModuleSceneInt...
#include "DRsimMaterials.hh" #include "G4SystemOfUnits.hh" #include <stdio.h> #include <algorithm> #include <cmath> DRsimMaterials* DRsimMaterials::fInstance = 0; DRsimMaterials::DRsimMaterials() { fNistMan = G4NistManager::Instance(); CreateMaterials(); } DRsimMaterials::~DRsimMaterials() {} DRsimMaterials* D...
// -*- C++ -*- // Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License as // published by the Free Software Foundation; either version 2, or (at // your option) any later version. ...
#include "Sequence.h" #include <iomanip> #include <string> #include <fstream> #include <sys/time.h> #include <cmath> #include <vector> #define SPACE 12 // Amount of padding space between numbers #define CELL_W 30 // Amount of padding space for furthermost values. // Selection Sort method for Sequence class void S...
/* * Copyright (c) 2018, EPCC, The University of Edinburgh * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * l...
#include <fstream> #include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include <ctime> #include "json.hpp" #include "helpers.h" using namespace std; // for convenience using json = nlohmann::json; // Checks if the SocketIO event has JSON...
/* * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * A nearest neighbor baseline for building placement predicition. */ #include "common.h" #include <common/autograd/utils.h> #include <c...
/* * Copyright (C) 2012-2014 Team KODI * http://kodi.tv * * This Program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * T...
#include "typedef.h" /* class CDisplay { HWND hWnd, hBnNew, //child-windown for new-button hBnSave, //child-windown for save-button hBnOpen, //child-windown for open-button hBnExit, //child-windown for exit-button hBnMvLeft, //child-win...
// -*- mode: c++; tab-width: 4; indent-tabs-mode: t; eval: (progn (c-set-style "stroustrup") (c-set-offset 'innamespace 0)); -*- // vi:set ts=4 sts=4 sw=4 noet : #include "test.hh" #include "union.hh" scalgoproto::Bytes forCopy(scalgoproto::Writer & w) { auto root = w.construct<Table3Out>(); auto v1 = root.addV1(...
/* * This source file is part of the osgOcean library * * Copyright (C) 2009 <NAME> * Copyright (C) 2009 The University of Hull, UK * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free Software * Foundation; eit...
// // main.cpp // voxel-edit/src // // Created by <NAME> on 05/03/13. // Copyright 2013 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include <VoxelTree.h> #include <SharedUtil.h> #include "...
/* * Copyright 2013-2014 BlackBerry Limited. * * 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 a...
/* * @Description: runtime lib of MC/DC coverage pass * @Author: Fishermanykx * @Date: 2021-04-12 21:52:34 * @LastEditors: Fishermanykx * @LastEditTime: 2021-06-25 11:14:33 */ #include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <set> #include <st...
/* dparallel_recursion: distributed parallel_recursion skeleton Copyright (C) 2015-2020 <NAME>, <NAME>, <NAME>. Universidade da Coruna 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:/...