text
stringlengths
3.08k
22k
#include <parrlib/Matrix3f.h> #include <iostream> #include <parrlib/stringutils.h> #include <parrlib/constants.h> Matrix3f::Matrix3f() {} Matrix3f::Matrix3f(float m[3][3]) { } Matrix3f::Matrix3f(float f) { for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { this->m[i][j] = 0.f; } } m[0][0] = f; ...
//------------------------------------------------------------------------------ // exampleapp.cc // (C) 2015-2018 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "config.h" #include "exampleapp.h" #include <iostream> #include "core/app...
/************************************************************************* * * SCSC CONFIDENTIAL * __________________ * * Copyright (c) [2009] - [2012] * SubCarrier System Corp. (SCSC) * All Rights Reserved. * * NOTICE: All information contained herein is, and remains, * the property of SubCarrier System Cor...
/* ; Project: Open Vehicle Monitor System ; Date: 11th September 2020 ; ; Changes: ; 1.0 Initial release ; ; (C) 2011 <NAME> / Stegen Electronics ; (C) 2011-2017 <NAME> ; (C) 2011 <NAME> @ EPRO/DX ; (C) 2020 <NAME> ; ; Permission is hereby granted, ...
#include <algorithm> #include <bitset> #include <chrono> #include <cmath> #include <fstream> #include <iostream> #include <string> #include <thread> #include <vector> #include "ppm_image.hpp" #include "eve_crest.h" const int width = 2000; //const int height = 2000; using namespace std::chrono_literals; struct Point...
#include "ConstraintMultibody.hpp" #include <cmath> #include "../ExampleBrowser/ID_test/BulletUtil.h" #include <iostream> /* @funciton: cConstraintMultibody @params: num_links Type int, the number of links in this chain @params: floating_base Type bool, enable floating base or not? @params: spherical_joint Type bo...
/** * Copyright 2020 Huawei Technologies Co., Ltd * * 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...
#include <stdexcept> #include <cstring> #include <random> #include <ctime> #include "Parsys.hpp" Particle::Particle(Parsys &s, float x, float y, float radius): Particle(x, y, radius) { mSys = &s; } Particle::Particle(float x, float y, float radius) { if (radius <= 0) throw invalid_argument("radius must be a pos...
#include "anim/blenderanimation.h" class BlenderAnimationPrivate { public: BlenderAnimationPrivate() : m_Factor(0.0f), m_Offset(0.0f), m_TransitionTime(0.0f), m_BeginDuration(0), m_EndDuration(0), m_LastTime(0) { } float mix(float va...
// // Created by wuhan on 2019-11-10. // #define LOG_TAG "JniConstants" #include "ALog-priv.h" #include "JniConstants.h" #include "ScopedLocalRef.h" #include <atomic> #include <mutex> #include <string> namespace { // Mutex protecting the initialization of cached class references. std::mutex g_class_refs_mutex; // ...
uint64_t line_up(int64_t a1, int64_t a2) { int64_t *parent; // rax int64_t parent_age_1; // ST30_8 int64_t parent_name_1; // ST38_8 int64_t *first_child; // rax int64_t *parent_3; // rcx int64_t first_child_name; // rdx int64_t *first_child_1; // rcx int64_t *parent_1; // rax int64_t...
#include "Map.h" #include <cstddef> #include <windows.h> #ifdef __APPLE__ #include <GLUT/glut.h> #else #include <GL/glut.h> #endif using namespace std; const char* const Map::DESCRIPTIONS[5] = {"Upgrade flagship", "Upgrade ship factory", "Construct fighter", "Construct bomber", "Construct kamikaze"}; // Some fields...
#include "CEGO/CEGO.hpp" #include <Eigen/Dense> #include <atomic> std::atomic_size_t Ncalls(0); using CEGO::EArray; auto linfit_coeffs(const EArray<double>& x, const EArray<double>& y, const std::size_t Nnum, const std::size_t Nden) { Eigen::MatrixXd A(x.size(), Nnum + Nden); Eigen::MatrixXd b = y; for (...
/* * Copyright 2015 Aerospike, Inc. * * Portions may be licensed to Aerospike, Inc. under one or more * contributor license agreements. * * 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 a...
/* * VGMTrans (c) 2002-2019 * Licensed under the zlib license, * refer to the included LICENSE.txt file */ #include "WD.h" #include "SquarePS2Format.h" #include "PSXSPU.h" #include <fmt/format.h> using namespace std; // ********** // WDInstrSet // ********** WDInstrSet::WDInstrSet(RawFile *file, uint32_t offset...
#include <stdio.h> #include <iostream> #include <vector> #include <map> #include "opcodes.h" #include "util.h" #include "bignum.h" Mapping mapping[] = { Mapping("STOP", 0x00, 0, 0), Mapping("ADD", 0x01, 2, 1), Mapping("MUL", 0x02, 2, 1), Mapping("SUB", 0x03, 2, 1), Mapping("DIV", 0x04, 2, 1), M...
//****************************************************************** // // Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except ...
/// @file /// @brief profiling singleton /// /// @details The profile package is used to accumulate statistics /// (e.g. to produce a pie chart to investigate where processing time goes) /// This is the main class used to rout the calls to the appropriate tree, ensure /// thread safety and dump statistics at the end. T...
#include "Script.hpp" #include "ReplayScript.hpp" #include "ScriptMenu.hpp" #include "Constants.hpp" #include "Compatibility.h" #include "Memory/VehicleExtensions.hpp" #include "Util/Logger.hpp" #include "Util/Paths.hpp" #include "Util/String.hpp" #include <inc/natives.h> #include <inc/main.h> #include <fmt/format.h...
#include "core.h" #include "wbcomprosacharacterconfig.h" #include "Components/wbcomppemap.h" #include "configmanager.h" #include "idatastream.h" #include "vector.h" #include "vector4.h" #include "hsv.h" #include "mathfunc.h" #include "mathcore.h" #include "rosagame.h" #include "rosacampaign.h" WBCompRosaCharacterConfi...
/* * @CopyRight: * FISCO-BCOS 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 the License, or * (at your option) any later version. * * FISCO-BCOS is distributed in the hope that it ...
#include "nullx/asio.hpp" #include "nullx/download.hpp" #include "nullx/log.hpp" #include "nullx/transcode.hpp" #include "nullx/upload.hpp" #include <thevoid/rapidjson/stringbuffer.h> #include <thevoid/rapidjson/prettywriter.h> #include <thevoid/rapidjson/document.h> #include <thevoid/server.hpp> #include <thevoid/st...
#include "HCD.h" #include "cmath" /** * Gaussian filter with sigma 1 * **/ template<typename P, typename W> P Gaussian_filter_1(W* window) { char i,j; ap_fixed<27, 17> sum = 0; P pixel =0; ap_fixed<12, 1> op[3][3] = { {0.0751136, 0.123841, 0.0751136}, {0.123841, 0.20418, 0.123841...
/******************************************************************** Parser class implementation By: <NAME> ********************************************************************/ //--- general header --- #include "stdafx.h" //--- Parser header --- //#define PARSERDLL_EXPORTS, in preprocessor definition #include "p...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter */ UKF::UKF() { initialized = false; std_a = 2; std_psi_dot2 = 0.3; std_px = 0.15; std_py = 0.15; std_rho = 0.3; ...
#include "TowerDefense.h" Nan::Persistent<v8::FunctionTemplate> TowerDefense::constructor; NAN_MODULE_INIT(TowerDefense::Init) { v8::Local<v8::FunctionTemplate> ctor = Nan::New<v8::FunctionTemplate>(TowerDefense::New); constructor.Reset(ctor); ctor->InstanceTemplate()->SetInternalFieldCount(1); ctor->SetClas...
#include "json.hpp" #include "apiworker.hpp" #include "workers.hpp" #include "HApi.hpp" #include "buffer.hpp" #include "framebuffer.hpp" #include "keyboard.hpp" #include "mouse.hpp" #include "settings.hpp" #include "filesystem.hpp" using json = nlohmann::json; ApiWorker::ApiWorker(HCore::HCore *core) : Threadable(...
#include <iostream> #include <fstream> #include <string> #include <functional> #include <vector> #include <string.h> #define MEM_SIZE 30000 #define RET_SIZE 100 #define BF_TOKENS "+-[]><.," template <typename T> class Maybe { private: T just; bool nothing = true; public: Maybe() {} ~Maybe() {} void ope...
/* * uart.cpp * * Created on: Aug 18, 2011 * Author: qwli */ #include <android/log.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <termios.h> #include <errno.h> #include <string.h> #include <android/log.h> #define LOG_TA...
#include "gst_camera_param.h" #include "gst_camera.h" #include <cstring> // memset #include <algorithm> #include "cudaMappedMemory.h" GstCamera::GstCamera(): width_{0}, height_{0}, depth_{0} { } GstCamera::GstCamera(GstCameraParam params): width_{0}, height_{0}, depth_{0} { Init(params); } GstCamera::~GstCamer...
#include "includes.h" GUI g_gui{};; Input g_input{};; void GUI::think() { m_open = false; // update keyboard input. g_input.update(); // run bound key callbacks. if (!m_forms.empty()) { bool done = false; for (const auto& f : m_forms) { if (!f || f->m_tabs.empty()) continue; for (const auto& ...
// // GB2ShapeCache-x.cpp // // Loads physics sprites created with http://www.PhysicsEditor.de // To be used with cocos2d-x // // Generic Shape Cache for box2d // // Created by <NAME> // // http://www.PhysicsEditor.de // http://texturepacker.com // http://www.code-and-web.de // // All rights re...
#include <vector> #include <v3d_interface.h> #include <QAxObject> #include "extractMean_gui.h" #include <QDebug> using namespace std; bool calculate_mean(V3DPluginCallback2 &callback, unsigned short * (& pdataMean), QFileInfoList imageList, V3DLONG rangeNum, int countChannel); void saveMean_grayValue(QWidget *parent, ...
#include "Globals.h" #include "Application.h" #include "ModulePlayer.h" #include "Primitive.h" #include "PhysVehicle3D.h" #include "PhysBody3D.h" ModulePlayer::ModulePlayer(Application* app, bool start_enabled) : Module(app, start_enabled), vehicle(NULL) { turn = acceleration = brake = 0.0f; } ModulePlayer::~ModuleP...
/*! * @copyright * Copyright (c) 2016-2017 Intel Corporation * * @copyright * 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 * * @copyright * http://www.apache.org/licenses/LICENSE-...
/**************************************************************************** * * Copyright (c) 2015 PX4 Development Team. 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. Redistri...
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2012-, Open Perception, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
// 音视频结合的播放器,第一个参数为输入,可以为RTMP直播流,默认为四川卫视直播 #include <stdio.h> #define __STDC_CONSTANT_MACROS extern "C" { #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> #include <libswscale/swscale.h> #include <libswresample/swresample.h> #include <libavutil/imgutils.h> #include <libavutil/opt.h> #include <SDL2/S...
/* CS204 Homework 2, Basic Word Processing with Linked Lists Written by <NAME> on 20 March 2022 Purpose: Storing text data from two txt files in linked lists and modifying them through user console inputs. Input Requirement: Two txt files containing a characters for each line which make up a single word and user cons...
// Copyright (C) 2021 <NAME> // Using to translate the camera reference system to the arbitray one. #include <iostream> #include <opencv2/opencv.hpp> #include <Eigen/Core> #include <dirent.h> #include <sys/types.h> #include <opencv2/opencv.hpp> #include <boost/foreach.hpp> #define foreach BOOST_FOREACH class Calib...
// Copyright (c) 2019 Graphcore Ltd. All rights reserved. #define BOOST_TEST_MODULE PruneMatches0SubgraphTest #include "blip.hpp" #include <algorithm> #include <boost/test/unit_test.hpp> #include <iostream> #include <memory> #include <vector> #include <popart/logging.hpp> #include <popart/subgraph/prunematches.hpp> u...
#include "story.hpp" #include "shared/serializer.hpp" #include <unordered_map> Genre GenreFromString( const std::string& str ) { std::unordered_map<std::string, Genre> map = { { "Adventure", Genre::ADVENTURE }, { "Angst", Genre::ANGST }, { "Crime", Genre::CRIME }, { "Drama", Ge...
/******************************************************************** ******************************************************************** ** ** libhungarian by <NAME>, 2004 ** ** ** Solving the Minimum Assignment Problem using the ** Hungarian Method. ** ** ** This file may be freely copied and dist...
#include "Noobhour.hpp" #include "dsp/digital.hpp" namespace rack_plugin_noobhour { template <int NUM_COLUMNS> struct Baseliner : Module { enum ParamIds { SIGNAL1ABS_PARAM, SIGNAL2ABS_PARAM, SIGNAL3ABS_PARAM, SIGNAL4ABS_PARAM, SIGNAL1_PARAM, SIGNAL2_PARAM, SIGNAL3_PARAM, SIGNAL4_PARAM, BASE1ABS_PARAM, ...
#include "MeiiModel.hpp" #include "Eqns.hpp" using Eigen::Matrix3d; using Eigen::Matrix4d; using Eigen::MatrixXd; using Eigen::Vector3d; using Eigen::Vector4d; using Eigen::VectorXd; using namespace mahi::util; inline double hardstop_torque(double q, double qd, double qmin, double qmax, double K, double B) { if ...
// Copyright (c) <NAME> // Licensed under the MIT License // ============================================================== // ORBITER VISUALISATION PROJECT (OVP) // D3D7 Client module // ============================================================== // ============================================================...
#include <stdio.h> #include <iostream> #include <string> #include <regex> #include <fstream> #include <vector> #include <map> #include <curl/curl.h> #include <jsoncpp/json/json.h> #include <iomanip> using namespace std; #define bufSize 1024 std::size_t callback( const char* in, std::size_t s...
#include "snake.h" #include <stdio.h> int main(){ srand(time(NULL)); Game game; return 0; } const bool PLAY_MANUAL = false; size_t FRAMES = 60; const size_t COLS = 30; const size_t ROWS = 20; size_t Block::size = 30; const size_t WIDTH = Block::size * COLS; const size_t HEIGHT = Block::size * ROWS; const...
// Introduction lab that covers: // * C++ // * SDL // * 2D graphics // * Plotting pixels // * Video memory // * Color representation // * Linear interpolation // * glm::vec3 and std::vector #include "SDLhelper.h" #include "TestModel.h" #include "utilities.h" struct Camera { glm::vec3 position = glm::vec3(0.0f, 0...
/* */ /* ---------------------------------------------------------------------- * Note: * The gen.h include file is generated by Express when the module is * compiled. It avoids including "user.h" or "express.h" directly, so * that the module may be moved across the processes by changing the V * proper...
/** * Copyright 2013 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 ...
//Fl_Scroll_Thin.cxx is identical to Fl_Scroll.cxx except we made //the scroll bar thinner by changing SLIDER_WIDTH from 16 to 8. //and we altered test for FL_DAMAGE_ALL in draw() to acoomodate //damage children on scroll problem in windows (see comments //in draw() // "$Id: Fl_Scroll_Thin.cxx,v 1.2 2003/10/26 1...
#include "imgui/imgui.h" #include <lua.hpp> #include <GL/glew.h> static GLuint g_program; static GLuint g_vbo; static GLuint g_ebo; static GLchar *_vs = "#version 410 core\n" "precision mediump float;\n" "layout (location = 0) in vec2 Position;\n" "layout (location = 1) in vec2 UV;\n" "layout (lo...
#include "audio_formats.h" #include "common/util/BinaryWriter.h" #include "third-party/fmt/core.h" /*! * Write a wave file from a vector of samples. */ void write_wave_file_mono(const std::vector<s16>& samples, s32 sample_rate, const std::string& name) { WaveFile...
/* * Copyright (c) 2012-2013 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the ...
#include "S3Common.h" #include "utils.h" #include <sstream> #include <cstring> #include <cstdlib> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <map> #include "gps3conf.h" using std::string; using std::stringstream; bool SignGETv2(HeaderContent *h, string path_with_query, ...
/* * Copyright 2019 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/core/SkBlendModePriv.h" #include "src/gpu/GrClip.h" #include "src/gpu/GrContextPriv.h" #include "src/gpu/GrProxyProvider.h" #include "src/gpu/GrRenderTargetContext...
/* * Pacman * Copyright (C) 2012 <NAME> <http://pertiller.me> * Basic set up 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 ...
// // Copyright (c) 2008-2020 the Urho3D project. // // 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, m...
// ========================================================================== // // File : main.cpp // Part of : C++ Glow, Lightweight WS2812B LED strip library // Author : <NAME> // Github : https://github.com/BIGduzy/glow // Copyright : <EMAIL> 2017 // // Distributed under the Boost Software License, Ver...
// Copyright 2019 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// CEF-Demos // Copyright (c) 2019 <NAME> // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // http://opensource.org/licenses/MIT // #include <include/cef_app.h> #include <include/cef_client.h> #include <include/wrapper/cef_message_router.h> #include <include/wrapper/cef_r...
#include "TROOT.h" #include "TPDF.h" #include "TPaveStats.h" #include "common.hpp" #include "cli.hpp" #include "init_ds.hpp" #include "consts.hpp" #include "csalg.hpp" #include "drawing.hpp" #include "scattyield.hpp" #include "protonede.hpp" #include "treewalk.hpp" #include "cuts_conf.hpp" #include "rootscript.hpp" ...
/* * func_instr.cpp - instruction parser for mips * @author <NAME> <EMAIL> * Copyright 2015 MIPT-MIPS */ #include <cstdlib> #include <cstdio> #include <iostream> #include <sstream> #include <iomanip> #include <func_instr.h> const FuncInstr::ISAEntry FuncInstr::isaTable[] = { // name funct format op...
// -*-Mode: C++;-*- // * BeginRiceCopyright ***************************************************** // // $HeadURL$ // $Id$ // // -------------------------------------------------------------------------- // Part of HPCToolkit (hpctoolkit.org) // // Information about sources of support for research and development of //...
#include <cstdio> #include <cstdlib> #include <cmath> #include <algorithm> #include <string> #include <iostream> #include <queue> #include <tuple> #include "read_raw.h" #define N 256 using namespace std; Array2d<int> pixelStacker(Array2d<int> F); // Usage: ./problem1a [infile] [outfile] int main (int argc, char *a...
// Copyright (c) 2011, Google Inc. // 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 conditi...
#include "TSpace.hpp" #include "elementary.h" #include "vvhdf.h" #include <cstdio> #include <cstdlib> #include <cstring> #include <unistd.h> #include <getopt.h> #include <vector> #include <string> using std::shared_ptr; struct dataset_t { size_t cols; size_t rows; const char* label; std::vector<doub...
///////////////////////////////////////////////// // Web-Server-Socket-Event void TWebSrvSockEvent::OnRead(const int& SockId, const PSIn& SIn){ WebSrv->OnRead(SockId, SIn);} void TWebSrvSockEvent::OnWrite(const int& SockId){ WebSrv->OnWrite(SockId);} void TWebSrvSockEvent::OnOob(const int& SockId){ WebSrv->OnOob(...
// This code is in the public domain -- <EMAIL> #include "nvmesh.h" // pch #include "Util.h" #include "nvmesh/halfedge/Mesh.h" #include "nvmesh/halfedge/Face.h" #include "nvmesh/halfedge/Vertex.h" #include "nvmath/Vector.inl" #include "nvcore/Array.inl" using namespace nv; // Determine if the g...
// Copyright 2019 <NAME> /* Node MCU/ESP8266 Sketch to emulate Teco */ #include "ir_Teco.h" #include <algorithm> #include "IRremoteESP8266.h" #include "IRutils.h" #ifndef ARDUINO #include <string> #endif // Constants // using SPACE modulation. const uint16_t kTecoHdrMark = 9000; const uint16_t kTecoHdrSpace = 4440; c...
/* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with cer...
/** * @file sidechain~.cpp * @author <NAME> * @date 07/06/2018 * @brief a sidechain to be used in dynamic range compression systems * * @copyright * Copyright (C) 2018 by <NAME>. * All rights reserved. * * License (BSD 3-clause) * * Redistribution and use in source and binary forms, with or without * modif...
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: #ident "$Id$" /*====== This file is part of PerconaFT. Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved. PerconaFT is free software: you can redistribute it and/or modif...
/** Copyright 2019 JasmineGraph Team 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 writing, software...
//===----------------- lib/Jit/options.cpp ----------------------*- C++ -*-===// // // LLILC // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // See LICENSE file in the project root for full license information. // //===--------------------------------------------------------------...
// file : tests/timestamp/driver.cxx -*- C++ -*- // license : MIT; see accompanying LICENSE file #include <time.h> // tzset() (POSIX), _tzset() (Windows) #include <chrono> #include <locale> #include <clocale> #include <sstream> #include <iomanip> #include <system_error> #include <libbutl/timestamp.hxx> #unde...
/* $Id: WinKeyboard.cpp $ */ /** @file * VBox Qt GUI - Windows keyboard handling.. */ /* * Copyright (C) 2014-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modify ...
/* ************************************************************************ * Copyright (C) 2016-2022 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 * ...
//////////////////////////////////////////////////////////////////////////////// // // Copyright 2016 - 2020, <NAME>, <NAME>, <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 wit...
// 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. // Windows Timer Primer // // A good article: http://www.ddj.com/windows/184416651 // A good mozilla bug: http://bugzilla.mozilla.org/show_bug.cgi?...
#pragma once #include <cstdint> #include <cassert> #include <iostream> #include <memory> #include <unordered_set> #include <vector> #include "ast.hpp" #include "symbol.hpp" using ast::Ptr; using ast::WeakPtr; struct Binding; struct Kind { Ptr<Kind> from; Ptr<Kind> to; //static Ptr<Kind> k0(); ...
/* * (C) Copyright 1996-2016 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an in...
#include <cmath> #include "Graphics/Text.hpp" #include "SFML/Graphics/Text.hpp" #include "SFML/Graphics/RenderTarget.hpp" #include "../System/_Util.hpp" namespace { // Add a glyph quad to the vertex array void addGlyphQuad(sf::VertexArray &vertices, sf::Vector2f position, const sf::...
/* * OpenGL Spectrum Analyzer for Audacious * Copyright 2013 <NAME>, <NAME>, and <NAME> * * Based on the XMMS plugin: * Copyright 1998-2000 <NAME>, <NAME>, <NAME>, <NAME>, and * 4Front Technologies * * This program is free software; you can redistribute it and/or modify it under * the terms...
#include "Globals.h" #include "Application.h" #include "ModuleRender.h" #include "ModuleWindow.h" #include "ModuleProgram.h" #include "ModuleUI.h" #include "SDL.h" ModuleRender::ModuleRender() { } ModuleRender::~ModuleRender() { } bool ModuleRender::Init() { App->ui->my_log.AddLog("Init Render Module\n"); SDL_G...
/*========================================================================= Program: Visualization Toolkit Module: TestRandomPContingencyStatisticsMPI.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed...
/*************************************************************************** Video Hardware description for Taito Gladiator ***************************************************************************/ #include "driver.h" #include "vidhrdw/generic.h" static int video_attributes; static int base_scroll; static int b...
/** * @file lltransfersourceasset.cpp * @brief Transfer system for sending an asset. * * $LicenseInfo:firstyear=2006&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 o...
// inverse.cpp: example program comparing float vs posit using Gauss-Jordan algorithm // // Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. // // This file is part of the HPRBLAS project, which is released under an MIT Open Source license. #ifdef _MSC_VER #pragma warning(disable : 4514) // unreferenced inline...
//#define NDEBUG //if (argc > 1) #define NOSTDERR #include <cassert> #include <cstdio> #include <cstring> #include <map> #define KMAX 100 #define NMAX 10000 #define LT 1 #define GT 0 #define NIL -1 //***********// // ALGORITHM // //***********// int cmp(int i, int j); static struct Node { int key; int fa...
/****************************************************************************** Micro-OLED-Shield-Example.ino SparkFun Micro OLED Library Hello World Example <NAME> @ SparkFun Electronics Original Creation Date: June 22, 2015 This sketch prints a friendly, recognizable logo on the OLED Shield, then goes on...
//-------------------------------------------------------------------------- // File and Version Information: // $Id: MsgLoggerImpl.cc 518 2010-01-15 08:25:10Z stroili $ // // Description: // Class MsgLoggerImpl // // Environment: // Software developed for the BaBar Detector at the SLAC B-Factory. // // Author List: /...
/* Authors: <NAME>, <NAME> Copyright: Copyright (c) 2020 Microsoft Research 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...
/* Adaptive Radix Tree <NAME>, 2012 <EMAIL> Modified by <NAME>, 2016 Modified by <NAME>, 2018 */ #include <stdlib.h> // malloc, free #include <string.h> // memset, memcpy #include <stdint.h> // integer types #include <emmintrin.h> // x86 SSE intrinsics #include <stdio.h> #include <assert.h> #inclu...
// Begin CVS Header // $Source: /fs/turing/cvs/copasi_dev/copasi/MIRIAM/CRDFNode.cpp,v $ // $Revision: 1.17 $ // $Name: Build-33 $ // $Author: shoops $ // $Date: 2010/07/16 19:00:07 $ // End CVS Header // Copyright (C) 2010 by <NAME>, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, ...
// adapted from llc.cpp #include "llvm/ADT/Triple.h" #include "llvm/IR/DataLayout.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" #include "llvm/IR/Verifier.h" #include "llvm/IRReader/IRReader.h" #include "llvm/Pass.h" #include "llvm/PassManager.h" #include "llvm/Support/CommandLine.h" #include "llvm/...
/* * Copyright 2021 Assured Information Security, 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 a...
// Copyright (C) 2018-2020 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #include <config.h> #include <ha_config_pars...
// // Rectangle3DOverlay.cpp // interface/src/ui/overlays // // Copyright 2014 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 "Rectangle3DOverlay.h" #include <GeometryCache.h> #includ...