text
stringlengths
9
948k
/* * Copyright (c) 2016 Open-RnD Sp. z o.o. * * 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 o...
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #pragma once /** Handles the collection management for the given assets */ class FCollectionAssetManagement { public: /** Constructor */ FCollectionAssetManagement(); /** Destructor */ ~FCollectionAssetManagement(); /** Set the assets that we are cur...
/********************************************************************* * SEGGER Microcontroller GmbH & Co. KG * * Solutions for real time microcontroller applications * ********************************************************************** * ...
// DOM-IGNORE-BEGIN /******************************************************************************* Copyright 2015 Microchip Technology Inc. (www.microchip.com) 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...
#ifndef __STATIC__HG #define __STATIC__HG #include "../typedefs.h" #include "../stdafx.h" #include <vector> #include <QDateTime> #include <QMetaType> #include <../QtGui/QImage> #ifdef _WIN32 #include <windows.h> #endif class Drive; namespace Streams { class xDeviceFileStream; } #define FAT32 4 #define FAT16 2 #defin...
/* * Copyright (c) 2019 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* * Copyright 2011 The LibYuv Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing p...
#ifndef TOWER_H #define TOWER_H #include <vector> class towerclass { public: towerclass(); int backat(int xp, int yp, int yoff); int at(int xp, int yp, int yoff); int miniat(int xp, int yp, int yoff); void loadminitower1(); void loadminitower2(); void loadbackground(); void load...
// -*- lsst-c++ -*/ /** * @file simulation_time_control.h * @brief defined all the structure used in the simulation time control * @version 0.1 * @copyright MIT License. Please see package.xml for further detail. */ #include <exception> #include <chrono> #include <thread> #include <ros/ros.h> #include <gazebo/t...
#include "mini_uart.h" #include "stdint.h" #include "str_tool.h" void print_state(){ uint64_t spsr, elr, esr; asm volatile("mrs %0, spsr_el1 \n":"=r"(spsr):); asm volatile("mrs %0, elr_el1 \n":"=r"(elr):); asm volatile("mrs %0, esr_el1 \n":"=r"(esr):); uart_puts("spsr_el1 = "); uart_puts(itoa...
#include <stdint.h> #include <stdlib.h> #include <string.h> #include "dat.h" static uint64 next_id = 1; static int cur_prime = 0; static job all_jobs_init[12289] = {0}; static job *all_jobs = all_jobs_init; static size_t all_jobs_cap = 12289; /* == primes[0] */ static size_t all_jobs_used = 0; static int hash_table...
/** _ _ _ _ ** (_)_ _ __| (_) |__ ** | | '_/ _| | | '_ \ ** |_|_| \__|_|_|_.__/ ** ** A simple library for creating IRC clients. ** ** (C) 2005 by Claudio Leite ** ** Please see the COPYING file for more details. **/ #include "irclib.h" /* PROTO */ int getbyteorder(void) { uint16_t blah = 0x...
/** * Copyright (c) 2020 Pascal Marechal * * Distributed under the MIT License. (See accompanying file LICENSE) * * WARNING : This file is not tested directly. It is testing with server.cpp/.h */ #pragma once #include "internal/asio.h" #include "match_end_of_header.h" #include "internal/public_folder/public_...
/////////////////////////////////////////////////////////////////////// // File: language_model.h // Description: Functions that utilize the knowledge about the properties, // structure and statistics of the language to help segmentation // search. // Author: Daria Antonova // // (...
/* * asus-laptop.c - Asus Laptop Support * * * Copyright (C) 2002-2005 Julien Lerouge, 2003-2006 Karol Kozimor * Copyright (C) 2006-2007 Corentin Chary * Copyright (C) 2011 Wind River Systems * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General ...
// CDownload class #include "vInclude.h" #include "CThread.h" typedef struct DKSPT { __int64 AvailableT; __int64 FreeT; __int64 TotalT; } DKSPT; class CDuplicateCheck { public: void Run(); }; class CRegCheck : public CThread { public: virtual void *Run(); void Uninstall(); }; class CMisc { public: void All...
/** * FreeRDP: A Remote Desktop Protocol Implementation * NTLM over HTTP * * Copyright 2012 Fujitsu Technology Solutions GmbH * Copyright 2012 Dmitrij Jasnov <dmitrij.jasnov@ts.fujitsu.com> * Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "L...
#ifndef STLINK_CHIPID_H_ #define STLINK_CHIPID_H_ #ifdef __cplusplus extern "C" { #endif /** * Chip IDs are explained in the appropriate programming manual for the * DBGMCU_IDCODE register (0xE0042000) * stm32 chipids, only lower 12 bits... */ enum stlink_stm32_chipids { STLINK_CHIPID_UNKNOWN =...
#include <stdio.h> #include <math.h> #include <stddef.h> int isPalindrome(n) { int copy = n; int complement = 0; while (copy > 0) { complement = complement * 10 + copy % 10; copy /= 10; } if (complement == n) return 1; return 0; } int main(void) { int i, j, ans, x; ans = 0; for (i = 1; i < 1000; i++...
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include "writeletterwindow.h" #include "searchresultwindow.h" #include "letterdetailwindows.h" #include "letterreceivebox.h" #include "lettersentbox.h" #include "letterscriptbox.h" #include "letterdeletedbox.h" #include <QMainWindow> #include <QLabel> #include <QWidget> #inc...
/* * Copyright (C) 2006 Michael Niedermayer (michaelni@gmx.at) * Copyright (C) 2003-2005 by Christopher R. Hertel (crh@ubiqx.mn.org) * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by...
#pragma once #include "stdint.h" #include "Coroutine.h" #define MAX_BRIGHTNESS 100u enum class LightEffect : uint8_t { Command, FrontLights, RearLights, LeftTurnSignal, RightTurnSignal, SpeedChange, TurnOn, Police }; class RGBLed; struct LightState; class LightController { private: Coroutine* const _corou...
/*========================================================================= Program: Visualization Toolkit Module: vtkImageStack.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is d...
// // EUCReadListController.h // EUCIMManager // // Created by 肖乐 on 2017/4/11. // Copyright © 2017年 BBDTEK. All rights reserved. // #import "EUCBaseTBController.h" #import "EUCReadDetailController.h" @interface EUCReadListController : EUCBaseTBController @property (nonatomic, copy) NSString *dialogID; @property...
/* s_fabsl.c -- long double version of s_fabs.c. * Conversion to long double by Ulrich Drepper, * Cygnus Support, drepper@cygnus.com. */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunPro, a Sun Microsystems, Inc....
#ifndef ODOMETRY_DISPLAY_H #define ODOMETRY_DISPLAY_H #ifndef Q_MOC_RUN #include <nav_msgs/Odometry.h> #include <rviz/message_filter_display.h> #endif namespace rviz { class ColorProperty; class FloatProperty; class BoolProperty; } namespace Ogre { class SceneNode; } namespace rviz_plugin_covariance { class Covari...
/***************************************************************************** * * t65ce02.c * 65ce02 opcode functions and function pointer table * * Copyright (c) 2000 Peter Trauner, all rights reserved. * * - This source code is released as freeware for non-commercial purposes. * - You are free to use an...
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
#ifndef _PSAUTOBGM_MELOARRMGR_H #define _PSAUTOBGM_MELOARRMGR_H /* __vt__Q29PSAutoBgm10MeloArrMgr: .4byte 0 .4byte 0 .4byte __dt__Q29PSAutoBgm10MeloArrMgrFv */ namespace PSAutoBgm { struct MeloArrMgr { virtual ~MeloArrMgr(); // _00 // _00 VTBL }; } // namespace PSAutoBgm #endif
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import "test_radix_sort_objc.h"
/* POSIX module implementation */ /* This file is also used for Windows NT/MS-Win and OS/2. In that case the module actually calls itself 'nt' or 'os2', not 'posix', and a few functions are either unimplemented or implemented differently. The source assumes that for Windows NT, the macro 'MS_WINDOWS' is def...
/* * Poly1305 authenticator algorithm, RFC7539, SIMD glue code * * Copyright (C) 2015 Martin Willi * * 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 2 of the License, or *...
// Copyright (c) 2006-2008 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. #ifndef VIEWS_WIDGET_WIDGET_H_ #define VIEWS_WIDGET_WIDGET_H_ #include "base/gfx/native_widget_types.h" class ThemeProvider; namespace gfx { c...
/* * $Id: s_gqmksc.c,v 1.5 2008-07-23 17:24:21 haley Exp $ */ /************************************************************************ * * * Copyright (C) 2000 * * University Corporation fo...
/* -*- mode: C -*- */ /* IGraph library. Copyright (C) 2006-2012 Gabor Csardi <csardi.gabor@gmail.com> 334 Harvard st, Cambridge MA, 02139 USA 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 Softw...
/* vim: set ft=cpp: */ /* * XXX: There is no acceptable way to completely prevent user from * corrupting our memory without hardware support (e.g. pkey, while which * can't gurantee the whole safety, but most). * The protection is done for the syscalls, but it's too * costly for normal memory accessing instructio...
/////////////////////////////////////////////////////////////////////////////// // BSD 3-Clause License // // Copyright (c) 2019, Nefelus 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: //...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 1999 Doug Rabson * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@FreeBSD.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * ...
// // UIView+SFGesture.h // SFExtension // // Created by 花菜 on 2017/7/26. // Copyright © 2017年 chriscaixx. All rights reserved. // #import <UIKit/UIKit.h> #import "SFCommon.h" @interface UIView (SFGesture) /** * 给view添加单击手势 * * @param block 单击手势执行的block */ - (void)sf_setTapActionWithBlock:(SFCommonBlock)bl...
/* * This header is generated by classdump-dyld 1.0 * on Monday, September 28, 2020 at 5:54:56 PM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/PhotosUIC...
//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by whereis.rc // #define IDS_USAGE 1 #define IDS_UNKNOWN_OPTION 2 #define IDS_VERSION_ID 3 #define IDS_PROGRAM_ROOT 4 // Next default values for new objects // #ifdef APSTUD...
#ifndef FACE_RETINAFACE_H__ #define FACE_RETINAFACE_H__ #include "ncnn/net.h" #include "common.h" class RetinaFace { public: RetinaFace(const std::string &bin_path, const std::string &param_path); ~RetinaFace(); int detect(ncnn::Mat &img, std::vector<bbox> &face_list); private: void create_anchor(s...
#ifndef _HCASERVICE_CRASHDUMPER_H #define _HCASERVICE_CRASHDUMPER_H #include <windows.h> #include <DbgHelp.h> #include <stdlib.h> #pragma comment(lib, "dbghelp.lib") inline BOOL IsDataSectionNeeded(const WCHAR * pModuleName) { if(pModuleName == NULL) { return FALSE; } TCHAR szFileName[_MAX_FNAME] = L""; TCHAR...
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 Steve Nygard. // #import "VOTButtonInterceptor.h" @class NSMutableArray, NSObject, SCRCTargetSelectorTimer; @protocol OS_dispatch_queue; @interface VOTSimpleClick...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <binned.h> #include <binnedBLAS.h> #include <reproBLAS.h> #include "../common/test_opt.h" #include "../common/test_BLAS.h" #include "../common/test_matmat_fill_header.h" #include "wrap_rsgemm.h" static opt_option max_blocks; stati...
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_MVSegmentedControl_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_MVSegmente...
/* Test for PR 69625; make sure that a leaf vararg function does not overwrite the caller's r6. */ /* { dg-do run } */ /* { dg-options "-O2" } */ extern void abort (void); __attribute__ ((noinline)) int foo (int x, ...) { __builtin_va_list vl; int i; __asm__ __volatile__ ("lhi %%r6,1" : : : "r6"); __buil...
// Copyright (c) 2011-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_OPTIONSMODEL_H #define BITCOIN_QT_OPTIONSMODEL_H #include <amount.h> #include <cstdint> #include <qt/guic...
/* Simple DirectMedia Layer Copyright (C) 1997-2019 Sam Lantinga <slouken@libsdl.org> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this ...
/** * Copyright 2018-present, Facebook, 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 ...
// // AboutUS.h // BianMin // // Created by z on 16/5/3. // Copyright © 2016年 bianming. All rights reserved. // #import "BaseViewController.h" @interface AboutUS : BaseViewController @end
#ifndef __PDNET_XMPP_H__ #define __PDNET_XMPP_H__ /*-- Cat pdnet;Protocols;XMPP/Jabber Name XMPP_Interface Struct Description typedef struct XMPP_Interface_s XMPP_Interface; struct XMPP_Interface_s { XMPP_Interface *next; char *xmlns; int (*message)(Meta0_Con *con, NetParse_Node *node); int (*iq)(Meta0_Con *...
/* Copyright 2020 joshajohnson 2021 peepeetee * * 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 2 of the License, or * (at your option) any later version. * * This program ...
/* * Copyright (C) 2012 Adobe Systems Incorporated. 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 ...
/* vi:set ts=8 sts=4 sw=4 noet: * * VIM - Vi IMproved by Bram Moolenaar * * Do ":help uganda" in Vim to read copying and usage conditions. * Do ":help credits" in Vim to see a list of people who contributed. * See README.txt for an overview of the Vim source code. */ /* * buffer.c: functions for dealing with ...
// // FileListController.h // VideoMonkey // // Created by Chris Marrin on 1/21/09. /* Copyright (c) 2009-2011 Chris Marrin (chris@marrin.com) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - ...
#pragma once #include "../../animation/animation.h" namespace Logic { class CustomAbstractListModel; class AbstractSearchModel; } namespace Ui { class SearchWidget; class ContactListWidget; class GeneralDialog; class qt_gui_settings; class DialogButton; struct AvatarData { ...
/********************************************************************************** ** ** Copyright (C) 1994 Narvik University College ** Contact: GMlib Online Portal at http://episteme.hin.no ** ** This file is part of the Geometric Modeling Library, GMlib. ** ** GMlib is free software: you can redistribute it and/or ...
/* * Copyright (c) 2016-2018 Qualcomm Technologies, Inc. * All Rights Reserved. */ // Copyright (c) 2018 Qualcomm Technologies, Inc. // All rights reserved. // Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) // provi...
/* * Copyright (C) 2010 The Android Open Source Project * * 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 app...
#pragma once #include "../includes.hpp" class c_menu : public singleton<c_menu> { public: void draw(bool is_open); void menu_setup(ImGuiStyle& style); ImFont* icons; ImFont* big; ImFont* bigger; ImFont* weapon_ic; ImFont* new_icons; ImFont* verdana_12; ImFont* vermin; float child_height; int current_profi...
/* * if_sr.h * * Copyright (C) 1997-1999 Whistle Communications Inc. * All rights reserved. * * Subject to the following obligations and disclaimer of warranty, use and * redistribution of this software, in source or object code forms, with or * without modifications are expressly permitted by Whistle Communica...
// Copyright (c) YugaByte, 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 in writ...
// // Created by wuchen.xj on 1/28/19. // Copyright (c) 2019 Taobao. All rights reserved. // #import <Foundation/Foundation.h> #ifdef __cplusplus extern "C" { #endif /** * 日志开关函数(保持向后兼容,此函数一直保留) */ void openSDKSwitchLog(BOOL flag); #ifdef __cplusplus } #endif /** * MTOP日志级别 */ typedef NS_OPTIONS(N...
#include <assert.h> #include <string.h> #include <stdio.h> #include <mpi.h> #include <pnetcdf.h> #include "constants.h" #include "Flash.h" #include "io_flash.h" #include "mangle_names.h" #ifdef USE_IO_C_INTERFACE #ifdef FTOC #undef FTOC #endif #define FTOC(x) x #endif /* Retrieves an array of dimension IDs that are ...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
/* mpz_millerrabin(n,reps) -- An implementation of the probabilistic primality test found in Knuth's Seminumerical Algorithms book. If the function mpz_millerrabin() returns 0 then n is not prime. If it returns 1, then n is 'probably' prime. The probability of a false positive is (1/4)**reps, where reps ...
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "EUTRA-RRC-Definitions" * found in "/home/vesh/openairinterface5g/openair2/RRC/LTE/MESSAGES/asn1c/ASN1_files/lte-rrc-14.7.0.asn1" * `asn1c -pdu=all -fcompound-names -gen-PER -gen-OER -no-gen-example -D /home/vesh/openairinterface5g/cmak...
/* * AVID Meridien decoder * * Copyright (c) 2012 Carl Eugen Hoyos * * This file is part of FFmpeg. * * FFmpeg 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 Licen...
/************************************************************************* * Copyright (c) 2015-2021, NVIDIA CORPORATION. All rights reserved. * Modifications Copyright (c) 2019-2021 Advanced Micro Devices, Inc. All rights reserved. * * See LICENSE.txt for license information **************************************...
/** * * \file * * \brief WINC3400 BLE Application example code. * * Copyright (c) 2017-2019 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microch...
/* * Copyright (C) 2011 Google Inc. All rights reserved. * Copyright (C) 2011 Ericsson AB. 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 t...
/* { dg-require-ifunc "" } */ static void *resolver () { return 0; } extern int magic (void) /* { dg-message "previous definition" } */ __attribute__ ((ifunc ("resolver"))); extern int magic (void) /* { dg-error "redefinition" "" } */ __attribute__ ((alias ("resolver"))); extern int spell (void) /* { ...
// // XXYAssetGroup.h // Pods // // Created by Brandon Withrow on 2/17/17. // // #import <Foundation/Foundation.h> #import <CoreGraphics/CoreGraphics.h> @class XXYAsset; @class XXYLayerGroup; @interface XXYAssetGroup : NSObject @property (nonatomic, readwrite) NSString * _Nullable rootDirectory; @property (nonatom...
#include "jx_dma.h" void dma_m2m(DMA_InitTypeDef *dma) { dwc_dma_init(dma); dwc_dma_enable(dma); }
#ifndef VAULTSCRIPT_H #define VAULTSCRIPT_H /* * vaultscript.h * Don't change anything here */ #ifdef __cplusplus #include <string> #include <vector> #include <unordered_set> #include <unordered_map> #include <cstdint> #include <climits> #define VAULTFUNCTION #define VAULTAPI(...) c##__VA_ARGS__ #define V...
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_GGV_testVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_GGV_testVersionString[];
/* * CCEAP: An Implementation of an Educational Protocol for Covert Channel * Analysis Purposes * * The goal of this tool is to provide a simple, accessible implementation * for students. The tool demonstrates several network covert channel * vulnerabilities in a single communication protocol. * * Copyri...
/** * \brief Component description for NVMCTRL * * Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries. * * Subject to your compliance with these terms, you may use Microchip software and any derivatives * exclusively with Microchip products. It is your responsibility to comply with third party lice...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__unsigned_char_rand_multiply_63b.c Label Definition File: CWE190_Integer_Overflow.label.xml Template File: sources-sinks-63b.tmpl.c */ /* * @description * CWE: 190 Integer Overflow * BadSource: rand Set data to result of rand() * GoodSource: Smal...
/***** Task: Description: The sensor I am using generates a lot of data and there seems to be a lot of repeating sequences in it. The top bit is never used in the data format and could be re-purposed for whatever you like. The format looks like: 0x70, 0x71, 0x34, 0x34, 0x34, 0x20, 0x67, 0x15, 0x15, 0x1...
/* ---------------------------------------------------------------------------- */ /* Atmel Microcontroller Software Support */ /* SAM Software Package License */ /* --------------------------------------------------------------------...
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> ...
// // AOJ0023.c // // // Created by n_knuu on 2014/02/23. // // #include <stdio.h> int main(void){ int n,i; float xa,ya,ra,xb,yb,rb,dif,sum,dis; scanf("%d",&n); for (i=0; i<n; i++) { scanf("%f %f %f %f %f %f",&xa,&ya,&ra,&xb,&yb,&rb); dis=(xa-xb)*(xa-xb)+(ya-yb)*(ya-yb); dif...
/* LUFA Library Copyright (C) Dean Camera, 2010. dean [at] fourwalledcubicle [dot] com www.fourwalledcubicle.com */ /* Copyright 2010 Dean Camera (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and its documen...
/* $Id: box.c,v 1.5 2006/03/22 20:22:27 cegger Exp $ ****************************************************************************** LibGGI GLIDE target - Box functions Copyright (C) 1998 Marcus Sundberg [marcus@ggi-project.org] Permission is hereby granted, free of charge, to any person obtaining a copy ...
namespace simdjson { namespace SIMDJSON_IMPLEMENTATION { namespace ondemand { // // ### Live States // // While iterating or looking up values, depth >= iter->depth. at_start may vary. Error is // always SUCCESS: // // - Start: This is the state when the array is first found and the iterator is just past the `{`. // ...
/* Generated by Cython 0.23.1 */ #define PY_SSIZE_T_CLEAN #include "Python.h" #ifndef Py_PYTHON_H #error Python headers needed to compile C extensions, please install development version of Python. #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000) #error Cython ...
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #pragma once #include "IAnalyticsProviderModule.h" #include "Core.h" class IAnalyticsProvider; /** * Exposes a multicast provider that multicasts analytics events to multiple providers. * Configured using a comma separated list of provider modules. Each...
// Copyright 2020 Cloudinary. All rights reserved. // SPDX-License-Identifier: BSD-2-Clause #include "avif/internal.h" #include "svt-av1/EbSvtAv1.h" #include "svt-av1/EbSvtAv1Enc.h" #include <string.h> // The SVT_AV1_VERSION_MAJOR, SVT_AV1_VERSION_MINOR, SVT_AV1_VERSION_PATCHLEVEL, and // SVT_AV1_CHECK_VERSION mac...
/**************************************************************************** * apps/examples/i2schar/i2schar_transmitter.c * * 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...
/* * @file main_dss.c * * @brief * Unit Test code for the mmWave Link on the XWR18xx DSS * * \par * NOTE: * (C) Copyright 2016 Texas Instruments, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2019-2020 The Billiecoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. /** * Utilities for co...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
/* * xmlsave.c: Implemetation of the document serializer * * See Copyright for the status of this software. * * daniel@veillard.com */ #define IN_LIBXML #include "libxml.h" #include <string.h> #include <libxml/xmlmemory.h> #include <libxml/parserInternals.h> #include <libxml/tree.h> #include <libxml/xmlsave.h> ...
#ifdef WIN32 #include <windows.h> #else #include <unistd.h> #define Sleep(x) sleep(x/1000) #endif #include <stdio.h> #include <string.h> #include <pthread.h> #include "../iota-simplewallet.h" #include "cli/cli.h" static void read_cli(void* args) { int* quit_flag = (int*)args; char buf[256] = { 0 }; while(*quit...
#define SHADER_VERT2D \ "#version 150 \n"\ "in vec3 position; "\ "in vec2 texcoord;"\ "out vec2 Texcoord;"\ "void main(void) { "\ " Texcoord = texcoord;"\ " gl_Position = vec4(position, 1.0);"\ "}" #define SHADER_VERT3D \ "#version 150 \n"\ "in vec3 position; "\ "in vec2 texcoord;"\ "out vec2 Texcoord;"\ "un...
/** @file Process IPMI bootdev command and force the UEFI to boot with selected option. Copyright (c) 2021, Ampere Computing LLC. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> #include <Guid/GlobalVariable.h> #include <IndustryStandard/Ipmi.h> #include <Library/B...
/** * Copyright 2021 Michel Kremer (kremi151) * * 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 o...
// // Wdfalskjaakdska.h // KingNetSDKTest // // Created by admin on 2021/12/24. // Copyright © 2021 niujf. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface Wdfalskjaakdska : UIView @end NS_ASSUME_NONNULL_END