text stringlengths 5.8k 28.2k |
|---|
/*! \file bcmfp_presel_action_cfg.c
*
* Utility APIs to operate with FP preselection actions.
*/
/*
* Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to
* Broadcom Limited and/or its subsidiaries.
*
* Broadcom Switch Software License
*
* This license governs the use of the accompanying ... |
/******************************************************************************
* libperf.c *
* *
* This is the libperf implementation. *
... |
#include "jqp.h"
#include "ejdb2_internal.h"
#include <ejdb2/iowow/iwxstr.h>
#include <ejdb2/iowow/iwutils.h>
#include <CUnit/Basic.h>
#include <stdlib.h>
int init_suite(void) {
int rc = ejdb_init();
return rc;
}
int clean_suite(void) {
return 0;
}
void _jql_test1_1(int num, iwrc expected) {
fprintf(stderr, ... |
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 1993
* The Regents of the University of California. 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 ... |
/*
* mk_hugefiles.c -- create huge files
*/
#define _XOPEN_SOURCE 600 /* for inclusion of PATH_MAX in Solaris */
#define _BSD_SOURCE /* for makedev() and major() */
#define _DEFAULT_SOURCE /* since glibc 2.20 _BSD_SOURCE is deprecated */
#include "config.h"
#include <ctype.h>
#include <fcntl.h>
#include <s... |
/**********************************************************************
* $Id: cu_homogenize.c 10782 2012-12-03 13:52:06Z strk $
*
* PostGIS - Spatial Types for PostgreSQL
* http://postgis.refractions.net
* Copyright 2009 <NAME> <<EMAIL>>
*
* This is free software; you can redistribute and/or modify it under
* ... |
// Options: --no-argc --no-arrays --no-bitfields --checksum --concise --no-consts --no-float --no-inline-function --max-array-dim 3 --max-array-len-per-dim 10 --max-block-depth 5 --max-block-size 4 --max-expr-complexity 2 --max-funcs 1 --max-pointer-depth 2 --no-pointers --no-structs --no-unions --no-volatiles --no-b... |
/*
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
* Copyright (C) 2005-2014, <NAME> <<EMAIL>>
*
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Li... |
/*
* The Shadow Simulator
* Copyright (c) 2010-2011, <NAME>
* See LICENSE for licensing information
*/
#include "shadow.h"
/* a packet is a 'data' packet if it has a payload attached, and a 'control' packet otherwise.
* each packet is either a 'normal' packet or a 'retransmitted' packet. */
typedef struct {
... |
#define _POSIX_C_SOURCE 201112LL
#include <ctype.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <termbox.h>
#include "bind.h"
#include "util/stringop.h"
// bind_node is a node in a trie of all the valid binds
struct bind_node {
char *key; // the key combination of this n... |
/* Copyright (C) <NAME> and <NAME> - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
*/
#include <stdio.h>
#include <assert.h>
#include "intern.h"
#include "itoa.h"
#include "type.h"
// Constants
#define NECRO_INITIAL_INTERN_SIZE 409... |
/*
* Copyright (C) 2015, <NAME> <<EMAIL>>
*
* Intel Platform Controller Hub EG20T (codename Topcliff) GMAC Driver
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <asm/io.h>
#include <pci.h>
#include <miiphy.h>
#include "pch_gbe.h"
#if !defined(CONFIG_PHYL... |
/*
pithond - gpio control daemon using DGRAM (UDP) sockets
can be loaded as a service
must be run as root for pin control
*/
#include <syslog.h>
#include <signal.h>
#include <getopt.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include... |
#include <kernel.h>
#include <stdlib.h>
#include <tamtypes.h>
#include <math3d.h>
#include <packet.h>
#include <dma_tags.h>
#include <gif_tags.h>
#include <gs_psm.h>
#include <dma.h>
#include <graph.h>
#include <draw.h>
#include <draw3d.h>
//#include "Controller.c" TODO: I must have messed something up in control... |
/*
* dname.c
*
* dname specific rdata implementations
* A dname is a rdf structure with type LDNS_RDF_TYPE_DNAME
* It is not a /real/ type! All function must therefor check
* for LDNS_RDF_TYPE_DNAME.
*
* a Net::DNS like library for C
*
* (c) NLnet Labs, 2004-2006
*
* See the file LICENSE for the license
*/... |
/*
The MIT License (MIT)
Copyright (c) 2016-2017 <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, p... |
#include "config.h"
#ifdef ONIG_ESCAPE_UCHAR_COLLISION
#undef ONIG_ESCAPE_UCHAR_COLLISION
#endif
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "onigmo.h"
/* #define USE_UTF8_31BITS */
#define SLEN(s) strlen(s)
static int nsucc = 0;
static int nfail = 0;
static int nerror = 0;
static FILE*... |
/* dqk61.f -- translated by f2c (version 20190311).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of ... |
/*++
/* NAME
/* postscreen_early 3
/* SUMMARY
/* postscreen pre-handshake tests
/* SYNOPSIS
/* #include <postscreen.h>
/*
/* void psc_early_init(void)
/*
/* void psc_early_tests(state)
/* PSC_STATE *state;
/* DESCRIPTION
/* psc_early_tests() performs protocol tests before the SMTP
/* handshake: the pregreet test and th... |
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <cpuinfo.h>
#include <x86/api.h>
#include <mach/api.h>
#include <api.h>
#include <log.h>
static inline uint32_t max(uint32_t a, uint32_t b) {
return a > b ? a : b;
}
static inline uint32_t bit_mask(uint32_t bits) {
return (UINT32_C(1) << bits) -... |
/*
* Read and execute the user commands
*
* @(#)command.c 3.45 (Berkeley) 6/15/81
*/
#include <curses.h>
#include <stdlib.h>
#include <ctype.h>
#include <signal.h>
#include "dungeon.h"
#include "rogue.h"
/*
* command:
* Process the user commands
*/
char countch = FALSE, direction = FALSE, newcount = FALSE;... |
/**
* @file ngx_http_mbtiles_module.c
* @author <NAME> <<EMAIL>>
* @date Fri Sep 03 08:08:12 2017
*
* @brief This modules serves map tiles from mbtiles container files
*
* @section LICENSE
*
* Copyright (c) 2017 PACE Telematics GmbH
*
* Permission is hereby granted, free of charge, to any person obtain... |
/*
* animation.c - A simple keyframe animation system for ParameterHolder objects
*
* de Jong Explorer - interactive exploration of the Peter de Jong attractor
* Copyright (C) 2004 <NAME> and <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General P... |
/******************************************************************************
KPP - The Kinetic PreProcessor
Builds simulation code for chemical kinetic systems
Copyright (C) 1995-1996 <NAME> and <NAME>
Copyright (C) 1997-2005 <NAME>
KPP is free software; you can redistribute it and/or modify it un... |
/**
* CPSC 325 Assignment 3 - Conway's Game of Life
* By <NAME> and <NAME>
**/
#include <stdio.h>
#include <stdlib.h>
#include <pc.h>
#include <dpmi.h>
#include <go32.h>
#include <dos.h>
#ifndef USENEAR
#include <sys/farptr.h>
#else
#include <sys/nearptr.h>
#include <crt0.h>
int _crt0_startup_flag... |
/*
* Copyright (c) 2012 Los Alamos National Security, LLC.
* All rights reserved
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "orte_config.h"
#include "orte/constants.h"
#include "orte/types.h"
#include <errno.h>
#ifdef HAVE_UNISTD_H
#include <unis... |
/*
* Copyright (C) 2014 BlueKitchen GmbH
*
* 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 the follo... |
/* Dia -- an diagram creation/manipulation program
*
* Wan Link netwrok object
* Code based on wanlink.c and bus.c
*
* Copyright (C) 1998 <NAME>
* Copyright (C) 2001 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publish... |
/*
* VIRTIO-BLK
*/
#include <stdint.h>
#include <malloc.h>
#include <pthread.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include "virtio.h"
#include "address_space.h"
#include "device.h"
/* Feature bits */
#define VIRTIO_BLK_F_BARRIER 0x1 /* Does host support barriers? */
#define VIR... |
/*++
/* NAME
/* showq 8
/* SUMMARY
/* list the Postfix mail queue
/* SYNOPSIS
/* \fBshowq\fR [generic Postfix daemon options]
/* DESCRIPTION
/* The \fBshowq\fR daemon reports the Postfix mail queue status.
/* It is the program that emulates the sendmail `mailq' command.
/*
/* The \fBshowq\fR daemon can also be run in s... |
/*
* This file is part of the UCB release of Plan 9. It is subject to the license
* terms in the LICENSE file found in the top-level directory of this
* distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
* part of the UCB release of Plan 9, including this file, may be copied,
* modified, prop... |
/*
* This file is part of the IOTA Access distribution
* (https://github.com/iotaledger/access)
*
* Copyright (c) 2020 IOTA Stiftung
*
* 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
*... |
/*******************************************************************************
** File: Interface.c
**
** Purpose:
** App to interface mavlink compatible autpilot (ardupilot), ground station
** and Icarous.
**
*******************************************************************************/
#define EXTERN
... |
#include "NtpTime.h"
#include "shm.h"
#include "libhd.h"
#include "define.h"
#include <sys/socket.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <time.h... |
/*
** Copyright 2007-2018 RTE
** Author: <NAME>
**
** This file is part of Sirius_Solver.
** This program and the accompanying materials are made available under the
** terms of the Eclipse Public License 2.0 which is available at
** http://www.eclipse.org/legal/epl-2.0.
**
** This Source Code may also be made availabl... |
/*
* QEMU i440FX/PIIX3 PCI Bridge Emulation
*
* Copyright (c) 2006 <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... |
/*** File saoimage/wcslib/dsspos.c
*** October 21, 1999
*** By <NAME>, <EMAIL>
*** Harvard-Smithsonian Center for Astrophysics
*** Copyright (C) 1995-2002
*** Smithsonian Astrophysical Observatory, Cambridge, MA, USA
This library is free software; you can redistribute it and/or
modify it under the terms o... |
/* bigRmskClick - Click handler for bigRmskTrack. This is based
* loosely on the original rmsk click handler inside
* of hgc.c.
*
* Written by <NAME> 10/2021
*/
/* Copyright (C) 2021 The Regents of the University of California
* See kent/LICENSE or http://genome.ucsc.edu/license/... |
/**
* @file sd_spi.h
* @author David <<EMAIL>>
* @date November, 2015
* @brief Header for SD card library
* @copyright BSD license, see BSD-LICENSE.txt
* @details
*
* A library for accessing SD cards, using the SPI protocol.
*
* This code works with SDSC (standard capacity), SDHC (high capacity) and
... |
/*! \file rk_int.c
* \brief Function definitions for numerical integration routines.
*/
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<gsl/gsl_sf_gamma.h>
#include"rk_int.h"
#include"routines.h"
/********************************************************
*
* Numerical Integration Subroutines.
*
***... |
/* $OpenBSD: nvram.c,v 1.7 2010/12/26 15:40:59 miod Exp $ */
/*
* Copyright (c) 1995 <NAME>
*
* 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
*... |
/*
* Copyright (c) 2017 <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, modify, merge, p... |
/***********************************************************************
*
* Copyright (c) Geoworks 1994 -- All Rights Reserved
*
* PROJECT: GEOS Bitstream Font Driver
* MODULE: C
* FILE: TrueType/fnt.h
* AUTHOR: <NAME>
*
* DESCRIPTION:
* This file contains C code for the GEOS Bitstream Font Driver.... |
/* ###################################################################
** THIS COMPONENT MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : USB0.c
** Project : Landungsbruecke_KDS_v2.0.0
** Processor : MK20DN512VLL10
** Component : Init_USB_OTG
** Version : Com... |
#include "nrf.h"
#include "nrf_gpio.h"
#include "nrf_delay.h"
#include "display_defines.h"
#include "display.h"
#include "nrf_assert.h"
// placeholder for actual brightness control see https://forum.pine64.org/showthread.php?tid=9378, pwm is planned
void display_backlight(char brightness) {
nrf_gpio_cfg_output(LC... |
/* FreeTDS - Library of routines accessing Sybase and Microsoft databases
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 <NAME>
* Copyright (C) 2005-2008 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as ... |
#include <stdio.h>
#include <math.h>
#include <gsl/gsl_vector.h>
#include "MeshAttributes.h"
#include "mathfunctions.h"
#include "oneTimeStep.h"
extern const double g;
void oneTimeStep2D (double time, double dt)
{
// store H, Qx, Qy
gsl_vector *gzeta = gsl_vector_alloc(3*NumEl);
gsl_vector *gQx = gsl_vector_allo... |
/*
* nocLock_v2.c
*
* Created: 10/22/2014 7:12:52 PM
* Authors: <NAME>, <NAME>, <NAME>, <NAME>
*/
#define F_CPU 8000000 //8MHz CPU clock
#define MAXIMUM_KNOCKS 100
#define SOUND_THRESHOLD 60
#define TIME_OFFSET_MS 500 //Time tolerance for input knocks
#define POST_KNOCK_DELAY_MS 75 //Time to del... |
/* SCTP kernel Implementation
* (C) Copyright IBM Corp. 2003
*
* The SCTP implementation 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, or (at your option)
* any later version.
*
... |
#include "armdefs.h"
#include "skyeye_types.h"
#include "armemu.h"
ARMul_State *state;
static int verbosity;
extern int big_endian;
static int mem_size = (1 << 21);
static mem_config_t arm_mem;
static cpu_config_t *p_arm_cpu;
static ARMword preset_regfile[16];
extern ARMword skyeye_cachetype;
//chy 2005-08-01, borrow f... |
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <Uefi.h>
#include <FrameworkSmm.h>
#include <Library/BaseLib.h>
#include <Library/DevicePathLib.h>
#include <Library/DebugLib.h>
#include <Library/UefiLib.h>
#include <Library/UefiApplicationEntryPoint.h>
#include... |
#include "a2.h"
extern double ** heightMap;
extern GLfloat *** diffuseColourMap;
extern Dim3Vector *** vertexNormals;
extern Dim3Vector *** triangleNormals;
extern int width;
extern int height;
extern int depth;
extern double cameraZoom;
void parseStream(FILE * fp){
char currentString[2048];
char * token = ... |
/**
* @file
*
* @author <EMAIL>
*
* Copyright (c) 2015 Battelle Memorial Institute.
*/
#include "config.h"
#include <stdint.h>
#include <stdlib.h>
#include <immintrin.h>
#include "parasail.h"
#include "parasail/memory.h"
#include "parasail/internal_avx.h"
#define NEG_INF (INT32_MIN/(int32_t)(2))
#if HAVE_AVX... |
// display task rework by <NAME>
// Reworked version 11/7/21
// This task is responsible for handling the everything to be drawn to the display. It will read two values from a queue: msg and msg2.
// msg will alwasy be drawn, msg2 can clear a square or draw a square depending on the value. Display also knows if game... |
/*
* Copyright 2007, Freescale Semiconductor, Inc
* <NAME>
*
* Copyright (C) 2008-2011 Freescale Semiconductor, Inc.
*
* Based vaguely on the pxa mmc code:
* (C) Copyright 2003
* <NAME>, Nexus Technologies, Inc. <EMAIL>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This pro... |
/*
Clock Calibration Project (main.c)
Calibrates the DCO using the CLK32 XTal
This program provides serveral calibration frequencies for the DCO
Uses an external 32768 Hz used as a reference
The program calibrates the DCO clock for the following frequences:
500kHz,1MHz,2MHz,4MHz,6MHz,8MHz,10MHz,12MHZ,... |
/* (C) Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006 <NAME>
* (C) Copyright 2007, 2008, 2009, 2010, 2011, 2012, 2013 <NAME>
*
* This file is part of tingea. You can redistribute and/or modify tingea
* under the terms of the GNU General Public License; either version 3 of the
* License or (at your optio... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define PREALLOC_HEADERS 10
// NULL : \s \t
static const char SEP[256] = {
1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0... |
/*
* File: native-test-util.c
* Description: interface to native sockets
* Author(s): <NAME>
*
* Copyright 2012 by Ember Corporation. All rights reserved. *80*
*/
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
#include <ctype.h>
#include <stdlib.h>
#include <signal.h>
#include <unis... |
/* base class for all conversion operations
*
* properties:
* - single output image
*/
/*
Copyright (C) 1991-2005 The National Gallery
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 Softwar... |
/*
* This file is part of dc_dump.
*
* dc_dump is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Foobar is distributed i... |
/*
Copyright (C) 1997, <NAME>
*/
#include"chep_crt.h"
#include "syst2.h"
#include "process.h"
#include "physics.h"
#include "s_files.h"
#include "squar.h"
#include "sortarr.h"
typedef struct groupStr
{
struct groupStr * next;
permut perm;
unsigned left;
unsigned res;
} groupStr;
typed... |
/* This is dvipdfmx, an eXtended version of dvipdfm by <NAME>.
Copyright (C) 2007-2018 by <NAME> and <NAME>,
the dvipdfmx project team.
Copyright (C) 1998, 1999 by <NAME> <<EMAIL>>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Publi... |
/*
Copyright (C) 2014 by <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 distributed in the h... |
/*
* Copyright (c) 2017 ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetstr. 6, CH-8092 Zurich. Attn: Systems Group.
*/
#include <barrelfish/barrelfis... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... |
/*
* Copyright (C) 2008 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This libr... |
/* libasf - An Advanced Systems Format media file parser
* Copyright (C) 2006-2010 <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... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <freertos/FreeRTOS.h>
#include <freertos/event_groups.h>
#include <esp_err.h>
#include <esp_log.h>
#include <esp_event.h>
#include <esp_timer.h>
#include <esp_netif.h>
#include <esp_wifi.h>
#include "WiFiSTA.h"
#define MAX_RETRY_COUNT_PER... |
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "astring.h"
#include "Template.h"
#include "Publication.h"
#include "Tags.h"
#include "Buffer.h"
#include "Command.h"
#include "List.h"
#include "Logging.h"
#include "memutils.h"
#include "path.h"
#include "stringext.h"
extern Publi... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2020 Intel Corporation
*/
#include <rte_bus_pci.h>
#include <rte_memzone.h>
#include "ioat_private.h"
#include "ioat_spec.h"
#define IDXD_VENDOR_ID 0x8086
#define IDXD_DEVICE_ID_SPR 0x0B25
#define IDXD_PMD_RAWDEV_NAME_PCI rawdev_idxd_pci
const struct rte_p... |
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
# include <ximio.h>
# include <xtables.h>
# include <c_iraf.h>
# include "splice.h"
typedef struct {
IRAFPointer tp; /* pointer to table descriptor */
IRAFPointer cp[NCOLS]; /* column descriptors */
int nrows; /* number of rows in table */
int nelem;... |
#include "gc_players.h"
#include "gc_sound.h"
gridling_t players[NUM_MAX_PLAYERS];
float zoom = 3.0;
GLuint uni_cam_loc;
GLuint uni_zoom_loc;
float cam_x = 0.0;
float cam_y = 0.0;
GLuint players_vao;
float* players_vert = NULL;
float* players_texc = NULL;
GLuint players_vert_vbo;
GLuint players_texc_vbo;
bool play... |
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
/*
* Using the KBP device as external TCAM lookups (ELK), this CINT describes
* a configuration example of an ... |
#include "ffs.h"
Ensemble runn (double *runtime, Point pt_eq)
{
/* generate an array of points corresponding to crossings of the first interface */
int s,j,i,bb,rep;
int laststate;
double lambda, old_lambda;
Point p;
Ensemble current;
current = alloc_ensemble(N1);
p=equil(pt_eq);
fprintf(fp_lo... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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
* or http://www.opensolar... |
/*
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <hypervisor.h>
#define IOAPIC_MAX_PIN 240U
#define IOAPIC_INVALID_PIN 0xffU
struct gsi_table {
uint8_t ioapic_id;
uint8_t pin;
void *addr;
};
static struct gsi_table gsi_table[NR_MAX_GS... |
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above co... |
/* The MIT License
Copyright (C) 2003-2006, 2008-2010 by <NAME> <<EMAIL>>
Copyright (C) 2016-2017, 2020 Genome Research Ltd.
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... |
/* DREAMCAST
*IAN MICHEAL Ported SDL+OPENGL USING SDL[DREAMHAL][GLDC][KOS2.0]2021
* Cleaned and tested on dreamcast hardware by Ianmicheal
* This Code Was Created By Pet & Commented/Cleaned Up By <NAME>
* If You've Found This Code Useful, Please Let Me Know.
* Visit NeHe Productions At http://nehe.gamedev.net
... |
/* Copyright (c) 2011-2012 Xiph.Org Foundation, Mozilla Corporation
Written by <NAME> and <NAME> */
/*
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 cop... |
/*
* Copyright © 2019, VideoLAN and dav1d authors
* 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
* li... |
/* Extended Module Player
* Copyright (C) 1996-2021 <NAME> and <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... |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or its l... |
/*
* Copyright 2004-2017 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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
* ... |
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include "config.h"
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <pthread.h>
#include <assert.h>
#include "memcached.h"
#include "cproxy.h"
#include "work.h"
#include "log.h"
// Internal declarations.
//
#define KEY_TOK... |
/*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
publish... |
/**
******************************************************************************
* @file main.c
* @author Ac6
* @version V1.0
* @date 01-December-2013
* @brief Default main function.
******************************************************************************
*/
#include <stdio.h>
... |
/* xmlj_io.c -
Copyright (C) 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath 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, or (at your option)
a... |
/*
* testcode/asynclook.c - debug program perform async libunbound queries.
*
* Copyright (c) 2008, NLnet Labs. All rights reserved.
*
* This software is open source.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* a... |
#include "config.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <stdlib.h>
#include <ffs.h>
#include "fm_internal.h"
#include "ffs_internal.h"
#define MAX_DIFF 0xFFFF
#define COMPAT_THRESH 0.8
static FMStructDescList
build_struct_list(FMFormat f... |
/*
* Main function
*
* Copyright 1993 <NAME>
* Copyright 1995 <NAME>
* Copyright 1995, 1996, 1997 <NAME>
* Copyright 1997 <NAME>
* Copyright 1999 <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... |
/*
* Copyright (c) 2017 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except i... |
/*
* lws-minimal-secure-streams-smd
*
* Written in 2010-2021 by <NAME> <<EMAIL>>
*
* This file is made available under the Creative Commons CC0 1.0
* Universal Public Domain Dedication.
*
*
* This demonstrates a minimal http client using secure streams to access the
* SMD api. This file is only built when LW... |
/*-
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2016 <NAME> <<EMAIL>>
* All rights reserved.
* Copyright (c) 2021 Rubicon Communications, LLC (Netgate)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are... |
#ifndef lint
static const char RCSid[] = "$Id: rholo2.c,v 3.30 2018/10/05 19:19:16 greg Exp $";
#endif
/*
* Rtrace support routines for holodeck rendering
*/
#include <time.h>
#include "rholo.h"
#include "paths.h"
#include "random.h"
VIEWPOINT myeye; /* target view position */
struct gclim {
HOLO *hp; /* hol... |
/*
This source file is part of the Geophysical Fluids Modeling Framework (GAME), which is released under the MIT license.
Github repository: https://github.com/OpenNWP/GAME
*/
/*
In this file, the initial state of the simulation is read in from a netcdf file.
*/
#include <stdio.h>
#include <stdlib.h>
#incl... |
/*
* Oracle Linux DTrace.
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
/* We define this here to stop pcap from including a conflicting bpf.h. */
#define _BPF_H_
#include... |
/*
* Copyright (c) 2006-2018 <NAME> and <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <st... |
/*********************************************************************
* SEGGER Microcontroller GmbH & Co. KG *
* Solutions for real time microcontroller applications *
**********************************************************************
* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.