text stringlengths 5.8k 28.2k |
|---|
/*----------------------------------------------------------------------------
* Name: serial.c
* Purpose: serial port handling for LPC134x
* Version: V1.10
*----------------------------------------------------------------------------
* This software is supplied "AS IS" without any warr... |
/* $OpenBSD: disksubr.c,v 1.95 2015/09/28 15:36:10 krw Exp $ */
/* $NetBSD: disksubr.c,v 1.16 1996/04/28 20:25:59 thorpej Exp $ */
/*
* Copyright (c) 1994, 1995 <NAME>
* Copyright (c) 1994 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are per... |
/**
* @file simplex_funcs.c
* @author <NAME> <<EMAIL>>
* @version 1.0
*
* @brief Simplex functions file.
*
* This file contains Simplex linear programming (linear optimization) functions
* that are used in optimally allocating thrusts between the 4 valves given Fpitch,
* Fyaw and Mroll that we desire to exert ... |
/* kakapo-relay - a BGP traffic relay */
#include <arpa/inet.h>
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#include <stdint.h>
#include <sys/uio.h>
#... |
/*!
@file trickBall.c
@ingroup TrickFMIBallExample
@brief Defines the functions that operate on a TrickBallModel instance.
Sample implementation of an FMU based on the classic Trick ball simulation.
This demonstrates the formulation of a simple Trick based simulation as
an FMI2 compliant FMU. This file provides the m... |
/******************************************************************************
*
* Title: planner.c
*
* Description: Main program for planner.
*
*****************************************************************************/
#include "planner.h"
/// Global file descriptors. Only global so that planner... |
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <getopt.h>
#include "../utils/millisecond_time.h"
#include "../lawn.h"
#include "../timerwheel/timeout.h"
#define SUCCESS 0
#define FAIL 1
#define TIMER_INVALID 0 // 0000...
#define TIMER_RUNNING 1 ... |
#include "stddefx.h"
/********/
/* USES */
/********/
/* libs ext. <>, our "" */
#include <string.h> /* memcpy */
#include "misc.h"
#include "app.h"
#include "table.h"
/* global header (opt.) and test's prototypes "" */
#include "table_p.h"
/* headers of this app. modules called */
/***************/
/* EXTERNAL... |
/*
* This file is part of the libopencm3 project.
*
* Copyright (C) 2011 <NAME> <<EMAIL>>
*
* 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 3 of the License, or
* (... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
** This notice applies to any and all portions of this... |
/*
Copyright (C) 2020 <NAME>
This file is part of "vetr - Trust, but Verify"
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.
... |
/*
* Copyright (c) 1999 - 2008 <NAME>
* (Royal Institute of Technology, Stockholm, Sweden).
* 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 re... |
/******************************************************************************
* @file read_data_polling.c
* @author Sensors Software Solution Team
* @brief This file show the simplest way to get data from sensor.
*
******************************************************************************
* @attention... |
#include <hermit/minifs.h>
#include <hermit/stddef.h>
#include <asm/stddef.h>
#include <asm/page.h>
#include <hermit/string.h>
#include <hermit/errno.h>
#include <hermit/logging.h>
#include <asm/uhyve.h>
#include <asm/atomic.h>
#define DIE() asm("int $3")
#define MAX_FILES 100000
#define MAX_FDS 100000
//#defin... |
/*
* Copyright (c) Texas Instruments Incorporated 2018
*
* 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 condit... |
/*
* Author : <NAME>
*
* ref. http://www.mono-project.com/docs/advanced/embedding/
* http://www.mono-project.com/docs/advanced/pinvoke/
* http://www.giorgosdimtsas.net/embedding-mono-in-your-c-application/
*
* Copyright (c) 2009-2013 GeoLabs SARL
*
* Permission is hereby granted, free of charge, to ... |
/*-
* Copyright (C) 2018 Cavium Inc.
* Copyright (c) 2015 <NAME> <<EMAIL>>
* Copyright (c) 2014 The FreeBSD Foundation
* All rights reserved.
*
* This software was developed by Semihalf under
* the sponsorship of the FreeBSD Foundation.
*
* Redistribution and use in source and binary forms, with or without
* ... |
/* GStreamer
* Copyright (C) <1999> <NAME> <<EMAIL>>
* Copyright (C) 2005-2012 <NAME> <<EMAIL>>
* Copyright (C) <2019> <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 Found... |
//
// Functions.h
// This file contains all the function-definitions we'll be using inside
// of the LVP Core; defined for use with our Invoke class.
// **Added all functions from invoke.pwn - CodeMatrix
#pragma once
// STRUCT: PAWN_FUNCTION
// In here we define the function's name and parameters.
struct PAWN_FUNCTIO... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 <NAME> <<EMAIL>>
* Copyright (c) 2011 <NAME>, <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... |
#include <stdio.h>
#include "esp_log.h"
#include "i2c_bus.h"
#include "bme280.h"
#define BME280_TAG "BME280"
#define error_dev(s, f, d, ...) ESP_LOGE(BME280_TAG, "%s: bus %d, addr %02x - " s, f, \
((i2c_bus_t *) d->bus)->i2c_port, d->addr, ## __VA_ARGS__)
#define BME280_RESET_VALUE 0
enum
{
BME280_REG_D... |
#include "VIDSdefs.h"
typedef enum {NoBurn, BWGraph, ColorGraph} Burn;
/************************************************************************/
/* JSAVE-STRETCH saves a set of stretch lookup tables into a file.
*/
int jsave_stretch_do(env)
VIDSEnvironment *env; /* the VIDS environment */
{
char *out; /* ou... |
#include <string.h>
#include <stdlib.h>
#include "rle.h"
#define MIN(a,b) (((a)<(b))?(a):(b))
#define mempush(DST,SRC,LEN,OFF) {memcpy(DST+OFF,SRC,LEN);OFF+=LEN;}
uint32_t crc_tab[256];
uint16_t rle_ptype_short[0x100];
uint8_t rle_ptype_long[0x10000];
void crc_init(){
int i=0;
for(i = 0; i < 256; ... |
/* Operating system specific defines to be used when targeting GCC for
hosting on Windows32, using a Unix style C library and tools.
Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it ... |
/*=====================================================================*
| bsio.h
| Copyright (c) 1991-1995 Applied Logic Systems, Inc.
|
| -- include file for stream I/O primitives
|
| Author: <NAME>
| Creation: 10/8/91
*=====================================================================*/
/*------------... |
#include "hclib.h"
#ifdef __cplusplus
#include "hclib_cpp.h"
#include "hclib_system.h"
#ifdef __CUDACC__
#include "hclib_cuda.h"
#endif
#endif
// #ifdef __cplusplus
// extern "C" {
// #endif
//==============================================================================================================================... |
/*
* nbibout.c
*
* Copyright (c) <NAME> 2018-2020
*
* Source code released under the GPL version 2
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "utf8.h"
#include "str.h"
#include "is_ws.h"
#include "fields.h"
#include "generic.h"
#include "iso639_3.h"
#include "titl... |
/* https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-8209-8-bit%20AVR%20ATmega16M1-32M1-64M1_Datasheet.pdf */
#include <stdio.h> // Need to import these libraries.
#include <stdlib.h>
#include <can/can.h>
#include <uart/uart.h>
// Uncomment for extra print statements
// #define CAN_DEBUG
#define ERR_MSG "ERR: %... |
#include <stdio.h>
#include <rlang.h>
#include "arrow.h"
#include "dominance.h"
#include "globals.h"
#include "node.h"
#include "utils.h"
#define DICT_INIT_SIZE 1024
#define STACK_INIT_SIZE 1024
#define STACK_GROWTH_FACTOR 2
#define NODES_PARENTS_INIT_SIZE 4
enum snapshot_df_locs {
SNAPSHOT_DF_LOCS_id = 0,
SN... |
/*
* Copyright (c) 2019-2020 Amazon.com, Inc. or its affiliates.
* All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main ... |
#include <conio.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "vbe.c"
#include "flexptc.h"
enum {
ptc_d_open,
ptc_d_close,
ptc_d_setpal,
ptc_d_setcontext
};
static char* ptc_strings[] = {
"ptc_open() -> ",
"ptc_close() -> ",
"ptc_setpal() -> ",
"ptc_setcontext()... |
//---------------------------------------------------------
// Copyright 2019 Ontario Institute for Cancer Research
// Written by Jared Simpson (<EMAIL>)
//---------------------------------------------------------
//
// bri - simple utility to provide random access to
// bam records by read name
//
// avoid warn... |
/**
* @file effect.c DAW Effect Overlay Plugin
*
* Copyright (C) 2013-2018 studio-link.de
*/
#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#include <stdlib.h>
#include <string.h>
#include <re.h>
#include <rem.h>
#include <baresip.h>
#include <math.h>
#include <unistd.h>
#include <pthread.h>
#define SAMPLE_16BIT... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file stm32f4xx_it.c
* @brief Interrupt Service Routines.
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/******************************************************************************
KPP - The Kinetic PreProcessor
Builds simulation code for chemical kinetic systems
Copyright (C) 1995-1996 <NAME> and <NAME>
Copyright (C) 1997-2005 <NAME>
KPP is free software; you can redistribute it and/or modify it un... |
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <X11/Xatom.h>
#include <X11/keysym.h>
#include <stdio.h>
#include "xbuplot_icon"
#define PIXELS_PER_INCH (100)
#define MM_PER_INCH (25.4)
#define XFLUSH 0
#define MAX_COLOURS 16
/* These are used as arguments to nearly every Xlib routine, so... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#ifndef UNIT_TEST
#include <libmemcached-1.0/memcached.h>
#include <libmemcachedutil-1.0/pool.h>
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#endif
#include "ngx_http_hashcash_module.h"
#include <openssl/evp.h>
/**
... |
/*
* Copyright (C) 2014 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... |
/* Simple Raw HID functions for Linux - for use with Teensy RawHID example
* http://www.pjrc.com/teensy/rawhid.html
* Copyright (c) 2009 PJRC.COM, LLC
*
* rawhid_open - open 1 or more devices
* rawhid_recv - receive a packet
* rawhid_send - send a packet
* rawhid_close - close a device
*
* Permission is he... |
/*
* Copyright 2018-2019 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, di... |
/*
* Copyright (C) 2020 - 2021 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 Software without restriction, including without limitation the
* rights to use, copy... |
/* $OpenBSD: gbox.c,v 1.15 2007/01/07 15:13:52 miod Exp $ */
/*
* Copyright (c) 2005, <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
... |
/*
* The Yices SMT Solver. Copyright 2014 SRI International.
*
* This program may only be used subject to the noncommercial end user
* license agreement which is downloadable along with this program.
*/
/*
* ERROR MESSAGES/DIAGNOSIS ON EXCEPTION RAISED BY TERM STACK
*/
#if defined(CYGWIN) || defined(MINGW)
#if... |
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <math.h>
#include <stdio.h>
#include <inttypes.h>
#include "clc_bytes.h"
typedef struct {
int32_t buff[16];
uint32_t md5[4];
uint64_t data_len;
uint_fast8_t buff_len;
} clc_md5_context;
static unsigned char clc_md5_pad[] = {
... |
/**************************************************************************
* Copyright (c) 2001 by Acunia N.V. All rights reserved. *
* *
* This software is copyrighted by and is the sole property of Acunia N.V. *
* and its licens... |
/*
* (c) HPC Project - 2010-2011 - All rights reserved
*
*/
#include "scilab_rt.h"
int __lv0;
int __lv1;
int __lv2;
int __lv3;
/*----------------------------------------------------*/
/*----------------------------------------------------*/
int main(int argc, char* argv[])
{
scilab_rt_init(argc, argv, COLD_... |
/* vim: set tabstop=8 softtabstop=4 shiftwidth=4 noexpandtab : */
/*
* location - location/country codes
*
* "Because there is an I in IOCCC." :-)
*
* Copyright (c) 2022 by <NAME>. All Rights Reserved.
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and... |
/*
** mio_config.c
** Multiple I/O common command-line processing convenience module
**
** ------------------------------------------------------------------------
** Copyright (C) 2006-2021 Carnegie Mellon University. All Rights Reserved.
** ------------------------------------------------------------------------
** A... |
#define DEBUG_TOOL
#include <linux/fs.h>
#include <linux/pagemap.h>
#include <linux/namei.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include "type_info.h"
#include "bridge.h"
#include "debug.h"
#include "inode.h"
#include "alloc.h"
#include "io.h"
struct file_priv
{
loff_t fp_realpos;
struct type_info *fp_t... |
/*
* ni_at_ao.c
* Driver for NI AT-AO-6/10 boards
*
* COMEDI - Linux Control and Measurement Device Interface
* Copyright (C) 2000,2002 <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 Sof... |
/**************************************************************************
*
* Copyright 2003 VMware, 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 Software wit... |
/*
Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0
Subject to the condition set forth below, permission is hereby granted to any
person obtaining a copy of this software, associated documentation and/or data
(collectively the "Software")... |
/**
* acdat.c - Double-Array Trie implement
*
* @author <NAME> <<EMAIL>>
*/
#include "acdat.h"
#include <alib/collections/list/segarray.h>
#include <alib/object/list.h>
/* Trie 内部接口,仅限 Double-Array Trie 使用 */
size_t trie_size(trie_t self);
size_t trie_next_state_by_binary(trie_t self, size_t iNode, unsigned char... |
/* _______ ____ __ ___ ___
* \ _ \ \ / \ / \ \ / / ' ' '
* | | \ \ | | || | \/ | . .
* | | | | | | || ||\ /| |
* | | | | | | || || \/ | | ' ' '
* | | | | ... |
// CSULB - CECS490B
// Team IHA Senior Project
// <EMAIL>
// Target Device: TM4C123GXL
// This program is the software which runs on the MCU
// dedicated to the speakers in the network.
// It is connected to the network via an ESP2866 network interface
// on UART0
// I/O
// UART0 - USB Serial Debug
// PA0... |
/* file grules2.c */
#if !defined(COMPILE_ENVIRONMENT)
#include "stdcenvf.h" /* std compile environment for functions */
#endif
/***********************************************************/
/* get_rules2 and its sub-functions */
/* Created 11/4/96 by WMF to include context sensitivity, */
/* b... |
/*
* Portions of this file are subject to the following copyright(s). See
* the Net-SNMP's COPYING file for more details and other copyrights
* that may apply.
*/
/*
* Copyright (c) 2013, Arista Networks, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modi... |
/* test/test_view.c -- simple view tool, purely for use in a test harness.
Copyright (C) 2012 Broad Institute.
Copyright (C) 2013-2019 Genome Research Ltd.
Author: <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation ... |
/* S P E C T R U M . C
* BRL-CAD
*
* Copyright (c) 2004-2014 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 a... |
/* $OpenBSD: cgtwelve.c,v 1.9 2003/06/28 17:05:33 miod Exp $ */
/*
* Copyright (c) 2002, 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 mu... |
/**************************************************************************
*
* FILECOPY.C
*
* Copyright (C) Microsoft, 1990, All Rights Reserved.
*
* Control Panel Applet for installing installable driver.
*
* This file contains hooks to SULIB, COMPRESS libraries, and the dialogs
* from the disp... |
// <NAME> [2018] @ ECL-UFSC
// INE5410 - Cuncurrent Programming
// <NAME> and <NAME> Uller Project
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdarg.h>
#include <mpi.h>
#ifndef DEBUG
#define DEBUG 0
#endif
#ifndef NELEMENTS
#define NELEMENTS 6
#endif
#if... |
#define DD_SUBSYS DD_FAC(tests)
#include <getopt.h>
#include "daos_test.h"
#include <stdio.h>
#include "tier_test.h"
#include <sys/types.h>
#include <unistd.h>
#include <daos/debug.h>
#include "daos_iotest.h"
char USAGE[] = "ds_fetch_test <warm_tier_group> <cold_tier_group>";
char TIER_1_ID[] = "TIER_1_ID";
char TIE... |
/*
* 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... |
/*
* Copyright (c) 2014 .SE (The Internet Infrastructure Foundation).
* Copyright (c) 2014 OpenDNSSEC AB (svb)
* 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 sou... |
/* $OpenBSD: eephy.c,v 1.11 2003/09/02 22:44:27 krw Exp $ */
/*
* Principal Author: <NAME>
* Copyright (c) 2001
* 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 so... |
/*
Copyright 2009-2010, Ifcaro, jimmikaelkael & Polo
Copyright 2006-2008 Polo
Licenced under Academic Free License version 3.0
Review OpenUsbLd README & LICENSE files for further details.
Some parts of the code are taken from HD Project by Polo
*/
#include "ee_core.h"
#include "iopmgr.h"
#include "modmgr.... |
#define _POSIX_SOURCE 1
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <signal.h>
#include <getopt.h>
#include <unistd.h> // alarm()
#include "rc4.h"
#include "mt64.h"
#include "blowfish.h"
#define UNROLL 8 /* Iterations between alarm checks */
#define SECONDS 1 /* Seconds spe... |
/**
******************************************************************************
* @file tim.c
* @brief This file provides code for the configuration
* of the TIM instances.
******************************************************************************
* @attention
*
* <h2><center>©... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* tegra_wm8903.c - Tegra machine ASoC driver for boards using WM8903 codec.
*
* Author: <NAME> <<EMAIL>>
* Copyright (C) 2010-2012 - NVIDIA, Inc.
*
* Based on code copyright/by:
*
* (c) 2009, 2010 Nvidia Graphics Pvt. Ltd.
*
* Copyright 2007 Wolfson Microelectronics... |
/* keybox-openpgp.c - OpenPGP key parsing
* Copyright (C) 2001, 2003 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
* GnuPG 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 versi... |
#include <stm32f10x_gpio.h>
#include <stm32f10x_rcc.h>
#include <stm32f10x_spi.h>
#include <sdcard.h>
uint8_t SD_CardType = SD_UNKNOWN_SD_CARD; // SD Card type
uint32_t SD_CardCapacity; // SD Card capacity
uint8_t SD_MaxBusClkFreq = 0; // Max. card bus frequency
... |
/*
* Interpreter.c
*
* Created on: Sep 24, 2015
* Author: mokogobo
*/
#include "Messenger.h"
Message *incomingMessageQueue = NULL;
Message *outgoingMessageQueue = NULL;
char messageUuidBuffer[DEFAULT_UUID_LENGTH] = { 0 };
char grammarSymbolBuffer[MAXIMUM_GRAMMAR_SYMBOL_LENGTH] = { 0 };
char uuidBuffer[DEF... |
#include "cache.h"
#include "object.h"
#include "replace-object.h"
#include "object-store.h"
#include "blob.h"
#include "tree.h"
#include "commit.h"
#include "tag.h"
#include "alloc.h"
#include "packfile.h"
#include "commit-graph.h"
unsigned int get_max_object_index(void)
{
return the_repository->parsed_objects->obj_... |
/* Copyright (c) 2014, <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
* notice, this list of conditio... |
#include <u.h>
#include <lib9.h>
#include <envvars.h>
#include <authsrv.h>
static int32_t finddosfile(int, char*);
static int
check(void *x, int len, uint8_t sum, char *msg)
{
if(nvcsum(x, len) == sum)
return 0;
memset(x, 0, len);
fprint(2, "%s\n", msg);
return 1;
}
/*
* get key info out of nvram. since the... |
/*
* Implement the Threefry PRNG for Singular Computing's S1 system
* By <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
#include <scAcceleratorAPI.h>
#include <scNova.h>
int emulated; ... |
//------------------------------------------------------------------------------
// LAGraph_BF_full.c: Bellman-Ford single-source shortest paths, returns tree
//------------------------------------------------------------------------------
/*
LAGraph: graph algorithms based on GraphBLAS
Copyright 2019... |
#include "MSPd.h"
#include "fftease.h"
#if MSP
void *scrape_class;
#endif
#if PD
static t_class *scrape_class;
#endif
#define OBJECT_NAME "scrape~"
typedef struct _scrape
{
#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;
in... |
/*
* Copyright (c) 1983, 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above... |
/****************************************************************************
*
* Filename: stv680.h
*
* Description:
* This is a USB driver for STV0680 based usb video cameras.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Licens... |
/*
* Copyright (c) 2016, 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
* list o... |
/**
* Exercise 5-17, page 100
* Упражнение 5.17, страница 132
*
* Add a field-searching capability, so sorting may bee done on fields within lines,
* each field sorted according to an independent set of options. (The index for this book was
* sorted with -df for the index category and -n for the page numbers.)
*... |
#include <inttypes.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#ifndef F_CPU
#define F_CPU 9830600UL
//#define F_CPU 9830400UL
//#define F_CPU 16000000UL
//#define F_CPU 1000000UL
//define F_CPU 3686400UL
#endif
#define BAUD 9600UL
#include <util/setbaud.h>
#include <util/delay.h>
#include "spinne.h"
volati... |
/* $OpenBSD$ */
/*
* Copyright (c) 2019 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND... |
/*
* Copyright (c) 2019 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
*/
#include <zephyr.h>
#include <device.h>
#include <drivers/gps.h>
#include <net/socket.h>
#include <nrf_socket.h>
#include <modem/modem_info.h>
#include <net/nrf_cloud_agps.h>
#include <logging/log.h>
... |
/* Jitter RNG: Noise Sources
*
* Copyright (C) 2021, <NAME> <<EMAIL>>
*
* License: see LICENSE file in root directory
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ... |
/*
* dpdk_capture.c
*
* Created on: Dec 20, 2016
* Author: montimage
*/
#include "mmt_core.h"
#include "tcpip/mmt_tcpip.h"
#include "processing.h"
#include "lib/security.h"
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include <locale.h>
#include <signal.h>
#include <unistd.h>
#include <ti... |
/*-
* Copyright (c) 1999-2008 Apple Inc.
* Copyright (c) 2006-2008 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyr... |
/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License i... |
/*
* File: thread-key-stretch.c
* Description: Key stretching for the Thread commissioning key (PSKc).
*
* Copyright 2015 Silicon Laboratories, Inc. *80*
*/
// For strnlen(3) in glibc.
#define _GNU_SOURCE
#include "core/ember-stack.h"
#include "platform/micro/aes.h"
#include "stac... |
/*******************************************************************************
* NHD_24_240320_Framebuffer2GPIO.c
* for NHD-1.8-128160EF TFTs with driver IC ILI9163 using the 8 bit parallel interface
*
* copies the contents of the display framebuffer into a memory region
* and outputs a 160x128 area to the TFT ... |
#include "minls.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#define PARTITION_TABLE_LOC 0x1BE
#define PARTITION_TYPE 0x81
#define BYTE510 0x55
#define BYTE511 0xAA
#define MINIX_MAGIC_NUMBER 0x4D5A
#define MINIX_MAGIC_NUMBER_REVERSED 0x5A4D
#define INODE_SIZE_BYTES 64
#define DIRE... |
/* Copyright (c) (2011,2014,2015,2018,2019) Apple Inc. All rights reserved.
*
* corecrypto is licensed under Apple Inc.’s Internal Use License Agreement (which
* is contained in the License.txt file distributed with corecrypto) and only to
* people who accept that license. IMPORTANT: Any license rights granted to... |
/* GStreamer Split File Source
* Copyright (C) 2011 Collabora Ltd. <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option... |
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/if_ether.h>
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <poll.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include "json.h"
#ifdef _WIN32
#include <Windows.h>
#else
#include <unistd.h>
#endif
//dirty hacks for higher than implementation
double coor_x[100][18]={[0 ... 99][0 ... 17] = 16384}, coor_y[100][18]... |
/**
* 3DConvolution.c: This file is part of the PolyBench/GPU 1.0 test suite.
*
*
* Contact: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU
*/
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <t... |
/*
Copyright 2010-2013 SourceGear, 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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... |
/*
* Copyright (C) 2019 <NAME>.
*
* Distribution and use is allowed under the terms of the zlib license
* (see kissmalloc/LICENSE).
*
*/
#include "kissmalloc.h"
////////////////////////////////////////////////////////////////////////////////
/// KISSMALLOC CONFIGURATION
/////////////////////////////////////////... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.