text stringlengths 5.8k 28.2k |
|---|
/***** spin: flow.c *****/
/* Copyright (c) 1991,1995 by AT&T Corporation. All Rights Reserved. */
/* This software is for educational purposes only. */
/* Permission is given to distribute this code provided that this intro- */
/* ductory message is not removed and no monies are exchanged... |
/** \file linenoise.c
*
* \brief uerrilla line editing library against the idea that a
* line editing lib needs to be 20,000 lines of C code.
*
* Modified for the VICE project by <NAME>,
* for use in combination with a terminal
* not represented by a couple of file descrptors
* (abstracted buy the ... |
/* Extended Module Player
* Copyright (C) 1996-2021 <NAME> and <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... |
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include "compiler/node.h"
#include "compiler/parser.h"
#include "compiler/compiler.h"
#include "compiler/bytecode.h"
#include "compiler/compiler_helpers.h"
#include "compiler/mm.h"
#include "error.h"
#include "compiler/builtins.h"
#include "compiler/namespace... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#include <qrencode.h>
#include <png.h>
#if LUA_VERSION_NUM < 502
# define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,NULL,l))
#endif
struct memData {
char *buffer;
size_t size;
};
enum ... |
/*
** $Id$
** Library to use the keyboard with Scrupp
** See Copyright Notice in COPYRIGHT
*/
#include "Main.h"
#include "Keyboard.h"
#include <SDL_keysym.h>
#define E(name, val) \
lua_pushliteral(L, name); \
lua_pushinteger(L, val); \
lua_rawset(L, -3); \
lua_pushliteral(L, name); \
lua_rawseti(L, -2, val... |
// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at
// the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights
// reserved. See files LICENSE and NOTICE for details.
//
// This file is part of CEED, a collection of benchmarks, miniapps, software
// libraries and APIs for effic... |
/*
* util.c
*
* Copyright (c) 2001-2003 <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 copyright
* notice... |
/**
* \file
* \brief ATCA Hardware abstraction layer for Windows using kit protocol over a
*USB CDC device.
*
* Copyright (c) 2015 Atmel Corporation. All rights reserved.
*
* \atmel_crypto_device_library_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
*... |
#include <assert.h>
#include <string.h>
#include <math.h>
#include "painter.h"
#include "matrix.h"
#include "../lib/cbmp.c"
#include "../lib/BMPFile.h"
#ifdef DEBUG
#define eprintf(...) fprintf(stderr, __VA_ARGS__)
#else
#define eprintf(...) do {} while(0)
#endif
#define LINE_WIDTH 2
#define SPIKE_LENGTH 20
char* g... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#define NBR_INPUT_NEURONS 2
#define WEIGHT_MAX 0.7
#define LEARNING_RATE 0.01
#define EPOXH_MAX 1000
#define LAMBDA 2
typedef struct Data Data;
typedef struct Value Value;
typedef struct Neuron Neuron;
typedef struct VQ V... |
// 0x07009900 - 0x07009918
static const Lights1 wf_seg7_lights_07009900 = gdSPDefLights1(
0x66, 0x66, 0x66,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x07009918 - 0x07009958
static const Vtx wf_seg7_vertex_07009918[] = {
{{{ 794, 38, -255}, 0, { 22452, 6606}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ ... |
/*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <errno.h>
#include <string.h>
#include "native_client/src/include/portability.h"
#include "native_client/src/shared/platform/na... |
/*
* Copyright 2017, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA... |
/* $OpenBSD: mkuboot.c,v 1.6 2015/10/12 06:24:28 deraadt Exp $ */
/*
* Copyright (c) 2008 <NAME>
*
* 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.
*... |
/*
Optimized ChaCha12 permutation based on the implementation by
<NAME>
<NAME>
*/
#include "chachaperm.h"
#include "./e/ecrypt-portable.h"
#include <arm_neon.h>
#define vrotlq_u32(a,b) vsliq_n_u32(vshrq_n_u32(a, 32-b),a,b)
void chacha_f(unsigned char *out,const unsigned char *in) {
unsigned char x[64];
int i;
... |
#include <stdlib.h>
#include "epd2in13.h"
static const char *TAG = "edp gd";
#define LCD_EPAPER_CHECK(a, str) if(!(a)) { \
ESP_LOGE(TAG,"%s:%d (%s):%s", __FILE__, __LINE__, __FUNCTION__, str); \
\
... |
/*
* $ Copyright Broadcom Corporation $
*/
/** @file
*
*/
#include "wiced.h"
#include "stdint.h"
#include "stddef.h"
#include "wwd_network_interface.h"
#include "wwd_buffer_interface.h"
#include "tlv.h"
#include "wiced_security.h"
#include "internal/wwd_sdpcm.h"
#include "wwd_wlioctl.h"
#include ... |
/*
* Copyright (C) 2010-2011 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI... |
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2018
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* Copyright 2013 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <init.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/iomux-vf610.h>
#include <asm/arch/ddrmc-vf610.h... |
/*
* 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... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
#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... |
#include <stdio.h>
#include <stdint.h>
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <sys/wait.h>
#include "alloc.h"
#include "os.h"
#include "build.h"
#include "string.h"
#define write_to_dot_file(X) __os__write(Confp->dot_file_handle, X, __z__std__strlen(X));
extern build_conf* Confp;
static... |
/*
Author: <NAME>
*/
#include "common.h"
#include <float.h>
#include <assert.h> /* assert */
extern float THRESHOLD;
extern int DISCRETE_PRUNING;
extern int ERROR_ANALYSIS_MODE;
extern int HTRANS_MAXBINS;
extern int HTRANS_BINSIZE;
extern float HOMOZYGOUS_PRIOR;
extern float SPLIT_THRESHOLD;
extern int SPLIT_BL... |
/*
* Copyright (c) 2016 NLNet Labs
* 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 condition... |
#include <stddef.h>
#include <string.h>
#include "calibration.h"
#include "configuration.h"
#include "deca_device_api.h"
#include "deca_regs.h"
#include "delay.h"
#include "host_interface.h"
#include "SEGGER_RTT.h"
#include "timer.h"
// Application state -----------------------------------------------------... |
/*
* This software is licensed under the terms of the MIT License.
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, <NAME> <<EMAIL>>.
* Copyright (c) 2012-2019, <NAME> <<EMAIL>>.
*/
#include "taisei.h"
#include "charselect.h"
#include "menu.h"
#include "mainmenu.h"
#include "common.h"
#in... |
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#include "hpack.h"
#include "huffman/huffman.h"
#include "util.h"
typedef struct static_entry_t {
char * name;
char * value;
} static_entry_t;
const static_entry_t static_table[] = {
{ ":author... |
/*
Copyright (C) 2014, 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
to use, copy, modify, merge, publish, dist... |
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>
#include "stdio.h"
#include "errno.h"
#include "stdlib.h"
#include "unistd.h"
#include "signal.h"
#include <string.h>
#define SIZE 1024
#define MAXVARS 200
struct var {
char* str;
int global;
};
static struct var tab[MAXVARS];
int env_size = 0;
... |
/*
mpn_mulmid.c: middle products of integers
Copyright (C) 2007, 2008, <NAME>
This file is part of the zn_poly library (version 0.9).
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... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <dirent.h>
#include <math.h>
#include <time.h>
#include "odinlib.h"
#include "drplib.h"
#include "odinscan.h"
#include "options.h"
#include "vector.h"
#include "accessor.h"
#include "fitsio.h"
static char rcsid[] = "$Id$";
static... |
/*
* Copyright (c) 2009 <NAME>
* Copyright (c) 2011 <NAME>
*
* 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 useful,... |
/*
* *****************************************************************************
* NeatAmp software
*
* ymodem.c
*
* Author : AIM65
* Date : 12 Avr 2020
* (c) AIM65
*
* Based on ymodem.c, module of ST AN2557 software package
* Do not work with "Tera TERM" terminal emulator; work fine with "PuTTY" : www.e... |
/* Copyright (C) <NAME>
* See /doc/license/NOTICE.Plan9-9k.txt for details about the licensing.
*/
/* Portions of this file are Copyright (C) 2015-2018 <NAME> <<EMAIL>>
* See /doc/license/gpl-2.0.txt for details about the licensing.
*/
/* Portions of this file are Copyright (C) 9front's team.
* See /doc/license/9f... |
/*
* Copyright(c) 2012-2021 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "ocf/ocf.h"
#include "metadata.h"
#include "metadata_passive_update.h"
#include "metadata_collision.h"
#include "metadata_segment_id.h"
#include "metadata_internal.h"
#include "metadata_io.h"
#include "metadata_raw.h"... |
/*
* Copyright (c) 2019 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
*/
#include <inttypes.h>
#include <zephyr/types.h>
#include <sys/byteorder.h>
#include <storage/flash_map.h>
#include <pm_config.h>
#include <dfu/mcuboot.h>
#include "event_manager.h"
#include "config_eve... |
#include <string.h>
#include <stdlib.h>
#include <sys/stat.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "esp_event.h"
#include "esp_vfs_fat.h"
#include "sd_if.h"
#include "tcpip_adapter.h"
//#include "esp_tls.h"
// http_client... |
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <math.h>
#include <printf.h>
#include <setjmp.h>
#include <signal.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/uio.h>
#include "../runtime.h... |
/**
* Extreme Edge Cases Lab
* CS 241 - Spring 2019
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "camelCaser.h"
#include "camelCaser_tests.h"
int cal_len_str_arr(char** input_array) {
int result = 0;
while(*input_array) {
result++;
input_array++;
}
printf("%d\n", result + 1);
re... |
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#define BOOL int
#define FALSE 0
#define TRUE 1
#define DEBUG 1
#define BUFSIZE 1024
#define MAX_NODES 10
#define MAX_REQUESTS 25
enum MSG_TYPE{ERROR,DATA,ROUTE_REQ,ROU... |
/**
******************************************************************************
* File Name : main.c
* Description : Main program body
******************************************************************************
** This notice applies to any and all portions of this file
* that are not ... |
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "SDL.h"
#define SCREENWIDTH 800
#define SCREENHEIGHT 600
//TODO:
//normalalzing acutally seems to make it less fun?
//fix the issue of collisions to be more robust
//have a size on the bricks
/... |
/*
* This file is part of the IOTA Access distribution
* (https://github.com/iotaledger/access)
*
* Copyright (c) 2020 IOTA Stiftung
*
* 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
*... |
/*
* gnome-keyring
*
* Copyright (C) 2011 Collabora Ltd.
*
* This program 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 versi... |
/*
* shadata.c
*
* Created on: Apr 24, 2019, 3:27:41 PM
* Author: <NAME>
*/
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gmp.h> /* needed to generate constants for SHA-512 */
#include "macros.h"
static const unsigned primes[80] = {
2, 3, 5, 7, 11, 13, 17, 19, 23... |
#include "bip39.h"
#include "arduino-support.h"
#include "index_char.h"
#include "prefix1.h"
#include "prefix2.h"
#include "suffix_array.h"
#include <stdlib.h>
#include <string.h>
#ifdef ARDUINO
#include "bc-crypto-base.h"
#else
#include <bc-crypto-base/bc-crypto-base.h>
#endif
// This class provides a couple of s... |
/*This file is part of the MPI Sessions library.
*
*Author : <NAME>
*Date : 15/03/2019
*
*This file, sessions.c implements all the routines included in the Set Management Module.
*Internally calls routines of Open MPI.
*/
#include <stdio.h>
#include <mpisessions.h>
#include <kvs.h>
#include <stdlib.h>
#inc... |
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include "bddlib.h"
#define HASH_SIZE 24593
#define _get_truth(X) (X.hi == 1)
#define _is_sink(X) ((X).v == (X).bdd->terms)
struct bdd_node_s {
int v;
int lo;
int hi;
int aux;
BDD *bdd; //can nodes be free?
};
struct hash_node_s {
... |
/*s: windows/rio/dat.h */
// forward decls
typedef struct Window Window;
typedef struct Wctlmesg Wctlmesg;
typedef struct Filsys Filsys;
typedef struct Fid Fid;
typedef struct Xfid Xfid;
typedef struct Consreadmesg Consreadmesg;
typedef struct Conswritemesg Conswritemesg;
typedef struct Stringpair Stringpair;
typedef ... |
/******************************************************
* *
* PGPSort: a utility to sort PGP 2.x keyrings *
* . *
* (c)1995 by <NAME> <<EMAIL>> *
* Version 1.01 - 1995/09/04 *
... |
// CSID Simulation code
#include <getopt.h>
#include <arpa/inet.h>
#include <stdbool.h>
#include <immintrin.h>
#include "helpers.h"
#include "consts.h"
// Global in case we wanna dump hex of each packet as we go
static int dump_hex = 0;
// Random helper function just to fill in some defaults
void *fill_srh(__u8 *buf... |
/**************************************************************************
Copyright 2001 VA Linux Systems Inc., Fremont, California.
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... |
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include "config.h"
#include <memcached/protocol_binary.h>
#include <string.h>
#include <strings.h>
#include <ctype.h>
#include "protocol2text.h"
const char *memcached_opcode_2_text(uint8_t opcode) {
switch ((unsigned int)opcode) {
c... |
/*
* Copyright (C) 2019 Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <types.h>
#include <rtl.h>
#include <errno.h>
#include <asm/per_cpu.h>
#include <asm/irq.h>
#include <boot.h>
#include <asm/pgtable.h>
#include <asm/zeropage.h>
#include <asm/seed.h>
#include <asm/... |
/*
* Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
* Copyright (c) 2004-2005 Qualcomm Atheros, Inc.
* All Rights Reserved.
*/
// Copyright (c) 2018 Qualcomm Technologies, Inc.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without modification, are permitted (subject to ... |
//
// Created by eugene on 3/14/19.
// Modified by ssrlive
//
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <mbedtls/ssl.h>
#include <mbedtls/x509_crt.h>
#include <mbedtls/ctr_drbg.h>
#include <mbedtls/debug.h>
#include <mbedtls/entropy.h>
#include <mbedtls/certs.h>
#include <assert.h>
#include ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include "gl_util.h"
#include "scrollplot2d.h"
typedef struct __plot2d_point {
double x;
double y;
} _plot2d_point_t;
typedef struct __plot2d {
GQueue *points;
double rgba[4];
char *name;
int max_points;
} _plot2d_t... |
#include "sdl_ui.h"
#include "textures.xpm"
#include <SDL.h>
#include <SDL_image.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
#include <limits.h>
#ifdef _WIN32
#include <windows.h>
#endif
// generic variables
SDL_Window* mainwin = 0; //main window
SDL_Renderer* ren = 0; //renderer
SDL_Surface* tsurf... |
#include <stdio.h>
#include <stdlib.h>
int DisassembleOp(unsigned char* codebuffer, int pc);
int main(int argc, char** argv)
{
FILE *fp = fopen(argv[1], "rb");
if (fp == NULL)
{
printf("Error: Couldn't open file: %s\n", argv[1]);
exit(1);
}
// Get the file size and read it into a memory buffer
fseek(fp, 0... |
/*
* Copyright 2020 Makani Technologies 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 ... |
const int HYUNDAI_MAX_STEER = 409; // like stock
const int HYUNDAI_MAX_RT_DELTA = 112; // max delta torque allowed for real time checks
const uint32_t HYUNDAI_RT_INTERVAL = 250000; // 250ms between real time checks
const int HYUNDAI_MAX_RATE_UP = 7;
const int HYUNDAI_MAX_RATE_DOWN = 15;
const int... |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file ... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2006 The University of Tennessee a... |
/*
** ARM64 instruction emitter.
** Copyright (C) 2005-2017 <NAME>. See Copyright Notice in luajit.h
**
** Contributed by <NAME> and <NAME> from RT-RK.com.
** Sponsored by Cisco Systems, Inc.
*/
/* -- Constant encoding --------------------------------------------------- */
static uint64_t get_k64val(IRIns *ir)
{
if... |
/*
Copyright (c) 2021 <NAME>. See the COPYRIGHT
file at the top-level directory of this distribution.
Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
<LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
option. T... |
/*-
* Copyright (c) <2016-2018>, Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/* Created 2016 by <NAME> <EMAIL> */
#include <stdio.h>
#include "rte_lua.h"
#include "pktgen-cmds.h"
#include "pktgen-display.h"
#include "pktgen.h"
#if RTE_VERSION >= RTE_VERSION_NUM(17, 11,... |
/*-------------------------------------------------------------------------
*
* cdbvars.c
* Provides storage areas and processing routines for Greenplum Database variables
* managed by GUC.
*
* Portions Copyright (c) 2003-2010, Greenplum inc
* Portions Copyright (c) 2012-Present VMware, Inc. or its affiliate... |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the COPYING file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing project authors may
// be... |
/*
* utils.c -- various utility routines
*
* This code is Copyright (c) 2006, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <h/mh.h>
#include <h/utils.h>
#include <fcntl.h>
/* sbr/signals.c */
extern int setup_si... |
/*-------------------------------------------------------------------------
*
* rangetypes_typanalyze.c
* Functions for gathering statistics from range columns
*
* For a range type column, histograms of lower and upper bounds, and
* the fraction of NULL and empty ranges are collected.
*
* Both histograms have... |
/*************************************************************************/
/* */
/* Language Technologies Institute */
/* Carnegie Mellon University */
/* ... |
/*
* Diagnostic utility for ethernet cards using Garrett's drivers.
*
* Copyright (c) 2001-2005 by <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... |
#include <xf86RamDac.h>
RamDacHelperRecPtr IBMramdacProbe(ScrnInfoPtr pScrn, RamDacSupportedInfoRecPtr ramdacs);
void IBMramdacSave(ScrnInfoPtr pScrn, RamDacRecPtr RamDacRec, RamDacRegRecPtr RamDacRegRec);
void IBMramdacRestore(ScrnInfoPtr pScrn, RamDacRecPtr RamDacRec, RamDacRegRecPtr RamDacRegRec);
void IBMramdac52... |
/*
*
* Copyright (c) 2007-2012,
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <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 condition... |
/* Capstone Disassembler Engine */
/* By <NAME> <<EMAIL>>, 2013> */
#include <stdio.h>
#include <stdlib.h>
#include "../inttypes.h"
#include <capstone.h>
static csh handle;
struct platform {
cs_arch arch;
cs_mode mode;
unsigned char *code;
size_t size;
char *comment;
};
static void print_string_hex(char *comm... |
/*
* This file is part of the MicroPython project, http://micropython.org/
* The MIT License (MIT)
* Copyright (c) 2022 Arduino SA
*/
#define MICROPY_HW_BOARD_NAME "PORTENTA"
#define MICROPY_HW_MCU_NAME "STM32H747"
#define MICROPY_PY_SYS_PLATFORM "Portenta"
#define MICROPY_HW_FLASH_FS_LABEL "po... |
/**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/blas_l2/test_chemv_mgpu.c
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is prov... |
/* otherOrgs.c - Handle other species homolog section. */
#include "common.h"
#include "hash.h"
#include "linefile.h"
#include "dystring.h"
#include "hui.h"
#include "web.h"
#include "hdb.h"
#include "axt.h"
#include "hgGene.h"
struct otherOrg
/* Links involving another organism. */
{
struct otherOrg *next; ... |
/****************************************************************************
* vmon_monitor.c
****************************************************************************/
#include "vmon_monitor.h"
#include "vmon_monitor_services.h"
#include "vmon_msgs.h"
#include "vmon_ep0_msgs.h"
#include <string.h>
#include <stda... |
/*
* (C) Copyright 2012 <NAME> <<EMAIL>>
* (C) Copyright 2012 Renesas Solutions Corp.
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm/io.h>
#include <asm/arch/sys_proto.h>
#include <asm/gpio.h>
#include <netdev.h>
#include <i2c.h>
DECLARE_GLOBAL_DATA_PTR;
#define CS0BCR_D (0x06C00400)... |
/*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "config_parse.h"
#include <ctype.h>
const char *git_config_escapes = "ntb\"\\";
const char *g... |
#include <stdio.h>
#include <string.h>
#include "typedef.h"
#include "api.h"
#include "gf2m.h"
#include "utils.h"
/******************************************
*
* Operations in GF(2^m)
*
*******************************************/
const u4 MODULO_GF2_M[4] = {0x00000201, 0x00000000, 0x000... |
/* Prints string chars to the console using Interrupt 0x10. */
void printString(char *chars);
/* Reads a line from the console using Interrupt 0x16. */
void readString(char *line);
/* Advances the cursor to the next line on the console. */
void printNewLine();
/* Reads a sector from disk using Interrupt 0x13. */
... |
/*
* da.c
*
* Direct-Access mode for host selector software.
*
* Written & released by <NAME> <<EMAIL>>
*
* This is free and unencumbered software released into the public domain.
* See the file COPYING for more details, or visit <http://unlicense.org>.
*/
#include "../fatfs/diskio.h"
static struct da_sta... |
/*
* 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... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (C) <NAME> <<EMAIL>>
*/
#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc.h>
#include <drm/drm_fb_cma_helper.h>
#include <drm/drm_gem_cma_helper.h>
#include <drm/drm_gem_framebuffer_helper.h>
#include <drm/drm_plane_helpe... |
/**
* \file
*
* \brief SAM I2C Slave Bootloader
*
* Copyright (C) 2013-2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*... |
/******************************************************************************************
*
* PCI-6602 RAW Double-buffered Counter Driver for Matlab
*
* File: msdl.c Multi Spike Detector - Lite (no artificial ingredients)
*
*
* Library: nidex32.lib and nidaq32.lib
*
* MSD Usage:
* HALT/RESET: msld(0... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... |
/*
Copyright (c) 2021, <NAME>
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
*/
#define DEBUG_OPTS 0
#define dlevel 4
#define HAVE_CONV 1
#include <string.h>
#include <stdlib.h>
#include "opts.h"
#include "utils.h"
... |
/* A ruby binding to the ebb web server
* Copyright (c) 2008 <NAME>. This software is released under the MIT
* License. See README file for details.
*/
#include <ruby.h>
#include <rubyio.h>
#include <rubysig.h>
#include <assert.h>
#include <fcntl.h>
#define EV_STANDALONE 1
#include <ev.c>
#include "ebb.h"
/* Vari... |
/* vim: noet ts=4 sw=4
*/
#include <stdlib.h>
#include <string.h>
#include "simple_sparsehash.h"
#define FULL_ELEM_SIZE (arr->elem_size + sizeof(size_t))
#define MAX_ARR_SIZE ((arr->maximum - 1)/GROUP_SIZE + 1)
#define QUADRATIC_PROBE(maximum) (key_hash + num_probes * num_probes) & (maximum - 1)
/* One of the simples... |
/*-
* Copyright (c) 1994 <NAME>.
* Copyright (c) 1994 <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
* no... |
/* FUNCTION list --- --- --- --- --- --- ---
*/
//~ RaDIaT1oN (2002-04-29):
//~ cast for strtok
/* BASE headers --- --- --- --- --- --- --- */
#include "../agi.h"
/* LIBRARY headers --- --- --- --- --- --- --- */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
/* OTHER headers --- --- --- --- --- --- --... |
/*
* (c) Copyright 2015 Hewlett Packard Enterprise Development LP
*
* 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 requir... |
/*************************************************************************
Atari Tunnel Hunt hardware
*************************************************************************/
#include "driver.h"
extern UINT8 tunhunt_control;
extern UINT8 *tunhunt_ram;
/*********************************************... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "input.h"
static keyScan keyTab[] = {
{'1',4,1},{'2',4,2},{'3',4,4},{'4',4,8},{'5',4,16},{'6',3,16},{'7',3,8},{'8',3,4},{'9',3,2},{'0',3,1},
{'q',5,1},{'w',5,2},{'e',5,4},{'r',5,8},{'t',5,16},{'y',2,16},{'u',2,8},{'i',2,4},{'o',2,2},{'p',2,1},
{'a'... |
/* ====================================================================
* Copyright (c) 1994-2000 Carnegie Mellon University. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.