text
stringlengths
7
961k
/** * @file test_thread.cpp * @brief Generic test for a thread object. * @author Kacper Kowalski - kacper.s.kowalski@gmail.com */ #include "catch2/catch.hpp" #include <algorithm> #include <iostream> #include <memory> #include "../test_helpers.hpp" #include "thread_under_test_definition.hpp" TEST_CASE("Thread i...
#include "askpassphrasedialog.h" #include "ui_askpassphrasedialog.h" #include "guiconstants.h" #include "walletmodel.h" #include <QMessageBox> #include <QPushButton> #include <QKeyEvent> extern bool fWalletUnlockStakingOnly; AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) : QDialog(parent),...
/* * Copyright 2016 Andrei Pangin * * 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 t...
/** * @file Benchmark.cpp * * @brief Benchmarking tests for Zerocoin. * * @author Ian Miers, Christina Garman and Matthew Green * @date June 2013 * * @copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green * @license This project is released under the MIT license. **/ ...
#include "CUSketch.h" CUSketch::CUSketch(uint d, uint w):d(d), w(w){ sketch = new ushort*[d]; for(uint i = 0; i < d; ++i){ sketch[i] = new ushort[w]; memset(sketch[i], 0, sizeof(sketch[i])); } hf = new HashFunction(); para = new float[2*d-1]; mean = new float[2*d-1]; scale = new float[2*d-1]; t = new uint[...
// Units #define cUnitDegrees "°C" #define cUnitHpa "hPa" #define cUnitMgm3 "g/m³" #define cUnitPercent "%" #define cUnitVolt "V" // Topics #define cStatusTopic "status" #define cUnitTopic "unit" #define cTemperatureTopic "temperature" #define cTemperatureUnitTopic cTemperatureTopic "/" cUnitTopic #define cHumidityTop...
/********************************* TRICK HEADER ******************************* PURPOSE: ( Example of an "automatic" (self-scheduling) job. ) LIBRARY DEPENDENCY: ((Fibonacci_time.o)) *******************************************************************************/ #include "../include/Fibonacci_time.hh" #include <ma...
// 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 "content/public/common/webplugininfo.h" #include <stddef.h> #include <memory> #include <string> #include <vector> #include "base/cxx17_bac...
/* * Copyright (c) 2020 Samsung Electronics 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...
// Copyright (c) 2018, The Unprll Project // Copyright (c) 2014-2018, The Monero Project // // 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 ...
//===- MachOObjectFile.cpp - Mach-O object file binding ---------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "AreaUtils.h" #include "FeatureID.h" #include "StoredQueryHandlerFactoryDef.h" #include "WfsConvenience.h" #include "stored_queries/StoredQEDownloadQueryHandler.h" #include <boost/algorithm/string.hpp> #include <boost/bind.hpp> #include <boost/date_time/posix_time/ptime.hpp> #include <boost/format.hpp> #includ...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
//******************************************************** // Syzygy is licensed under the BSD license v2 // see the file SZG_CREDITS for details //******************************************************** #include "arPrecompiled.h" #include "arDragManager.h" #include "arEffector.h" #include <vector> #if (defined(__GN...
/** * @file manager_test.cc * @author Krzysztof Trzepla * @copyright (C) 2016 ACK CYFRONET AGH * @copyright This software is released under the MIT license cited in * 'LICENSE.txt' */ #include "utils.h" using namespace one::client::events; struct ManagerTest : public ::testing::Test { bool handlerCalled = ...
// ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2018 www.open3d.org // // Permissio...
#include <iostream> #include <cstdio> #include <sstream> #include <fstream> #include <vector> #include <cstdlib> #include <ctime> #include <string> #include <algorithm> //Second rework of my Hangman game, changes are mostly just code organization using namespace std; //For the update loop, if game is playing it is tru...
// Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2020 The PIVX developers // Copyright (C) 2019-2020 The ucacoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "masternode.h" #includ...
// Copyright (c) 2011 Bryce Adelstein-Lelbach // Copyright (c) 2011-2021 Hartmut Kaiser // Copyright (c) 2016 Parsa Amini // Copyright (c) 2016 Thomas Heller // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at h...
// This program doesn't need any description. #include<iostream> using namespace std; int main() { int x; cout<<"Enter a Number : "; cin>>x; if (x%2==0) cout<<x<<" is even Number.\n"; else cout<<x<<" is odd Number.\n"; return 0; }
#define DEFAULT_LOGGER "rpc" #include <bts/wallet/exceptions.hpp> #include <bts/rpc/exceptions.hpp> #include <bts/rpc/rpc_server.hpp> #include <bts/utilities/git_revision.hpp> #include <boost/algorithm/string/join.hpp> #include <boost/algorithm/string/trim.hpp> #include <boost/bind.hpp> #include <boost/date_time/posi...
// Bryn Mawr College, alinen, 2020 // #include "AGL.h" #include "AGLM.h" #include <cmath> #include "confetti.h" #include <algorithm> using namespace std; using namespace agl; using namespace glm; void Confetti::createParticles(int size) { mTexture = theRenderer.loadTexture("../textures/particle.png"); // ...
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
/* * Photoconsistency-Visual-Odometry * Multiscale Photoconsistency Visual Odometry from RGBD Images * Copyright (c) 2011-2012, Miguel Algaba Borrego * * http://code.google.com/p/photoconsistency-visual-odometry/ * * All rights reserved. * * Redistribution and use in source and binary forms, with or with...
#ifndef _RAR_UNPACK_ #define _RAR_UNPACK_ // Maximum allowed number of compressed bits processed in quick mode. #define MAX_QUICK_DECODE_BITS 10 // Maximum number of filters per entire data block. Must be at least // twice more than MAX_PACK_FILTERS to store filters from two data blocks. #define MAX_UNPACK_FILTE...
//================================================================================================= /*! // \file src/mathtest/dvecdvecouter/VHaVHa.cpp // \brief Source file for the VHaVHb dense vector/dense vector outer product math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // This...
#include <stdio.h> #include <GL/freeglut.h> #include <iostream> #include <math.h> #include <Windows.h> void display() { glClearColor(0.0, 0.0, 0.0, 0.0); glClear(GL_COLOR_BUFFER_BIT); glColor3f(1.0, 1.0, 1.0); glBegin(GL_POLYGON); glVertex2d(0.0, 480.0); glVertex2d(640.0, 480.0); glVertex2d(640.0, 450.0); gl...
/* //@HEADER // ************************************************************************ // // Kokkos v. 2.0 // Copyright (2014) Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government retains certain rights in this softw...
#ifndef SLEWENVELOPE_HPP #define SLEWENVELOPE_HPP class slewEnvelope { private: int currentValue, envAttack, envRelease, envMax, envMin; public: slewEnvelope() { currentValue = 0; envAttack = 1; envRelease = 1; envMax = 1; envMin = 1; } void setAttack(int att...
//**************************************************************************** // Copyright © 2020 Jan Erik Breimo. All rights reserved. // Created by Jan Erik Breimo on 2020-08-01. // // This file is distributed under the BSD License. // License text is included with the source distribution. //************************...
// Copyright 2017 The Fuchsia 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 "src/ui/scenic/lib/gfx/resources/shapes/circle_shape.h" namespace scenic_impl { namespace gfx { const ResourceTypeInfo CircleShape::kTypeInfo = ...
#pragma once #include <cstdint> #include <cstring> namespace ec { class error { public: uint8_t code; uint32_t argument : 24; /** * Default constructor. * This initializes all the parameters to 0. */ constexpr error() : code(0), argument(0) {} /** * Constructor for initializing an error from ...
#include "hzpch.h" #include "RendererAPI.h" #include "Platform/OpenGL/OpenGLRendererAPI.h" namespace Gold { RendererAPI::API RendererAPI::s_API = RendererAPI::API::OpenGL; Scope<RendererAPI> RendererAPI::Create() { switch (s_API) { case RendererAPI::API::None: GD_CORE_ASSERT(false, "RendererAPI::None i...
/*! \file polymorphic.hpp \brief Support for pointers to polymorphic base classes \ingroup OtherTypes */ /* Copyright (c) 2014, Randolph Voorhies, Shane Grant All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following ...
// Copyright 2020 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/ash/crosapi/test_controller_ash.h" #include "ash/public/cpp/tablet_mode.h" #include "ash/shell.h" #include "ash/wm/overview/over...
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QDebug> #ifdef Q_OS_WIN #include<windows.h> #else #include <unistd.h> #endif WorkThread::WorkThread(QObject* parent) : QObject (parent) , m_bPause(false) , m_bStop(false) , m_bDestory(false) , m_i(0) { } WorkThread::~WorkThread() { qDebug()<<"Work...
/**************************************************************************** ** Meta object code from reading C++ file 'ParaImportMeshSetup.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2) ** ** WARNING! All changes made in this file will be lost! ************************************************...
/* * Copyright (c) <2021> Side Effects Software 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: * * 1. Redistributions of source code must retain the above copyright notice, * this list of...
#ifndef COLORPICKER_HPP #define COLORPICKER_HPP #include "..\DuiLib\Utils\WinImplBase.h" class ChatDialog; class CColorPicker : public WindowImplBase { public: CColorPicker(ChatDialog* chat_dialog, POINT ptMouse); LPCTSTR GetWindowClassName() const; virtual void OnFinalMessage(HWND hWnd); void Notify(TNotifyUI&...
/******************************************************************************* * * * Author : Angus Johnson * * Version : 6.4.2 ...
#include "temp_dir.h" namespace ouinet { namespace util { void temp_dir::close() { // Not completely idempotent: // one can set "keep on close" then close and the directory remains, // then unset "keep on close" then close again and the directory is removed. if (_keep_on_close) return; sys::error_...
/*============================================================================ KWSys - Kitware System Library Copyright 2000-2009 Kitware, Inc., Insight Software Consortium Distributed under the OSI-approved BSD License (the "License"); see accompanying file Copyright.txt for details. This software is distr...
// Copyright (c) 2016-2017 The Bitcoin Core developers // Copyright (c) 2017-2018 The Toschain Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <coins.h> #include <policy/policy.h...
#include <_worlddb_npc_quest_complete_history.hpp> START_ATF_NAMESPACE _worlddb_npc_quest_complete_history::_worlddb_npc_quest_complete_history() { using org_ptr = void (WINAPIV*)(struct _worlddb_npc_quest_complete_history*); (org_ptr(0x1401bf130L))(this); }; void _worlddb_npc_quest_co...
/* Copyright 2016-2020 Intel 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 agreed to in w...
#include "engkeyboard.h" #include "ui_engkeyboard.h" #include "keyboardsymbols.h" static constexpr short optimalParentWidgetWidth = 500; static constexpr int lastNonAlphabetSymbolsCount = 3; EngKeyboard::EngKeyboard ( QWidget * parent ) : BaseKeyboard ( parent ), ui ( new Ui::EngKeyboard ) { ui->setupUi...
/* DS3231 library for the Arduino. This library implements the following features: - read/write of current time, both of the alarms, control/status registers, aging register - read of the temperature register, and of any address from the chip. Author: Petre Rodan <petre.rodan@simplex.ro> A...
// Copyright 2014 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/fxcrt/fx_coordinates.h" #include <utility> #include "build/bu...
#include <cstdio> #include <cstdlib> #include <string> #include <sstream> #include <vector> #include <iostream> using namespace std; typedef vector <int> IVec; // Write your code here: // DO NOT CHANGE ANYTHING BELOW THIS LINE void bad_pgm(string s) { cerr << "Bad PGM file: " << s << endl; exit(1); } vector <...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the "License"); * you ...
// Copyright (C) 2016-2018 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 <dhcp6/parser_c...
#include "SpeedTest.h" #include <time.h> /* ==================== generalIntersectionSpeedTest Tests speed of intersection with provided object. Returns time of execution in seconds ==================== */ double generalIntersectionSpeedTest(const unsigned int numberOfRaysToCast, SceneObject *o) { bool lightWasSeen ...
/* The MIT License (MIT) Copyright (c) 2016 Fred Sundvik 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, ...
#include <core/memory.h> namespace dakku { MemoryArena &GlobalMemoryArena::instance() { static GlobalMemoryArena _instance; return _instance.arena; } } // namespace dakku
// Copyright (C) 2018-2021 CERN // License Apache2 - see LICENCE file #include "cpumon.h" #include <string.h> #include <unistd.h> #include <fstream> #include <iostream> #include <regex> #include <sstream> #include "utils.h" #define MONITOR_NAME "cpumon" // Constructor; uses RAII pattern to be valid // after const...
/* dwarf.c -- Get file/line information from DWARF for backtraces. Copyright (C) 2012-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor, Google. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: (1) Re...
// 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
#include "spdrsynchronize_p.h" #include <QCoreApplication> #include <QByteArray> #include <QList> #include <QStringList> #include <QFile> #include <QFileInfo> #include <QFileInfoList> #include <QDir> #include <QDirIterator> /*! \class SpdrSynchronize \ingroup libspdr \brief Can be used to intelligently synchro...
//$Id$ //------------------------------------------------------------------------------ // EventLocatorPanel //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool // // // Copyright (c) 2002 - 2020 United States Government as r...
/****************************************************************** * File: Internal.cpp * Description: implement some internal functions. * Author: Vincent Pham * * Copyright (c) 2018 VincentPT. ** Distributed under the MIT License (http://opensource.org/licenses/MIT) ** * *********************************...
// ------------------------------------ // #include "ProceduralSound.h" using namespace Leviathan; // ------------------------------------ // DLLEXPORT ProceduralSoundData::ProceduralSoundData( std::function<int(void*, int)> datacallback, SoundProperties&& properties) : Properties(properties), DataCallback...
#pragma once #include "../stateobject.hh" #include "../../Colour/colour.hh" #include "../../util/json.hh" #include <memory> #include <vector> namespace bold { typedef std::pair<double, std::string> EventTiming; class TimingState : public StateObject { protected: TimingState(std::shared_ptr<std::vector<E...
#ifdef PEGASUS_OS_DARWIN #ifndef __UNIX_TRANSPARENTBRIDGINGSTATICFORWARDING_PRIVATE_H #define __UNIX_TRANSPARENTBRIDGINGSTATICFORWARDING_PRIVATE_H #endif #endif
/* * Copyright (c) 2014, Stanislav Vorobiov * 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 ...
#include <getopt.h> #include <iostream> #include <fstream> #include <sstream> #include <vector> #include <set> #include <map> #include <list> #include "dbconnector.h" #include "select.h" #include "netdispatcher.h" #include "netlink.h" #include "producerstatetable.h" #include "portsyncd/linksync.h" #include "subscribers...
#include "wled.h" enum class AwaProtocol { HEADER_A, HEADER_w, HEADER_a, HEADER_HI, HEADER_LO, HEADER_CRC, DATA_RED, DATA_GREEN, DATA_BLUE, FLETCHER1, FLETCHER2 }; // static data buffer for the loop #define MAX_BUFFER 2048 void handleSerial() { static uint8_t buffe...
//================================================================================================= /*! // \file src/mathtest/dmatsmatschur/DHaDCa.cpp // \brief Source file for the DHaDCa dense matrix/sparse matrix Schur product math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved // // Thi...
// Copyright 2020 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 ...
#include "AbstractMaterialLibrary.hpp" #include "Exceptions.hpp" #include <cassert> #include "StringUtils.hpp" #include "File.hpp" #include "boost/lexical_cast.hpp" AbstractMaterialLibrary::AbstractMaterialLibrary() { } void error_NoMaterialSet(const std::string& pFileName) { throw BadDataException("No material set ...
// This file is made available under Elastic License 2.0. // This file is based on code available under the Apache license here: // https://github.com/apache/orc/tree/main/c++/src/ColumnReader.cc /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOT...
#include "serial.h" #include <string> #ifndef _WIN32 #include <fcntl.h> #include <unistd.h> #endif ///////////////////////////////////////////////// /////////////////// Windows ///////////////////// ///////////////////////////////////////////////// #ifdef _WIN32 Serial::Serial (const char *port_name) { std::strin...
#include "Isis.h" #include "IException.h" #include "IString.h" #include "ProcessByBoxcar.h" #include "Pvl.h" #include "PvlGroup.h" #include "SpecialPixel.h" #include <vector> using namespace std; using namespace Isis; void filter(Buffer &in, double &v); vector <double> coefs; double weight; void IsisMain() { //...
/* This file is part of ydotool. Copyright (C) 2018 ReimuNotMoe This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warrant...
// 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 "base/bind.h" #include "base/callback.h" #include "base/compiler_specific.h" #include "base/memory/weak_ptr.h" #include "base/message_loop/me...
// Copyright (c) 2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "timedata.h" #include "netbase.h" #include "sync.h" #include "ui_interface.h" #include "util.h" #include "utilstrencodings.h"...
// // Copyright: Copyright (c) MOSEK ApS, Denmark. All rights reserved. // // File: sdo1.cc // // Purpose: // Solves the mixed semidefinite and conic quadratic optimization problem // // [2, 1, 0] // minimize Tr [1, 2, 1] * X + x0 // [0, 1, 2] // // [...
/* Copyright 2017 The TensorFlow 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 applicable law or a...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "Utils.hpp" #include "MavLinkVehicleImpl.hpp" #include "MavLinkConnection.hpp" #include "../serial_com/SerialPort.hpp" #include "../serial_com/UdpClientPort.hpp" #include <exception> #include <cstring> using namesp...
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
#include <iostream> #include <server_ws.hpp> #include <nlohmann/json.hpp> #include <xtime.hpp> #include <future> #include <thread> #include <atomic> #include <chrono> #include <limits> #include <string> #include <algorithm> #include <vector> #include <map> #include <queue> #include <fstream> using json = nlohmann::jso...
#include "MMap.h" #include "../Process/Process.h" #include "../Misc/NameResolve.h" #include "../Misc/Utils.h" #include "../Misc/DynImport.h" #include "../Misc/Trace.hpp" #include "../DriverControl/DriverControl.h" #include <random> #include <3rd_party/VersionApi.h> #ifndef STATUS_INVALID_EXCEPTION_HANDLER #define STA...
/* Copyright (c) 2014, The Linux Foundation. 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 co...
// Copyright 2016, National University of Defense Technology // Authors: Xuhao Chen <cxh@illinois.edu> #include "bfs.h" #include <omp.h> #include "timer.h" #include "omp_target_config.h" #define BFS_VARIANT "omp_target" #pragma omp declare target #include "bitmap.h" #include "sliding_queue.h" #include "platform_atomic...
// RUN: %clang_cc1 -DCHECK -verify -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - -Wno-openmp-target | FileCheck -allow-deprecated-dag-overlap %s --check-prefix CHECK --check-prefix CHECK-64 // RUN: %clang_cc1 -DCHECK -fopenmp -x c++ -std=c++11 -triple...
#include <components/TileComponent.hpp> #include <GameEntity.hpp> TileComponent::TileComponent() { return; } TileComponent::TileComponent(SDL_Texture* _texture, SDL_Rect _textureRects [], int _tiles [], int _numberOfUniqueTil...
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@gmail.com> // // 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 ca...
#include "ipopt_adapter.h" namespace Ipopt { IpoptAdapter::IpoptAdapter(Problem& nlp) { nlp_ = &nlp; } bool IpoptAdapter::get_nlp_info(Index& n, Index& m, Index& nnz_jac_g, Index& nnz_h_lag, IndexStyleEnum& index_style) { n = nlp_->GetNumberOfOptimizationVariables(); m = n...
// Copyright (c) 2021 The Chromium Embedded Framework 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 was generated by the CEF translato...
// Copyright (c) 2019 Cloudflare, Inc. and contributors // Licensed under the MIT License: // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitat...
/* * kmp_settings.cpp -- Initialize environment variables */ //===----------------------------------------------------------------------===// // // 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: Ap...
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2017 - ROLI Ltd. JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of both the JUCE 5 End-User Lic...
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Benoit Jacob <jacob.benoit.1@gmail.com> // // 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 obtai...
/* SPDX-License-Identifier: MIT Copyright (c) 2021 Bart Bilos For conditions of distribution and use, see LICENSE file */ /* * LPC82X specific startup file, adding division routines from ROM * * * Put together by Paul Sokolovsky based on article by Vanya Sergeev * http://dev.frozeneskimo.com/notes/cortex_cmsis/ ...
// Copyright (c) 2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // // This is a translation to GCC extended asm syntax from YASM code by Intel // (available at the bottom of this file). #include...
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using nam...
// Copyright 2021 The Tint Authors. // // 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 ...
#include <cstdio> long long dp[10000]; int main() { int n, k, i; scanf("%d%d", &n, &k); dp[0] = 1; dp[1] = k - 1; for (i = 2; i <= n; ++i) dp[i] = (k - 1) * (dp[i - 1] + dp[i - 2]); printf("%lld\n", dp[n]); return 0; }
// Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/crk-config.h" #endif #include <cstring> // OSX 10.6 is missing strnlen at runtime, bu...
#include <hitagi/resource/texture.hpp> namespace hitagi::resource { Texture::Texture(std::filesystem::path path) : m_ImagePath(std::move(path)) {} Texture::Texture(std::shared_ptr<Image> image) : m_Image(std::move(image)) {} Texture::Texture(uint32_t coord_index, std::shared_ptr<Image> image) : m_TexCoor...
//================================================================================================= /*! // \file src/mathtest/smatsmatschur/SCaDCb.cpp // \brief Source file for the SCaDCb sparse matrix/sparse matrix Schur product math test // // Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved // // Th...