text stringlengths 3.12k 18.7k |
|---|
//
// Created by lisanhu on 9/17/18.
//
#include <string.h>
#include <stdbool.h>
#include <assert.h>
#include <stddef.h>
#include <unistd.h> /// dup
#include "fmidx.h"
#include "../psascan/sa_use.h"
#include "../mutils.h"
sa_mem *sa_buf = NULL;
inline uint64_t sa_access(const char *prefix, uint64_t cache_sz, uint... |
/*
** $Id: llex.c,v 1.36 1999/06/17 17:04:03 roberto Exp $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
#include <ctype.h>
#include "string.h"
#include "sprintf.h"
#include "lauxlib.h"
#include "llex.h"
#include "lmem.h"
#include "lobject.h"
#include "lparser.h"
#include "lstate.h"
#include "lstring.h"
#i... |
/*
* Copyright (c) 2020, <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 o... |
/* BEGIN_ICS_COPYRIGHT7 ****************************************
Copyright (c) 2015-2020, Intel Corporation
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyrig... |
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "output.h"
#include "simplebuffer.h"
#include "socket.h"
#if 0
static inline void sout_send_tsp_rtp(struct stream_s *s, uint8_t *tsp) {
}
static void sout_so... |
#ifndef INSO_HT_H_
#define INSO_HT_H_
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <assert.h>
// Interface
typedef struct {
size_t capacity;
size_t prev_cap;
size_t used;
size_t elem_size;
size_t rehash_idx;
size_t (*hash_fn)(const void*);
char* memory;
char* pre... |
/* Copyright (c) 20XX 9front
*
* 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, distri... |
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#define true 1
#define false 0
struct {
char *us, *gb;
} words[] = {
{ "color", "colour" },
/* { "program", "programme" }, */ /* programme except for computer programs */
{ "CCW", "ACW" }, /* Counter/Anti Clockwise */
{ "n... |
/*
* CS-300-001
* Last name: Huang
* First name: Yichen
* CWID:11906882
*/
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <sys/wait.h>
#include <stdbool.h>
#include <sys/types.h>
#define TIME_QUANTUM 1
#define BUFFER_SIZE 1024
en... |
/* Definitions of target machine for GNU compiler, for Advanced RISC Machines
ARM compilation, AOF Assembler.
Copyright (C) 1995, 1996, 1997, 2000, 2003, 2004
Free Software Foundation, Inc.
Contributed by <NAME> (<EMAIL>)
This file is part of GCC.
GCC is free software; you can redistribute it and/or... |
/**
* Copyright (c) 2015 - present LibDriver All rights reserved
*
* The MIT License (MIT)
*
* 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 lim... |
#include <stdlib.h>
#include <stdio.h>
#include "../funcs/funcs_unaligned.h"
#include "../funcs/funcs.h"
#include "../2darray.h"
double* _ADI_DOUBLE(const double* high, const double* low, const double* close,
const double* volume, int len) {
double* adi = double_malloc(len);
_double_memcp... |
#include "tftp.h"
// Type Op # Format without header
// 2 bytes string 1 byte string 1 byte
// -----------------------------------------------
// RRQ/ | 01/02 | Filename | 0 | Mode | 0 |
// WRQ -----------------------------------------------
// 2... |
#ifndef lint
static const char RCSid[] = "$Id: func.c,v 2.27 2012/06/27 16:29:26 greg Exp $";
#endif
/*
* func.c - interface to calcomp functions.
*/
#include "copyright.h"
#include "ray.h"
#include "paths.h"
#include "otypes.h"
#include "func.h"
#define INITFILE "rayinit.cal"
#define CALSUF ".cal"
#defin... |
#include <string.h>
#include "index.h"
#include "array.h"
#include "helper.h"
/****************************************************************************
*
* TermVector
*
****************************************************************************/
void tv_destroy(TermVector *tv)
{
int i = tv->term_cnt;
... |
#include <assert.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <qr/bitmap.h>
#include <qr/bitstream.h>
#include <qr/code.h>
#include <qr/common.h>
#include <qr/layout.h>
#include <qr/parse.h>
#include "constants.h"
#include "galois.h"
/* XXX: duplicated */
static int get_... |
#include "daydreamer.h"
static const int mobility_score_table[2][8][32] = {
{ // midgame
{0},
{0, 4},
{-8, -4, 0, 4, 8, 12, 16, 18, 20},
{-15, -10, -5, 0, 5, 10, 15, 20, 25, 30, 35, 40, 40, 40, 40, 40},
{-10, -8, -6, -4, -2, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20},
{... |
/**
* @file
*
* @brief Tests for opts plugin
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <kdbconfig.h>
#include <tests_plugin.h>
#include <config.c>
#include <sys/types.h>
#include <sys/wait.h>
#include ... |
/* OX: Open-Channel NVM Express SSD Controller
*
* - OX-App Hierarchical Mapping
*
* Copyright 2018 IT University of Copenhagen
*
* Written by <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may o... |
#include <string.h>
#include <sys/mman.h>
#include <stdlib.h>
#include <stdio.h>
#include "imp.h"
#include "jitter.h"
#include "execution.h"
#define max_jit_num 8
typedef struct {
size_t index;
size_t len;
uint64_t *(*fun) (uint64_t*, uint64_t *, uint64_t *, uint64_t *(*) (size_t, uint64_t*));
} jit_entr... |
/*
Copyright (c) 2001-2002 <NAME> & <NAME>
"The MIT license"
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, mod... |
/** @file vl_maketrainingset.c
** @brief vl_maketrainingset MEX definition
** @author <NAME>
**/
/*
Copyright (C) 2012 <NAME>.
All rights reserved.
This file is part of the VLFeat library and is made available under
the terms of the BSD license (see the COPYING file).
*/
#include <mexutils.h>
#include <vl/stringo... |
#include <sys/time.h>
#include <time.h>
#include "../inc/SSPComs.h"
#include "../inc/ssp_defines.h"
#include "Encryption.h"
#include "serialfunc.h"
#include "ITLSSPProc.h"
extern unsigned int encPktCount[MAX_SSP_PORT];
extern unsigned char sspSeq[MAX_SSP_PORT];
int CompileSSPCommand(SSP_COMMAND* cmd,SSP_TX_RX_PACK... |
/**
* miniSphere JavaScript game engine
* Copyright (c) 2015-2020, <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:
*
* * Redistributions of source code must retain the above c... |
#include "../modlib.h"
#include <stdlib.h>
#include "common.h"
extern Access_List *acl;
extern Users_Perm *uperm;
extern char *acl_owner;
char *ACL_To_Text(char sw_nums)
{
char *out = 0;
unsigned int i, j;
char linenum[6];
char *ACTIONS[] = { "", "DEVOICE", "KICK", "BAN", "VOICE", "NONE",
"MODERATOR", "ADMIN", ... |
/* cpu_x86.c
*
* C99/Python Author: <NAME>
* Original Author : <NAME>
* Date Created : 04/12/2014
*/
// Dependencies
#include "cpu_x86.h"
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386) || defined(_M_IX86)
# if _WIN32
# include "cpu_x86_windows.c"
# elif defined(__GNUC__) || defin... |
#include <pthread.h>
#include <stdio.h>
#include <semaphore.h>
#include <unistd.h>
#include <sys/mman.h>
#include <fcntl.h>
#define amount 10
sem_t * semWorker[amount];
sem_t * semMaster [amount];
sem_t *mu;
char name[2];
int n =amount, m = amount;
int size;
int isAlive;
int *fieldNext, *field;
void live(int ind) {... |
/* Copyright (C) 1989, 1990 Aladdin Enterprises. All rights reserved.
Distributed by Free Software Foundation, Inc.
This file is part of Ghostscript.
Ghostscript is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
to anyone for the conseque... |
#include "mgos.h"
#include "mgos_mqtt.h"
#include "actuators.h"
#define MAX_MAX_TIME (24 * 60 * 60 * 1000)
static struct actuator *actuators = NULL;
static const struct actuator_driver *actuator_drivers[] = {
&gpio_relay_driver, &gpio_select_driver
};
static struct actuator *get_actuator(int idx)
{
static s... |
//Multi-character version from the end of Part VII
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include "asmheader.h"
#define CR 0x0D
#define LF 0x0A
#define errbufsize 1024
#define labelbufsize 64
#define tokenbuflen 64
int look;
int lCount = 0;
char labelbuf[... |
#include <windows.h>
#include <setupapi.h>
#include <initguid.h>
#include <winioctl.h>
#include <stdio.h>
#include <sddl.h>
#include <tchar.h>
#include <cfgmgr32.h>
//#include <usbioctl.h>
#include <Shlwapi.h>
#include "UsbDeviceObject.h"
#include "FileSysPartition.h"
#include "NetConnection.h"
#include "UserAccount.h"... |
/*
* FILE: video_display/sage.c
* AUTHORS: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Copyright (c) 2005-2209 CESNET z.s.p.o.
*
* Redist... |
/*
* Copyright (C) 2016-2022 T-Head Semiconductor Co., Ltd. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
* www.apache.... |
/*
* Copyright (c) 2013-2014, ARM Limited and Contributors. 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
* l... |
/*
* linux/fs/hfs/bfind.c
*
* Copyright (C) 1995, 1996 <NAME>
* This file may be distributed under the terms of the GNU General Public License.
*
* This file contains the code to access records in a btree.
*
* "XXX" in a comment is a note to myself to consider changing something.
*
* In function precondition... |
/* Copyright (c) 2019-2021, <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 IS" AND THE AUTHOR... |
/*
Copyright (c) 2012-2015, <NAME> <<EMAIL>>
Partly based on public domain code by <NAME> and <NAME>.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must... |
#include "BuddyAllocationSystem.h"
#define TRUE 1
#define FALSE 0
#define BUCKET_AMOUNT 23
#define LEAF_SIZE 128
#define total_size (1<<(BUCKET_AMOUNT-1)) * LEAF_SIZE // es como hacer :(1<<30) = 1*(2^30
#define size_of_level(n) (total_size / (1<<(n)))
#define max_blocks_of_level(n) ((1<<(n)))
#define is_leaf_block(n) ... |
#include "F28x_Project.h"
#include <stdint.h>
#include <math.h>
#include "..\Test_setting.h"
#include "..\Peripheral\Peripheral.h"
#include "Meas.h"
#include "Control.h"
//***********************************************************************//
// G l o b a l V a r i a b l e s ... |
/*
* framework/vm.c
*
* Copyright(c) 2007-2018 <NAME> <<EMAIL>>
* Official site: http://xboot.org
* Mobile phone: +86-18665388956
* QQ: 8192542
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to de... |
// Copyright (c) 2015, UChicago Argonne, LLC. All rights reserved.
// Copyright 2015. UChicago Argonne, LLC. This software was produced
// under U.S. Government contract DE-AC02-06CH11357 for Argonne National
// Laboratory (ANL), which is operated by UChicago Argonne, LLC for the
// U.S. Department of Energy. The U... |
/* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2021 INRIA.
*
* 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
*
*... |
/*
* Copyright 2015 International Business Machines
*
* 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... |
/*
Trim multiple sequence alignment in fasta file format
author: <NAME>
date: Sept 26, 2012
*/
#include <getopt.h>
#include <time.h>
#include "CUtilities.h"
#include "IOUtilities.h"
#define DEBUG 0
//----------------------------------------------------------- printUsage ----
void printUsage( const char *s ... |
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <dirent.h>
#include <fcntl.h>
#include "mre.h"
#define HELP_INFO "\
setmod : 设置文件的权限,类似于chmod\n\
setmod可以支持--auto选项,用于自动识别文件类型,目录会自动加上可执行权限,\
文件会自动去掉可执行权限。\n\
--auto : ... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <math.h>
#include <time.h>
#include "awesome.h"
typedef struct {
// These are all private. Do not access.
volatile uint32_t *gpo;
volatile uint32_t *gpi;
volatile uint64_t *command_buffer;
i... |
#include "../bin/include/list.h"
#include <stdio.h>
#include <assert.h>
void sum_ints(void *value, void *total)
{
*(int *)total += *(int *)value;
}
int main(int argc, char **argv)
{
printf("Running tests...\n");
// test initialization
// []
List *l = list_new();
assert(list_size(l) == 0);
... |
#include <sys/socket.h>
#include <fcntl.h>
#include <string.h>
#include "tsar.h"
#include "mod_swift.h"
#define RETRY_NUM 3
/* swift default port should not changed */
#define HOSTNAME "localhost"
#define PORT 82
char *swift_usage = " --swift Swift object storage infomation";
int mgrport = ... |
/****************************************************************************
* Copyright (c) 2000,2001 <NAME> <sasha at aftercode.net>
* Copyright (c) 1999 <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 ... |
#include "ADXL345.h"
void Pinmux_Config(){
// Set up pin muxing (in sysmgr) to connect ADXL345 wires to I2C0
*SYSMGR_I2C0USEFPGA = 0;
*SYSMGR_GENERALIO7 = 1;
*SYSMGR_GENERALIO8 = 1;
}
// Initialize the I2C0 controller for use with the ADXL345 chip
void I2C0_Init(){
// Abort any ongoing transmits ... |
/*****************************************************************************
* *
* Copyright 2021 upahead PTE LTD *
* *
* ... |
// Copyright 2020 <NAME>
// Licensed under BSD-3-Clause
// Refer to the license.txt file included in the root of the project
#include <xcb/randr.h>
#include <xcb/xcb.h>
#include <xcb/xcb_util.h>
#include <common/constants.h>
#include <common/logger.h>
#include <core/button.h>
#include <core/client.h>
#include <core/... |
/*
* Copyright 2020 The Wazo Authors (see the AUTHORS file)
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <stdlib.h>
#include <string.h>
#include "consul.h"
static const char *http_method[] = {
"GET",
"POST",
"PUT",
"DELETE",
"HEAD",
"OPTION"
};
CURLU* consul_url_create(int versio... |
#if (0)
typedef void const * (fc_name) (void);
#else
typedef void * (fc_name) (void);
#endif /* (0) */
fc_name * ILON_SPECIAL_0 = (fc_name *) 0xBFC00000
; fc_name * ILON_SPECIAL_1 = (fc_name *) 0xBc950000
; fc_name * ILON_SPECIAL_2 = (fc_name *) 0xBc900000
; fc_name * ILON_SPECIAL_3 = (f... |
/*****************************************************************************/
/* */
/* Random Polygon Generator (RPG) */
/* */
... |
/* Remainder.
Copyright (C) 2011-2018 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later vers... |
#include <roa/datadrive.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>
/* -------------------------------------------------------------------------- */
/* Config and Internal helpers
*/
#ifndef ROA_DD_MAX_RULE
#define ROA_DD_MAX_RULE 128
#endif
/* Limit of uint64_t for sugar reasons */
#define ROA_D... |
/* System description file for MS-DOS
Copyright (C) 1993, 1996 Free Software Foundation, Inc.
This file is part of GNU Emacs.
GNU Emacs 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 (a... |
#include "draw.h"
void draw_app()
{
extern struct application app;
/* ncurses setup */
initscr();
curs_set(0);
noecho();
cbreak();
nodelay(stdscr, 1);
app.cpuwin = newwin(15, 20, 0, 0);
app.memwin = newwin(9, 20, 15, 0);
app.wwin = neww... |
/*
* IPC Processes related utilities
*
* <NAME> <<EMAIL>>
* <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... |
/***********************************************************************************************************
Purpose :To generate various types of distribution and plot ther graphs
Authors :<NAME>(EE19B116),<NAME>(EE19B054),<NAME>(EE19B124)
Date :27/08/2019
Input :Number ofrandom numbers,Type o... |
/*
* Copyright (c) 2014 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... |
/*
tcpstat.c
Created: June 1995 by <NAME> <<EMAIL>>
*/
#define _MINIX_SOURCE
#define _POSIX_C_SOURCE 2
#include <inet/inet.h>
#undef printf
#include <fcntl.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <sys/svrctl.h>
#ifndef __minix_vmd
#include <sys/times.h>
#endif
#include <net/netlib.h>
#i... |
/* Student Record Register
* Author: <NAME>
* UCL Electronic and Electrical Engineering
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
// File name used for saving records
#define MY_FILE "test_1.txt"
// Structure of date
struct date
{
int day;
int month;
int yea... |
/* esp-azure example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include "esp_event.h"... |
/* $OpenBSD: skgpio.c,v 1.3 2015/03/14 03:38:47 jsg Exp $ */
/*
* Copyright (c) 2014 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copie... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "Graph.h"
#include "Util.h"
// -----------------------------------------------------------------------------
void buildGraphsFromFile(TGraphL** gl);
void printPath(List* path);
void printGraphList(TGraphL* graph);
// ----------------------------------... |
//-------------------------------------------------------------------
//
// File: id-gen.c
//
// @author <NAME> <<EMAIL>>
//
// @copyright 2016-2017 <NAME>
//
// This file is provided to you under the Apache License,
// Version 2.0 (the "License"); you may not use this file
// except in compliance with the Lice... |
/* Some basic input output routines to make use of FLOAT variables. */
#include <stdio.h>
#include "bigfloat.h"
char bf_digitof( FLOAT *frac);
double logbase10of2 = 0.30102999566398119521;
/* The purpose of this routine is to convert an ascii string to FLOAT.
Input format makes the exponent important and the ma... |
/* ttlvz.f -- translated by f2c (version 19970219).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#define abs(x) ((x) >= 0 ? (x) : -(x))
#define dabs(x) (double)abs(x)
#define max(a,b) ((a) >= (b) ? (a) : (b))
/* Subroutine */ int ttlvz_(delta, hpz, n, v, z__, h__, ter... |
/*-
* Copyright (c) 2003 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
/**
***********************************************************************************************************************
* Copyright (c) 2020, China Mobile Communications Group Co.,Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the... |
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// 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... |
/* testNoiserunner() */
/* Rip_Noiserunner() */
/* Depack_Noiserunner() */
#include "globals.h"
#include "extern.h"
int16_t testNoiserunner ( void )
{
/* test 1 */
if ( PW_i < 1080 )
{
return BAD;
}
/* test 2 */
PW_Start_Address = PW_i-1080;
PW_WholeSampleSize = 0;
for ( PW_k=0 ; PW_k<31 ; PW_k... |
/*
* Copyright 2016-2017, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and ... |
// ================================================================
// Copyright (c) 2009 <NAME>.
// <EMAIL>
// Conditions for use of this file are expressed in the file ./README.txt.
//
// Code for experimenting with the _correlated uniform Markov process_ as
// defined in Appendix B of http://johnkerl.org/rcm/kerl-d... |
/**
* This example is intended to extract everything from a pcap file! This means all the attributes of all registered protocols will be registed for extraction. When a packet is processed, the attributes found in the packet will be print out.
*
* Compile this example with:
*
* $ gcc -g -o simple_traffic_reporti... |
/* udis86 - tests/libcheck.c
*
* Copyright (c) 2013 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright noti... |
/*
* Copyright (c) 2019 Trail of Bits, 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 o... |
#include "global.h"
#include "game.h"
#include "menu.h"
#include "main.h"
#include "terrain.h"
#include "textures.h"
#include "hud.h"
#include "timing.h"
#include "messages.h"
#include "audio.h"
#include "camera.h"
#include "../data/models/ship.mdl" /* Ship Model */
/* Game Variables */
float xdis,oldx,zdis,oldz; ... |
/*
* @(#)xv_file.c 2.7 11/29/91
*
* XView preview for HIPS images V1.0
*
* Author: <NAME>
* (c) The Turing Institute
*
* Fri Aug 9 17:06:10 BST 1991
*
* xv_file.c : Contains defintions for command popups for loading and
* saving files.
*/
#include "xv_frame.h"
#include <xview/panel.h>
#i... |
/*
* This file is part of Espruino, a JavaScript interpreter for Microcontrollers
*
* Copyright (C) 2013 <NAME> <<EMAIL>>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/... |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#include "config.h"
#include <assert.h>
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif
#ifdef HAV... |
/*
* infusion.c
*
* Copyright (c) 2008-2010 CSIRO, Delft University of Technology.
*
* This file is part of Darjeeling.
*
* Darjeeling 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 ... |
#include "44b.h"
#include "44blib.h"
#include "def.h"
#include "option.h"
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#define STACKSIZE 0xa00 //SVC satck size(do not use user stack)//
#define HEAPEND (_ISR_STARTADDRESS-STACKSIZE-0x500) // = 0xc7ff000//
//SVC Stack ... |
#include "selectSubset.h"
#include <string.h>
#include <assert.h>
#include <math.h>
#include <stdlib.h>
#include <mpi.h>
#include <stdio.h>
#include "ddcMalloc.h"
#include "object.h"
#include "simulate.h"
#include "box.h"
#include "mpiUtils.h"
/** Notes:
*
* In the current implementation, selectSubset always mul... |
#include <u.h>
#include <libc.h>
#include <libg.h>
#include <ctype.h>
#include <bio.h>
#include "proof.h"
char fname[NFONT][20]; /* font names */
Font *fonttab[NFONT][NSIZE]; /* pointers to fonts */
int fmap[NFONT]; /* what map to use with this font */
static void bufchar(Point, Subfont *, uchar *);
static void loa... |
/**
* Version strings for Frameworks.
*
* Copyright (c) 1998-2000 Microsoft Corporation
*/
//
// Insert just the #defines in winver.h, so that the
// C# compiler can include this file after macro preprocessing.
//
#ifdef __cplusplus
#ifndef FXVER_H_
#define FXVER_H_
#define INCLUDE_FXVER_H
#endif
#else
#define R... |
#include <unistd.h> // sbrk
#include <stdio.h>
#define NALLOC 1024 // Number of block sizes to allocate on call to sbrk
#ifdef NULL
#undef NULL
#endif
#define NULL 0
// https://stackoverflow.com/questions/13159564/explain-this-implementation-of-malloc-from-the-kr-book
// mmap instead of sbrk
// long is chosen as... |
/* $Id: shub_intr.c,v 1.1.1.4 2003/10/14 08:07:23 sparq Exp $
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1992-1997, 2000-2002 Silicon Graphics, Inc. All Rights Reserv... |
#include "../internal.h"
#include "../gb.h" // for has flags functions
#include "mbc.h"
#include <assert.h>
/*
08h RTC S Seconds 0-59 (0-3Bh)
09h RTC M Minutes 0-59 (0-3Bh)
0Ah RTC H Hours 0-23 (0-17h)
0Bh RTC DL Lower 8 bits of Day Counter (0-FFh)
0Ch RTC DH Upper 1 bit of Day Counter, Carr... |
#include <assert.h>
#include <fenv.h>
#include <math.h>
#include <signal.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <machine/frame.h>
int max_error = 4;
#include "common.h"
/* maximum allowed FP difference for our tests */
#define EPSILON 0.00000000023283064365386962890625 /* 2^(-32) */
... |
/****************************************************************************
* RF-Score_desc.c (all rights reserved): This program reads a list of *
* PDBbind protein-ligand complexes and calculate their *
* RF-Score descriptors *
* ... |
/*
* SVGA3D example: Bunnies.
*
* This example loads the famous Stanford Bunny model, and draws many
* copies of it. This demonstrates large models and fixed-function
* lighting.
*
* Copyright (C) 2008-2009 VMware, Inc. Licensed under the MIT
* License, please see the README.txt. All rights reserved.
*/
#incl... |
/*
* Copyright (c) 2016 MediaTek Inc.
* Author: <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be u... |
/* vips7 compat stub for im_vips2tiff.c
*
* 4/12/11
* - just a stub calling vips_tiffsave()
*/
/*
This file is part of VIPS.
VIPS 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; ... |
/* ----------------------------------------------------------
reset_f103_b.c
"Reset-Controller" fuer einen STM32F103
Generiert die UART-Bootloaderbedingungen fuer ein
STM32F103 Controller
Programm empfaengt Impulse (vorzugsweise vom HOST auf
RTS gesendet). 3 Impulse (Hi-Lo Fla... |
/*******************************************************************************
################################################################################
# Copyright (c) [2017-2019] [Radisys] #
# ... |
#include <u.h>
#include <9pm/libc.h>
#include <9pm/libg.h>
Bitmap screen;
Font *font;
int _eventfd;
static void (*onerr)(char*);
static int wid;
static ulong expld1[256]; /* expand an ldepth one byte into a word */
static uchar cmap[256][3];
static void expld1init(void);
static int colorfind(int r, int g, int b);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.