text stringlengths 7.55k 41.9k |
|---|
// main.c
//
// Copyright (C) 2020 <NAME> <<EMAIL>>
//
// SPDX-License-Identifier: MIT
#include "vdp.h"
#include "math_util.h"
#include "assert.h"
#include "gamepad.h"
#include "math_util.h"
#include "copper.h"
#include "vdp_regs.h"
#include <stdint.h>
#include <stdbool.h>
#include "fg_tiles.h"
#include "fg_map.h"
... |
/* $OpenBSD: usps.c,v 1.7 2014/07/12 21:24:33 mpi Exp $ */
/*
* Copyright (c) 2011 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and 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 copie... |
#include <stdbool.h>
#include "gamesounds.h"
#include "input.h"
#include "objectcontrol.h"
#include "objects.h"
#include "particlefx.h"
#include "random.h"
#include "roads.h"
#include "screen.h"
#include "trig.h"
#include "vec2d.h"
#include <math.h>
#define kMechResistance 100
#define kMinSteerTime ... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
//#include <sys/time.h>
#include <fcntl.h>
#ifdef __unix__
#include <unistd.h>
#endif
#include <time.h>
#include <string.h>
#include <stdint.h>
#include "reson7k.h"
#include "time_functions.h"
#include <math.h>
#include "wbms_georef.h"
#include "georef_too... |
/*
* parse_shortestpath.c
* handle clauses for graph in parser
*
* Copyright (c) 2017 by Bitnine Global, Inc.
*
* IDENTIFICATION
* src/backend/parser/parse_shortestpath.c
*/
#include "postgres.h"
#include "ag_const.h"
#include "catalog/ag_graph_fn.h"
#include "catalog/pg_type.h"
#include "nodes/makefuncs.... |
/************************** DISCLAIMER ********************************/
/* */
/* This file was generated on 04/13/17 09:49:48 by */
/* ADIC version /* */
/* ADIC ... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <memory.h>
#include <assert.h>
#include <getopt.h>
#include <locale.h>
#include <ncurses.h>
#include "cdk_widgets.h"
#include "widgets.h"
#include "regfile.h"
#include "parse_common.h"
#include "string_type.h"
#include "common.h"
... |
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980, 1986, 1990 The Regents of the University of California.
* All rights reserved.
*
* Redist... |
/*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2018 <NAME> for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to ... |
/*
* RichEdit functions dealing with on tables
*
* Copyright 2008 by <NAME>
*
* 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... |
/****************************************************************************
*
* Copyright (c) 2012-2014 PX4 Development Team. 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. Red... |
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include "filesys.h"
diskblock_t virtualDisk [MAXBLOCKS] ; // define our in-memory virtual, with MAXBLOCKS blocks
fatentry_t FAT [MAXBLOCKS] ; // define a file allocation table with MAXBLOCKS 16-bit entries
... |
/* SC Hack PoC - Based on nuklear x11 demo - public domain
This is a proof-of-concept demo only. It is throw-away code. It is bad.
Don't use it for anything you care about. Or better yet, at all.
Otherwise I reserve the right to mock you publicly for doing so. */
#include <assert.h>
#include <stdio.h>
#include <s... |
#include <errno.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <locale.h>
#include <mendeleev/mendeleev.h>
#include <mosquitto.h>
#define NAME "mqtt2mendeleev"
#ifndef VERSION
#define VERSI... |
/* File immatch.c
* April 6, 2007
* By <NAME>, after <NAME>
* (Harvard-Smithsonian Center for Astrophysics)
* Send bug reports to <EMAIL>
Copyright (C) 1997-2007
Smithsonian Astrophysical Observatory, Cambridge, MA USA
This program is free software; you can redistribute it and/or
modify it under the ... |
/* $Id: $
*
* LittleSmalltalk system
* Originally written by <NAME>.
* <NAME> allowed me (<NAME>) to replace
* his original copyright notice and to push a
* LittleSmalltalk project.
*
* The new LittleSmalltalk distribution is licensed
* as follows:
*
* Permission is hereby granted, free of charge,... |
///////////////////////////////////////////////////////////////////////////////
// File: sampleAuth.c
// SDK: GameSpy Authentication Service SDK
//
// Copyright (c) IGN Entertainment, Inc. All rights reserved.
// This software is made available only pursuant to certain license terms offered
// by IGN or its subsidi... |
/*
* jitval.c
*
* This file is part of the Oxford Oberon-2 compiler
* Copyright (c) 2006 <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:
*
* 1. Redistributions of source code must... |
#include "driver.h"
#include "includes/seibuspi.h"
/**************************************************************************
Tile encryption
---------------
The tile graphics encryption uses the same algorithm in all games, with
different keys for the SPI, RISE10 and RISE11 custom chips.
- Take 24 bits of gfx d... |
#include <stdio.h> // printf();
#include <math.h> // need to compile with -lm
#include <stdlib.h> // for calloc();
#include <stdbool.h> // Include for bool type variables!
#include <string.h> // String operations
#incl... |
/*
* particle_filters.c
*
* Created on: 18 Sep 2020
* Author: heine
*/
#include <gsl/gsl_randist.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_eigen.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <Accelerate/Accelerate.h>
#include "particle_filters.h"
void MLbootstra... |
/*!
***************************************************************************
* \file rd_intra_jm.c
*
* \brief
* Rate-Distortion optimized mode decision
*
* \author
* - <NAME>
* - <NAME>
* - <NAME> <<EMAIL>>
* - <NAME> <<EMAIL>>
* \date
* 12. April 2001
**... |
#define USING_R 1
#include "sp.h"
/* remember to touch local_stubs.c */
SEXP SP_PREFIX(sp_linkingTo_version)(void) {
SEXP ans;
PROTECT(ans = NEW_CHARACTER(1));
SET_STRING_ELT(ans, 0,
COPY_TO_USER_STRING(SP_VERSION));
UNPROTECT(1);
return(ans);
}
SEXP SP_PREFIX(Polygon_c)(const SEXP coo... |
/*** mep.h - primary include file for editor
*
* Copyright <C> 1988, Microsoft Corporation
*
* Revision History:
* 10-Jan-1991 ramonsa Converted to Win32 API
* 26-Nov-1991 mz Strip off near/far
*
************************************************************************/
#include <ctype.h>
#inclu... |
/* ui_star.c
<NAME> (<EMAIL>), 19 Jun 2021
FreeBSD-style copyright and disclaimer apply
*/
#include "common.h"
#include "render/ui.h"
#include "ui/ui.h"
#include "game/chunk.h"
#include "game/energy.h"
#include "items/item.h"
#include "utils/vec.h"
// -----------------------------------------------------------... |
/*
* imgsz - print 'image size' -- print width and height pixels as XHTML format
*
* Filename: imgsz.c
* Version: 0.7
* Author: itouh
* Time-stamp: <Jun 13 2009>
* Copyright (c) 2003,2009 <NAME>
*
* todo: JPEG file may cause error, because of reading first 256 kilo bytes only of a JPEG file.
* ... |
/*
* Implement concurrent skiplist based VM.
*
* Copyright (C) 2017 <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
* Nanjing University
*
* Implementation of the lock-free skiplist data-structure created by <NAME>,
* <NAME>, and <NAME>. See Herlihy's and Shivit's book "The Art of Multiprocessor
* Programming" revised repr... |
/*******************************************************************************
* Program: mktemplate
* Purpose: This program is a tool for creating a template of the
* ground truth regions from an OVERLAY file for a case in the DDSM database.
* An 8-bit pgm image is created.
* (http://marathon.csee.usf.edu/Mammograph... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 d... |
/*
* Copyright 2021 GoPro Inc.
*
* 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, Vers... |
/***************************************************************************
* ZBOSS ZigBee Pro 2007 stack *
* *
* Copyright (c) 2012 DSR Corporation Denver CO, USA. *
* ... |
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <tice.h>
#include <keypadc.h>
#include <fileioc.h>
#include <graphx.h>
#include "gfx/palette_gfx.h"
#include "gfx/gfx.h"
#include "levels.h"
uint8_t car_positions[2][1... |
#pragma once
/*
Copyright 2018 <NAME> <<EMAIL>>
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 di... |
/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list o... |
/* unit.c
*
* Copyright (C) 2014-2016 wolfSSL Inc.
*
* This file is part of wolfSSH.
*
* wolfSSH 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) ... |
// SPDX-License-Identifier: GPL-2.0
//
// Copyright (c) 2014 MediaTek Inc.
// Author: <NAME> <<EMAIL>>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/mfd/mt6397/core.h>
#include <linux/mfd/mt6397/registers.h>
#include <linux/regulator/driver... |
/*
* Cirrus Logic EP93xx ethernet MAC / MII driver.
*
* Copyright (C) 2010, 2009
* <NAME> <<EMAIL>>
*
* Copyright (C) 2004, 2005
* <NAME>, Videon Central, Inc., <<EMAIL>>
*
* Based on the original eth.[ch] Cirrus Logic EP93xx Rev D. Ethernet Driver,
* which is
*
* (C) Copyright 2002 2003
* <NAME>, Network ... |
/**************************************************************************
*
* tlan.c -- Etherboot device driver for the Texas Instruments ThunderLAN
* Written 2003-2003 by <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Publ... |
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <ctype.h>
#include "common.h"
#include "vram.h"
#include "surface.h"
#include "stage.h"
#include "musiclist.h"
#include "tsc.h"
#define MAX_TOKEN 256
#define NUM_LIST_ARGS 10
#define NUM_ST... |
/*
* Dwarf info parse and search.
*/
#include <u.h>
#include <libc.h>
#include <bio.h>
#include "elf.h"
#include "dwarf.h"
enum
{
DwarfAttrSibling = 0x01,
DwarfAttrLocation = 0x02,
DwarfAttrName = 0x03,
DwarfAttrOrdering = 0x09,
DwarfAttrByteSize = 0x0B,
DwarfAttrBitOffset = 0x0C,
DwarfAttrBitSize = 0x0D,
D... |
#include "chibicc.h"
char* strndup(char* str, int chars)
{
char* buffer;
int n;
buffer = (char*)malloc(chars + 1);
if (buffer)
{
for (n = 0; ((n < chars) && (str[n] != 0)); n++) buffer[n] = str[n];
buffer[n] = 0;
}
return buffer;
}
typedef enum {
FILE_NONE, FILE_C, FILE... |
/*
* Copyright (c) 2013, 2014, 2016-2017 by Farsight Security, Inc.
*
* 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 u... |
/* Copyright (c) 1997-1999 <NAME>.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
/* changes by <NAME> 2001 */
/* have to insert gui-objects into editor-list */
/* all changes are labeled with iemlib */
#include... |
// REQUIRES: x86-registered-target
// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin -target-feature +sse4.1 -emit-llvm -o - -Werror | FileCheck %s
// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin -target-feature +sse4.1 -fno-signed-char -emit-llvm -o - -Werror | FileCheck %s
// RUN: %clang_cc1 %s -triple=x86_64-apple... |
/********************************************************************
* FILE: create-prior.c
* AUTHOR: <NAME>, <NAME>, <NAME>
* PROJECT: MEME suite
* COPYRIGHT: 2011 UW
********************************************************************/
#include <errno.h>
#include <float.h>
#include <math.h>
#include <stdio.h>
... |
/****************************************************************************
* tools/cxd56/clefia.c
*
* Copyright (C) 2007, 2008 Sony Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redist... |
/*
* Copyright (c) 2015-2016, Intel Corporation
*
* 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 ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "debug.h"
#include "sfmm.h"
#include "helper.h"
void initialize_heap(){
//we have to initialize the heap, grow the page size
if(sf_mem_grow() == NULL){
sf_errno = ENOMEM;
return;
}
//lets get the locations for the prologue ... |
static char help[] = "Finds optimal parameter P_m for the generator system while maintaining generator stability.\n";
/*F
\begin{eqnarray}
\frac{d \theta}{dt} = \omega_b (\omega - \omega_s)
\frac{2 H}{\omega_s}\frac{d \omega}{dt} & = & P_m - P_max \sin(\theta) -D(\omega - \omega_s)\... |
/*************************************************************************
* METRo : Model of the Environment and Temperature of Roads
* METRo is Free and is proudly provided by the Government of Canada
* Copyright (C) Her Majesty The Queen in Right of Canada, Environment Canada, 2006
* Questions or bugs report: <EMA... |
#define _LARGEFILE64_SOURCE
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include "libubi.h"
struct erase_block_info;
struct volume_in... |
#define LITE_ASSBIN_USE_GFX /* add support for litegfx specific stuff in assbin loader */
#define LITE_MD2_USE_GFX /* add support for litegfx specific stuff in md2 loader */
#include "../lib/litelibs/liteassbin.h"
#include "../lib/litelibs/litegfx.h"
#include "../lib/litelibs/litemath3d.h"
#include "../lib/litelibs/lit... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*
*/
#include "opal_config.h"
#include "opal/constants.h"
#include ... |
/*
* @XMHF_LICENSE_HEADER_START@
*
* eXtensible, Modular Hypervisor Framework (XMHF)
* Copyright (c) 2009-2012 Carnegie Mellon University
* Copyright (c) 2010-2012 VDG Inc.
* All Rights Reserved.
*
* Developed by: XMHF Team
* Carnegie Mellon University / CyLab
* VDG Inc.
* ... |
/*
* grid.c - spatial subdivision efficiency structures
*
* $Id: grid.c,v 1.60 2011/02/07 07:41:51 johns Exp $
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define TACHYON_INTERNAL 1
#include "tachyon.h"
#include "macros.h"
#include "vector.h"
#include "intersect.h"
#include... |
// Copyright (c) <2012> <<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,... |
/* testGrid.c */
#include "../SemiImplMtx.h"
#include "../../Drand.h"
#include "../../timings.h"
#include "../../misc.h"
/*--------------------------------------------------------------------*/
IV * get_frontmapIV ( Tree *tree, int depth ) ;
/*--------------------------------------------------------------------*/
... |
// 0x070174B0 - 0x070175A0
static const Vtx hmc_seg7_vertex_070174B0[] = {
{{{ -6962, 1536, 1408}, 0, { 7752, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -6655, 1089, 691}, 0, { 0, 4426}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -6962, 1275, 1408}, 0, { 7752, 2568}, {0xff, 0xff, 0xff, 0xff}}},
... |
/* ************************************************************************
* Copyright 2013 Advanced Micro Devices, 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... |
/** @file startup_XMC4500.c
* @brief mbed start-up code for the XMC4500-1024 written in C.
*
* Following things are done in this file.
* 1. Build and load vector table
* 2. call System_init (clock setup..)
* 3. l
* 4. Clear the bss section (zero) => none initialized data
* 5. call OS hook functions
... |
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include "collector.h"
#include "eval.h"
#include "parse.h"
#include "scamval.h"
void parsetest(char* line, const ScamVal* answer, int line_no);
void parsetest_err(char* line, int line_no);
void evaltest(char* line, const ScamVal* answer, ScamEnv* env, int l... |
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 2020, MayaData Inc. All rights reserved.
* Copyright (c) 2020, DataCore Software Corporation. All rights reserved.
*
* POSIX details are based on the Open Group Base Specification Issue 7,
* 2018 edition at https://pubs.opengroup.org/onlinepubs/9... |
/****************************************************************************
*
* Copyright (c) 2012-2017 PX4 Development Team. 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. Red... |
/*==============================================================================
Copyright (c) 2016-2018, The Linux Foundation.
Copyright (c) 2018-2019, <NAME>.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions ... |
/*
* synth callback routines for Emu10k1
*
* Copyright (C) 2000 <NAME> <<EMAIL>>
*
* 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 you... |
/*
* Copyright 2018-2020 - NXP
*
* 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, ... |
/*
* test1.c
*
* Code generation for model "test1".
*
* Model version : 1.1
* Simulink Coder version : 9.5 (R2021a) 14-Nov-2020
* C source code generated on : Fri Jul 16 20:45:21 2021
*
* Target selection: grt.tlc
* Note: GRT includes extra infrastructure and instrumentation for prototyping
* Em... |
/*
*
* This software was developed by the Thermal Modeling and Analysis
* Project(TMAP) of the National Oceanographic and Atmospheric
* Administration's (NOAA) Pacific Marine Environmental Lab(PMEL),
* hereafter referred to as NOAA/PMEL/TMAP.
*
* Access and use of this software shall impose the following
* obliga... |
/*
* pcmuio.c
* Comedi driver for Winsystems PC-104 based 48/96-channel DIO boards.
*
* COMEDI - Linux Control and Measurement Device Interface
* Copyright (C) 2006 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as... |
/*
* Copyright (C) 2017-2020 <NAME>
*
* Licensed under the MIT License.
* See either the LICENSE file, or:
*
* https://opensource.org/licenses/MIT
*
*/
#include "../gbcc.h"
#include "../debug.h"
#include "../input.h"
#include "../nelem.h"
#include "../time_diff.h"
#include "../window.h"
#include "sdl.h"
#inclu... |
/*
* gamesupport.c - auxiliary routines for support of Phantasia
*
* $FreeBSD: src/games/phantasia/gamesupport.c,v 1.6 1999/11/16 02:57:33 billf Exp $
* $DragonFly: src/games/phantasia/gamesupport.c,v 1.3 2005/05/31 00:06:26 swildner Exp $
*/
#include <string.h>
#include "include.h"
/* functions which we need to... |
#include "config.h"
#define _DISABLE_OPENADC10_CONFIGPORT_WARNING
#define _SUPPRESS_PLIB_WARNING
#include <plib.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "cpu.h"
#include "diskio.h"
#include "ff.h"
#include "st7735s.h"
#include "fonts.h"
#include "gfx.h"
#define C... |
/*
* Copyright (c) 2018-2021 <NAME>, m00nbsd.net
* All rights reserved.
*
* This code is part of the NVMM hypervisor.
*
* 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 r... |
/*
* qrencode - QR Code encoder
*
* QR Code specification in convenient format.
* Copyright (C) 2006, 2007, 2008, 2009 <NAME> <<EMAIL>>
*
* The following data / specifications are taken from
* "Two dimensional symbol -- QR-code -- Basic Specification" (JIS X0510:2004)
* or
* "Automatic identification and dat... |
/*-
* Copyright (c) 2006 <NAME>. All rights reserved.
* Copyright (c) 2010 <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:
* 1. Redistributions of source code must retain the abov... |
/*
* File: death.c
* Purpose: Handle the UI bits that happen after the character dies.
*
* Copyright (c) 1987 - 2007 Angband contributors
*
* This work is free software; you can redistribute it and/or modify it
* under the terms of either:
*
* a) the GNU General Public License as published by the Free Software... |
/**
******************************************************************************
* File Name : main.c
* Description : Main program body
******************************************************************************
*
* Copyright (c) 2017 STMicroelectronics International N.V.
* Al... |
/*
3APA3A simpliest proxy server
(c) 2002-2008 by ZARAZA <<EMAIL>>
please read License Agreement
$Id: webadmin.c,v 1.44 2014-04-07 20:35:12 vlad Exp $
*/
#include "proxy.h"
#define RETURN(xxx) { param->res = xxx; goto CLEANRET; }
#define LINESIZE 2048
extern FILE *writable;
FILE * conf... |
/*
LOGIC_IO.C
(c) Copyright 2005, <NAME>
Modul spravuje logicku vrstvu QFS
Modifikovane z emulatora QFS
*/
#include <rtl.h>
#include <boot.h>
#include <colors.h>
#include <physic_i.h>
#include <logic_io.h>
xPP PP;
dbfile file; // globalne buffery
dbdir dir;
inodes_sec IN;
// funkcia dekoduje logicke... |
/*
* This file is part of linux driver the digital TV devices equipped with B2C2 FlexcopII(b)/III
*
* flexcop-fe-tuner.c - methods for attaching a frontend and controlling DiSEqC.
*
* see flexcop.c for copyright information.
*/
#include "flexcop.h"
#include "stv0299.h"
#include "mt352.h"
#include "nxt200x.h"
#in... |
/* ========================================================================
* Copyright 1988-2007 University of Washington
*
* 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:... |
/* $OpenBSD: gfxp.c,v 1.13 2013/10/20 20:07:27 miod Exp $ */
/*
* Copyright (c) 2009 <NAME>.
*
* Permission to use, copy, modify, and 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.
*
* ... |
/*
* $Id: tree.c,v 1.3 2003/01/21 09:28:40 suz Exp $
*/
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributio... |
/*
* Copyright © 2013 Raspberry Pi Foundation
* Copyright © 2013 RISC OS Open Ltd
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* cop... |
/*
* 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and ... |
/*-
* Copyright 2015 <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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... |
/*
* linux/fs/umsdos/dir.c
*
* Written 1993 by <NAME>
* Inspired from linux/fs/msdos/... : <NAME>
*
* Extended MS-DOS directory handling functions
*/
#ifdef MODULE
#include <linux/module.h>
#endif
#include <asm/segment.h>
#include <linux/sched.h>
#include <linux/string.h>
#include <linux/fs.h>
#include <li... |
#include <gb/gb.h>
#include <stdint.h>
#include <rand.h>
#include <stdbool.h>
#include "../build/squont8ng_micro_2bpp.c"
#include "../build/blowharder_path_2bpp.c"
#include "../build/blowharder_bridge_2bpp.c"
#ifndef DEBUG
#define DEBUG (0)
#endif
// palettes from doavi
const unsigned int overworld_pal[][4] = {... |
/*
* Copyright 2013-2016 Guardtime, Inc.
*
* This file is part of the Guardtime client SDK.
*
* 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/LICENS... |
/******************************************************************************
**
** COPYRIGHT (C) 2000, 2001, 2002 Intel Corporation.
**
** The information in this file is furnished for informational use
** only, is subject to change without notice, and should not be construed as
** a commitment by Intel ... |
/*
* Copyright (C) 1999-2001 <NAME> 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, cop... |
#include "gf2x_arith_mod_xPplusOne.h"
#include "rng.h"
#include <string.h> // memcpy(...), memset(...)
void PQCLEAN_LEDAKEMLT52_LEAKTIME_gf2x_copy(DIGIT dest[], const DIGIT in[]) {
for (int i = NUM_DIGITS_GF2X_ELEMENT - 1; i >= 0; i--) {
dest[i] = in[i];
}
}
/* returns the coefficient of the x^expon... |
#include "ws_decode.h"
#include <errno.h>
#include <string.h>
#include "base64.h"
#define WS_HYBI_MASK_LEN 4
#define WS_HYBI_HEADER_LEN_SHORT 2 + WS_HYBI_MASK_LEN
#define WS_HYBI_HEADER_LEN_EXTENDED 4 + WS_HYBI_MASK_LEN
#define WS_HYBI_HEADER_LEN_LONG 10 + WS_HYBI_MASK_LEN
#undef WS_DECODE_DEBUG
/* set to 1 to prod... |
#include <walpng.h>
#ifndef FOURCC
#define FOURCC(a, b, c, d) ((a)|((b)<<8)|((c)<<16)|((d)<<24))
#endif
#define FCC_PNG_LOW FOURCC(0x89, 'P', 'N', 'G')
#define FCC_PNG_HIGH FOURCC(0x0D, 0x0A, 0x1A, 0x0A)
#define FCC_IHDR FOURCC('I', 'H', 'D', 'R')
#define FCC_IEND FOURCC('I', 'E', 'N', 'D')
#define FCC_IDAT FOURCC(... |
/*
* Copyright (C) lcinx
* <EMAIL>
*/
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "pool.h"
#include "log.h"
#ifndef NDEBUG
#define NODE_IS_USED_VALUE(mgr) ((mgr) - (0x000000AB))
#define NODE_IS_FREED_VALUE(mgr) (mgr)
#endif
enum {
enum_unknow = 0,
enum_full_use,
... |
//
// Created by sachetto on 03/10/17.
//
#include "monodomain_solver.h"
#include "../utils/logfile_utils.h"
#include "../utils/stop_watch.h"
#ifdef COMPILE_CUDA
#include "../gpu_utils/gpu_utils.h"
#endif
#ifdef COMPILE_OPENGL
#include "../draw/draw.h"
#endif
#include <assert.h>
#include <inttypes.h>
#include "../s... |
/*
* jail.c
* potd is licensed under the BSD license:
*
* Copyright (c) 2018 <NAME> <<EMAIL>>
*
* 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... |
/*
* Copyright (c) 2016-2017, The Linux Foundation. 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) provided that the following conditions are met:
*
* * Redistributions of source c... |
#include <math.h>
#include <stdbool.h>
#include <libkepler/kepler.h>
#include "numtest.h"
static void cross(const double *a, const double *b, double *c) {
c[0] = a[1]*b[2] - a[2]*b[1];
c[1] = -(a[0]*b[2] - a[2]*b[0]);
c[2] = a[0]*b[1] - a[1]*b[0];
}
static double dot(const double *a, const double *b) {
... |
/* IBM_PROLOG_BEGIN_TAG */
/*
* Copyright 2003,2016 IBM International Business Machines Corp.
*
* 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/li... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.