text stringlengths 9 948k |
|---|
#ifndef _LENS_SYSTEM_H
#define _LENS_SYSTEM_H
#include <array>
#include <tuple>
#include <vector>
#include "core/bounds2.h"
#include "film.h"
#include "grid-data.h"
#include "lens-system/lens-element.h"
using namespace Prl2;
// 反射ベクトルを返す
inline Vec3 reflect(const Vec3& v, const Vec3& n) {
return -v + 2 * dot(v, n... |
// Copyright 2010-2016, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of condit... |
/*
The Nixy Library
Code covered by the MIT License
Author: mutouyun (http://orzz.org)
*/
#pragma once
//////////////////////////////////////////////////////////////////////////
#include "nixycore/thread/barrier.h"
#include "nixycore/thread/interlocked.h"
#include "nixycore/thread/atomic.h"
#include "ni... |
// UIAlertView+AFNetworking.h
// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)
//
// 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, inclu... |
/*
* qgitdiffline.h
*
* Created on: Aug 12, 2015
* Author: lingnan
*/
#ifndef QGITDIFFLINE_H_
#define QGITDIFFLINE_H_
#include "git2.h"
#include "libqgit2_config.h"
namespace LibQGit2
{
class LIBQGIT2_EXPORT DiffLine
{
public:
enum Type {
Context = GIT_DIFF_LINE_CONTEXT,
Addition = G... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2013 EMC Corp.
//
// @filename:
// CPatternMultiTree.h
//
// @doc:
// Pattern that matches a variable number of trees
//---------------------------------------------------------------------------
#ifnd... |
//
// CCViewController.h
// CompatibleCocos2d
//
// Created by liyou on 11/19/2015.
// Copyright (c) 2015 liyou. All rights reserved.
//
@import UIKit;
@interface CCViewController : UIViewController
@end |
/*
* 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 is distributed in the hope that it will be use... |
/*
* pblock.h,v 1.3 2000/06/04 22:00:03 brunsch Exp
*
* Copyright (c) 1994, 1995. Netscape Communications Corporation. All
* rights reserved.
*
* Use of this software is governed by the terms of the license agreement for
* the Netscape Communications or Netscape Comemrce Server between the
* parties.
*/
/*... |
// $Id: SSL_CertificateCallback.h 91425 2010-08-23 11:59:32Z mcorino $
/**
* @file SSL_CertificateCallback.h
*
* @author Martin Corino <mcorino@remedy.nl>
*/
#ifndef ACE_SSL_CERTIFICATECALLBACK_H
#define ACE_SSL_CERTIFICATECALLBACK_H
#include /**/ "ace/pre.h"
#include "ace/SString.h"
#include "ace/SSL/SSL_Conte... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSObject.h"
@class IBDocument, NSArray;
@interface IBDecodedPasteboardContext : NSObject
{
NSArray *topLevelObjects;
IBDocument *document;
}
+ (id)contextWithDoc... |
/* -*- Mode: C++ -*- */
/*
*Copyright:
Copyright (C) 2001 RoboCup Soccer Server Maintainance Group.
Patrick Riley, Tom Howard, Itsuki Noda, Mikhail Prokopenko, Jan Wendler
This file is part of SoccerServer.
SoccerServer is free software; you can redistribute it and/or modify
it under the terms... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/lightsail/Lightsail_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/lightsail/model/ResourceLocation.h>
#inclu... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//
// ProfilePriv.h
//
//
// Structures, etc. used by the Profiling API and throughout the EE
//
// ============... |
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... |
#include "string.h"
int stringcmp(const char *p1, const char *p2)
{
const unsigned char *s1 = (const unsigned char *) p1;
const unsigned char *s2 = (const unsigned char *) p2;
unsigned char c1, c2;
do {
c1 = (unsigned char) *s1++;
c2 = (unsigned char) *s2++;
if (c1 == '\0')... |
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2018-2019, Linaro Limited
* Copyright (c) 2020, Microsoft Corporation
*/
#include <assert.h>
#include <crypto/crypto.h>
#include <kernel/handle.h>
#include <kernel/huk_subkey.h>
#include <kernel/misc.h>
#include <kernel/msg_param.h>
#include <kernel/pseudo... |
/* HTTP GET Example using plain POSIX sockets
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*... |
/*
* Copyright (C) 2007 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... |
/*
* Copyright (c) 2022 Codecoup
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdlib.h>
#include <zephyr/zephyr.h>
#include <zephyr/device.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/gatt.h>
#include <zephyr/bluetooth/audio/audio.h>
#include <zephyr/bluetooth/audio/capabilities.... |
/*
* Copyright (c) 2013 Qualcomm Atheros, Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUT... |
/*
* A GEM style device manager for PCIe based OpenCL accelerators.
*
* Copyright (C) 2021 Xilinx, Inc. All rights reserved.
*
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified... |
/*
* libwebsockets - small server side websockets and web server implementation
*
* Copyright (C) 2010 - 2019 Andy Green <andy@warmcat.com>
*
* 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 Sof... |
/**
* \file
* \copyright
* Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include <numeric>
#includ... |
/**
* @file encrypt.h
*
* Interface of functions for compression and decompressing MPQ data.
*/
#ifndef __ENCRYPT_H__
#define __ENCRYPT_H__
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
DWORD PkwareCompress(BYTE *srcData, DWORD size);
void PkwareDecompress(BYTE *pbInBuff, int recv_size, int d... |
//-----------------------------------------------------------------------------
// COMPILE-TIME OPTIONS FOR DEAR IMGUI
// Runtime options (clipboard callbacks, enabling various features, etc.) can generally be set via the ImGuiIO structure.
// You can use ImGui::SetAllocatorFunctions() before calling ImGui::CreateConte... |
/*
* Layer Two Tunnelling Protocol Daemon
* Copyright (C) 1998 Adtran, Inc.
* Copyright (C) 2002 Jeff McAdams
*
* Mark Spencer
*
* This software is distributed under the terms
* of the GPL, which you should have received
* along with this source.
*
* Handle a call as a separate thread
*/
#include <stdio.h>... |
// Copyright (C) 2019 Björn Lindqvist <bjourne@gmail.com>
#include <assert.h>
#include "datatypes/bits.h"
#include "datatypes/common.h"
#include "linalg/linalg-simd.h"
// f4 tests
void
test_f4_abs() {
float4 a = _mm_set_ps(-7.8f, 3.2f, 0.0f, -1.2f);
float4 r = _mm_set_ps(7.8f, 3.2f, 0.0f, 1.2f);
assert(f4_... |
/* This file was automatically generated by CasADi.
The CasADi copyright holders make no ownership claim of its contents. */
#ifdef __cplusplus
extern "C" {
#endif
/* How to prefix internal symbols */
#ifdef CODEGEN_PREFIX
#define NAMESPACE_CONCAT(NS, ID) _NAMESPACE_CONCAT(NS, ID)
#define _NAMESPACE_CONCAT(NS, ... |
/*
* dirent.c
*
* Derived from DIRLIB.C by Matt J. Weinstein
* This note appears in the DIRLIB.H
* DIRLIB.H by M. J. Weinstein Released to public domain 1-Jan-89
*
* Updated by Jeremy Bettis <jeremy@hksys.com>
* Significantly revised and rewinddir, seekdir and telldir added by Colin
* Peters <colin@fu.is.sag... |
#include <assert.h>
unsigned int square (unsigned int x) {
return x * x;
}
unsigned int nondet_ui();
int main (void) {
unsigned int x = nontdet_ui();
unsigned int y = square(x);
assert((y & 0x2) == 0x0);
return 1;
} |
/*
* Copyright (C) 2007 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... |
/*
* Copyright 2012 Utkin Dmitry
*
* 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 agr... |
/* code-strings with results and namespaces */
#include <Python.h>
main() {
char *cstr;
PyObject *pstr, *pmod, *pdict;
printf("embed-string\n");
Py_Initialize();
/* get usermod.message */
pmod = PyImport_ImportModule("usermod");
pdict = PyModule_GetDict(pmod);
pstr = PyRun_String("m... |
#include <lk/debug.h>
#include <platform/interrupts.h>
#include <lk/err.h>
#include <platform/bcm28xx.h>
#include <assert.h>
#include <lk/reg.h>
#include <kernel/thread.h>
#include <arch/vc4_traps.h>
struct handlerArgPair {
int_handler h;
void *arg;
};
typedef void (*irqType)(void);
struct handlerArgPair irq_han... |
/*
* 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... |
//
// STCalouselIndicatorView.h
// iOSRepository
//
// Created by Swift Gao on 2017/1/22.
// Copyright © 2017年 Swift Gao. All rights reserved.
//
#define IndicatorHeight 30
#import <UIKit/UIKit.h>
@interface STCalouselIndicatorView : UIView
@property (nonatomic,assign) NSInteger currentPage;
@property (nonatomic,a... |
#include<stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <signal.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <termios.h>
#include <sys/utsname.h>
#include "function.h"
int execute(char **tokens)
{
int x,fl=0,fl1=0,fd,fl2=0,d,e,f,g,h,fl3=0,j,k,fl4=0,l,m,fl5=... |
// David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2016
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: 3.0.0 (2016/06/19)
#pragma once
#include <Graphics/GteCons... |
/* Target-dependent code for SuperH running NetBSD, for GDB.
Copyright 2002, 2003 Free Software Foundation, Inc.
Contributed by Wasabi Systems, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as pub... |
/* Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
* NVIDIA CORPORATION and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this software and rela... |
/* Copyright (c) 2021 Intel Corporation
* Copyright (c) 2020-2021 Alibaba Cloud
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "internal/cpu.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// clang-format off
#ifndef SGX
#include <sys/stat.h>
#include <sys/sysmacros.h>
#else... |
int main(void) {
int z;
int x = 3;
int a[8] = {0};
char d[10] = {'a','b','c'};
return 0;
} |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include <INativeUIManager.h>
#include <IReactRootView.h>
#include <Views/ViewManagerBase.h>
#include <winrt/Windows.UI.Xaml.h>
#include <folly/dynamic.h>
#include <yoga/yoga.h>
#include <map>
#include <mem... |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <IDEKit/IDEFileNavigableItem.h>
@interface IDEDocumentFrameworkFilePathNavigableItem : IDEFileNavigableItem
{
}
- (id)fileURL... |
// Copyright (c) 1997
// Utrecht University (The Netherlands),
// ETH Zurich (Switzerland),
// INRIA Sophia-Antipolis (France),
// Max-Planck-Institute Saarbruecken (Germany),
// and Tel-Aviv University (Israel). All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL$
// $Id$
// SPDX-License-Id... |
#pragma once
#include <GL/glew.h>
#include "Dependencies/glm/glm/glm.hpp"
#include "Dependencies/glm/glm/gtc/type_ptr.hpp"
#include "Mesh.h"
#include "ShaderLoader.h";
#include "Camera.h"
class LightRenderer
{
public:
LightRenderer(MeshType meshType, Camera* camera);
~LightRenderer();
void draw();
void setP... |
// Copyright (c) 2015-2018 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 MEGACOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H
#define MEGACOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H
#include <validationinterfac... |
/*
* Configuration settings for the Gumstix Overo board.
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __CONFIG_H
#define __CONFIG_H
#define CONFIG_NR_DRAM_BANKS 2 /* CS1 may or may not be populated */
#define CONFIG_NAND
#include <configs/ti_omap3_common.h>
/* Display CPU and Board information */
#define CO... |
/*
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; File: convolve.c
;;; Author: Eero Simoncelli
;;; Description: General convolution code for 2D images
;;; Creation Date: Spring, 1987.
;;; ----------------------------------------------------------------
;;; Object-Based Visi... |
#pragma once
#ifdef _MSC_VER
# define GLBINDING_API_EXPORT_DECLARATION __declspec(dllexport)
# define GLBINDING_API_IMPORT_DECLARATION __declspec(dllimport)
#elif __GNUC__
# define GLBINDING_API_EXPORT_DECLARATION __attribute__ ((visibility ("default")))
# define GLBINDING_API_IMPORT_DECLARATION __attribute_... |
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <painter.h>
#include <sortinganimation.h>
#include <sortingalgorithms.h>
#include <controller.h>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow... |
/********************************************************************************
** Form generated from reading UI file 'dialogMakeFillGap.ui'
**
** Created by: Qt User Interface Compiler version 5.14.2
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************... |
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SKSL_INTERFACEBLOCK
#define SKSL_INTERFACEBLOCK
#include "SkSLProgramElement.h"
#include "SkSLSymbolTable.h"
#include "SkSLVarDeclarations.h"
namespace SkSL {
/**
... |
/*
* This header is generated by classdump-dyld 1.5
* on Tuesday, November 10, 2020 at 10:14:28 PM Mountain Standard Time
* Operating System: Version 14.2 (Build 18K57)
* Image Source: /System/Library/Frameworks/MediaPlayer.fram... |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#ifndef __LC_MMSE_NS_FLOAT_H__
#define __LC_MMSE_NS_FLOAT_H__
// #define LC_MMSE_NS_ENABLE_RES_ECHO
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
int32_t bypass;
float denoise_dB;
int32_t banks;
} SpeechNs2FloatConfig... |
#pragma once
#include <Storages/MergeTree/MergeTreeData.h>
namespace DB
{
/// Calculates checksums and compares them with checksums.txt.
IMergeTreeDataPart::Checksums checkDataPart(
MergeTreeData::DataPartPtr data_part,
bool require_checksums,
std::function<bool()> is_cancelled = []{ return false; });
... |
// Copyright (C) 2014-2016 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef HOST_MGR_H
#define HOST_MGR_H
#inclu... |
/* -mlong-double-64 compatibility mode for stdio functions.
Copyright (C) 2006-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C 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... |
/*
Copyright (c) 2019-2021 Péter Magyar
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, distribut... |
//
// ShareListItem.h
// Selene
//
// Created by 边惠芳 on 16/4/11.
// Copyright © 2016年 hairun. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface ShareListItem : NSObject
@property (nonatomic, copy) NSString *shareId;
@property (nonatomic, copy) NSString *userId;
@prope... |
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 28, 2021 at 9:04:48 PM Mountain Standard Time
* Operating System: Version 14.5 (Build 18L204)
* Image Source: /System/Library/PrivateFrameworks/iTunesStor... |
int xsize, ysize;
int x, scan, w, xstart;
static int sizes[4] = {32, 64, 64, 128};
unsigned which;
unsigned char *where, *scrolls, *tiles, *tile_line;
int xoff, yoff, xoff_mask;
int xscroll, yscroll;
#if PLANE == 0
// Plane 0 is only where the window isn't
// This should make Herzog Zwei split screen w... |
/*
* Componentized device handling.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This is work in progress. We gather up the component devices into a list,
* and bind ... |
//
// CBTransactionInput.c
// cbitcoin
//
// Created by Matthew Mitchell on 02/05/2012.
// Copyright (c) 2012 Matthew Mitchell
//
// This file is part of cbitcoin. It is subject to the license terms
// in the LICENSE file found in the top-level directory of this
// distribution and at http://www.cbitcoin.com/l... |
#pragma once
#include <utility/generation.h>
namespace generation {
// Takes vdb grid information and returns a particle set using a dense cubic grid sampling
std::vector<vdb::Vec4f> VolumeToRegular(vdb::FloatGrid::Ptr grid, vdb::Vec3d min_vdb, vdb::Vec3d max_vdb, float r);
// Wrapper function which takes a path to a ... |
/* Test of lseek() function.
Copyright (C) 2007-2016 Free Software Foundation, Inc.
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)... |
/*
------------------------------------------------------------------------------
By Bob Jenkins, September 1996.
lookupa.h, a hash function for table lookup, same function as lookup.c.
Use this code in any way you wish. Public Domain. It has no warranty.
Source is http://burtleburtle.net/bob/c/lookupa.h
------------... |
#ifndef OPENTISSUE_KINEMATICS_INVERSE_INVERSE_ACCESSOR_H
#define OPENTISSUE_KINEMATICS_INVERSE_INVERSE_ACCESSOR_H
//
// OpenTissue Template Library
// - A generic toolbox for physics-based modeling and simulation.
// Copyright (C) 2008 Department of Computer Science, University of Copenhagen.
//
// OTTL is licensed und... |
#ifndef _X86_SMP_H_
#define _X86_SMP_H_
#include <asm/spinlock.h>
void smp_init(void);
int cpu_count(void);
int smp_id(void);
int cpus_active(void);
void on_cpu(int cpu, void (*function)(void *data), void *data);
void on_cpu_async(int cpu, void (*function)(void *data), void *data);
void on_cpus(void (*function)(void ... |
//------------------------------------------------------------
// snakeoil (c) Alexis Constantin Link
// Distributed under the MIT license
//------------------------------------------------------------
#ifndef _SNAKEOIL_IMEX_NODE_IPARENT_H_
#define _SNAKEOIL_IMEX_NODE_IPARENT_H_
#include "../protos.h"
#include "../typ... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Signal Handling for ARC
*
* Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
*
* vineetg: Jan 2010 (Restarting of timer related syscalls)
*
* vineetg: Nov 2009 (Everything needed for TIF_RESTORE_SIGMASK)
* -do_signal() supports TIF_RESTORE... |
#ifndef TARGET_OS_SIMULATOR
#include <TargetConditionals.h>
#endif
#if TARGET_OS_SIMULATOR
#if 0
#elif defined(__x86_64__) && __x86_64__
// Generated by Apple Swift version 5.2 effective-4.1.50 (swiftlang-1103.0.32.1 clang-1103.0.32.29)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"
#if ... |
/***************************************************************************//**
* @file
* @brief BGM13_LEUART register and bit field definitions
*******************************************************************************
* # License
* <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
***********... |
/** @file keystore.c
*
* @brief This file provides Key Store API
*
* (C) Copyright 2015-2019 Marvell International Ltd. All Rights Reserved.
*
* MARVELL CONFIDENTIAL
* The source code contained or described herein and all documents related to
* the source code ("Material") are owned by Marvell Internation... |
#pragma once
#include <cuda_runtime.h>
#include <cuda_fp16.h>
#include "common.h"
namespace paddle {
namespace communication {
namespace dgc{
#define WARP_SIZE 32
///************************* scan **********************///
/// scan, inclusive scan
/// exscan, exclusive scan
template<typename T>
__device__ inlin... |
#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_viacep_ios_TestsVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_viacep_ios_TestsVers... |
/*
* Copyright (c) 2012 cocos2d-x.org
* http://www.cocos2d-x.org
*
* Copyright 2011 Yannick Loriot. All rights reserved.
* http://yannickloriot.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
*... |
// Copyright (c) 2016 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 BITCOINOIL_WALLET_BTCOTECH_H
#define BITCOINOIL_WALLET_BTCOTECH_H
#include "compat.h"
#include <vector>
#include <string... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* SCSI Disk Emulator
*
* Copyright (c) 2002 Nate Lawson.
* 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 ... |
/*
* mm/rmap.c - physical to virtual reverse mappings
*
* Copyright 2001, Rik van Riel <riel@conectiva.com.br>
* Released under the General Public License (GPL).
*
* Simple, low overhead reverse mapping scheme.
* Please try to keep this thing as modular as possible.
*
* Provides methods for unmapping each kind... |
/*
A library to create easy functions to connect to sockets
in C
Author: Kyle Aisho
Copyright 2015
Licensed under the MIT Open Source license
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>... |
//------------------------------------------------------------------------------
#pragma once
#include <eight/core/types.h>
namespace eight {
//------------------------------------------------------------------------------
union FloatBits
{
float m_float;
u32 m_int;
u32 Mantissa() const { return m_int & 0x7fffff; }
... |
/*
* FreeRTOS V202012.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. 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 ... |
/*****************************************************************************
Copyright (c) 2014, Intel Corp.
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... |
/*
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech-Cycleo
Description:
Functions used to handle a single LoRa concentrator.
... |
/****************************************************************************
* arch/arm/src/cxd56xx/cxd56_emmc.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 copyright... |
/***************************************************************************//**
* @file em_cryotimer.c
* @brief Ultra Low Energy Timer/Counter (CRYOTIMER) peripheral API
* @version 5.6.0
*******************************************************************************
* # License
* <b>Copyright 2016 Silicon Labora... |
int b[2]={4,5};
void main()
{
--b[1];
print("b 4 4");
printid(b);
} |
//=================================================================================================
/*!
// \file blaze/math/lapack/sysv.h
// \brief Header file for the LAPACK symmetric indefinite linear system solver functions (sysv)
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// This fil... |
/// <title>Pose Data</title>
/// <desc>
/// Represents the core data structure.
/// File I/O and other utility included in PoseDataUtil to keep this file simple.
/// </desc>
/// <date>9/4/2021</date>
/// <version>1.0</version>
/// <author>David Hrusa</author>
/// <email>hrusadav@gmail.com</email>
#pragma once
#incl... |
#pragma once
#include <CubismFramework.hpp>
#include <ICubismAllocator.hpp>
class OVAFTAllocator : public Csm::ICubismAllocator {
void *Allocate(Csm::csmSizeType size) override;
void *AllocateAligned(Csm::csmSizeType size, Csm::csmUint32 alignment) override;
void Deallocate(void *memory) override;
... |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2017 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 ... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkImporter.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 dis... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2017-2018 The Toschain Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef TOSCHAIN_HASH_H
#... |
/**************************************************************************************************
* SIDH: an efficient supersingular isogeny cryptography library
*
* Abstract: precomputed tables for pairing computation on E0: y^2 = x^3 + x when using compression
*******************************************************... |
#ifndef L1Trigger_L1THGCal_HGCalTowerMap_SA_h
#define L1Trigger_L1THGCal_HGCalTowerMap_SA_h
#include "L1Trigger/L1THGCal/interface/backend/HGCalTower_SA.h"
#include <unordered_map>
#include <vector>
namespace l1thgcfirmware {
class HGCalTowerMap {
public:
HGCalTowerMap() = default;
HGCalTowerMap(const s... |
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#ifndef __IOT_EXPORT_ERRNO__
#define __IOT_EXPORT_ERRNO__
#if defined(__cplusplus)
extern "C" {
#endif
/* From utils_error.h */
typedef enum IOT_RETURN_CODES {
ERROR_DEVICE_NOT_EXSIT = -311,
ERROR_NET_TIMEOUT = -310,
ERROR_CERT_VERIFY_FAIL ... |
// Copyright: (2012-2015) Ben Strasser <code@ben-strasser.net>
// License: BSD-3
//
// 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 abov... |
/*
* Copyright (c) 2020 Bitdefender
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _INTRO_LISTS_H_
#define _INTRO_LISTS_H_
#include "introtypes.h"
//
// Exported convenient versions.
// These could be a lot easier if MSVC supported typeof(), but each file could define
// a generic macro around them (see lixproce... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.