text
stringlengths
3.08k
12.5k
//===- CFG.test.cpp ---------------------------------------------*- C++ -*-===// // // Copyright (C) 2018 GrammaTech, Inc. // // This code is licensed under the MIT license. See the LICENSE file in the // project root for license terms. // // This project is sponsored by the Office of Naval Research, One Liberty //...
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/utils/SkBase64.h" #define DecodePad -2 #define EncodePad 64 static const char default_encode[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "...
#include <iostream> #include "util.h" #include "sdl_trigger.h" #include "graphics.h" #include "maze.h" const size_t WIDTH = 640; const size_t HEIGHT = 480; int main(int argc, char const *argv[]) { srand(time(NULL)); if (SDL_Init(SDL_INIT_VIDEO) != 0) { fatal(SDL_GetError()); } if (TTF_Init()...
#include <stdlib.h> #include <stdio.h> #include "ppu.h" #include "utils.h" bppu* init_ppu(u8* memory, cartridge* cart) { bppu* ppu = (bppu*)malloc(sizeof(bppu)); ppu->PPUCTRLreg = memory + 0x2000; ppu->PPUMASKreg = memory + 0x2001; ppu->PPUSTATUSreg = memory + 0x2002; ppu->OAMADDRreg = memory + 0x2...
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "CurveIntersection.h" #include "Extrema.h" #include "IntersectionUtilities.h" #include "LineParameters.h" static double interp_quad_coords(double a, double b, double ...
/* * Copyright information and license terms for this software can be * found in the file LICENSE that is included with the distribution */ /** * @author <NAME> and <NAME> * @date 2021.02 */ #include <iostream> #include <time.h> #include <unistd.h> #include <epicsGetopt.h> #include <pv/pvaClientMultiChannel.h> ...
#include <eigen3/Eigen/Dense> #include <QApplication> #include <QMainWindow> #include <QToolBar> #include <QAction> #include <QColor> #include <Qt> #include <QatPlotting/PlotFunction1D.h> #include <QatPlotting/PlotStream.h> #include <QatPlotWidgets/PlotView.h> #include <QatGenericFunctions/F1D.h> #include <iostream> #i...
// MIT License // // Copyright (c) 2018 <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, ...
// Created 18-Jul-2013 by <NAME> (University of California, Irvine) <<EMAIL>> // convert guiding offsets to tp correction // g++ -lboost_program_options guidingtp.cxx -o guidingtp #include "boost/program_options.hpp" #include "boost/math/special_functions/gamma.hpp" #include <iostream> #include <fstream> #include <cm...
#include "HTTPSocket.h" #include "Server.h" #include "Network.h" #include <iostream> #include <utility> #include <cstring> #include <uv.h> #include <openssl/ssl.h> struct Request { char *cursor; std::pair<char *, size_t> key, value; Request(char *cursor) : cursor(cursor) { size_t length; ...
// // ItemBag.cpp // // Created by <NAME> on 1 November 2019 // Copyright © 2020 <NAME>. All rights reserved. // #include <iostream> using namespace std; class Item { private: string name; double cost; public: Item() { name = ""; cost = 0.0; } Item(strin...
#include "GLfunctions.h" #include "CLfunctions.h" #include "pandatype.h" //Creating our cute little pandas (: panda Pinky, Blacky, Pawy, Cuddly; //And a nice place for them to live World world; void drawScene() { //Clear information from last draw glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER...
#include <fstream> #include <typeindex> #include <typeinfo> #include <cstdio> #include <string> #include <vector> #include <set> #include <map> #include <utility> #include "frame/Frame.h" #include "frame/Entity.h" #include "frame/Component.h" #include "frame/Node.h" #include "frame/System.h" #include "frame/Archive.h" ...
/************************************************ Name: CC2CL File: Input.cpp Description: CC Wrapper Product: Microsoft Visual C++ Copyright (c) Microsoft Corporation. All rights reserved. This source code is intended only as a supplement to Microsoft Development Tools and/or on-line documentation. See these other...
// Euclidean.cpp // <NAME>, MIT License, 2018 #include "Euclidean.h" np::sequence::Euclidean::Euclidean(){ //values.reserve(256); values.resize(256); for(float & value : values ) value = 0.0f; string name = "euclidean sequence"; pdsp::Sequence::label = name; parameters.setName( name );...
/******************************************************************************** * Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute, * Faculty of Engineering, University of Southern Denmark * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
#include <iostream> #include <sstream> #include <string> #include <unordered_set> #include <unordered_map> #include <fstream> #include "clang/AST/AST.h" #include "clang/AST/ASTConsumer.h" #include "clang/AST/RecursiveASTVisitor.h" #include "clang/Frontend/ASTConsumers.h" #include "clang/Frontend/FrontendActions.h" #in...
#include <raptr/game/game.hpp> #include <chrono> #include <functional> #include <memory> #include <sstream> #include <thread> #include <vector> #include <raptr/common/filesystem.hpp> #include <raptr/common/logging.hpp> #include <raptr/config.hpp> #include <raptr/game/actor.hpp> #include <raptr/game/character.hpp> #in...
#include "hooks.h" #include "GameEvents.h" #include <time.h> #include "Mmsystem.h" #include <thread> #include "Hitmarker.h" #include "Resolver.h" #include "global.h" #include "controls.h" #pragma comment(lib, "winmm.lib") #define EVENT_HOOK( x ) #define TICK_INTERVAL (Globals->interval_per_tick) #d...
#include <iostream> #include <iomanip> #include <fstream> #include <chrono> #include <vector> #include <cmath> using namespace std; using namespace std::chrono; ofstream out; double nthCoefficientProduct(vector<double> &x, vector<double> &y, int n){ /* This method computes the nth coefficient of x*y, runs in O(n) ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <assert.h> #include <atomic> #include <memory> #include <string.h> // for memcpy #include <vector> #include "quantum__rt.hpp" #include "qirTypes.hpp" /*================================================...
/**********************************************************************/ /** Microsoft Windows/NT **/ /** Copyright(c) Microsoft Corp., 1991 **/ /**********************************************************************/ /* xstr02.cxx ...
// Copyright (c) 2014-2018 LG Electronics, 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...
#include <iostream> #include <cstdlib> // https://en.wikibooks.org/wiki/C%2B%2B_Programming/Code/Standard_C_Library/Functions/system #include <fstream> #include <math.h> #include <time.h> #include <vector> using namespace std; int maxHz = 64; // pixels of the image. Few seconds for 256 * 256. int maxVt = 64; // pixels...
/* 662. Maximum Width of Binary Tree Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum width among all levels. The binary tree has the same structure as a full binary tree, but some nodes are null. The width of one level is defined as the length betw...
#include "version.h" #include <ProgramOptions.hxx> #include <chrono> #include <cstring> #include <ctime> #include <fstream> #include <future> #include <iostream> #include <kr/base64.h> #include <kr/krstring.h> #include <kr/timer.h> #include <mutex> #include <set> #include <stdio.h> #include <stdio.h> #include <stdlib.h...
//#include "../dnnl_test.h" #include <cassert> #include <cctype> #include <cmath> #include <cstdio> #include <iostream> #include <random> #include <stdexcept> #include <vector> #include <type_traits> #include <sys/time.h> #include "dnnl.hpp" #include "../common/c_runtime_api.h" #include "dnnl_runtime.h" using namesp...
/* * Copyright (c) 2013, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
#include "../stroustrup/std_lib_facilities.h" //Q: Why would people want to use a Rational class? //A: No precision is lost. For example, while handling infinitely long numbers //----------------------------- rational class rational { private: int numerator; int denominator; public: rational(int numerator...
/* * Copyright (c) 2008, <NAME> University * This software is distributed under the terms of the * Simplified BSD License (see tcm/LICENSE.TXT) */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include <sys/types.h> #include <sys/wait.h> #include "tcm.h" #include "distrTes...
/* Copyright (C) 2000-2003, Intel Corporation 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 conditio...
#include "sfml_extensions.h" #include <iostream> #include <algorithm> #include <map> #include <fstream> #include <cstdlib> #include <ctime> #include <cmath> #include <set> //SFML REQUIRED TO LAUNCH THIS CODE #define WINDOW_WIDTH 1920 #define WINDOW_HEIGHT 1080 #define FRAMERATE 60 #define LOG true using namespace st...
/******************************************************************************* * * Copyright (c) 2018 <NAME> * * ----------------------------------------------------------------------------- * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated docum...
/* Copyright 2016 <NAME> and <NAME> 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 ...
#include "FT2.h" #define __STDC_CONSTANT_MACROS #include <iostream> #include <string.h> #include <stdint.h> #include <stdlib.h> #include <ft2build.h> #include FT_FREETYPE_H #include FT_STROKER_H #include <iostream> using namespace std; #define FT_CHECK_ERROR(_fnc, message) \ ARIBEIRO_ABORT( (_fnc) != 0, message...
#include <iostream> #include <iow/io/aux/read_buffer.hpp> #include <chrono> #include <fcntl.h> #include <unistd.h> #ifndef NDEBUG #define TOTAL 1 #else #define TOTAL 1000 #endif typedef ::iow::io::data_type data_type; typedef ::iow::io::data_ptr data_ptr; typedef ::iow::io::read_buffer read_buffer; //typedef ::i...
#include "buffer.h" #include "client.h" #include "server.h" #include "connection.h" // newbie first pass guarantee #define COUNTER_INIT (DTR_THRESHOLD + MIN_DOWNLOAD_SPEED) * MONITOR_INTERVAL Client::Client(int fd, const struct sockaddr_in& _addr, Connection* _conn): addr{get_host_and_port(_addr)}, conn...
#include "util.h" #include <sstream> #include "modules/World.h" #include "df/building.h" #include "df/building_def_furnacest.h" #include "df/building_def_workshopst.h" #include "df/civzone_type.h" #include "df/construction_type.h" #include "df/furnace_type.h" #include "df/shop_type.h" #include "df/siegeengine_type.h...
#ifdef MACOS_FRAMEWORK #include "qryptsecurity.h" #include "qryptsecurity_exceptions.h" #else #include "QryptSecurity/qryptsecurity.h" #include "QryptSecurity/qryptsecurity_exceptions.h" #endif #include <fstream> #include <iomanip> #include <iterator> #include <sstream> #include <string> #include <ve...
#include "ros/ros.h" #include <math.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "MPC.h" #include "mpc/mpc.h" /* // test track double Lf = 2.67; size_t N = 20; // Choosing a large period (N*dt) causes a big er...
/******************************************************************************* * tests/agg_test.cpp * * aggregation test for more information see below * * Part of Project growt - https://github.com/TooBiased/growt.git * * Copyright (C) 2015-2016 <NAME> <<EMAIL>> * * All rights reserved. Published under the ...
#include <algorithm> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; struct Station { int dist, price; Station(int d = 0, int p = 0): dist(d), price(p) {} }; bool operator<(const Station &a, const Station &b) { return a.dist < b.dist; } class GasStat...
/* gpe_cpp_compiler_settings.cpp This file is part of: GAME PENCIL ENGINE https://create.pawbyte.com Copyright (c) 2014-2019 <NAME>, <NAME>. Copyright (c) 2014-2019 PawByte LLC. Copyright (c) 2014-2019 Game Pencil Engine contributors ( Contributors Page ) Permission is hereby granted, free of charge, to any...
#include <iostream> #include<stdlib.h> #include<time.h> #include <bits/stdc++.h> #include<string> #include <cstdlib> #include <regex> using namespace std; //generating checksum for credit card number generator char luhn(string cc_num_str_temp){ char temp, temp2, temp3; int num2=0, sum=0, mo...
//////////////////////////////////////////////////////////////////////////////// //Copyright (c) 2012, <NAME> //All rights reserved. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions are met: // * Redistributions of source cod...
/* Portions copyright (c) 2006-2019 Stanford University and Simbios. * Contributors: <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 l...
#include "TestDrawer.h" #include "Source/Viewers/IMGuiViewer/OpenGL/Shader.h" #include "Camera.h" #include <glad/glad.h> solar::drawers::TestDrawer::TestDrawer(const Camera & cam) { CreateShader(cam); constexpr size_t resolution = 32; std::vector<Vec3f> vertices; std::vector<uint32_t> indices; MakeSphere(resolu...
/// /// Win32 implementation of Directories change monitor // // $Id: $ // DirMonitor::DirMonitor() : m_outstandingExit(false) , m_outstandingReads(0) , m_changeNotify(0) { } DirMonitor::~DirMonitor() { stop(); delete m_changeNotify; } void DirMonitor::terminateProc(ULONG_PTR arg) { DirMonitor* dirMonit...
/* Copyright (c) 2014-2018, NVIDIA CORPORATION. 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 ...
#include "pch.h" #include "ShapeCache.h" #include "Card.h" #include "CompositionCard.h" #include "SvgShapesBuilder.h" namespace winrt { using namespace Windows; using namespace Windows::ApplicationModel::Core; using namespace Windows::Foundation; using namespace Windows::Foundation::Numerics; usin...
// // Copyright (c) 2017 The Khronos Group 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 la...
#include "acmacs-draw/surface.hh" using namespace acmacs::surface; // ---------------------------------------------------------------------- void Surface::grid(Scaled aStep, Color aLineColor, Pixels aLineWidth) { const Viewport& v = viewport(); for (auto x = v.left_scaled() + aStep; x < v.right_scaled(); x +...
#include "dice/dice.hpp" #include <algorithm> #include <cstdlib> #include <regex> #include <stdexcept> #include <utility> Dice::Dice(std::string_view str) { static const auto char_is_whitespace = [] (char c) noexcept { static constexpr std::string_view whitespace = "\t\n\f\r "; return whitespace.fi...
#include "Games/Breakout/BreakoutGameLevel.h" #include "Games/Breakout/Ball.h" #include "App/App.h" #include "Utils/FileCommandLoader.h" BreakoutGameLevel::BreakoutGameLevel() {} void BreakoutGameLevel::Init(const AARectangle& boundary) { CreateDefaultLevel(boundary); } void BreakoutGameLevel::CreateDefaultLevel(c...
/* * Implementation of particle filter */ #include "particle_filter.h" #include "particle.h" #include <iostream> #include <iterator> #include <numeric> #include <set> #include <sstream> constexpr int NUM_PARTICLES = 100; ParticleFilter::ParticleFilter(double sensor_range, double sigma_landmark[2], double sdev_pos...
#include "Matching.hpp" #include <iostream> #include <vector> #include <limits> using std::cerr; using std::endl; using std::vector; Matching::Matching(std::string s, RegionsSingleImage *a, RegionsSingleImage *d){ matchingAlgoStr = s; Matching(a, d); } Matching::Matching(RegionsSingleImage *a, RegionsSingleImag...
#include "lua_space.h" #include "TSpace.hpp" #include "XStreamfunction.hpp" #include "getset.h" #include <cstring> static int space_load(lua_State *L) { Space **ptr = (Space**)luaL_checkudata(L, 1, "S"); Space *S = *ptr; const char* fname = luaL_checkstring(L, 2); S->load(fname); return 0; } stat...
/*Copyright (c) 2011, <NAME>, all rights reserved.*/ /** \addtogroup examples * @{ * \defgroup recursive_matmul recursive_matmul * @{ * \brief Performs recursive parallel matrix multiplication using the slice interface to extract blocks */ #include <ctf.hpp> using namespace CTF; void recursive_matmul(int...
if (n == 1) { complex_p p = *shuffled; complex z0 = *p; complex_p o = output; *o = z0; return; } if (n == 2) { complex_p p = *shuffled; complex z0 = *p; ++p; complex z1 = *p; complex_p o = output; *o = z0 + z1; ++o; *o = z0 - z1; return; } double_o nMask = double_o(n-1); complex_o n_co = comple...
//***************************************************************************** // Copyright 2022 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.ap...
#include <array> #include <cstring> #include <stdexcept> #include <vector> namespace field { template <typename GF> std::vector<std::vector<GF>> precompute_lagrange_polynomials(const std::vector<GF> &x_values) { size_t m = x_values.size(); std::vector<std::vector<GF>> precomputed_lagrange_polynomials; precompu...
/* * <NAME> @margu424 && <NAME> @axega544 * * plays the game hangman but cheats by changing the word it thinks of in order * to win more often. * * Soruces : * labb PM - https://www.ida.liu.se/~TDDD86/info/misc/labb2.pdf * C++ doc - http://www.cplusplus.com/doc/tutorial/files/ * */ #include <fstr...
#include <gflags/gflags.h> #include <glog/logging.h> #include <algorithm> #include <chrono> #include <cmath> #include <cstdio> #include <numeric> #include <opencv2/opencv.hpp> #include <random> #include <thread> #include <tuple> #include <utility> #include "nexus/common/image.h" #include "nexus/proto/nnquery.pb.h" s...
#include "loopndisplay.hpp" #include <random> class square_mapped_2d : protected lnd::looper { private: float theta = 0.0f; lnd::shader_vertex lights_vertex; lnd::shader_fragment lights_fragment; lnd::program prog; lnd::group_cluster_vertex<3, 2> square; lnd::group_cluster_vertex<6, 2> square_frame; lnd::...
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <string.h> #include <stdexcept> #include <iostream> #include "logging.h" #include "network.h" #include "networkclient.h" #include "config.h" #include "callback.h" Network::Network(uv_loop_t *loop, Config *...
#include "result.h" #include <regex> #include "../common/largenum.h" #include "../graphic/graphic.h" #include "../sound/sound.h" #include "sound.h" #include "func.h" #include "rankval.h" #include "ruletbl.h" #include "haifu.h" namespace { /* 最後まで残っていた供託点棒はトップ取り */ void withdrawDepoScore(GameTable* gameStat) { co...
#include "Arduino.h" #include "dtmf.h" #include "Dac.h" #define ROW_697 14 // 697/50=13.97, get 700Hz #define ROW_770 15 // 770/50=15.4, get 750Hz #define ROW_852 17 // 850 Hz #define ROW_941 19 // 950 Hz #define COL_1209 24 //1200 Hz #define COL_1336 27 //1350 Hz #define COL_1477 30 //1500 Hz #define CO...
#include <dis7/FundamentalOperationalData.h> using namespace DIS; FundamentalOperationalData::FundamentalOperationalData(): _systemStatus(0), _dataField1(0), _informationLayers(0), _dataField2(0), _parameter1(0), _parameter2(0), _parameter3(0), _parameter4(0), _parameter5(0), _...
//-------------------------------------------------------------------------- // File and Version Information: // $Id: ComExtendedSyntaxParser.cc 443 2010-01-14 12:24:42Z stroili $ // // Description: // Class ComExtendedSyntaxParser // This is a parser to get the key/value pairs from any extended command ...
// // snake.cpp // snake // // Created by Saeid on 11/13/15. // // #include <iostream> #include <termios.h> #include <stdio.h> #include <fcntl.h> #include <cstdlib> #include <ctime> using namespace std; int kbhit(void) { struct termios oldt, newt; int ch; int oldf; tcgetattr(STDIN_FILENO, &...
#include "BVH.hpp" #include <algorithm> #include <cassert> BVHAccel::BVHAccel(std::vector<Shape*> p, int maxPrimsInNode, SplitMethod splitMethod) : maxPrimsInNode(std::min(255, maxPrimsInNode)), splitMethod(splitMethod), primitives(std::move(p)) { time_t start, stop; time(&st...
#include <LowPower.h> #include <avr/power.h> #include <Wire.h> //Interval #define INTERVAL 2 //GLOBAL #define LED_PIN 13 //BUTTON #define BUTTON 2 //TIME #define PCF8563address 0x51 byte second, minute, hour, dayOfWeek, dayOfMonth, month, year; byte alarmMinute, alarmHour, alarmDay, alarmDayOfWeek; byte bcdToDec(b...
/* Copyright (c) 2005-2016 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 la...
/* * Digital_Light_ISL29035.cpp * A library for ISL29035 * * Copyright (c) 2017 seeed technology inc. * Website : www.seeed.cc * Author : Jack * Create Time: * Change Log : * * The MIT License (MIT) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software...
/* Author: fffasttime Date: 2020/03/15 */ #include <cmath> #include <cstdio> #include <cstdlib> #include <string> #include <cstring> #include <fstream> #include <vector> #include <iostream> using namespace std; void check(bool pred, const char *reason){ if (!pred){ printf("%s\n", reason); exit(1); } } string f...
/* * M_APM - mapm_lg3.c * * Copyright (C) 2003 - 2007 <NAME> * * Permission to use, copy, and distribute this software and its * documentation for any purpose with or without fee is hereby granted, * provided that the above copyright notice appear in all copies and * that both that copyright notice a...
#include <ros/package.h> #include <ros/ros.h> #include <rr_msgs/hsv_tuned.h> #include <ctime> #include <fstream> #include <iostream> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> using namespace cv; using namespace std; ros::Publisher hsv_pub; rr_msgs::hsv_tuned hsv_msg; const int hsv_slid...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ /* * 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 <co...
/*This file is part of the PostView source code and is licensed under the MIT license listed below. See Copyright-PostView.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 person obta...
#include <iostream> #include <string> #include <common/base_types.h> #include <common/err_def.h> #include <data/assets.h> #include <glad/glad.h> #include <vulkan/vulkan.h> #include <math/deng_math.h> #include <deng/window.h> #define _LOG_SIZE 512 static GLuint sh_program; static GLuint vao, vbo, ibo; struct shade...
/* Copyright 2015-2018 Intel Corporation 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, distribu...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2018 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...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * ...
#include "b3ImportMeshUtility.h" #include <vector> #include "../../ThirdPartyLibs/Wavefront/tiny_obj_loader.h" #include "LinearMath/btVector3.h" #include "../ImportObjDemo/Wavefront2GLInstanceGraphicsShape.h" #include "../../Utils/b3ResourcePath.h" #include "Bullet3Common/b3FileUtils.h" #include "stb_image/stb_image.h...
#include "cycle_detection.h" std::vector<std::vector<int>> find_cn_neighbors(std::vector<std::vector<int>> & input_matrix) { /* This function finds all variable nodes connect to each check node if one check node currently does not conncet variable node we will also keep a position to this ...
/* * Copyright (C) 2015-2016 Open Source Robotics Foundation * * 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...
// RUN: %clang_cc1 -std=c++2a -fexceptions -verify %s // RUN: %clang_cc1 -std=c++2a -verify %s namespace std { using size_t = decltype(sizeof(0)); enum class align_val_t : size_t; struct destroying_delete_t { struct __construct { explicit __construct() = default; }; explicit destroying_delete_t(__const...
#include "potts_meanpass_gpu_solver.h" #include <math.h> #include <iostream> #include <limits> #include "gpu_kernels.h" POTTS_MEANPASS_GPU_SOLVER_BASE::POTTS_MEANPASS_GPU_SOLVER_BASE( const cudaStream_t & dev, const int batch, const int n_s, const int n_c, const float* data_cost, ...
// Copyright (c) 2021 XOptimzer Team. // All rights reserved. // Standard libraries #include <utility> // std::pair, std::make_pair #include <chrono> // std::chrono::system_clock::now().time_since_epoch().count() #include <random> // std::mt19937_64 #include <algori...
// Copyright (c) 2020, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions a...
// // Schema.cpp // ECEDatabase // // Created by <NAME> on 4/19/18. // Copyright © 2018 <NAME>. All rights reserved. // #include "Entity.hpp" #include "Storage.hpp" #include "Row.hpp" #include "Tokenizer.hpp" #include <fstream> #include <iostream> #include <string> #include <streambuf> #include <sys/stat.h> #inclu...
/* * Author: <NAME> <<EMAIL>> * Copyright (c) 2014 Intel Corporation. * * 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 t...
/*The MIT License (MIT) Copyright (c) 2016 <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...
/** * @file llassetupload.cpp * @brief Serializes asset upload request * * $LicenseInfo:firstyear=2007&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
#include "llvm/IR/Function.h" #include "llvm/IR/IRBuilder.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/Module.h" #include "llvm/Pass.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Transforms/IPO/PassManagerBuilder.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h" #include <cstring> #include ...
/* * Time Complexity: Suffix Array: O(N + Character_Set_Size) time and space // 128 --- ASCII * LCP: O(N) time and space * Usage: * 1. Suffix Array (returns s.size() elements, NOT considering 0-length/empty suffix) * auto sa = suffix_array(s); // s is the input string with ASCII...
//-------------------------------------------------------------------------- // Copyright (C) 2014-2018 Cisco and/or its affiliates. All rights reserved. // Copyright (C) 2005-2013 Sourcefire, Inc. // // This program is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public...
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2013 - Raw Material Software Ltd. Permission is granted to use this software under the terms of either: a) the GPL v2 (or any later version) b) the Affero GPL...
#include "stdafx.h" #pragma hdrstop #include "bone.h" #include "envelope.h" #define BONE_VERSION 0x0002 //------------------------------------------------------------------------------ #define BONE_CHUNK_VERSION 0x0001 #define BONE_CHUNK_DEF 0x0002 #define BONE_CHUNK_BIND_POSE 0x0003 #define B...
// // NBitVectorTest.cpp // hog2 glut // // Created by <NAME> on 9/29/15. // Copyright (c) 2015 University of Denver. All rights reserved. // #include "NBitVectorTest.h" #include "NBitArray.h" #include "Timer.h" #include "FourBitArray.h" void TimingTest() { const int arraySize = 1000001; Timer t; { NBitArr...