text stringlengths 3.12k 18.7k |
|---|
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
/*--------------------------------------------------------------------------... |
/*
============================================================================
Name : displayYUV.c
Author : mpelcat & kdesnos & jheulot
Version :
Copyright : CECILL-C
Description : Displaying YUV frames one next to another in a row
=====================================================================... |
/*
* Copyright (c) 2007 SMedia Technology Corp. All Rights Reserved.
*/
/** @file psi_table_tdt.c
* Use to decode the TDT table of TS packets
* @author <NAME>
* @version 0.1
*/
#ifdef USE_BITSTREAM_KIT
#include "bitstream_kit.h"
#endif
#include "psi_table_tdt.h"
//==============================================... |
struct Matrix_t PerspectiveFov(struct Fixed fovy, struct Fixed aspect, struct Fixed zn, struct Fixed zf)
{
struct Matrix_t res;
struct Fixed* m = res.v;
struct Fixed tanHalfFov = Tan(Mul(RadianToCircular(fovy), FromFixed(0x8000)));
m[0 * 4 + 0] = Div(FromInt(1), Mul(aspect, tanHalfFov));
SetInt(&m... |
#include "arcade.h"
#include "framework.h"
char *vector_length() {
Vector2 vec = vec2_new(3.f, 4.f);
assert("Vector2 Length 1", vec2_len2(vec) == 25.f);
assert("Vector2 Length 2", vec2_len(vec) == 5.f);
return NULL;
}
char *vector_scale() {
Vector2 vec = vec2_new(10.f, 10.f);
Vector2 new_len = vec2_with_len(vec... |
/*
* 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... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "curlread.h"
#ifdef TEST_CURLREADER
#ifdef _MSC_VER
#ifdef _DEBUG
#include <crtdbg.h>
#define _CRTDBG_MAP_ALLOC
#endif
#endif
#endif
static size_t getdata(char *buffer, size_t size, size_t nitems, void *userp)
{
CURLREADER *r = (CURLREADER*)userp;
... |
/* Copyright (c) 2007, Stanford University
* 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 condi... |
#include "litets.h"
#include <stdio.h>
static int get_ts_payload_offset(uint8_t *ts_pack)
{
ts_header *ts = (ts_header *)ts_pack;
int adaptation_field_control = ts->head.adaptation_field_control;
int payload_offset;
if (adaptation_field_control == 0)
payload_offset = 188;
else if (adaptation_field_... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <monitor.h>
#include <tep.h>
#define PLUGINS_DIR "/usr/lib64/perf-prof-traceevent/plugins"
static struct tep_handle *tep = NULL;
static struct tep_plugin_list *plugin... |
/*
* Copyright 2017 Advanced Micro Devices, 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 use, copy, modify, m... |
#include <ctype.h>
#include "map.h"
#include "taxi.h"
#include "order.h"
#define BUFFER_SIZE 10
typedef struct thread_data {
int socket_fd;
taxi *taxi;
taxi **taxis;
order **orders;
/* Mutex for synchronizing taxis' moves */
pthread_mutex_t *taxis_mutex;
/* Array of mutexes for synchroniz... |
/*
Copyright (c) 2012-2013 The Ohio State University.
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 applicab... |
/*-------------------------------------------------------------------------
*
* ginutil.c
* utilities routines for the postgres inverted index access method.
*
*
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* ... |
/* $OpenBSD: pmap_bootstrap.c,v 1.25 2003/06/02 23:27:49 millert Exp $ */
/* $NetBSD: pmap_bootstrap.c,v 1.50 1999/04/07 06:14:33 scottr Exp $ */
/*
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* ... |
#define _USE_MATH_DEFINES
#include <math.h>
#include "mex.h"
#define aa 6378137
#define ep2 0.006739496742276
#define b 6356752.314245179
#define MAXPOW 6
#define f 3.35281066474748e-3
#define a1 6367449.14582
#define e 8.181919084262149e-02
#define e2 6.694379990141316e-03
#define n_ 1.... |
/*
* pongoOS - https://checkra.in
*
* Copyright (C) 2019-2020 checkra1n team
*
* This file is part of pongoOS.
*
* 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... |
/*
* Copyright (c) 2003 <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 copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... |
#include "run.h"
#include <stdlib.h>
#define KEY_WK_Pin GPIO_PIN_0
#define KEY_WK_GPIO_Port GPIOA
#define KEY0_Pin GPIO_PIN_5
#define KEY0_GPIO_Port GPIOC
#define LED0_Pin GPIO_PIN_8
#define LED0_GPIO_Port GPIOA
#define KEY1_Pin GPIO_PIN_15
#define KEY1_GPIO_Port GPIOA
#define LED1_Pin GPIO_PIN_2
#define L... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2021 <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 r... |
/* rsa.c - RSA function
* Copyright (c) 1997,1998,1999 by <NAME> (dd9jn)
***********************************************************************
* ATTENTION: This code should not be exported to the United States
* nor should it be used there without a license agreement with PKP.
* The RSA algorithm is protected ... |
/*
* Copyright 2008 Search Solution Corporation
* Copyright 2016 CUBRID Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-... |
/**
******************************************************************************
* @file CN0397.c
* @brief Project main source file
* @version V0.1
* @author ADI
*
*******************************************************************************
* Copyright 2016(c) Analog Devices, Inc.
*
* All rights ... |
#pragma once
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <pthread.h>
//#define _DEBUG_MODE
#define _SHOW_THREAD_ID
#define TEST_ERROR (1)
#ifdef _SHOW_THREAD_ID
#define SHOW_THREAD_DEBUG() fprintf(stdout, "线程: %lu, ", pthread_self())
#define SHOW_THREAD_ERROR() fprintf(stderr, "线程: %lu... |
//===--- grim_forms.c - Functions for displaying and controlling forms ----===//
//
// grim Project
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//===----------------------------------------------------------------------===//
//!
//! \file
//! This fil... |
/* GStreamer
* Copyright (C) <1999> <NAME> <<EMAIL>>
*
* EffecTV:
* Copyright (C) 2001 <NAME>
*
* EffecTV is free software. 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; eithe... |
/**
* \file interface-offload.c
* \author written by <NAME> <EMAIL> (C) 2013
* \date 2013
*/
/*
=head1 NAME
dabba-interface-offload - Manage network interface offload settings
=head1 SYNOPSIS
dabba interface offload <action> [<arguments>...] [--help]
=head1 DESCRIPTION
Give the user the possibility to manag... |
/** @file
Copyright (C) 2018, vit9696. All rights reserved.
Copyright (C) 2020, PMheart. All rights reserved.
All rights reserved.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full te... |
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include <u.h>
#include <libc.h>
#include "gg.h"
#include "opt.h"
#include "../../pkg/runtime/funcdata.h"
static void allocauto(Prog* p);
static int pointermap... |
#include <u.h>
#include <libc.h>
#include <ctype.h>
#include "fmtdef.h"
#include "nan.h"
enum
{
FDIGIT = 30,
FDEFLT = 6,
NSIGNIF = 17,
NEXP10 = 308,
};
static int
xadd(char *a, int n, int v)
{
char *b;
int c;
if(n < 0 || n >= NSIGNIF)
return 0;
for(b = a+n; b >= a; b--) {
c = *b + v;
if(c <= '9') {
... |
/*---------------------------------------------------------------------------------------------------------------------------------------------*/
//<NAME>
//GPU Implementation
/*-------------------------------------------------------------------------------------------------------------------------------------------... |
/* Copyright (c) 1998, 2000, 2003-2008, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by <NAME> <<EMAIL>>, 1998.
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 So... |
/* $FreeBSD: soc2013/dpl/head/usr.sbin/usbconfig/dump.c 247990 2013-02-14 12:22:40Z hselasky $ */
/*-
* Copyright (c) 2008 <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. Redist... |
#include "I2C_OLED.h"
#include "fonts.h"
void I2C_Configuration(void)
{
uint32_t GPIO_SDA, GPIO_SCL;
uint32_t GPIO_PIN_SDA, GPIO_PIN_SCL;
rcu_periph_clock_enable(RCU_GPIOB);
rcu_periph_clock_enable(RCU_I2C1);
GPIO_SDA = GPIOB;
GPIO_PIN_SDA = GPIO_PIN_11;
GPIO_SCL = GPIOB;
GPIO_PIN_SCL... |
#include <gtk/gtk.h>
#include <hunspell/hunspell.h>
#include <images/conversions.h>
#include <images/image.h>
#include <images/segmentation.h>
#include <images/transformations.h>
#include <nn/neural_network.h>
#include <stdio.h>
#include <stdlib.h>
#include <struct.h>
#include <utils/error.h>
#include <utils/matrix.h>
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct node {
int key;
char stat;
int height;
struct node *p;
struct node *left;
struct node *right;
};
typedef struct node *node;
struct tree {
node root;
};
node Create_Node (int k) {
node x = (node) malloc (sizeof (struct node));
x -> key = k;
... |
/*
* key2ds transforms a public key into its DS
* It (currently) prints out the public key
*
* (c) NLnet Labs, 2005 - 2008
* See the file LICENSE for the license
*/
#include "config.h"
#include <ldns/ldns.h>
#include <errno.h>
static void
usage(FILE *fp, char *prog) {
fprintf(fp, "%s [-fn] [-1|-2] keyfile\n"... |
#include <stdio.h>
#include <stdlib.h>
/**
* İkili ağaç yapısı
* @author <NAME>
*/
/**
* İkili ağaç yapısında, daldaki değerden
* küçük ise soluna
* büyük ise sağına yazılır.
*
* 11
* / \
* 7 14
* / \ / \
* 3 8 12 18
*
*/
typedef struct _dal{
int veri;
_dal* ... |
/*
* SysDB - src/parser/ast.c
* Copyright (C) 2013-2015 Sebastian 'tokkee' Harl <<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 ... |
/*
Copyright (C) 2019 SUSE LLC
Author: <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, modif... |
#include "sqdb/sqdb2.h"
#include "pixie.h"
#include "mongoose.h"
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include "display.h"
/*===========================================================================
*===========================================================================*/
void
... |
/*
* Copyright (C) 2015 - 2016 Texas Instruments Incorporated - http://www.ti.com/
*
* 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, t... |
/**
* \file
*
* \brief SAM RTC Calendar Unit test
*
* Copyright (C) 2015-2016 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... |
/* src/config.h. Generated from config.h.in by configure. */
/* src/config.h.in. Generated from configure.ac by autoheader. */
/* Defines debugging . */
/* #undef DEBUG */
/* No debugging. */
#define DEBUGLEVEL 0
/* Define to 1 to support Advanced Bit Manipulation */
#define HAVE_ABM 1
/* Define to ... |
/*
* raytracer.c
*
* <NAME>
* 4/27/21
*
* Simple raytracer for spheres.
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include <getopt.h>
#include <string.h>
#include "geometry.h"
#include "scene.h"
// declare the inline function here to make compiler happy
float radians(flo... |
/*
* This is meant to be a string based calculator
* as stated in K&R's ANSI C 2nd edition, on page 72
* this particular implementation would barely be sufficient
* for balancing a checkbook, but it should be fun to work on
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* maximum size of input *... |
/***************************************************
This is a library for the MCP23017 i2c port expander
These displays use I2C to communicate, 2 pins are required to
interface
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
pr... |
/*
* $Id: yrdwr.c,v 1.1 2005-09-18 22:04:16 dhmunro Exp $
* Implement YRead and YWrite functions, plus general gather/scatter
* routines with StructDef format Converter.
*/
/* Copyright (c) 2005, The Regents of the University of California.
* All rights reserved.
* This file is part of yorick (http://yorick.sourc... |
/* testfilechooser.c
* Copyright (C) 2003 Red Hat, Inc.
* Author: <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 published by the Free Software Foundation; either
* version 2 of the License, or (at your option) ... |
/*
* MIT License
*
* Copyright (c) 2019-2021 Ecole Polytechnique Federale Lausanne (EPFL)
*
* 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 limit... |
/*-------------------------------------------------------------------------
*
* dbcommands.c--
*
*
* Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/dbcommands.c,v 1.1.1.1 1996/07/09 06:21:40 scrappy Exp $
*
*---------... |
/**
* @file lib/decor-fancy.c
* @brief "Fancy" decoration theme; the default.
*
* This is based on an old GTK theme I used to use back in ~2010.
*
* @copyright
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2016-202... |
/*
* Acess2 Native Kernel
* - Acess kernel emulation on another OS using SDL and UDP
*
* net.c
* - Networking
*/
#define DEBUG 1
#include <stdlib.h>
#include <unistd.h>
#include <stdbool.h>
#include "../../KernelLand/Kernel/include/logdebug.h"
#include "net_wrap.h"
#include <string.h>
#include <sys/socket.h>
#inc... |
/*
Author: lyon
Tencent QQ: 645275593
*/
#include <stdarg.h>
#include "PikaObj.h"
#include "dataArgs.h"
#include "dataMemory.h"
#include "dataString.h"
#include "dataStrs.h"
static int32_t loadArgByType(PikaObj* self,
char* definedName,
char* definedType... |
/* PipeWire
*
* Copyright © 2021 <NAME> <<EMAIL>>
* Copyright © 2021 <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 limitatio... |
/**
* libmikrotik - src/ros.c
* Copyright (C) 2009 <NAME>
*
* 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... |
/** CPU Laplace solver using Gauss–Seidel with SOR solver
* \file main_cpu_gs.c
*
* \author <NAME>
* \date 09/21/2012
*
* Solves Laplace's equation in 2D (e.g., heat conduction in a rectangular plate)
* using the Gauss–Seidel with sucessive overrelaxation (SOR).
*
* Boundary conditions:
* T = 0 at x = 0, x =... |
#include <hash.h>
#include <string.h>
#include <stdlib.h>
#include <tinydb.h>
#include <assert.h>
#include <stdio.h>
#include <pager.h>
#define HASH_DEFAULT_HASH_TABLE_SIZE 32
typedef struct __HashEntryType {
struct __HashEntryType *pNext;
struct __HashEntryType *pNextOfAll;
struct __HashEntryType *pPrevOfAll;
... |
/* Created by build_access.py */
/* returns string of length 0 if invalid arg */
const char * dwarf_get_elf_relocname_x86_64(unsigned long);
#ifndef R_X86_64_NONE
#define R_X86_64_NONE 0
#endif /* R_X86_64_NONE */
#ifndef R_X86_64_64
#define R_X86_64_64 1
#endif /* R_X86_64_64 */
#ifndef R_X86_64_PC32
#... |
/*
FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
***************************************************************************
* ... |
# include <stdio.h>
# include <stdlib.h> /* calloc */
# include <hstio.h>
# include "../stis.h"
# include "calstis4.h"
# include "../stiserr.h"
static int CollapsePrism (SpTrace *, SingleGroup *,
int, int, int, int,
double [], double [], short,
double [], short[]);
static void LinearInterp (SingleGroup *, int, ... |
/*
Filename: VIT.C
Written by: <NAME>, 2005
Description:
Algorithm Vitter; maintains a 0-node; is fast.
The code here produces a *correct* Huffman Tree according to
the Sibling Property, see <NAME>, "Design and Analysis
of Dynamic Huffman Codes," Journal of the Association for Computing
Machi... |
// Super Grayland: Copyright 2021 <NAME> under the MIT license.
// See `license.txt` for more information.
// Before delving into the code, please read `readme_source.txt` to understand the basic design.
#pragma once
// Define these before `tigcclib.h` is included.
#define USE_TI89
#define USE_TI92PLUS
#define USE_V2... |
/*
* Copyright 2021 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
/* text.c
Part of the swftools package.
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 published by
the Free Software Foundation; either version 2 of the License, or
(at your option) ... |
#include "definitions.h"
#define max_vars 1000
Pilha params;
void gera_cod_Assembly (){
char *c1;
char *c2;
char *c3;
char *c4; //nao precisa dar free pq nao foi alocado com malloc
char *varLocation;
char *escopo_atual;
char *aux_vars_cont;
char *aux_vars_cont_um;
char *aux_tam_vet;
int max_cont, i, vars_... |
#include "rc_internal.h"
#include <stdlib.h> /* malloc/realloc */
#include <string.h> /* memcpy */
#define MEMREF_PLACEHOLDER_ADDRESS 0xFFFFFFFF
rc_memref_t* rc_alloc_memref(rc_parse_state_t* parse, unsigned address, char size, char is_indirect) {
rc_memref_t** next_memref;
rc_memref_t* memref;
if (!is_indire... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define PI 3.1415926535
typedef double Point[3];
typedef double Matrix[3][3];
enum alfa {moveto, lineto};
// Dane wejściowe
double step_length;
int DW_n;
double DW_s;
double DW_u;
double DW_d;
double DW_x;
double DW_y;
double DW_z;
double DW_KatX;
d... |
/*-
* Copyright (c) 2003-2004 <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 conditi... |
/* popen.c - an implementation of the popen(3) and pclose(3) functions.
*
* The `popen(3)` library function is able to run commands in the host shell,
* and allow the calling process to eithe read from the child process' standard
* output, or write to its standard input. Each call to the function invokes `/bin/sh`
... |
/* libwmf (ipa/foreign.c): library for wmf conversion
Copyright (C) 2000 - various; see CREDITS, ChangeLog, and sources
The libwmf 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; eithe... |
/*
==========
bytecdes.h
==========
Dolphin Instruction Set
*/
#pragma once
///////////////////////
// Instruction Set
enum { NumShortPushInstVars = 16 };
enum { NumShortPushTemps = 8 };
enum { NumPushContextTemps = 2 };
enum { NumPushOuterTemps = 2 };
enum { NumShortPushConsts = 16 };
enum { NumShortPushStatics = 12... |
/*
Teem: Tools to process and visualize scientific data and images
Copyright (C) 2005 <NAME>
Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
(LGPL) as... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* util/support/t_path.c - Path manipulation tests */
/*
* Copyright (C) 2011 by the Massachusetts Institute of Technology.
* All rights reserved.
*
* Export of this software from the United States of America may
* require a specific license from th... |
/* Copyright (c) 2007-2012 Massachusetts Institute of Technology
*
* 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, ... |
/*
ESQ-1 program/bank transmit via MIDI sysex using MacOS X CoreMIDI
(c) 2012 <NAME>
*/
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <time.h>
#include <CoreMIDI/CoreMIDI.h>
#include "esq_pcb.h"
#define VERSION "0.8"
// globals
int verbosity=0;
int destNum=1, destChan=1, progNum=-1, d... |
/* ----------------------------------------------------------------------- *
*
* Copyright 2010 Intel Corporation; author: <NAME>
*
* 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, ... |
// Sine Generator functions using only multiplication, addition and bit shifting
// Uses a single division for converting the wavelength to a reciprocal.
// Generates sine using the series sin(x) = x - x^/3! + x^-5! - x^7/7! ...
// Uses the approximation sin(x) = x - x^/6 + x^/128
// Optimization possibility: Use symme... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
/*
CS205 project: Density equalizing map projections
Date: April 6th 2019
Compiler: gcc diff_map2.c -o exec -lm -lpng
project members: <NAME>, <NAME>, <NAME>
project goal: density equalizing map DEM projections
Input files: -colchart.txt
-density.txt
... |
/*
* Copyright (c) 2009-2010, <NAME>
* http://www.bjoernknafla.com/
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyrig... |
/*
* 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, Version 2.0
* (the "License"); you... |
#include "krad_alsa_seq.h"
#ifdef KLUDGE
void krad_alsa_seq_set_ipc_client (krad_alsa_seq_t *krad_alsa_seq, krad_ipc_client_t *krad_ipc_client) {
krad_alsa_seq->krad_ipc_client = krad_ipc_client;
}
#endif
void *krad_alsa_seq_running_thread (void *arg) {
krad_alsa_seq_t *krad_alsa_seq = (krad_alsa_seq_t *)arg;
... |
// minigl is heavily based on the broadcom aqua kos
#include "minigl.h"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "bcm_host.h"
#include "GLES/gl.h"
#include "EGL/egl.h"
#include "EGL/eglext.h"
static void (*minigl_quit_function)(void) = (void (*)(void)) 0;
void minigl_quit(void) {
print... |
/*************************************************************************/
/**** THIS PROGRAM IS AN AVS/EXPRESS MODULE PROGRAMMED IN C. ******/
/**** THE MODULE ACCEPTS ANY UNIFORM FIELD AND SETS AN INITIALLY ******/
/**** BLANK FIELD. THE USER CAN THEN MERGE IN_FLD NODE DATA INTO ******/
/**** THE OUT_F... |
/* timeout -- run a command with bounded time
Copyright (C) 2008-2011 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
... |
/* hgGtexExonBed - Load BED6 tables of per-exon data from NIH Common Fund Exon Tissue Expression (GTEX)
Format: chrom, chromStart, chromEnd, name, score, strand,
Uses hgFixed data tables loaded via hgGtex
*/
/* Copyright (C) 2015 The Regents of the University of California
* See README in this or parent ... |
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <unistd.h>
#include "term.h"
// Non-standard escape codes
#define TERM_CURSOR_SHOW "\033[?25h"
#define TERM_CURSOR_HIDE "\033[?25l"
#define TERM_SCREEN_SAVE ... |
/*
* Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
* Copyright (c) 2004-2005 Qualcomm Atheros, Inc.
* All Rights Reserved.
*/
// Copyright (c) 2018 Qualcomm Technologies, Inc.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without modification, are permitted (subject to ... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
/***********************************************************************
* XG SERVER
* core/darray.h
* Динамический массив
*
* Copyright (с) 2014-2015 <NAME>, <EMAIL>
**********************************************************************/
#include "core.h"
#include "darray.h"
/**
* Инициализация darray.c... |
/*
* @brief LPCXpresso 1347 board file
*
* @note
* Copyright(C) NXP Semiconductors, 2013
* All rights reserved.
*
* @par
* Software that is described herein is for illustrative purposes only
* which provides customers with programming information regarding the
* LPC products. This software is suppl... |
/*
* RTMPS supporting module
* Copyright (C) <NAME>
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include "ngx_rtmp_ssl_module.h"
#define NGX_RTMPS_DEFAULT_CIPHERS "HIGH:MEDIUM:!aNULL:!eNULL"
#define NGX_RTMPS_DEFAULT_ECDH_CURVE "prime256v1"
#define NGX_RTMPS_DEFAULT_PROTOCOLS NGX_SSL_SSLv2 \
... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2019-2020 <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, ... |
#include "alpha.h"
#include "scan.h"
#include "labelQueue.h"
#include "scanstack.h"
#include "dec.h"
#include "hex.h"
#include <assert.h>
#include <string.h>
#include <stdlib.h>
static inline int shouldIgnore(char ch) {
return ch != '('
&& ch != ')'
&& ch != ','
&& ch != ':'
&& ch !... |
#include <SDL.h>
#include <stdlib.h>
#include <string.h>
#include "../platform.h"
#include "software.h"
#include "software/edge_equation.h"
#include "software/parameter_equation.h"
static size_t AVAILABLE_VRAM = 16 * 1024 * 1024;
static Matrix4x4 MATRIX;
static SDL_Window* WINDOW = NULL;
static SDL_Renderer* RENDER... |
#include "postgres.h"
#include "fmgr.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif
#ifdef RSPEC
#define ALLOC malloc
#define FREE free
#else
#define ALLOC palloc
#define FREE pfree
#endif
/* Used to swap calc and work grids while looping */
#define... |
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1998 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
/... |
struct buf;
struct context;
struct file;
struct inode;
struct pipe;
struct proc;
struct spinlock;
struct sleeplock;
struct stat;
struct superblock;
struct container;
struct inode;
// bio.c
void binit(void);
struct buf* bread(uint, uint);
void brelse(struct buf*);
void bwrite(struct... |
/*
* Copyright (c) 2016-2021, Extrems' Corner.org
* 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
* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.