text stringlengths 3.08k 22k |
|---|
// Exercise 9.14 Solution: HugeInteger.cpp
// Member-function definitions for class HugeInteger.
#include <iostream>
#include "HugeInteger.h" // include definition of class HugeInteger
using namespace std;
// default constructor; conversion constructor that converts
// a long integer into a HugeInteger object
... |
/* Starshatter OpenSource Distribution
Copyright (c) 1997-2004, Destroyer Studios LLC.
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 t... |
/**
* @file lab.cpp
* @brief to store and read an color in Lab color space
* @author <NAME>
* @version 1.0
*/
#include "color/colorspace/lab.h"
#include <cmath>
#include <iostream>
const double LABColor::epsilon = 0.008856;
const double LABColor::kappa = 903.3;
const double LABColor::Xr = 0.950456; //x val... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
#include "shader.h"
#include "mesh.h"
#include "marchingcubes.h"
#include "pointcloud.h"
void processInput(GLFWwindow* window);
void framebufferS... |
// STD Libs
#include<cmath>
#include<string>
#include<ctime>
#include<cstdio>
#include<vector>
// VItA Libs
#include<structures/domain/AbstractDomain.h>
#include<structures/domain/SimpleDomain.h>
#include<structures/domain/DomainNVR.h>
#include<structures/domain/PartiallyVascularizedDomain.h>
#include<structures/domai... |
#include<iostream>
#include<algorithm>
#include<time.h>
using namespace std;
#define IOS {cin.tie(0);ios_base::sync_with_stdio(false);}
#define N 7400000
#define Q 60001
//#define DEBUG
struct treap;
inline treap *create(treap* t);
int top = 0;
struct treap{
treap *l,*r;
int pri,sz,rev,add;
int64_t d... |
//*****************************************************************************
// Copyright 2017-2019 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://w... |
#include <stdio.h>
#include <opencv2/opencv.hpp>
using namespace cv;
using namespace std;
void saveXYZ(const char* filename, Mat* mat, Mat* img)
{
const double max_z = 1000;
FILE* fp = fopen(filename, "wt");
for(int y = 0; y < mat->rows; y++)
{
for(int x = 0; x < mat->cols; x++)
{
... |
//this function is called from generated cpp_classes function which was called fr_om the main function after functionazing and make_classes class
#include <vector>
#include <string>
#include <string.h>
#include <algorithm>
#include <iostream>
#include <map>
#include "../Header/include/function_struct.h"
#include "../... |
//===--- BasicCalleeAnalysis.cpp - Determine callees per call site --------===//
//
// 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... |
#include <vector>
#include <string>
#include "util.hpp"
#include <rw/math/Random.hpp>
#include <rwlibs/task/GraspTask.hpp>
#include <boost/program_options/parsers.hpp>
#include <boost/program_options/options_description.hpp>
#include <boost/program_options/variables_map.hpp>
#define BOOST_FILESYSTEM_VERSION 3
#incl... |
/*
* Copyright (c) 2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights ... |
#include "maix_image.h"
// static void s_log(int nu)
// {
// switch (nu)
// {
// case 1:
// nanolog::set_log_level(nanolog::LogLevel::INFO);
// break;
// case 2:
// nanolog::set_log_level(nanolog::LogLevel::WARN);
// break;
// case 3:
// nanolog::set_log_level(nanolog::LogLevel::CRIT);
// ... |
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <sstream>
#include <algorithm>
#include <ctime>
#include <goto-programs/goto_program.h>
#include <goto-programs/wp.h>
#include <goto-programs/remove_skip.h>
#include <goto-programs/goto_functions.h>
#include <goto-symex/goto_symex.h>
#includ... |
#include <gtsam/geometry/Pose2.h>
#include <gtsam/inference/Symbol.h>
#include <gtsam/nonlinear/ISAM2.h>
#include <gtsam/nonlinear/NonlinearFactorGraph.h>
#include <gtsam/nonlinear/Values.h>
#include <gtsam/slam/PriorFactor.h>
#include <gtsam/slam/BetweenFactor.h>
#include <gtsam/slam/Pose2_Point2_Factor.h>
#include <v... |
/*************************************************************************/
/* editor_about.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
///
/// \file: elf_analysis.cpp
/// \author: GrandChris
/// \date: 2021-03-18
/// \brief: Analyses a .elf file
///
#include "elf_analysis.h"
#include "disassembler.h"
#include "dwarf/debug_line/header.h"
#include "dwarf/debug_line/state_machine.h"
#include "elfio/elfio.hpp"
#include <chrono>
#include <fi... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... |
// phase3.cpp
// Phase 3 of translation
// Intended compatibility: c++17
//
// Created by <NAME> on 9 February 2021
/*
Licensed under the MIT License.
Copyright (c) 2021 Faustic Inferno SL
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation file... |
/*******************************************************************************
* Copyright 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/l... |
#include "CommonDecl.h"
#include <float.h>
#include <setjmp.h>
#include <cstdio>
#include <string>
#include <vector>
#include "../Arch/Arch.h"
#include "../BasicTypes/BasicTypes.h"
#include "../llvmUtils/llvmUtils.h"
#define BT_SI(t) \
BasicTypes::addSignedInt(ctx, mod, ¤t_once_tag, t);
#define BT_UI(t) \... |
/*
* 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 ... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
//----------------------------------------------------------------------------------
// File: common/egl_setup/source/egl_setup.cpp
// SDK Version: v1.0
// Site: http://developer.nvidia.com/
//
// Copyright (C) 2013 NVIDIA CORPORATION. All Rights Reserved.
//
// NVIDIA CORPORATION and its licensors ret... |
///////////////////////////////////////////////////////////////////////////////
//
// @@@ START COPYRIGHT @@@
//
// 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 o... |
#include <climits>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "str.hh"
#include "io.hh"
#include "conf.hh"
#include "Recipe.hh"
#include "FeatureGenerator.hh"
#include "Hmm... |
// Copyright (c) 2020 Idiap Research Institute, http://www.idiap.ch/
// Written by <NAME> <<EMAIL>>
// and <NAME> <<EMAIL>>
//
// This file is part of CBI Toolbox.
//
// CBI Toolbox is free software: you can redistribute it and/or modify
// it under the terms of the 3-Clause BSD License.
//
// CBI Toolbox is distribute... |
/*
Copyright 2017-2018 <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 without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute,... |
#include <iostream>
#include <tuple>
#include <random>
#include <unordered_map>
#include <unordered_set>
#include <thread>
#include "bwtree.hpp"
#include "main.hpp"
using namespace BwTree;
template<typename Key>
void testBwTreeNew(const std::size_t count) {
auto settings = BwTree::Settings("8,8,3,3", 8, {8}, 3, {... |
//
// File: XFigGraphicDevice.cpp
// Created by: <NAME>
// Created on: Mon Mar 03 2008
//
/*
Copyright or © or Copr. Bio++ Development Team, (November 17, 2004)
This software is a computer program whose purpose is to provide utilitary
classes. This file belongs to the Bio++ Project.
This software is governed by the ... |
/*
* Copyright 2019 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
// Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved.
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation the rights to use,... |
// This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... |
/*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any per... |
#ifdef HAVE_CONFIG_H
#include <../../config.h>
#endif
/*
* Copyright (c) 1987, 1988, 1989, 1990, 1991 Stanford University
* Copyright (c) 1991 Silicon Graphics, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provi... |
#include "typename.hh"
#include <boost/static_assert.hpp>
#include <iostream>
using namespace std;
using namespace boost;
using namespace Typelib;
namespace
{
typedef std::string::value_type NamespaceMarkType;
static const char* NamespaceMarkString = "/";
struct NameSeparator : public ch... |
#include "AHubRequestHandler.h"
using namespace std;
const int ERROR_CODE = 255;
// const int MESSAGE_BYTES = 2048;
sgx_enclave_id_t aHubRequestHandler_eid = 0;
AHubRequestHandler::AHubRequestHandler() {
std::cout << "AHubRequestHandler created\n";
}
bool AHubRequestHandler::sendApp(Minion* minion, std::string a... |
//
// Dis VM
// File: fd_types.cpp
// Author: arr
//
#include <cstdio>
#include <algorithm>
#include <streambuf>
#include <debug.h>
#include <exceptions.h>
#include <vm_memory.h>
#include "fd_types.h"
using disvm::vm_t;
using disvm::debug::component_trace_t;
using disvm::debug::log_level_t;
using disvm::runtime::b... |
#include "NetIf.hpp"
NetIf::NetIf() {
return;
}
NetIf::NetIf(char *ifname, IfType iftype, uint16_t vlan) {
comlib::strncpy(this->ifname, ifname, sizeof(this->ifname));
this->iftype = iftype;
this->vlan = vlan;
initIf();
/*
switch(this->iftype){
case IFTYPE_L2_ACCESS:
... |
//------------------------------------------------------------------------------
/*
This file is part of jbcoin-libpp: https://github.com/jbcoin/jbcoin-libpp
Copyright (c) 2016 Jbcoin Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is her... |
/**
* \file GridAdapter.cpp
* 24/03/2010 KR Initial implementation
*
* \copyright
* Copyright (c) 2015, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/lic... |
// Copyright (c) 2019, Lawrence Livermore National Security, LLC.
// See top-level LICENSE file for details.
// Print web-readable table in sparse format
#include "caliper/reader/JsonFormatter.h"
#include "caliper/reader/QuerySpec.h"
#include "caliper/common/Attribute.h"
#include "caliper/common/CaliperMetadataAcce... |
/*
*
* Copyright 2017 gRPC 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 agree... |
/*
Copyright (c) by respective owners including Yahoo!, Microsoft, and
individual contributors. All rights reserved. Released under a BSD (revised)
license as described in the file LICENSE.
*/
#include <string>
#include "correctedMath.h"
#include "gd.h"
#include "reductions.h"
using namespace std;
using n... |
#include <sstream>
#include "mmcore/MegaMolGraph_Convenience.h"
#include "mmcore/MegaMolGraph.h"
#include "mmcore/versioninfo.h"
#include "mmcore/utility/log/Log.h"
using namespace megamol::core;
static MegaMolGraph& get(void* ptr) { return *reinterpret_cast<MegaMolGraph*>(ptr); }
static void log(std::string text) ... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
//-------------------------------------------------
//
// Class: L1MuDTMuonSorter
//
// Description: DT Muon Sorter
//
//
//
// Author :
// <NAME> CERN EP
// <NAME> UAM Madrid
//
//--------------------------------------------------
//-----------------------
// This Class's Header --
/... |
#include <stdio.h>
#include <cstdint>
#include <iostream>
#include <gtest/gtest.h>
#include <glog/logging.h>
#include <tudocomp/util.hpp>
#include <tudocomp/AlgorithmStringParser.hpp>
#include <tudocomp/Env.hpp>
#include <tudocomp_driver/Registry.hpp>
#include "test/util.hpp"
#include "test/driver_util.hpp"
TEST(Tu... |
//===-- VariableCollector.cpp - Variable Collector (Clang) -------*- C++ -*===//
//
// Traits Static Analyzer (SAPFOR)
//
// Copyright 2020 DVM System Group
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... |
// Copyright 2020 The Defold Foundation
// Licensed under the Defold License version 1.0 (the "License"); you may not use
// this file except in compliance with the License.
//
// You may obtain a copy of the License, together with FAQs at
// https://www.defold.com/license
//
// Unless required by applicable law or a... |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
// Scintilla source code edit control
// Copyright 1998-2002 by <NAME> <<EMAIL>>
/*
This is the Lexer for Gui4Cli, included in SciLexer.dll
- by <NAME>, 2/10/2003
To add to SciLexer.dll:
1. Add the values below to INCLUDE\Scintilla.iface
2. Run the scripts/HFacer.py script
3. Run the scripts/LexGen.py script
val SCE_... |
/*
* 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 ... |
// Written: fmckenna
// Purpose: the typical Qt main for running a QMainWindow
#include <MainWindowWorkflowApp.h>
#include <QApplication>
#include <QFile>
#include <QThread>
#include <QObject>
#include <AgaveCurl.h>
#include <WorkflowAppEE_UQ.h>
#include <QCoreApplication>
#include <QApplication>
#include <QFile>
#... |
/* SparseTracer
* function: trace single neuron
* Author : zhouhang
* 2015-10-28
*/
#include <cstdlib>
#include <cmath>
#include "tracestackreader.h"
#include "../../ngtypes/soma.h"
#include "../../ngtypes/tree.h"
#include "Function/IO/treeReader.h"
#include "inifile.h"
#ifdef _WIN32
#pragma warning(disa... |
#include <iostream>
#include <fstream>
#include <numeric>
#ifdef _MSC_VER
// taocpp config internally uses 128-bit arithmetic to check for overflows,
// but this is not supported by MSVC -> revert to 64-bit.
#define __int128_t std::int64_t
#endif
#include <tao/json/from_stream.hpp>
#include <tao/config/value.hpp>
#inc... |
#include <array>
#include <memory>
#include <cstring>
#include <cstdlib>
#include <clocale>
#include <sstream>
#include <getopt.h>
#include <libgen.h>
#include <unistd.h>
#include <iostream>
#include <ncpp/Visual.hh>
#include <ncpp/NotCurses.hh>
#include "compat/compat.h"
using namespace ncpp;
static void usage(std::... |
/*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opti... |
#include "cellgui.h"
#include "intersectionwindow.h"
constexpr unsigned int scalingFactor = 50;
constexpr unsigned int greenZone = 1;
constexpr unsigned int yellowZone = 10;
constexpr unsigned int redZone = 20;
/** @brief constructor to initialize cell at position x, y
* @param x x-coordinate of cell
* @param y y-c... |
/*
* Copyright (C) 2010, <NAME>
* Donders Institute for Donders Institute for Brain, Cognition and Behaviour,
* Centre for Cognitive Neuroimaging, Radboud University Nijmegen,
* Kapittelweg 29, 6525 EN Nijmegen, The Netherlands
*/
#include <platform.h>
#if defined (PLATFORM_OSX)
#include <OpenGL/gl.h>
#... |
//
// rv-sim.cc
//
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <cinttypes>
#include <csignal>
#include <csetjmp>
#include <cerrno>
#include <cmath>
#include <cctype>
#include <cwchar>
#include <climits>
#include <cfloat>
#include <cfenv>
#include <limits>
#include <array>
#incl... |
// MIT License
//
// Copyright (c) 2020, The Regents of the University of California,
// through Lawrence Berkeley National Laboratory (subject to receipt of any
// required approvals from the U.S. Dept. of Energy). All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy... |
#include "stdafx.h"
#include "resource.h"
#include "RawFileTreeView.h"
#include "mainfrm.h"
#include "HexView.h"
#include "Root.h"
#include "BmpBtn.h"
using namespace std;
CRawFileTreeView rawFileTreeView;
BOOL CRawFileTreeView::PreTranslateMessage(MSG* pMsg)
{
if(pMsg)
{
if((pMsg->hwnd == m_hWnd) || ::IsChild(m... |
// Boost.TypeErasure library
//
// Copyright 2012 <NAME>
//
// Distributed under 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)
//
// $Id: printf.cpp 83393 2013-03-10 03:48:33Z steven_watanabe $
//[printf
/*`
(For the source of ... |
//
// Programmer: <NAME> <<EMAIL>>
// Creation Date: Sat Feb 14 21:55:38 PST 2015
// Last Modified: Sat Feb 14 21:55:40 PST 2015
// Filename: midifile/src-library/MidiEventList.cpp
// Website: http://midifile.sapp.org
// Syntax: C++11
// vim: ts=3 expandtab
//
// Description: A... |
/*
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "zello_common.h"
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#define CHILDPROCESSES 4
int sv[CHILDPROCESSES][2];
extern bool verbose;
bool verbose = false;
size_t allocSiz... |
#include "sys/sock.h"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
extern "C" void amf0_test(void);
extern "C" void rtp_queue_test(void);
extern "C" void mpeg4_aac_test(void);
extern "C" void mpeg4_avc_test(void);
extern "C" void mpeg4_hevc_test(void);
extern "C" void mp3_h... |
#include "Core/Base.h"
#include "glad/gl.h"
#include "GLFW/glfw3.h"
#include "imgui.h"
#include "backends/imgui_impl_glfw.h"
#include "backends/imgui_impl_opengl3.h"
void GLFWErrorCallback(int error, const char* description)
{
std::cerr << "GLFW Error " << error << ": " << description << '\n';
}
int main(int argc... |
//============================================================================
// Name : a_1.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <bits... |
/*
* Copyright (C) 2005 - 2013 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2013 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/>
*
* Copyright (C) 2010 - 2013 ProjectSkyfire <http://www.projectskyfire.org/>
*
* Copyright (C) 2011 - 2013... |
#include <SDL.h>
#include GLCXX_GL_INCLUDE
#include <iostream>
#include "glcxx.hpp"
using namespace std;
#define WIDTH 800
#define HEIGHT 600
shared_ptr<glcxx::Array> quad_array;
shared_ptr<glcxx::Program> quad_program;
shared_ptr<glcxx::Buffer> quad_geom_buffer;
shared_ptr<glcxx::Array> triangle_array;
shared_p... |
#pragma once
#include "channels.hpp"
#include "inputs.hpp"
#include "message.hpp"
#include "overload.hpp"
#include "tiny_math.hpp"
#include <cereal/archives/binary.hpp>
#include <trellis/trellis.hpp>
#include <asio.hpp>
#include <cstddef>
#include <chrono>
#include <memory>
class server_engine {
... |
/*
* Copyright (C) 2005-2016 <NAME> (<EMAIL>).
* 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 as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ve... |
#include "test.h"
#include <mjs/lexer.h>
#include <vector>
#include <sstream>
#include <cmath>
using namespace mjs;
std::vector<token> lex(const std::wstring_view& s) {
try {
lexer l{s, tested_version()};
std::vector<token> ts;
for (; l.current_token(); l.next_token()) {
ts.pu... |
//*****************************************************************************
// Copyright 2017-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://w... |
#include "Tick.h"
#include "Audio/Audio.h"
#include "Audio/Sound.h"
#include "Audio/Sounds.h"
#include "Base/Mem.h"
#include "Base/Random.h"
#include "Cheats.h"
#include "Controls.h"
#include "Data.h"
#include "DoomDefines.h"
#include "DoomRez.h"
#include "Game.h"
#include "GFX/Renderer.h"
#include "GFX/Video.h"
#incl... |
/*
* See documentation at https://nRF24.github.io/RF24
* See License information at root directory of this library
* Author: <NAME> (2bndy5)
*/
/**
* A simple example of sending data from as many as 6 nRF24L01 transceivers to
* 1 receiving transceiver. This technique is trademarked by
* Nordic Semicond... |
// efx_main.cpp
// Copyright (c) 2018, zhiayang
// Licensed under the Apache License Version 2.0.
#include "efx.h"
#include "krt.h"
#include "efi/types.h"
#include "efi/system-table.h"
#include "efi/boot-services.h"
#include "efi/protocol/loaded-image.h"
#include "efi/protocol/graphics-output.h"
#define EFX_VERSION... |
#include "stdafx.h"
#include "xrtheora_surface.h"
#include "xrtheora_stream.h"
CTheoraSurface::CTheoraSurface()
{
ready = FALSE;
// streams
m_rgb = 0;
m_alpha = 0;
// timing
tm_play = 0;
tm_total = 0;
// controls
playing = FALSE;
looped = FALSE;
bShaderYUV2RGB = TRUE;
prefetch = -2;... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
double dp[50][5];
bool done[50][5];
int R[50][3];
double P[50][3];
int N;
int X;
double go(int pos, int better) {
if (better >... |
// $Id$
/*
Copyright (c) 2007-2015, Trustees of The Leland Stanford Junior University
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... |
// $Id$
// Main authors: <NAME>: 2009
/**************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. ... |
#include<math.h>
#include"function_opengl.h"
#include"packet_control_interface.h"
#include <iostream>
#define pi 3.1415926
#define Max_plot 100000
/////////////////// function definations /////////////////
//
//
/////////////////// dds /////////////////////////
CPacketControlInterface *ddsInterface... |
/*
***********************************************************************************************************************
*
* Copyright (c) 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 ... |
/*
* Copyright 2020 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
//===----------------------------------------------------------------------===//
//
// 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) 2021, NVIDIA 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 ... |
/*****************************************************************************
Copyright (c) 1995, 2015, 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 as published by the Free Software
Founda... |
// Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved.
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation the rights to use,... |
/* -*- mode: C; c-basic-offset: 4; intent-tab s-mode: nil -*-
*
* Sifteo SDK Example.
*/
#include <sifteo.h>
#include "fontdata.h"
#include "assets.gen.h"
#include "Environment.h"
using namespace Sifteo;
static Metadata M = Metadata()
.title("Text SDK Example")
.package("com.sifteo.sdk.tex... |
#include <tkn/singlePassApp.hpp>
#include <tkn/shader.hpp>
#include <tkn/bits.hpp>
#include <tkn/util.hpp>
#include <argagg.hpp>
#include <vpp/trackedDescriptor.hpp>
#include <vpp/pipeline.hpp>
#include <vpp/descriptor.hpp>
#include <vpp/sharedBuffer.hpp>
#include <vpp/bufferOps.hpp>
#include <vpp/vk.hpp>
#include <nyt... |
#include "l1_hashtable.hpp"
#include <vector>
#include <iostream>
#include "stdio.h"
Hashtable::Hashtable() {
this->set_seed_size(14);
}
Hashtable::Hashtable(uint64_t seed) {
if(seed > 17 || seed < 10){
std::cerr << "Proper seed size is between 10 and 17 bp, inclusive" << std::endl;
exit(1);
}
this->s... |
/* Copyright (C) 2010, <NAME> <<EMAIL>>
Copyright (C) 2005-2012, <NAME> <<EMAIL>>
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 abov... |
//===--- BasicCalleeAnalysis.cpp - Determine callees per call site --------===//
//
// 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... |
//===-- SparcAsmPrinter.cpp - Sparc LLVM assembly writer ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// Copyright 2012 <NAME>.
//
// Author: <NAME> (<EMAIL>)
//
// 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... |
/****************************************************************************
** Copyright (c) 2017, Fougue Ltd. <http://www.fougue.pro>
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions
** are met:
**
*... |
/**
* @file llestateinfomodel.cpp
* @brief Estate info model
*
* $LicenseInfo:firstyear=2011&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2011, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General... |
//
// warp.c
// Warp
//
// Created by wenqihe on 1/11/16.
// Copyright © 2016 wenqihe. All rights reserved.
//
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <pthread.h>
#define BUFFER_SIZE 512
#define SMALL_BUFFER_SIZE 16
#define LEARNING_RATE 0.01
#define MAX_ITER 50
int co... |
/* Copyright 2017 <NAME>
* Copyright 2017 Quarkslab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.