text
stringlengths
5.71k
33.7k
//===-- llvm-exegesis.cpp ---------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
enum { T_ENTER_CA, T_EXIT_CA, T_SHOW_CURSOR, T_HIDE_CURSOR, T_CLEAR_SCREEN, T_SGR0, T_UNDERLINE, T_BOLD, T_BLINK, T_REVERSE, T_ENTER_KEYPAD, T_EXIT_KEYPAD, T_ENTER_MOUSE, T_EXIT_MOUSE, T_FUNCS_NUM, }; #define ENTER_MOUSE_SEQ "\x1b[?1000h\x1b[?1002h\x1b[?1015h\x1b[?1006h" #define EXIT_MOUSE_SEQ "\x1b[?10...
//===--- APIDiffMigratorPass.cpp ------------------------------------------===// // // 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...
//===- MLIRGen.cpp --------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
// Copyright (c) 2012 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/net/sqlite_server_bound_cert_store.h" #include <list> #include <set> #include "base/basictypes.h" #include "base/bind.h" #i...
// Copyright (c) 2012 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/internal_auth.h" #include <stddef.h> #include <stdint.h> #include <algorithm> #include <deque> #include <limits> #include ...
/* ttasim.cc - a pocl device driver for simulating TTA devices using TCE's ttasim Copyright (c) 2012 <NAME> / Tampere University of Technology 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 th...
/* * Copyright (c) 2011-2019, The DART development contributors * All rights reserved. * * The list of contributors can be found at: * https://github.com/dartsim/dart/blob/master/LICENSE * * This file is provided under the following "BSD-style" License: * Redistribution and use in source and binary forms, w...
/* * Copyright (c) 2015-2017, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the f...
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif // #include <cstdio> #include "FourthOrderMappedCFInterp.H" #include "BoxIte...
/*************************************************************************** file : berniw.cpp created : Mon Apr 17 13:51:00 CET 2000 copyright : (C) 2000-2002 by <NAME> email : <EMAIL> version : $Id: berniw.cpp,v 1.38.2.3 2012/02/...
#include "ctc.h" #include "logger.h" PrefixTree::Node::Node() : inTok (0), parent (NULL), length (0), nStates (0), outLen (0), extended (false) { } PrefixTree::Node::Node (const PrefixTree& tree, const Node* parent, InputToken inTok) : inTok (inTok), parent (parent), length (parent ? (parent->length...
#include <fstream> #include <mutex> #include <set> #include <cassert> #include <iostream> #include <ftk/external/cxxopts.hpp> #include <ftk/ndarray/synthetic.hh> #include <ftk/filters/levelset_tracker.hh> #include <ftk/filters/connected_component_tracker.hh> #include <ftk/ndarray.hh> #include <ftk/io/data_stream.hh> #i...
#include <Halide.h> #include <stdio.h> using namespace Halide; struct event { char func; int event_type; int type_code, bits, width, value_index; int num_int_args; int int_args[4]; float value[4]; }; event trace[1024]; int n_trace = 0; // Print an event in a human-readable way void print_eve...
// Copyright (c) 2010 <NAME> // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #includ...
#include <iostream> #include <fstream> #include <signal.h> #include <sys/resource.h> #include <sys/utsname.h> #include <cstdio> #include <cstring> #include <unistd.h> #include <string.h> #include <getopt.h> #include "bpforc.h" #include "bpftrace.h" #include "clang_parser.h" #include "codegen_llvm.h" #include "driver.h...
#include "pch.h" #include <ole2.h> #include "advpub.h" #include "sdsutils.h" #include "migrate.h" #include "utils.h" BOOL AppendString(LPSTR *lpBuffer, DWORD *lpdwSize, LPCSTR lpStr) { DWORD cbBufferUsed = 0; DWORD dwNewSize = 0; LPSTR lpTmp = NULL; DWORD dwLen = 0; // Sanity c...
// Copyright 2010-2017 Google // 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 wri...
/** * @file llpanellandmarkinfo.cpp * @brief Displays landmark info in Side Tray. * * $LicenseInfo:firstyear=2009&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of th...
/*!********************************************************************************************************************* \File MatrixMultiplication.cpp \Title Headless Vulkan Compute Matrix Multiply \Author PowerVR by Imagination, Developer Technology Team. \Copyright Copyright(c) Imagination Technologies Limite...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <time.h> #include <mpi.h> #include <omp.h> #include "malloc2D.h" #include "timer.h" #define SWAP_PTR(xnew,xold,xtmp) (xtmp=xnew, xnew=xold, xold=xtmp) void parse_input_args(int argc, char **argv, int &jmax, int &imax, int &nprocy, int &nprocx, int &n...
// Copyright 2016 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "core/fxge/android/cfpf_skiafontmgr.h" #include <algorithm> #include...
#include "mempoolcomponent.h" #include "txmempool.h" #include "sbtccore/clientversion.h" #include "config/consensus.h" #include "config/argmanager.h" #include "chaincontrol/validation.h" #include "block/validation.h" #include "sbtccore/transaction/policy.h" #include "sbtccore/block/blockencodings.h" #include "wallet/fe...
// https://www.particleincell.com/2016/cuda-pic/ // https://www.particleincell.com/wp-content/uploads/2016/02/sheath-gpu.cu /* 1D sheath PIC simulation with SYCL */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include "common.h" /*constants*/ #define EPS_0 8.85418...
#include <stdio.h> #include "AHV_Model.h" // Model's header file extern "C" { #include "log.h" } static AH_Model_v1ModelClass AHV_Model_Obj; // Instance of model class double turn[6] = {1, 1, -1, 1, 1, 1}; double V1_Fairlead_pos[3] = {-60, 0, 0}; //���¿�λ�� double V2_Fairlead_pos[3] = {-60, 0, 0}; ...
/* Copyright (c) 2019 - 2020 Advanced Micro Devices, Inc. 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 to use, ...
/* AUTHOR <NAME> (<EMAIL>) */ #include <iostream> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/eventfd.h> #include <sys/epoll.h> #include <arpa/inet.h> #include <fcntl.h> #include <thread> #include <atomic> #include <mutex> #include <condition_variable> #include <chrono> #include ...
// MFEM modified from Example 10 and 16 // // Compile with: make imAMRMHDp // // Sample runs: // // Description: this function will only support amr and implicit solvers // Author: QT #include "mfem.hpp" #include "myCoefficient.hpp" #include "BoundaryGradIntegrator.hpp" #include "imResi...
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include <cstddef> #include <string> #include <tuple> #include "DataStructures/DataBox/DataBox.hpp" #include "DataStructures/DataBox/DataBoxTag.hpp" #include "DataStructures/DataBox/PrefixHelpers.hpp" #include "DataStructures/DataBox/...
#include "../pch.h" #include "Car.h" #include "Vector.h" #include "Road.h" struct angle { double start; double end; }; static struct { double pi = 3.14f; double infinity = 1000000000000000.0f; double epsilon = 0.0000000000000000001f; angle lightViewAngle = {0.0f, pi / 2.0f + 0.2}; unsign...
/*************************************************************************** vidhrdw.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "driver.h" #include "vidhrdw/generic.h" #define MAX_STARS 250 #define STARS_COLO...
/* * Copyright (C) 1999-2001 <NAME> 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 to use, cop...
#pragma once #include <vector> #include <cmath> #include <functional> namespace gengeo { typedef unsigned int uint; constexpr inline float abs(float a) { return a < 0 ? -a : a; } constexpr inline float min(float a, float b) { return a < b ? a : b; } constexpr inline float max(float a, float b) { return a > b ? a : b...
/**************************************************************************** Copyright (c) 2013, <NAME>, <NAME>, <NAME> All rights reserved. The Software is available for download and use subject to the terms and conditions of this License. Access or use of the Software constitutes acceptance and agreement to the ter...
/******************************************************************************* * benchmark/bench_time.cpp * * Copyright (C) 2019 <NAME> <<EMAIL>> * Copyright (C) 2019 <NAME> <<EMAIL>> * * All rights reserved. Published under the BSD-2 license in the LICENSE file. ***********************************************...
// Copyright (c) The HLSL2GLSLFork Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE.txt file. #include "SymbolTable.h" #include "ParseHelper.h" TString* TParameter::NullSemantic = 0; bool TSymbolTableLevel::insert(TSymbol& symbol...
#include "video_server.h" VideoServer::VideoServer() { using namespace std; using websocketpp::lib::bind; using websocketpp::lib::placeholders::_1; using websocketpp::lib::placeholders::_2; m_server.init_asio(); m_server.set_open_handler(bind(&VideoServer::on_open, this, _1)); m_server.set_close_handle...
#ifdef _MSC_VER #define _SCL_SECURE_NO_WARNINGS #define ELFIO_NO_INTTYPES #endif #include <boost/test/unit_test.hpp> #include <boost/test/output_test_stream.hpp> using boost::test_tools::output_test_stream; #include <elfio/elfio.hpp> using namespace ELFIO; bool write_obj_i386( bool is64bit ) { elfio writer; ...
/***************************************************************** * * This file is part of the GMAPPING project * * GMAPPING Copyright (c) 2004 <NAME>, * <NAME>, and <NAME> * * This software is licensed under the 3-Clause BSD License * and is copyrighted by <NAME>, <NAME>, * and <NAME>. * * Further infor...
/** * @file * @date 2017/7/8 */ #include <gtest/gtest.h> #include <Moe.Core/Optional.hpp> using namespace std; using namespace moe; enum State { sDefaultConstructed, sValueCopyConstructed, sValueMoveConstructed, sCopyConstructed, sMoveConstructed, sMoveAssigned, sCopyAssigned, sVal...
/* Copyright (c) 2006-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: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following dis...
// graph-tool -- a general graph modification and manipulation thingy // // Copyright (C) 2006-2015 <NAME> <<EMAIL>> // // 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 3 // of ...
#include "SimG4Core/CustomPhysics/interface/CustomParticleFactory.h" #include "SimG4Core/CustomPhysics/interface/CustomPDGParser.h" #include "SimG4Core/CustomPhysics/interface/CustomParticle.h" #include "FWCore/ParameterSet/interface/FileInPath.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "G4...
/** * @file Retina_.cpp * @brief mex interface for cv::bioinspired::Retina * @ingroup bioinspired * @author Amro * @date 2016 */ #include "mexopencv.hpp" #include "opencv2/bioinspired.hpp" using namespace std; using namespace cv; using namespace cv::bioinspired; // Persistent objects namespace { /// Last object ...
#include "HandlerBass.h" #include "DecoderBass.h" #include "Settings.h" #include "Utility.h" #include "vcedit.h" #include <list> #include <sstream> std::set<std::wstring> HandlerBass::s_SupportedFileExtensions( { L"mod", L"s3m", L"xm", L"it", L"mtm", L"mo3", L"umx", L"mp2", L"mp3", L"ogg", L"wav", L"mp4", L"m4a", L...
//----------------------------------------------------------------------------- // Copyright 2012 <NAME> // Author: mmorise [at] yamanashi.ac.jp (<NAME>) // Last update: 2018/12/13 // // Voice synthesis based on f0, spectrogram and aperiodicity. // forward_real_fft, inverse_real_fft and minimum_phase are used to speed ...
#include "motor.hpp" #include "axis.hpp" #include "low_level.h" #include "odrive_main.h" #include <algorithm> Motor::Motor(TIM_HandleTypeDef* timer, uint16_t control_deadline, float shunt_conductance, TGateDriver& gate_driver, TOpAmp& opamp, OnboardThe...
/* 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 limitation the rights to use, copy, modify, merge, publish, distribute,...
#include <algorithm> #include "VDSRoundRobin.h" #include "check_macros.h" VDSRoundRobin::VDSRoundRobin(hid_t vds_location, const char * vds_dset_name, std::vector<std::string> src_filenames, std::vector<std::string> src_dset_paths)...
// Loadout.cpp // // Deals with campaign and sim loadout information #include <stdio.h> #include <conio.h> #include <stddef.h> #include <fcntl.h> #include <io.h> #include <stdlib.h> #include <limits.h> #include "falclib.h" #include "CmpClass.h" #include "vutypes.h" #include "camplib.h" #include "campweap.h" #include ...
//============================================================================= // // Adventure Game Studio (AGS) // // Copyright (C) 1999-2011 <NAME> and 2011-20xx others // The full list of copyright holders can be found in the Copyright.txt // file, which is part of this source code distribution. // // The AGS sourc...
/******************************************************************************\ * Technische Universitaet Darmstadt, Institut fuer Nachrichtentechnik * Copyright (c) 2001 * * Author(s): * <NAME> * * Description: * Audio source encoder/decoder * ******************************************************...
#pragma once #include <math.h> #include "Parameter.h" #include "FSConfig.h" #include <iostream> #include <gsl/gsl_math.h> #include <gsl/gsl_interp2d.h> #include <gsl/gsl_spline2d.h> #include <gsl/gsl_errno.h> #ifdef _OPENACC #include <accelmath.h> #endif float getX(int is, parameters params) { int DIM_X = params.D...
//LIC// ==================================================================== //LIC// This file forms part of oomph-lib, the object-oriented, //LIC// multi-physics finite-element library, available //LIC// at http://www.oomph-lib.org. //LIC// //LIC// Copyright (C) 2006-2021 <NAME> and <NAME> //LIC// //LIC// This lib...
#include "host/ocl.h" #include <stdio.h> #include <iostream> #include <vector> bool init = false; struct smemOclCtx ctx; // Checks OpenCL error codes void check(cl_int err_code) { if (err_code != CL_SUCCESS) { printf("ERROR: %d\n", err_code); exit(EXIT_FAILURE); } } // An event callback func...
// Copyright (C) 2021 <NAME>, <NAME> // SPDX-License-Identifier: MIT #pragma once #include <bit> #include <cfloat> #include <cmath> #include <dolfinx/common/log.h> #include <dolfinx/graph/AdjacencyList.h> #include <dolfinx/mesh/Mesh.h> #include <dolfinx/mesh/cell_types.h> #include <dolfinx/mesh/generation.h> #incl...
// user include files #include "DQMServices/Core/interface/DQMEDAnalyzer.h" #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/one/EDAnalyzer.h" #include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/Ma...
/********************* */ /*! \file first_order_model.cpp ** \verbatim ** Original author: ajreynol ** Major contributors: mdeters ** Minor contributors (to current version): none ** This file is part of the CVC4 prototype. ** Copyright (c) 2009-2012 New Yor...
/* * Copyright 2016-2018 FlexRAN Authors, Eurecom and The University of Edinburgh * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * U...
/* * Sender.cpp * */ #include "Sender.h" #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <time.h> #include <fstream> using namespace std; #define error(s) { cerr<<"Error: "<<(s); exit(1); } #define kSendDefaultTimeOut 200 #define kSendDefaultMss 4800 // 4 packets #define kSend...
// // Created by Parnet on 10.12.2018. // #include "NeuralNet.h" #include <iostream> #include <random> #include <cassert> #include <fstream> #include "LinearAlgebra/Factory.h" #define debug(n) std::cout << #n << ": " << n << std::endl << std::flush #define debugv(n) std::cout << #n << ": " << (n.size()) <...
/* ------------------------------------------------------------------------- * * gtm_standby.c * Functionalities of GTM Standby * * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 2010-2012 Post...
// MIT License // // Copyright (c) 2020 <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, merg...
/* * Copyright (c) 2015, 2016, 2017, 2018, 2019, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this ...
#include "application.h" #include "data_blob.h" /* typedef struct results_data { uint32_t rpeaks; uint32_t normal; uint32_t abnormal; } result_data; typedef struct signal_data { uint32_t size; char* data; struct signal_data* next; } sig_data; typedef struct offloading_data { uint32_t rpeaks; ...
/* * $Id: rateconv.cc,v 1.4 2004/09/29 08:24:16 robert Exp $ * * RATECONV.C * * Convert sampling rate stdin to stdout * * Copyright (c) 1992, 1995 by <NAME> * ***************************************************************************** * MODIFIED BY <NAME> (<EMAIL>) * Make it compilable under...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2012-2014 <NAME>, Amsterdam, the Netherlands. // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) ...
#include "render.h" #include "intersection.h" #include "util.h" #include "sampler.h" #include "disney.h" //#include "lambert.h" #define kBsdfSamples 1.0f #define kProbeSamples 1.0f #define kRayEpsilon 0.0001f #define USE_LIGHT_SAMPLING 1 #define USE_SCENE_BVH 1 // trace a ray against the scene returning the closest...
/* Movie_plugin.cpp * Movie Converter * 2013-13-10 : by <NAME> */ #include "v3d_message.h" #include <vector> #include "movieConverter_plugin.h" #include <boost/lexical_cast.hpp> #include <iostream> using namespace std; Q_EXPORT_PLUGIN2(movie_format_convert, MovieConverter); controlPanel* controlPanel::m_pLookPan...
#include <iostream> #include <list> #include <vector> #include <set> #include <stack> #include <queue> class EpsilonNka { // definisanje po postavci zadatka std::vector<std::list<std::pair<int, char>>*> delta; std::set<char> alfabet; int pocetnoStanje, finalnoStanje; // definisanje steka za citan...
/* GUIDE KOLLAR | ELLER Sol Sag | Sol Sag Q (yukari) E (yukari) | W (yukari) R (yukari) A D | S F BACAKLAR | AYAKLAR Sol Sag | Sol Sag Z (yukari) C (yukari) | G (yukari) B (yukari) X K | H N YATAY DONUS | DIKEY DONUS | CAPRAZ DONUS Sol Sag | Yukari Asagi | Saa...
#define KDTREE_DEFINE_OSTREAM_OPERATORS // Make SURE all our asserts() are checked #undef NDEBUG #include <kdtree++/kdtree.hpp> #include <deque> #include <iostream> #include <vector> #include <limits> #include <functional> #include <set> // used to ensure all triplets that are accessed via the operator<< are initia...
// Copyright 2019-20 <NAME> // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // ...
/** * Copyright (c) 2013, <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: * * * Redistributions of source code must retain the above copyright notice, this * list of conditions a...
#include "vargraph.h" #include <boost/format.hpp> void vargraph::edge_t::flatten() { paired = 0; unpaired = 0; for(const auto& kvp : coverage) { for(const auto& kvp2 : kvp.second) { if (kvp2.second) { paired++; } else { unpaired++; } } } } vargraph::read_aln_t vargra...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrCCPRCubicProcessor.h" #include "glsl/GrGLSLFragmentShaderBuilder.h" #include "glsl/GrGLSLGeometryShaderBuilder.h" #include "glsl/GrGLSLVertexShaderBuilder.h" voi...
/********************************************************************** - TCLODBC COPYRIGHT NOTICE - This software is copyrighted by <NAME>, contact address by email at <EMAIL>. The following terms apply to all files associated with the software unless explicitly disclaimed in individual files. T...
/** * @file * @brief Implementation of module AlignmentTrackChi2 * * @copyright Copyright (c) 2017-2022 CERN and the Corryvreckan authors. * This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md". * In applying this license, CERN does not waive the privileges and...
#include "spf.h" SPF::SPF(model_settings* model_set, Data* dataset) { settings = model_set; data = dataset; // user influence printf("\tinitializing user influence (tau)\n"); tau = sp_fmat(data->user_count(), data->user_count()); logtau = sp_fmat(data->user_count(), data->user_count()); a_...
// Copyright 2015 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. // This file provides a thin binary wrapper around the BattOr Agent // library. This binary wrapper provides a means for non-C++ tracing // controllers, s...
#include "Application.h" #include "ModuleRender.h" #include "ModuleCamera.h" #include "ModuleScene.h" #include "ModuleProgram.h" #include "ModuleEditor.h" #include "ModuleWindow.h" #include "ModuleResourceManager.h" #include "GameObject.h" #include "ComponentCamera.h" #include "Skybox.h" #include "Viewport.h" #includ...
/************************************************ Copyright (c) 2018, Systems Group, ETH Zurich. 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 c...
/** clientprog.cpp -- This is the program used by the USER to request a page */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <netdb.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/socket.h> #include <arpa/inet.h> #include <sys/wait.h> #inclu...
// ----------------------------------------------------------------------- // // Copyright (C) 2020 - <NAME> // // This file is part of the MEPLS software. You can use it, redistribute // it, and/or modify it under the terms of the Creative Commons Attribution // 4.0 International Public License. The full text of the ...
#include <map> #include <vector> #include <string> #include <string.h> #include <stdlib.h> #include <math.h> #include <png.h> #include <zlib.h> #include <iostream> typedef std::pair<const std::vector<unsigned char>*,unsigned int> stringcursor; struct image{ unsigned int x; unsigned int y; unsigned int *p; ima...
/* * Copyright 2020 California Institute of Technology (“Caltech”) * * 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 r...
#include <memory> #include <mutex> #include <string> #include <GL/glew.h> #include <GL/wgl.h> #include <GL/wglext.h> #include <GL/gl.h> #include "json/json.h" using JSON = nlohmann::json; #include "common/CommonResources.h" #include "common/Graphics.h" #include "common/Utils.h" #include "gameplay/PlayScreenZone.h" ...
#include<fstream> #include<stdio.h> #include<string> #include<FCSIO.hpp> #include<tclap/CmdLine.h> #include<common.hpp> #include<gmm.hpp> #include<qNorm.hpp> #include<omp.h> void show_help (); void process_lxb_file(std::string inputFile,vector<float> *values,int nBins,bool logTransform); void process_binary_file(std::...
/////////////////////////////////////////////////////////////////////////////// // SOFTWARE COPYRIGHT NOTICE AGREEMENT // // This software and its documentation are copyright (2014) by the // // Broad Institute. All rights are reserved. This software is supplied // ...
//--------------------------------------------------------------------------- #pragma hdrstop #include "curves_class.h" #include<stdlib.h> #include<string> #include <iostream> #include <XMLDoc.hpp> #include <XMLIntf.hpp> #include <ComObj.hpp> #include <xmldoc.hpp> #include <msxmldom.hpp> using na...
/* Copyright (c) 2018, The Cinder Project This code is intended to be used with the Cinder C++ library, http://libcinder.org Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the ...
/// MIT License /// /// Copyright (c) 2020 <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, mo...
/* fast inverse IDCT algorithm * / /* There is a small PSNR loss using this fast algorithm */ #define len 14 typedef int DCTELEM; #define DCTsize 8 #define DCTSIZE 8 #define DCTsize2 64 #define CONST_BITS 8 #define FIX_0_382683433 ((__int32) 98) // FIX(0.382683433) #define FIX_0_541196100 ((__int32) 139) // FIX...
/* * 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 "compiler.hpp" #include "bytecode_builder.hpp" #include "debug.hpp" #include "memory.hpp" #include "operation_type.hpp" #include "stack_util.hpp" #include "string_util.hpp" #include "tokenizer.hpp" #include "util.hpp" #include <cstring> #include <deque> #include <memory> #include <stack> #include <stdexcept> ...
#include "SimulationsOMP_pcp.h" #include <fstream> #include "ParallelForTask.hpp" #include "ParallelReduceTask.hpp" #include "Step_T3D_CHM_TBB.h" #ifdef _DEBUG static std::fstream res_file_t3d_me_tbb; #endif Step_T3D_CHM_TBB::Step_T3D_CHM_TBB(const char* _name) : Step_TBB(_name, "Step_T3D_CHM_TBB", &substep_func_T...
/* SPDX-License-Identifier: Apache-2.0 */ /* * Copyright 2021 XIA LLC, 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/LICE...
//------------------------------------------------------------------------------ // <copyright file="ImageRenderer.cpp" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //------------------------------------------------------------------------------ #include ...
#include "muliple_yslim.h" #include <assert.h> #include <stdlib.h> #define eps (1e-3) #define Bound_Constraint 1e14 #include <time.h> YSlim::YSlim() { vertices.clear(); faces.clear(); quadrics.clear(); pack_vertex_time_ = 0; decimate_time_ = 0; vert_cnt_ = -1; while(!errors.empty()) errors.pop(); } YSlim...
/* Created by <NAME> at Red Paper Heart Copyright (c) 2015, Red Paper Heart All rights reserved. This code is designed for use with the Cinder C++ library, http://libcinder.org To contact Red Paper Heart, email <EMAIL> or tweet @redpaperhearts Redistribution and use in source and binary forms, with or wit...