text stringlengths 5.8k 28.2k |
|---|
#include "global.h"
#include "graph_cache.h"
#include "binary_seq.h"
#include "supernode.h"
#include "sort_r/sort_r.h"
// Build and store paths through the graph
// Must build one path at a time
// Cannot update an old path
// (this could be overcome by making paths steps a linkedlist
// i.e. adding uint32_t next_in... |
/*
* Copyright (c) 2012, National Survey and Cadastre, Denmark
* (Kort- og Matrikelstyrelsen), <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 i... |
/*-
* Copyright (c) 2001 <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above ... |
/* $Id$ */
/*--------------------------------------------------------------------*/
/*; Copyright (C) 2003-2008 */
/*; Associated Universities, Inc. Washington DC, USA. */
/*; ... |
/* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2018-2019, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
*******************************************************************************/
#ifdef HAVE... |
#include "disc_drive.h"
#include "bbc_options.h"
#include "disc.h"
#include "ibm_disc_format.h"
#include "log.h"
#include "timing.h"
#include "util.h"
#include <assert.h>
enum {
/* My Chinon drive holds the index pulse low for about 4ms. */
k_disc_index_ms = 4,
k_disc_max_discs_per_drive = 4,
k_disc_drive_... |
#include "tcpi.h"
#define OPTSTR "f:vBb:m:"
static ssize_t recvdst(int sockfd, char *buf, size_t buflen, int *flags, struct sockaddr *sa, socklen_t *socklen, struct in_addr *dst);
static void usage(const char *s)
{
err_quit("Usage: %s -v -B -m Interface -f ForeignIP.Port -b LocalIP <Port>", s);
}
int
main(i... |
/* Copyright (C) 2007-2017 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program 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 useful,
* but WITHOUT ANY... |
#include <stdlib.h>
#include <libdragon.h>
#include "mesh.h"
#include "fast_obj_dfs.h"
#define _USE_MATH_DEFINES
#include <math.h>
#include <string.h>
#define RADIANS(deg) ((deg) * (M_PI/180.0f))
//#define ENABLE_DEBUG
#ifdef ENABLE_DEBUG
#include <stdio.h>
#define DBG(...) fprintf(stderr, __VA_ARGS__)
#else
#defi... |
/* Copyright Statement:
*
* (C) 2005-2016 MediaTek Inc. All rights reserved.
*
* 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. ("MediaTek") and/or its licens... |
/* ********************************************************************************************* */
/* * C Template for Kernel Execution * */
/* * Author: <NAME> * */
/* ********************************... |
/*
* Copyright 2016 GoPro Inc.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Vers... |
#define F_CPU 20000000
#include <stdbool.h>
#include <util/crc16.h>
#include <avr/io.h>
#include <stdio.h>
#include <string.h>
#define NOTIFY_PORT PORTC
#define NOTIFY_PIN_BM PIN3_bm
#define SDA_PULLUP_SRC_PORT PORTB
#define SDA_PULLUP_SRC_PIN_BM PIN3_bm
#define SCL_PULLUP_SRC_PORT PORTC
#define SCL_PULLUP_SRC_PIN_BM ... |
#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 2018-2019 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "fsl_debug_console.h"
#include "fsl_fxos.h"
#include "board.h"
#include "math.h"
#include "peripherals.h"
#include "pin_mux.h"
/*******************************************************************************... |
#include "include/vfs.h"
#include "include/uart.h"
#include "include/fs/fat32.h"
#include "include/mm.h"
#include "include/sd.h"
// global for recording required block index
unsigned int root_sec_index = 0;
int fat_getpartition(){
unsigned char mbr[BLOCK_SIZE];
// read the MBR, find the boot sector
read... |
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
#include <signal.h>
#include <errno.h>
#include <string.h>
#define BUFFER_SIZE 1024
//Estrutura de uma lista ligada que armazena as informações de um filtro
typedef struct... |
#include "math.h"
#include "nds.h"
typedef unsigned short u16;
//typedef volatile unsigned int vu32;
typedef volatile unsigned short vu16;
typedef volatile unsigned char vu8;
typedef volatile signed short vs16;
#define SCANLINECOUNTER *(vu16 *)0x4000006
#define VIDEO_BUFFER_MAIN ((u16 *)0x06000000)
#define VIDEO_BUF... |
#include <stdlib.h>
#include <stdio.h>
#include <getopt.h>
#include <math.h>
#include <sys/stat.h>
#include "wd_alg_common.h"
#include "wd_comp.h"
#include "wd_sched.h"
#define SCHED_RR_NAME "sched_rr"
#define CTX_SET_NUM 1
#define CTX_SET_SIZE 4
#define MAX_ALG_LEN 32
#define MAX_THREAD 1024
#define no_argume... |
/* Topology Builder <NAME>
IUPUI Physics Dept. NMR Center
402 N. Blackford St.
Indianapolis, IN 46202
USA
Functions to read antechamber atom types and atom correlation
data files and to free the storage allocated in reading them.
NOTICE: This is a derivative work based on study ... |
#include <limits.h>
#include <asf.h>
#include <asf_export.h>
#include <asf_raster.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_statistics.h>
/* Get sample size in bytes of the data types represented by the
meta_parameters_t. */
size_t
get_sample_size (meta_parameters *metadata)
{
... |
#include "mcc.h"
//#define GREENLED LATCbits.LATC4
//#define REDLED LATCbits.LATC5
#define MAX_LEN 16 // Maximum length of an array. CHECK IF IT IS MAXIMUM LENGTH/SIZE OF FIFO!!!!!!!!!!!
//MF522 MFRC522 error codes.
#define MI_OK 0 // Everything ... |
/* Copyright 2020-2021 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
#include "okk.h"
#ifndef NULL
#define NULL 0
#endif
#define DIV_UP(a, b) (((a) - 1) / (b) + 1)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define LOCAL_MEM_SIZE okk_local_mem_size_per_npu()
#define NPU_NUM okk_npu_num()
#define NO_USE 0
typedef struct {
int N, C, H, W;
i... |
/**************************************************************************
*
* \file
*
* \brief IJG JPEG library data input module.
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
... |
/*
* lib/route/tc.c Traffic Control
*
* 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 version 2.1
* of the License.
*
* Copyright (c) 2003-2008 <NAME> <<EMAIL>>
*/
/**
* @ingro... |
/*
* linux/drivers/video/fbcon-mac.c -- Low level frame buffer operations for
* x bpp packed pixels, font width != 8
*
* Created 26 Dec 1997 by <NAME>
* Based on the old macfb.c 6x11 code by <NAME>
*
* This driver is significantly slower than the 8bit font drivers
* and would probably benefit from ... |
/* zzftpstr.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__3 = 3;
static integer c__2 = 2;
static integer c__0 = 0;
/* $Procedure ZZFTPSTR ( Private --- Fetch ... |
/*
$Id$
Copyright 1989-2014 <NAME>
This file is part of Linear/C3 Library.
Linear/C3 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 3 of the License, or
any later v... |
/*
* tcpkill.c
*
* Kill TCP connections already in progress.
*
* Copyright (c) 2000 <NAME> <<EMAIL>>
*
* $Id: tcpkill.c,v 1.17 2001/03/17 08:10:43 dugsong Exp $
*/
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <err.h>
#include <libnet.h>
#includ... |
/*
* Copyright (c) 2015, Intel Corporation
* 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... |
#define _GNU_SOURCE /* sched_setaffinity() and sched_getcpu() */
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include <sched.h>
#include <signal.h>
#include <execinfo.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <arpa/inet.h>
#incl... |
// MIT License, Copyright (c) 2020 <NAME>
#include <assert.h>
#include <def.h>
#include <errno.h>
#include <input.h>
#include <ioctl.h>
#include <libgui/gfx.h>
#include <libgui/gui.h>
#include <libgui/msg.h>
#include <libgui/vesa.h>
#include <libtxt/keymap.h>
#include <list.h>
#include <random.h>
//#define FLUSH_TIME... |
// Contains functions necessary to run a single iteration of the ISG Attack on a fresh instance of
// XMSS / XMSS^MT
#include "isg-attack-xmss.h"
// Treats byte array as a large unsigned integer and increments its value by 1
// Params:
// u8 *bytes: byte array to increment
// int num_bytes: length of byte array
i... |
/******************************************************************************
*
* Copyright (C) 2009 - 2014 Xilinx, Inc. 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 Softw... |
/*
* Copyright (C) 2021 Collabora, Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, pub... |
/*------------------------------------------------------*/
//BIBLIOTECAS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iohb.h>
#include <time.h>
#include <sys/time.h>
#include <unistd.h>
#include <mpi.h>
#define IMAX 1000
#define ERRO 0.0001
/*---------------------------------------------------... |
//
// mod_access_token - Authentication based on signed cookie
//
// This module protects webpage from clients without valid
// cookie. By redirecting not-yet-valid clients to certain
// "logon page", you can protect any webapp without adding
// any auth code to webapp itself.
//
// Unlike mod_authcookie for Ap... |
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, A... |
/*
Planarity-Related Graph Algorithms Project
Copyright (c) 1997-2010, <NAME>
All rights reserved. Includes a reference implementation of the following:
* <NAME>. "Simplified O(n) Algorithms for Planar Graph Embedding,
Kuratowski Subgraph Isolation, and Related Problems". Ph.D. Dissertation,
University of Victoria... |
/*******************************************************************************
License:
This software and/or related materials was developed at the National Institute
of Standards and Technology (NIST) by employees of the Federal Government
in the course of their official duties. Pursuant to title 17 Section 105
of... |
#include <thread.h>
#include <string.h>
#include <paging.h>
#include <mm.h>
#include <stdio.h>
#include <stdlib.h>
#include <gui.h>
#include <data.h>
extern int screan_spin_lock;
extern unsigned long thread_id;
// registers
unsigned long context_rip, context_rflag, context_cr3;
//registers
unsigned long contex... |
#include <sys/types.h>
#include <sys/socket.h>
#if __linux___
#include <sys/sendfile.h>
#endif
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <pthread.h>
#include "myhttpd.h"... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define INITIAL_CAPACITY 8
#define CMD_CHANGE 'c'
#define CMD_PRINT 'p'
#define CMD_DELETE 'd'
#define CMD_QUIT 'q'
#define CMD_UNDO 'u'
#define CMD_REDO 'r'
#define INTERNAL_SETLEN 'l'
#define INTERNAL_INSERT 'i'
#define HYBRID_CHANGELEN 's' // For both setl... |
/*
Copyright 2014 Technical University of Denmark, DTU Compute.
All rights reserved.
This file is part of the time-predictable VLIW processor Patmos.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
... |
#include "IoLoudmouth.h"
#define LMCONN(self) ((LmConnection *) IoObject_dataPointer(self))
static const char *protoId = "Loudmouth";
/*** Helper functions ***/
LmMessageType str2msg_type(char *str) {
if(!strcmp(str, "message")) return LM_MESSAGE_TYPE_MESSAGE;
if(!strcmp(str, "presence")) return LM_MESSA... |
#include "engine/engineCore/asEntry.h"
#include "engine/renderer/asRendererCore.h"
#include "engine/resource/asResource.h"
#include "engine/common/preferences/asPreferences.h"
#include "engine/common/asHandleManager.h"
#include "engine/nuklear/asNuklearImplimentation.h"
#if ASTRENGINE_NUKLEAR
#define NK_IMPLEMENTATION... |
/*************************************************************************/
/* keyboard.h */
/*************************************************************************/
/* This file is part of: */
/* ... |
/*
* Copyright (c) 2015-2018 Nexenta Systems, inc.
*
* This file is part of EdgeFS Project
* (see https://github.com/Nexenta/edgefs).
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional informat... |
/*
* 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 "video_hal.h"
#include <common.h>
#include <malloc.h>
#include <sys_config.h>
#include <fdt_support.h>
#include "hdmi_manage.h"
#include "boot_gui_config.h"
#if defined(CONFIG_VIDEO_SUNXI_V3)
#include "de_drv_v3.h"
#else
#error "please CONFIG_VIDEO_SUNXI_Vx\n"
#endif
#define DISPLAY_RSL_FILENAME "disp_rsl.fe... |
/*
// Trabalho Pratico Programacao - LEI
// DEIS-ISEC 2019-2020
*
-> Criado por: <NAME>
-> Número de aluno: a2019137625
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <ctype.h>
#include "structs.h"
#include "utils.h"
#include "struct_Sim.h"
#defi... |
/* $NetBSD: arcbios.h,v 1.3 2001/12/06 14:59:02 rafal Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modificati... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
#include "blaswrap.h"
/* -- translated by f2c (version 19990503).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static doublecomplex c_b1 = {0.,0.};
static integer c__1 = 1;
/* Subroutine */ int zstegr_(char *jobz, cha... |
/* -*- C -*-
mpiP MPI Profiler ( http://llnl.github.io/mpiP )
Please see COPYRIGHT AND LICENSE information at the end of this file.
-----
util.c -- misc util functions
*/
#ifndef lint
static char *svnid = "$Id$";
#endif
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
... |
//
// rtprecorder.c
// AirFloat
//
// 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
// ... |
/**
* @file dtar.c - parallel tar main file
*
* @author - <NAME>
*
*
*/
#include <errno.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <mpi.h>
#include <string.h>
#include <getopt.h>
#include "mfu.h"
static void DTAR_abort... |
/*****************************************************************************/
/***** ACP Basic Layer / Tofu *****/
/***** commumication thread *****/
/***** *****/
/***** Copyright FUJITSU LIMITED 2014 *****/
/***** *****/
/***** Specification Version: ACP-140312 *****/... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* 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 ab... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <limits.h>
#include "read_tree_lhalo_binary.h"
#include "../core_mymalloc.h"
#include "../core_utils.h"
#include "forest_utils.h"
/* Externally visible Functions */
void get_forests_filename_lht_binary(char *fi... |
/*
* Copyright (c) 1993, 1994 <NAME>, Digital Equipment Corporation,
* Western Research Laboratory. All rights reserved.
* Copyright (c) 2001 Compaq Computer Corporation. All rights reserved.
*
* Permission to use, copy, and modify this software and its
* documentation is hereby granted only under the following... |
#include <math.h>
#include <stdio.h>
#include "non_integral.h"
mpz_t one;
mpz_t zero;
mpz_t precision;
mpz_t e;
mpz_t eps;
int mp_exp_taylor(mpz_t, const int, const mpz_t, const mpz_t);
void initialize(const mpz_t _precision, const mpz_t epsilon)
{
mpz_init_set(precision, _precision);
mpz_init_set_ui(one, 1); m... |
/*
* Vortex OpenSplice
*
* This software and documentation are Copyright 2006 to TO_YEAR ADLINK
* Technology Limited, its affiliated companies and licensors. All rights
* reserved.
*
* Licensed under the ADLINK Software License Agreement Rev 2.7 2nd October
* 2014 (the "License... |
/*
*
* Created on: Jun 9, 2015
* Author: sergioam
*/
#include "thermalcanyon.h"
#include "main_system.h"
#include "hardware_buttons.h"
#include "data_transmit.h"
#include "sms.h"
#include "fatdata.h"
#include "modem.h"
#include "state_machine.h"
#include "alarms.h"
#include "timer.h"
#ifdef USE_MININI
#incl... |
#include <stdint.h>
#include <naiveConsole.h>
#include <sysCalls.h>
#include <time.h>
#include <peripherals.h>
#include <bitMap.h>
#include <pipes.h>
#include "process.h"
#include "messageQueue.h"
#include "mutex.h"
#include "buddy.h"
#include "RoundRobin.h"
#include "wait.h"
#include <lib.h>
int sysRead(uint64_t arg1... |
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <pthread.h>
#include <unistd.h>
#include <limits.h>
#include "fitfunc.h"
#include "flagparse.h"
#include "cuda_degnome.h"
// Declare all extern functions
extern void cuda_set_device(size_t my_rank);
extern void* cuda_set_seed(size_t bl... |
/*! Signals */
#define _K_SIGNAL_C_
#include "signal.h"
#include "thread.h"
#include <arch/context.h>
#include <kernel/kprint.h>
#include <kernel/errno.h>
#include "time.h"
static int ksignal_received_signal ( kthread_t *kthread, void *param );
static void ksignal_add_to_pending ( ksignal_handling_t *sh, siginfo_t *... |
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* of Tennessee Resea... |
/*
* Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* of Tennessee Resea... |
/*
* Copyright (C) 2008 <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 any later version.
*
* This program is distributed in th... |
#define USE_WEBSOCKET
#include "mongoose.c"
#define FATAL(str, line) do { \
printf("Fail on line %d: [%s]\n", line, str); \
abort(); \
} while (0)
#define ASSERT(expr) do { if (!(expr)) FATAL(#expr, __LINE__); } while (0)
#define UNUSED_PORT "33796"
st... |
/*
* Copyright (c) 2009, Google Inc.
* All rights reserved.
* Copyright (c) 2009-2014, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source ... |
/*
* Copyright 2014-2016, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and ... |
/*
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... |
/*////////////////////////////////////////////////////////////////////////
Copyright (c) 2003 Electrotechnical Laboratry (ETL), AIST, MITI
Permission to use, copy, modify, and distribute this material for any
purpose and without fee is hereby granted, provided that the above
copyright notice and this permission notice... |
/*
* Copyright (c) 2015 <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 Software Foundation; either
* version 2.1 of the License, or (at your option) any later vers... |
#include "common.h"
static void print_help(char *argv)
{
ERROR("%s [-N nodes] [-D degree] [-f input] [-o output] [-s seed] [-n calcs] [-w max_temp] [-c min_temp] [-Y] [-A]\n", argv);
}
static void set_args(const int argc, char **argv, int *nodes, int *degree, char **infname, char **outfname,
int *seed, long ... |
/*
The following specially formatted comments tell the LBARD build environment about this radio.
See radio_type for the meaning of each field.
See radios.h target in Makefile to see how this comment is used to register support for the radio.
RADIO TYPE: RFD900,"rfd900","RFDesign RFD900, RFD868 or compatible",rfd900_r... |
/* $NetBSD: passwd.c,v 1.52 2012/06/25 22:32:47 abs Exp $ */
/*
* Copyright (c) 1987, 1993, 1994, 1995
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
*... |
// "File Service Management" Dialog Box (IDD_FILE_FILEMANAGEMENT_GENERAL == 101)
#define IDH_101_972 972 // File Service Management: "&Local computer:
#define IDH_101_973 973 // File Service Management: "&Another computer:" (Button)
#define IDH_101_974 974 // Another Computer text box
#define IDH_101_975 975 //... |
/**
This module is a plain C class emulation. The POC written by decoder was in cpp and used some classes
in particular for the local negotiator.
See https://stackoverflow.com/questions/40992945/convert-a-cpp-class-cpp-file-into-a-c-structure-c-file
for how I emulated a class in pure C.
This class defines the ro... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Analog Devices AD9467 SPI ADC driver
*
* Copyright 2012-2020 Analog Devices Inc.
*/
#include <linux/module.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/spi/spi.h>
#include <linux/err.h>
#include <linux/delay.h>
#include... |
/*
* Adaptec 274x device driver for Linux.
* Copyright (c) 1994 The University of Calgary Department of Computer Science.
*
* 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 ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "driver/spi_master.h"
#include "soc/gpio_struct.h"
#include "driver/gpio.h"
#include "esp_timer.h"
#include "esp_log.h"
#include "rc522.h"
static const char* TAG = "ESP... |
/* Copyright (c) 2015-2020, <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 <NAME> and the University of York 2006 */
#define STACK_MACHINE
#include "c.h"
#define NODEPTR_TYPE Node
#define OP_LABEL(p) ((p)->op)
#define LEFT_CHILD(p) ((p)->kids[0])
#define RIGHT_CHILD(p) ((p)->kids[1])
#define STATE_LABEL(p) ((p)->x.state)
#define min(a,b) (((a) < (b)) ? (a) : (b))
#define max... |
// This file is part of Deark.
// Copyright (C) 2016 <NAME>
// See the file COPYING for terms of use.
// Windows ICO and CUR formats
#include <deark-config.h>
#include <deark-private.h>
#include <deark-fmtutil.h>
DE_DECLARE_MODULE(de_module_ico);
DE_DECLARE_MODULE(de_module_win1ico);
struct page_ctx {
i64 img_num;
... |
/*
***********************************************************************
TYPES.H -- Global constants and data types for EPANET program
VERSION: 2.00 ... |
/**
* XOpt - command line parsing library
*
* Copyright (c) 2015 <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
... |
#include <stdio.h>
#include <string.h>
#include "common/selector.h"
#include "metric/namespace.h"
#include "events/context_arg.h"
#include "common/http.h"
#include "main.h"
#define NAMED_NAME_SIZE 10000
#define NAMED_SLIM_SIZE 1000
void named_counter_metrics(context_arg *carg, char *ctx_start, char *ctx_end, char *me... |
/*
Copyright (c) 2013, Dust Networks. All rights reserved.
*/
#include "dn_common.h"
#include "string.h"
#include "stdio.h"
#include "cli_task.h"
#include "loc_task.h"
#include "dn_system.h"
#include "dn_time.h"
#include "dn_gpio.h"
#include "dn_exe_hdr.h"
#include "dnm_local.h"
#include "app_task_cfg.h"
#include "dn... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2007-2009 coresystems GmbH
* Copyright (C) 2011 <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; versi... |
#include "MSPd.h"
#include "fftease.h"
#if MSP
void *xsyn_class;
#endif
#if PD
static t_class *xsyn_class;
#endif
#define OBJECT_NAME "xsyn~"
typedef struct _xsyn
{
#if MSP
t_pxobject x_obj;
#endif
#if PD
t_object x_obj;
float x_f;
#endif
int R;
int N;
int N2;
int Nw;
int Nw2; ... |
/*
* (C) 2001 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <stdio.h>
#include <sys/time.h>
#include <string.h>
#include "mpi.h"
#include "mpe.h"
#include "pmandel.h"
#include "lists.h"
#include "pm_genproc.h"
#ifndef DEBU... |
#include <stdio.h>
#include <unistd.h>
#include <error.h>
#include <termios.h>
#include <string.h>
#include <stdlib.h>
#include <uuid.h>
#include <blkid.h>
#include <sys/time.h>
#include <dirent.h>
#include <sys/mount.h>
#include <sys/reboot.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#inclu... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <math.h>
#include <stdbool.h>
#pragma warning(disable:4996)
typedef uint16_t WORD;
typedef uint32_t DWORD;
typedef int32_t LONG;
// https://docs.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-bitmapfileheader
... |
#include "connection.h"
extern struct msgbuf sbuf;
//extern collision_list session_table[MAX_FLOWS_TABLE_SIZE]; //2^24 or 2^25
extern collision_list *session_table;
extern int resized_session_table;
extern node_l *active_session_list;
extern uint32_t active_session_list_size;
extern uint32_t max_active_session_list_si... |
/*
** Copyright 2007-2018 RTE
** Author: <NAME>
**
** This file is part of Sirius_Solver.
** This program and the accompanying materials are made available under the
** terms of the Eclipse Public License 2.0 which is available at
** http://www.eclipse.org/legal/epl-2.0.
**
** This Source Code may also be made availabl... |
/*
* Copyright 1997, Regents of the University of Minnesota
*
* node_refine.c
*
* This file contains code that performs the k-way refinement
*
* Started 3/1/96
* George
*
* $Id: node_refine.c,v 1.2 2003/07/21 17:18:50 karypis Exp $
*/
#include <parmetislib.h>
#define PackWeightWhereInfo(a, b) (((a)<<10) + ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.