text stringlengths 5.8k 28.2k |
|---|
/*
* Sega System 32 Multi/Model 1 custom PCM chip (315-5560) emulation.
*
* by <NAME>. Info from AMUSE, Hoot, and the YMF278B (OPL4).
* This chip is sort of a dry run for the PCM section of the YMF278B,
* and it has many obvious similarities to that chip.
*
* voice registers:
* 0: pan
* 1: sample to play (PCM... |
/*
* 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... |
#include "vogl.h"
static int ntsegs, tsegs = 10, nusegs, usegs = 10,
ntcurves = 10, nucurves = 10,
ntiter = 1, nuiter = 1,
makeprec_called = 0;
static Matrix et, eu,
ones = {
{1.0, 1.0, 1.0, 1.0},
{1.0, 1.0, 1.0, 1.0},
{1.0, 1.0, 1.0, 1.0},
{1.0, 1.0, 1.0, 1.0}
};
void premulttensor... |
/*
* emv-tools - a set of tools to work with EMV family of smart cards
* Copyright (C) 2012, 2015 <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 t... |
/*
* Copyright 2002-2010 <NAME>.
* Copyright 2015-2018 <NAME>-Stephen.
*
* This software may be freely redistributed under the terms
* of the X11 license.
*
*/
/* ============================================================= */
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#inc... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2018 <NAME> (github.com/kanflo)
* Copyright (c) 2021 <NAME> (github.com/art103)
*
* 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 ... |
#include <time.h>
#include <sys/types.h>
#include <unistd.h>
/* #include <math.h> */
#define M_PI 3.14159265358979323846
#define M_2PI 2.0*M_PI
#include "tldevel.h"
#define TLRNG_IMPORT
#include "tlrng.h"
/* code here was adopted from: */
/* Written in 2018 by <NAME> and <NAME> (<EMAIL>... |
/*
* C compiler file mip/dw_int.h
* Copyright: (C) 1995, Advanced RISC Machines Limited. All rights reserved.
* Interface between main DWARF debug formatter and table writers.
* SPDX-Licence-Identifier: Apache-2.0
*/
/*
* RCS $Revision$
* Checkin $Date$
* Revising $Author$
*/
/* Private tag values used to ... |
#include "snapconfig.h"
/* Code to form summaries of residuals */
/*
$Log: ressumry.c,v $
Revision 1.2 1998/06/15 02:21:01 ccrook
Modified to support long integer number of observations
Revision 1.1 1996/01/03 22:07:24 CHRIS
Initial revision
*/
#include <stdio.h>
#include <string.h>
#include <mat... |
#include "read.h"
/*the primary function of this file, is to read the keywords and the long cv, while creating the appropiate
data structures, such that it is easier to manipulate the data in the filter.c file.
*/
void start_read(char ***the_keywords_ppp, int *n_keyword_p, char ****cv_long_itemized_pppp, int *n_i... |
/*******************************************************************************
* Copyright (c) 2013-2021, <NAME> <<EMAIL>> *
* All rights reserved. *
* *
* This file is a ... |
/*
* ***************************************************************************
* Copyright (C) 2016 Marvell International Ltd.
* ***************************************************************************
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provid... |
//
// dbg.c
//
// Remote debugging support
//
// Copyright (C) 2002 <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 copyri... |
/* 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... |
/*WSMPFORWARDSERVER - A sample application which can run on remote host to decode
* UDP packets send by wsmpforward application
* arguement : port number to listen on
*/
/* Severely modified by <NAME> to simply grab raw packets and print them out. */
/* This program is to be run on a vehicle computer that is rec... |
/*
* Copyright 2005-2018 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
* virtue of its status as an int... |
/* 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. */
/* scheduling stuff */
#include "m_pd.h"
#include "m_imp.h"
#include "s_stuff.h"
#ifdef _WIN32
#include <windows.h>
#endif
/* LATER ... |
/* orgGenes - objects used to hold gene related data */
#include "common.h"
#include "orgGenes.h"
#include "genePred.h"
#include "genePredReader.h"
#include "chromBins.h"
#include "binRange.h"
#include "localmem.h"
#include "dnautil.h"
#include "maf.h"
#include "mafFrames.h"
static char *chromStrAlloc(struct orgGenes ... |
/****************************************************************************
*
* 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... |
/*PROJETO 1 IAED
<NAME>
tp99102*/
#include<stdio.h>
#include<string.h>
#define MAX_DESC 101
#define MAX_USER_ATI 101
#define MAX_TAREFA 10000
#define MAX_UTILIZADORES 50
#define MAX_ATIVIDADE 10
#define key(A) (A)
#define less(A,B) (key(A) < key(B))
/*INICIALIZACAO DE VARIAVEIS GLOBAIS*/
int tempo=0,identificador=... |
/*******************************************************************************
**
** GSC-18128-1, "Core Flight Executive Version 6.7"
**
** Copyright (c) 2006-2019 United States Government as represented by
** the Administrator of the National Aeronautics and Space Administration.
** All Rights Re... |
/***************************************************************************//**
* @file
* @brief RAILTEST transmit and receive events
*******************************************************************************
* # License
* <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b>
**********************... |
/* bind.c - decode an ldap bind operation and pass it to a backend db */
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
* Copyright 1998-2018 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modificat... |
//metadoc Box copyright <NAME> 2002
//metadoc Box license BSD revised
//metadoc Box category Math
/*metadoc Box description
A primitive for fast operations on rectangles.
*/
#include "IoBox.h"
#include "IoState.h"
#include "IoSeq.h"
#include "IoNumber.h"
#include <math.h>
#define DATA(self) ((IoBoxData *)IoObject_dat... |
/*
Copyright (C) 1994-2016 Lawrence Livermore National Security, LLC.
LLNL-CODE-425250.
All rights reserved.
This file is part of Silo. For details, see silo.llnl.gov.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* R... |
#include "my_attack.h"
#include "simple_logger.h"
Attack stinger_l1;
Attack stinger_l2;
Attack stinger_h;
Moveset stinger;
Attack exe_l1;
Attack exe_l2;
Attack exe_h;
Moveset exe;
Attack shin_l1;
Attack shin_l2;
Attack shin_h;
Moveset shin;
void attack_init()
{
int x = 0;
stinger_l1.damage = 15;
stinger_l1.speed... |
/*
* Provides registration of all codecs, parsers and bitstream filters for libavcodec.
* Copyright (c) 2002 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Softwar... |
/* DoD NIMA World Magnetic Model.
* from http://www.ngdc.noaa.gov
*
#define TEST_MAIN
*/
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include "astro.h"
static char mfn[] = "wmm.cof"; /* file with model coefficients */
static int geomag(FILE *wmmdat, int *maxdeg);
static int geomg... |
/*************************************************************************\
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.... |
/*
* @f util/ccn-lite-cryptoserver.c
* @b cryptoserver for functions for the CCN-lite
*
* Copyright (C) 2013, <NAME>, University of Basel
*
* 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 t... |
// Copyright 2017 The Fuchsia 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 <ddk/binding.h>
#include <ddk/debug.h>
#include <ddk/device.h>
#include <ddk/driver.h>
#include <fuchsia/hardware/power/c/fidl.h>
#include <stdio... |
/*
* server.c
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/wait.h>
#include <signal.h>
#inclu... |
#include <math.h>
#include <stdio.h>
#include "linear-algebra.h"
void testCreate();
void testCopy();
void testFlatten();
void testElem();
void testRowVector();
void testColVector();
void testMainDiagonal();
void testAntiDiagonal();
void testIsEqual();
void testIsZeroMatrix();
void testIsIdentityMatrix();
void testIsS... |
/*
Copyright (c) 1991 X Consortium
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,
distribute, ... |
#include <linux/moduleparam.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/hdreg.h>
#include <linux/kdev_t.h>
#include <linux/blkdev.h>
#include <linux/mutex.h>
#include <linux/mmc/ioctl.h>
#include ... |
/*
NitroHax -- Cheat tool for the Nintendo DS
Copyright (C) 2008 Michael "Chishm" Chisholm
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
... |
/*
* Amazon FreeRTOS MQTT Echo Demo V1.2.6
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restr... |
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/stat.h>
#include <errno.h>
#include <getopt.h>
#include <inttypes.h>
#include "bgzf.h"
#include "pairix.h"
#include "knetfile.h"
#define MAX_REGIONLINE_LEN 10000
#define MAX_FILENAME 10000
#define error(...) { fprintf(stderr,... |
/*
* Subscription object code for sample IPP server implementation.
*
* Copyright © 2014-2018 by the IEEE-ISTO Printer Working Group
* Copyright © 2010-2018 by Apple Inc.
*
* Licensed under Apache License v2.0. See the file "LICENSE" for more
* information.
*/
#include "ippserver.h"
/*
* Local functions...... |
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "sparse_matrix.h"
void check_malloc(void *p, char *erstring) {
if (p != NULL) return;
fprintf(stderr,"Memory allocation failed: %s\nBailing out\n",erstring);
exit(-1);
}
#if 0
void Create_Intkeys(struct matrix *m, const int ... |
/** @file
Graphics Output Protocol functions for the QEMU video controller.
Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "Qemu.h"
///
/// Generic Attribute Controller Register Settings
///
UINT8 AttributeContro... |
/* RTP funnel element for GStreamer
*
* gstrtpfunnel.c:
*
* Copyright (C) <2017> Pexip.
* Contact: <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
*... |
/*
** Inserted at beginning of c files generated by bison
** REMEMBER: Change bison.reset too.
*/
/*@-allmacros@*/
/*@+boolint@*/
/*@+charint@*/
/*@-macroparams@*/
/*@-macroundef@*/
/*@-unreachable@*/
/*@-macrospec@*/
/*@-varuse@*/
/*@+ignorequals@*/
/*@-macrostmt@*/
/*@-noeffect@*/
/*@-shadow@*/
/*@-exitarg@*/
/*@-m... |
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "SENNA_utils.h"
#include "SENNA_Hash.h"
#include "SENNA_Tokenizer.h"
#include "SENNA_POS.h"
#include "SENNA_CHK.h"
#include "SENNA_NER.h"
#include "SENNA_VBS.h"
#include "SENNA_PT0.h"
#include "SENNA_SRL.h"
#include "SENNA_PSG.h"
/* fgets max sizes *... |
/*
* Copyright (c) 1999, 2000 <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... |
/* This sample is based on a sample that is included with ASSIMP. Much
* of the logic of the program was unchanged. However, texture loading
* and other miscellaneous changes were made.
*
* Changes by: <NAME>
*/
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <GL/glew.h>
#ifdef __APPLE__
#include... |
/*
* Copyright (C) 2014-2018 <NAME>, <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
* notice, this list of conditions and the foll... |
/*
* tcpechosrv.c - A concurrent TCP echo server using threads
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h> /* for fgets */
#include <strings.h> /* for bzero, bcopy */
#include <unistd.h> /* for read, write */
#include <sys/socket.h> /* for socket use */... |
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
typedef enum {ident, number, lparen, rparen, times, slash, plus,
minus, eql, neq, lss, leq, gtr, geq, callsym, beginsym, semicolon,
endsym, ifsym, whilesym, becomes, thensym, dosym, constsym, comma,
varsym, procsym, period, oddsy... |
/*
Copyright (c) 1998-2015, <NAME> <<EMAIL>>
<NAME> <<EMAIL>
<NAME> <<EMAIL>>
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 ... |
#include "stack_leaking.h"
#include "stdlib.h"
struct node {
void *data;
struct node *next;
};
struct stack {
struct node *head;
};
/*@
predicate node(struct node *node; struct node *next, void *data) =
malloc_block_node(node) &*&
node != 0 &*&
node->next |-> next &*&
... |
/*
(c) Copyright 2001-2009 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by <NAME> <<EMAIL>>,
<NAME> <<EMAIL>>,
<NAME> <<EMAIL>>,
<NAME> <<EMAIL>> and
... |
#include "lexer.h"
#include <x86intrin.h>
const char keywords[][16] = {
"auto",
"break",
"case",
"char",
"const",
"continue",
"default",
"do",
"double",
"else",
"enum",
"extern",
"float",
"for",
"goto",
"if",
"inline",
"int",
"long",
"regi... |
/*
*
* pi-fan-ctrl.c, <EMAIL> 08/2021, MIT
*
* The only supported platform is Raspberry Pi. Requires bcm2835 library from
* http://www.airspayce.com/mikem/bcm2835/index.html.
* Requires root privelegies.
*
* Note: You can't use integrated audio and hardware PWM at the same time.
* On Ubuntu - disable aud... |
/*
* FreeRTOS+TCP V2.4.0
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including ... |
/*
* Tencent is pleased to support the open source community by making TBase available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
*
* TBase is licensed under the BSD 3-Clause License, except for the third-party component listed below.
*
* A copy of the BSD 3-Clause Li... |
/*
* Simple DHCP Client
* License : BSD
* Author : <NAME> (<EMAIL>)
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
//#include "lowrisc_memor... |
/*
-------------------------------------
File: 180930850_a04.c
Project: 180930850_a04
file description
-------------------------------------
Author: <NAME>
ID: 180930850
Email: <EMAIL>
Version 2020-06-21
-------------------------------------
GitHub ID: DaniilPaskal
GitHub Repository: https://gi... |
/* ziproxy.c
* Code for processing an individual request.
*
* Ziproxy - the HTTP acceleration proxy
* This code is under the following conditions:
*
* ---------------------------------------------------------------------
* Copyright (c)2005-2014 <NAME>
*
* This program is free software; you can redistribute it... |
/*
* 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.
*/
/*
*/
/* Pbox_def.h - Pbox definitions and elementary utilities.
... |
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Copyright (c) 1989-2000 Microsoft Corporation
Module Name:
ebase.c
Abstract:
This file generates the error recovery data base.
Notes:
1. Inputs to this module are the extable.* files generated by yacc in
... |
/*
* sigfox.c
*
* Created on: 07 May 2019
* Author: <NAME> & <NAME>
*/
#include <sigfox.h>
#include <stdio.h>
#include "app_config.h"
#include "pin_mux.h"
/*!
* @brief Gets source clock for SPI peripheral.
*/
#define GET_SPI_MODULE_CLK() \
(CLOCK_GetFreq(kCLOCK_BusClk))
/* OL2385 PA Table for RCZ1 and... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <poll.h>
#include <signal.h>
#include <pthread.h>
#include <time.h>
#include <sys/time.h>
#include <linux/rtnetlink.h>
#include "iw.h"
#include "error.h"
#include "console.h"
#include "ap_list.h"
#include "channe... |
#include "MSPd.h"
#include "fftease.h"
#if MSP
void *vacancy_class;
#endif
#if PD
static t_class *vacancy_class;
#endif
#define OBJECT_NAME "vacancy~"
/*
Added inlet for compositing threshold, which is now
given linearly, not in dB (since Max can do that).
-EL 02.10.2005
*/
typedef struct _vacan... |
/* multifit_nlinear/fdf.c
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 <NAME>
* Copyright (C) 2015, 2016 <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; either version ... |
/*
* The authors of this software are <NAME> and <NAME>.
* Copyright (c) 2002 by Lucent Technologies.
* Permission to use, copy, modify, and distribute this software for any
* purpose without fee is hereby granted, provided that this entire notice
* is included in all copies of any software which is o... |
/*
* Copyright (c) 2020, NLNet Labs, Sinodun
* 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 cond... |
/*
* This file is part of the OpenKinect Project. http://www.openkinect.org
*
* Copyright (c) 2010 individual OpenKinect contributors. See the CONTRIB file
* for details.
*
* This code is licensed to you under the terms of the Apache License, version
* 2.0, or, at your option, the terms of the GNU General Public... |
#include "upcn/bundle.h"
#include "upcn/bundle_processor.h"
#include "upcn/bundle_storage_manager.h"
#include "upcn/common.h"
#include "upcn/node.h"
#include "upcn/router.h"
#include "upcn/routing_table.h"
#include "upcn/simplehtab.h"
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
static struct node_lis... |
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2000,2001,2002 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 2 of the Licens... |
#include <libtransistor/nx.h>
#include <libtransistor/ipc.h>
#include <libtransistor/loader_config.h>
#include <sys/socket.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "defs.h"
#include "memory.h"
#include "http.h"
#include "server.h"
#include "nro.h"
FILE custom_stdout;
i... |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2017 - <NAME>
* Copyright (C) 2017-2019 - <NAME>
*
* RetroArch 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 Found-
* ation, either version 3 of the Lice... |
/*
** Copyright Notice and Disclaimer
** -------------------------------
** (c) Copyright 2013.
** SAP AG or an SAP affiliate company. All rights reserved.
** Unpublished rights reserved under U.S. copyright laws.
**
** SAP grants Licensee a non-exclusive license to use, reproduce,
** modify, a... |
/*
* Extracted from "ex" API implementation
* http://lua-users.org/wiki/ExtensionProposal
* Copyright 2007 <NAME> < <EMAIL> >
*/
#define WIN32_LEAN_AND_MEAN 1
#define NOGDI 1
#include <stdlib.h>
#include <windows.h>
#include <fcntl.h>
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
#include "luachild... |
#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... |
/**
* @file
* @brief RDC R6040 PCI Fast Ethernet MAC support
* @description Low level ring-buffer manipulation for r6040 ethernet.
*
* @date 25.03.11
* @author <NAME>
*/
#include <asm/io.h>
#include <string.h>
#include <unistd.h>
#include <stdint.h>
#include <kernel/time/ktime.h>
#include <embox/unit.h>
#includ... |
/*
********************************************************************************
*
* GSM AMR-NB speech codec R98 Version 7.6.0 December 12, 2001
* R99 Version 3.3.0
* REL-4 Version 4.1.0
*
*********************... |
/*
* MIT License
*
* Copyright (c) 2019 <NAME> <<EMAIL>>
* and Contributors
*
* 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 rig... |
/*
This is the core graphics library for all our displays, providing a common
set of graphics primitives (points, lines, circles, etc.). It needs to be
paired with a hardware-specific library for each display device we carry
(to handle the lower-level functions).
Adafruit invests time and resources providing this ope... |
static const unsigned char getAO(
const unsigned char* voxels,
const int n1,
const int n2,
const int n3
) {
const bool v1 = n1 != -1 && voxels[n1] != TYPE_AIR,
v2 = n2 != -1 && voxels[n2] != TYPE_AIR,
v3 = n3 != -1 && voxels[n3] != TYPE_AIR;
unsigned char ao = 0;
if (v1) ao += 20... |
/** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **
* This file is part of clib library
* Copyright (C) 2011 <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
* ... |
/* -*- linux-c -*- */
/* fewbody_hier.c
Copyright (C) 2002-2004 <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; either version 2 of the License, or
(at your option) any late... |
/**
* @file server.c This file contains server functions
*
* @section LICENSE
*
* Source code in 3rd-party is licensed and owned by their respective
* copyright holders.
*
* All other source code is copyright Tresys Technology and licensed as below.
*
* Copyright (c) 2011-2012 Tresys Technology LLC, Columbia,... |
/*
* TuxChess - Copyright (c) 2002, <NAME>
* Chess engine - Copyright 1997 <NAME>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#if RTEMS
#include <time.h>
#else
#include <sys/timeb.h>
#endif
#include "defs.h"
#include "data.h"
#include "protos.h"
#define MWINCLUDECOLORS
#includ... |
/* Includes */
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
#include <math.h>
#include <sys/wait.h>
#include <limits.h>
#include <signal.h>
#include <dirent.h>
#include <matheval.h>
#include <assert.h>
#include <time.h>
/* SIZE AND OPERATION M... |
//
// Copyright (c) 2017 Intel Corporation
//
// 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... |
/* -*- C -*-
*
* Copyright 2006 Sandia Corporation. Under the terms of Contract
* DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government
* retains certain rights in this software.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public Licen... |
/****************************************************************
* correct_bisp_auto1
* (derived from hege's method of fitting a model to the photon response...)
*
* Contains: photon_corr_auto1()
* called by correct_bisp.c
*
* Fits the photon response to the power spectrum
*
* JLP
* Version 10-09-2008
**********... |
#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... |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/types.h>
#include <yoc/aui_cloud.h>
#include <media.h>
#include <aos/ringbuffer.h>
#include <aos/log.h>
#include <aos/debu... |
drawcurpt(void); /* curpt.c */
Point D2P(Dpoint d); /* geometry.c */
Flt Mangle(void); /* alcmd.c */
Flt Mdist(void); /* alcmd.c */
void Mgrid(void); /* grid.c */
Flt Mslope(void); /* alcmd.c */
void Oalign(int button, Flt (*measure)(void), int kind, ...); /* alcmd.c */
void Oanchor(void); /* command.c */
void Oangle(i... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include "gensnd.h"
#include "process.h"
enum Modes {START, SAMPLERATE, WAVE, SOUND, SONG, PROCESS};
typedef struct wave_t {
char *waveName;
char *type;
float delay;
float attenuation;
struct wave_t *next... |
/*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
rx_thrd.c
Abstract:
This module implements async. MR/MH page decoding in a separate thread.
Author:
<NAME> (RafaelL) 14-Aug-1996
Revision History:
--*/
#define USE_DEBUG_CONTEXT DEBUG_CONTEXT_T30_MAIN
#include "prep... |
/*
https://zhuanlan.zhihu.com/p/115270932
*/
#include "md5.h"
#include<string.h>
#include<stdio.h>
typedef unsigned char *POINTER; //指针类型定义
void MD5Init (MD5_CTX *);
void MD5Update(MD5_CTX *, unsigned char *, unsigned int);
void MD5Final(unsigned char [16], MD5_CTX *);
void MD5Transform(unsigned int [4], unsigned... |
#include <vgcp.h>
SDL_Window *gameWindow;
SDL_Renderer *gameRenderer;
SDL_Point selectedPiece = {-1, -1};
bool kingMated[2] = {false, false},
checkingIfCheckMated = false;
struct tile unusedBoard[8][8] = {
BOARD_FIRST_ROW(colorWhite),
BOARD_SECOND_ROW(colorWhite),
BOARD_EMPTY_ROW,
... |
/**
******************************************************************************
* File Name : main.c
* Description : Main program body
******************************************************************************
*
* Copyright (c) 2019 STMicroelectronics International N.V.
* All right... |
/*
* Copyright (c) 2019 Yubico AB. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "mutator_aux.h"
#include "wiredata_fido2.h"
#... |
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#define SDL_DISABLE_IMMINTRIN_H
#include <SDL.h>
#include "upng.h"
#include "array.h"
#include "display.h"
#include "vector.h"
#include "light.h"
#include "matrix.h"
#include "camera.h"
#include "triangle.h"
#include "texture.h"
#include "mesh.h"
#ifndef M_P... |
/*
* comp.h - header file for completion
*
* This file is part of zsh, the Z shell.
*
* Copyright (c) 1992-1997 <NAME>
* All rights reserved.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and to distribut... |
/*
* 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 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.