text stringlengths 7.55k 41.9k |
|---|
// Tree.h ... implementation of binary search tree ADT
// Written by <NAME>, March 2013
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include "Tree.h"
// Representation of Trees and Nodes
typedef struct Node *Link;
typedef struct Node {
Item value;
Link left, right;
Tree within;... |
/*!
**************************************************************************************
* \file
* slice.c
* \brief
* generate the slice header, setup the bit buffer for slices,
* and generates the slice NALU(s)
* \author
* Main contributors (see contributors.h for copyright, address a... |
/*******************************************************************************
* Copyright (C) Marvell International Ltd. and its affiliates
*
* This software file (the "File") is owned and distributed by Marvell
* International Ltd. and/or its affiliates ("Marvell") under the following
* alternative licensing t... |
/*
* Copyright © 2001 <NAME>
*
* Partly based on code that is Copyright © The XFree86 Project Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and tha... |
#define MAXLENG 10000
#define MAXSIZE 10001
#define DEMO 1
const char WELCOME_MESSAGE[] = "****************************************\n"
"** Welcome to the information server. **\n"
"****************************************\n";
#define SERV_TCP_PORT 7000
#define SHMKEY ((key_t) 7890) /*base value for shmem key*/... |
/*
* Copyright 1999 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980, 1986, 1990 The Regents of the University of California.
* All rights reserved.
*
* Redi... |
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <adxdma.h>
#define TRUE 1
#define FALSE 0
extern int create_dpu_iword(int relu,int conv3x3,int use_maxpool,int stride2, int feature_image_width, int number_of_features, int mp_feature_image_width, int mp_numb... |
// GPSReader: legge un file GPX e ne estrae alcune metriche
// MIT License - <EMAIL>
//
// - la distanza totale percorsa
// - il tempo impiegato
// - il dislivello in salita e discesa accumulato
// - la velocità media
// - le quote altimetriche massime e minime raggiunte
//
// Punti chiave dello sviluppo:
//
// - lettu... |
/*
* FCP adapter trace utility
*
* Central message collection tool
*
* Copyright IBM Corp. 2008, 2017
*
* s390-tools is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <... |
/*
* DiskSim Storage Subsystem Simulation Environment (Version 4.0)
* Revision Authors: <NAME>, <NAME>
* Contributors: <NAME>, <NAME>, <NAME>
*
* Copyright (c) of Carnegie Mellon University, 2001-2008.
*
* This software is being provided by the copyright holders under the
* following license. By obtaining, usin... |
// Inferno utils/5l/noop.c
// http://code.google.com/p/inferno-os/source/browse/utils/5l/noop.c
//
// Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved.
// Portions Copyright © 1995-1997 <NAME> (<EMAIL>)
// Portions Copyright © 1997-1999 Vita Nuova Limited
// Portions Copyright © 2000-2007 Vita Nuova ... |
#include <math.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <errno.h>
#define __USE_XOPEN_EXTENDED
#include <string.h>
#include "interpreter.h"
#include "lookup3.h"
#include "hash.h"
#include "aggregators.h"
#include "json.h"
#define MAX_INFIELDS_PER_AGGREGATOR 2
#define MAX_CLUMPS_INFINITE ... |
#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define NUM_WHEELS 6
#define MIN_PROBLEMS_PER_SCENARIO 5
#define PROBLEM_RETRY_ATTEMPTS 3
#define MIN_VECTOR_DISTANCE 1
#define FAILURE_PROBABILITY 20
#define BUFF_H 4
#define BUFF_W 256
typedef enum wheel_state {
W... |
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD
//
// 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 a... |
/*
Copyright (C) 2014 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 files (the "Software"), to deal
in the Software without restriction, including without limitation the righ... |
#include "ncer.h"
#include "nclr.h"
#include "ncgr.h"
LPCWSTR cellFormatNames[] = { L"Invalid", L"NCER", L"Hudson", NULL };
void ncerInit(NCER *ncer, int format) {
ncer->header.size = sizeof(NCER);
fileInitCommon((OBJECT_HEADER *) ncer, FILE_TYPE_CELL, format);
ncer->header.dispose = ncerFree;
}
int n... |
/****************************************************************************/
/* */
/* File instructions.c. This file defines the operand types table and */
/* the instruction information table. */
/... |
/*******************************************************************************
OTP Memory controller (OTPC) PLIB
Company
Microchip Technology Inc.
File Name
plib_otpc.c
Summary
Source for OTPC peripheral library interface Implementation.
Description
This file implements the interface to ... |
/* i915_suspend.c -- i830,i845,i855,i865,i915 driver -*- linux-c -*-
*/
/*
*
* Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
* 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... |
/*
* ifstat.c handy utility to read net interface statistics
*
* 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.... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2011-2012 Los Alamos National Security, LLC. All rights
* reserved.
* 2014 Mellanox Technologies, Inc.
* All rights reserved.
* $COPYRIGHT$
*
* Additional copyright... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
#include "hsi_index.h"
// Function List
// -------------
//
// + IsLexLessThan
// + LexSort
//
// + GetIndexFname
// + GetMD5
// + IndexAlreadyExists
// + GetFileSize
// + ResizeFMSeqs
// + ResizeBenchmarks
// + Determin... |
/*
rstats
Copyright (C) 2006-2009 <NAME>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed ... |
/*
** Copyright Notice and Disclaimer
** -------------------------------
** (c) Copyright 2013.
** SAP AG or an SAP affiliate company. All rights reserved.
** Unpublished rights reserved under U.S. copyright laws.
**
** SAP grants Licensee a non-exclusive license to use, reproduce,
** modify, a... |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or its l... |
/*
* lib/hpack.c
*
* Copyright (C) 2014 <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:
* version 2.1 of the License.
*
* This library is distributed in ... |
/*
* $Id: linkhash.c,v 1.4 2006/01/26 02:16:28 mclark Exp $
*
* Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
* <NAME> <<EMAIL>>
* Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See ... |
// 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, Version 2.0 (the
// "License"); you may... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "data.h"
#include "dataHamming.h"
#include "dataEuclidean.h"
#include "dataDistanceMatrix.h"
/*void Print(value* v) {
if (v == NULL || v->name == NULL) printf("NULL");
printf("%s", v->name);
}
*/
struct dataAct_t {
value* data;
int dataSize;
... |
/*
* Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com
*
* 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... |
/*
*
* ===================================
* HARP | Host ATM Research Platform
* ===================================
*
*
* This Host ATM Research Platform ("HARP") file (the "Software") is
* made available by Network Computing Services, Inc. ("NetworkCS")
* "AS IS". NetworkCS does not provide maintenance, i... |
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include "cpgplot.h"
#ifndef EXIT_FAILURE
#define EXIT_FAILURE 1
#endif
#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS 0
#endif
#define MAX_SWEEPS 1100
#define MEASUREMENT_SWEEP_SEPARATION 10
#define LATTICE_SIDE_X 64
#define LATTICE_SIDE_Y 64
#d... |
/*
Copyright (c) 2012, Broadcom Europe Ltd
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 conditions and t... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
/*
This C program does a subset of m2icat.pl, the data-objects.
m2icat.pl can take a long time to generate the SQL for ingesting
data-objects (5 days for 6 million) so instead you can use this.
Initial testing indicates that it is many th... |
/*
$Id$
Copyright 1989-2014 MINES ParisTech
This file is part of PIPS.
PIPS is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
PIPS is distr... |
/************************************************************
*File : joylink_ota.c
*Auth : jd
*Date : 2018/07/25
*Mail :
***********************************************************/
#include "joylink.h"
#include "joylink_extern.h"
#include "joylink_extern_user.h"
#include "joylink_extern_ota.h"
#include "joyli... |
/**************************************************************************
*
* Copyright 2008 VMware, Inc.
* Copyright 2014 Broadcom
* Copyright 2018 <NAME>
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation fi... |
/*
* Copyright (C) 2008-2009 QUALCOMM Incorporated.
*/
#include "mt9d112.h"
struct register_address_value_pair
preview_snapshot_mode_reg_settings_array[] = {
{0x338C, 0x2703},
{0x3390, 800}, /* Output Width (P) = 640 */
{0x338C, 0x2705},
{0x3390, 600}, /* Output Height (P) = 480 */
{0x338C, 0x2707},
{0x... |
/*
* 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... |
/*
filp - Embeddable, Reverse Polish Notation Programming Language
<NAME> <<EMAIL>>
This software is released into the public domain.
NO WARRANTY. See file LICENSE for details.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "filp.h"
/******************... |
/*
* a1007_crypto.c
*
* a1007 crypto interface
*
* Copyright (c) 2012-2019 Huawei Technologies Co., Ltd.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
... |
/*****************************************************************************
* simu3.c
*
* Creates simulated speckle data for a IDIMxIDIM array.
* From <NAME> and Elliott (kiloho::jeff or kiloho::elliott)
* JLP95: add the possibility of no clipping
* (i.e. "continous frame", no Poisson clipping to simulate photon... |
#include <stdint.h>
#include <stddef.h>
typedef char bool;
typedef uintptr_t usize;
typedef struct Data Data;
typedef struct ArrayBuffer ArrayBuffer;
typedef struct ArrayBufferAllocator ArrayBufferAllocator;
typedef struct CreateParams CreateParams;
typedef struct Isolate Isolate;
typedef struct StackTrace StackTrace;... |
#include "sg382.h"
const int RET_BUF_SIZE = 2048;
struct termios old_termios;
// //______________________________________________________________________________
// int SG382Init(void) {
// const char *device="/dev/ttyUSB1";
//
// int rs232_handle;
// rs232_handle = open(device, O_RDWR | O_NOCTTY | O_NDELAY |... |
#include "mpeg4-hevc.h"
#include "mpeg4-avc.h"
#include <string.h>
#include <assert.h>
#define H265_NAL_VPS 32
#define H265_NAL_SPS 33
#define H265_NAL_PPS 34
#define H265_NAL_AUD 35
#define H265_NAL_SEI_PREFIX 39
#define H265_NAL_SEI_SUFFIX 40
#define MAX(x, y) ((x) > (y) ? (x) : (y))
#define BIT(ptr, off) (((p... |
/* This is part of the netCDF package.
Copyright 2005 University Corporation for Atmospheric Research/Unidata
See COPYRIGHT file for conditions of use.
Test that HDF5 and NetCDF-4 can read and write the same file.
$Id: tst_interops.c,v 1.22 2010/02/05 14:29:20 ed Exp $
*/
#include <config.h>
#include <nc_... |
/*
* Relay calls helper routines
*
* Copyright 1993 <NAME>
* Copyright 1995 <NAME>
* Copyright 1995, 1996, 1997 <NAME>
* Copyright 1997 <NAME>
* Copyright 1999 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as pu... |
/*
Colour Rendering of Spectra
by <NAME>
http://www.fourmilab.ch/
Last updated: March 9, 2003
This program is in the public domain.
For complete information about the techniques employed in
this program, see the World-Wide ... |
#include "rei.h"
#include <string.h> // For strlen
#include <stdio.h> // For printf
#ifdef _WIN32
#pragma comment(lib, "../glfw/lib/glfw3.lib")
#pragma comment(lib, "opengl32.lib")
#endif
// Context creation
typedef struct ReiTypeContext {
void (*glGenProgramsARB)(int programsCount, ReiHandleProgram * outPrograms... |
/*
* dumpjffs2.c
*
* Copyright (C) 2003 <NAME> (<EMAIL>)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Overview:
* This utility dumps the contents of a binary JFF... |
/* pscmGfx - routines for making postScript output seem a
* lot like 256 color bitmap output.
*
* This file is copyright 2002 <NAME>, but license is hereby
* granted for all use - public, private or commercial. */
#include <math.h>
#ifdef MACHTYPE_sparc
#include <ieeefp.h>
int isinf(double x) { return !finite(x) ... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee a... |
#include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <allegro5/allegro.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_image.h>
#include <allegro5/allegro_native_dialog.h>
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_ttf.h>
... |
/******************************************************************************
** Copyright (c) 2017-2018, Intel Corporation **
** All rights reserved. **
** **
... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2013 <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,... |
/*
* File : eth_driver.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date ... |
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id:$
//
// Copyright (C) 1993-1996 by id Software, Inc.
//
// This source is available for distribution and/or modification
// only under the terms of the DOOM Source Code License as
// publi... |
/*** includes ***/
#define _DEFAULT_SOURCE
#define _BSD_SOURCE
#define _GNU_SOURCE
#include<stdio.h>
#include<string.h>
#include<ctype.h>
#include<unistd.h>
#include<termios.h>
#include<stdlib.h>
#include<errno.h>
#include<time.h>
#include<fcntl.h>
#include<stdarg.h>
#include<sys/ioctl.h>
#include<sys/types.h>
/*** ... |
/* packet-gryphon.h
* Definitions for Gryphon packet disassembly structures and routines
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the ... |
/* blat - Standalone BLAT fast sequence search command line tool. */
/* Copyright 2001-2004 <NAME>. All rights reserved. */
#include "common.h"
#include "memalloc.h"
#include "linefile.h"
#include "bits.h"
#include "hash.h"
#include "dnautil.h"
#include "dnaseq.h"
#include "fa.h"
#include "nib.h"
#include "twoBit.h"
#... |
/*////////////////////////////////////////////////////////////////////////
Copyright (c) 1996-2000 <NAME> and ETL,AIST,MITI
Copyright (c) 2001-2006 National Institute of Advanced Industrial Science and Technology (AIST)
AIST-Product-ID: 2000-ETL-198715-01, H14PRO-049, H15PRO-165, H18PRO-443
Permission to use this mate... |
/*******************************************************************************
** File: sample_app.c
**
** Purpose:
** This file contains the source code for the Sample App.
**
*******************************************************************************/
/*
** Include Files:
*/
#include <string.h>
#in... |
#define _GNU_SOURCE
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <linux/loop.h>
#ifnde... |
/**
* Status Line
*
* Emit system status lines once per second that typically include the battery
* status, day of the week, the day of the month and the time. Supplementary
* clocks from different time zones may also be displayed. Refer to the "usage"
* function for more information.
*
* The moon phase logic w... |
/*************************************************************************
* FILE: qvalue.c
* AUTHOR: <NAME>
* CREATE DATE: 13 November 2007
* PROJECT: MEME
* COPYRIGHT: 2007, UW
* DESCRIPTION: q value calculation, a la Benjamini Hochberg
*************************************************************************/... |
// Tencent is pleased to support the open source community by making Mars available.
// Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
// Licensed under the MIT License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License... |
#include "graphColoring.h"
//Variable global que posee el numero total de vertices del grafo.
u32 SIZE;
//Variable global dedicada a mantener las posiciones validas en la hash
u32 *hash_valid_position;
struct DataItem **hashArray;
//Estructura de un vertice
struct _vertex_t {
u32 key;
u32 color;
u32 neighb... |
/*-----------------------------------------------------------------------*/
/* Program: STREAM */
/* Revision: $Id: stream_mpi.c,v 1.7 2014/10/22 00:13:21 mccalpin Exp mccalpin $ */
/* Original code developed by <NAME> */
/* Programmers: <N... |
/*
* Copyright (c) 2017 <NAME>
* Distributed under the MIT software license, see the accompanying
* file COPYING or http://www.opensource.org/licenses/mit-license.php.
*/
#include "debugger.h"
#include "psys/psys_constants.h"
#include "psys/psys_debug.h"
#include "psys/psys_helpers.h"
#include "psys/psys_registers... |
/* Dia -- an diagram creation/manipulation program
* Copyright (C) 1998 <NAME>
*
* Matrix code from GIMP:app/transform_tool.c
* Copyright (C) 1995 <NAME> and <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* t... |
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
* Purpose: The CINT demonstrates a Controlling bridge configuration as part of a Port Extender (802.BR) application.
... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<time.h>
#include "cudd.h"
#include "dddmp.h"
#include "system_types.h"
#include "set_calcs.h"
#include "DynArray.h"
int max(int a, int b)
{
if (a < b)
return b;
else
return a;
}
int* toBitArray(int num, int len)
{
int bits = ma... |
#include <assert.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <atl.h>
#include <evpath.h>
#include "sst_data.h"
#include "adios2/toolkit/profiling/taustubs/taustubs.h"
#include "dp_interface.h"
#include "nvswrapper.h"
/*
* Some conventions:
* `RS` indicates a rea... |
/* radare - LGPL - Copyright 2007-2018 - pancake */
#include "../blob/version.c"
#include <r_print.h>
#include <r_util.h>
#define STDIN_BUFFER_SIZE 354096
#define R_STATIC_ASSERT(x)\
switch (0) {\
case 0:\
case (x):;\
}
static RNum *num;
static int help();
static ut64 flags = 0;
static int use_stdin();
static in... |
/*
* Copyright (c) 2015, Freescale Semiconductor, Inc.
* Copyright 2016-2017 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/*! \file sensor_fusion.c
\brief The sensor_fusion.c file implements the top level programming interface
*/
#include <stdio.h>
#include "sensor_fusion.h"
#inc... |
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include "betray.h"
#include "relinquish.h" /*little opengl wrapper i use, in the case only to draw lines*/
uint b_test_sound = 0;
void b_test_draw_box(float red, float green, float blue)
{
float array[2 * 3 * 4 * 3] = {
0.1, 0.1, 0.1, -0.1, 0.1, 0.1,
0.1,... |
/**********
Copyright 1992 Regents of the University of California. All rights reserved.
Author: 1987 <NAME>, U. C. Berkeley CAD Group
**********/
/*
* This is the function called each iteration to evaluate the numerical BJTs
* in the circuit and load them into the matrix as appropriate
*/
#include "ngspice/ngspi... |
/*
* Derived from public domain C code by <NAME> and <NAME>
*/
#include "curve25519.h"
#include <string.h>
#include <emmintrin.h>
typedef uint8_t u8;
typedef uint64_t felem;
/* Sum two numbers: output += in */
static void
fsum(felem *output, const felem *in)
{
unsigned i;
for (i = 0; i < 5; ++i) {
... |
/* $NetBSD: sed_saip.c,v 1.10 2002/03/17 19:40:39 atatat Exp $ */
/*-
* Copyright (c) 1999-2001
* <NAME> and PocketBSD Project. 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.... |
/* Reference implementation of MPL Forward, a restricted Forward
* algorithm for calculating the likelihood of a domain "labeling" of
* a target sequence.
*
* MPL = most probable labeling.
*
* All reference implementation code is for testing. It is not used
* in HMMER's main executables. Sparse DP code is the ... |
/**************************************************************************
*
* Copyright 2013 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... |
/*
* Altera 10/100/1000 triple speed ethernet mac driver
*
* Copyright (C) 2008 Altera Corporation.
* Copyright (C) 2010 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software ... |
/**
* FreeRDP: A Remote Desktop Protocol Implementation
* Solaris Keyboard Mapping
*
* Copyright 2009-2012 <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... |
/* MIT License
*
* Copyright (c) 2016-2020 INRIA, CMU and Microsoft Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the r... |
/* ********************************************************************** */
/* ** app_control.c ** */
/* ** Functions for controlling the execution of the debugee. ** */
/* ** ---------------------------------------------------------------- ** */
/* ** Author... |
/* Copyright (c) 1992 <NAME>, IMSOR.
Disclaimer: No guarantees of performance accompany this software,
nor is any responsibility assumed on the part of the authors. All the
software has been tested extensively and every effort has been made to
insure its reliability.
irr2reg - assigns the irregular distri... |
/*
* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the
* disclaimer below) provided that the following conditions are met:
*
* * Redistributions of source ... |
/* $Id: _PDCLIB_int.h 508 2010-12-30 22:43:20Z solar $ */
/* PDCLib internal integer logic <_PDCLIB_int.h>
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
*/
/* --------------------------------------------------------------... |
/*******************************************************************************
** File: cam_app.c
**
** Purpose:
** This file contains the source code for the Cam App.
**
*******************************************************************************/
/*
** Include Files:
*/
#include "network_includes.h... |
/*
Cross platform computer interface library for Little Wire project
http://littlewire.cc
Copyright (C) <2013> <NAME> <<EMAIL>>
Copyright (C) <2013> <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Soft... |
/* IBM_PROLOG_BEGIN_TAG */
/*
* Copyright 2003,2016 IBM International Business Machines Corp.
*
* 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/LIC... |
/*******************************************************************************
* Copyright (c) 2013-2014, <NAME> - CEA (<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:
* * Redistr... |
/* Player metaprites!
* Player metasprites are organized as:
* SprPlayers[player number][player weapon][player direction][animation frame]
* Player weapons are ordered ROLLER CHARGER (see WPN_ROLLER, etc in game.c)
* Player directions need to be ordered DOWN RIGHT UP LEFT (see SPR_DOWN, etc in game.c)
*/
const uns... |
/* facetedTable - routines to help produce a sortable table with facet selection fields.
* This builds on top of things in tablesTables and facetField. */
#include "common.h"
#include "hash.h"
#include "hdb.h"
#include "web.h"
#include "trashDir.h"
#include "hCommon.h"
#include "htmlColor.h"
#include "hgColors.h"
#in... |
#include "common.h"
static int _u[2], _u_d[2], _v[2], _v_d[2], _nodes, _symmetries, _based_nodes, _degree;
static bool check_rotated_edges_overlap_general(const int u0, const int v0, const int u1, const int v1,
const int nodes, const int symmetries)
{
int based_nodes = ... |
/* kmratoa.c (2017-05-18) */
/* Copyright (C) 2012-2018 RIKEN R-CCS */
/** \file kmratoa.c Communication Routines. KMR makes almost all data
exchanges through this. Some exceptions are "kmrmapms.c" and
"kmrfiles.c". It provides operations with size_t data length. */
/* Used MPI routines: Alltoall, Alltoall... |
#include "cas.h"
#include "identities.h"
/*Executes the SIMP_COMMUTATIVE flag*/
bool simplify_commutative(pcas_ast_t *e) {
unsigned i;
bool changed = false;
if(e->type != NODE_OPERATOR)
return false;
if(ast_ChildLength(e) == 1
&& (optype(e) == OP_MULT || optype(e) == OP_ADD)) {
... |
/* Copyright (C) 1988-2010 by <NAME> and the
Institute of Global Environment and Society (IGES).
See file COPYRIGHT for more information. */
/*
* Include ./configure's header file
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include <math.h>
int help=0;
void command_line_h... |
/* $OpenBSD: ioapic.c,v 1.5 2004/08/12 06:11:57 niklas Exp $ */
/* $NetBSD: ioapic.c,v 1.7 2003/07/14 22:32:40 lukem Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by RedBack Networks Inc.
*
* Au... |
#include <stdio.h>
#include <stdlib.h>
#include "ObitAll.h"
#include "ObitOTF.h"
#include "ObitPennArrayUtil.h"
#include "ObitOTFSkyModel.h"
#include "ObitOTFUtil.h"
#include "ObitFArray.h"
#include "ObitFInterpolate.h"
#include "ObitTableOTFTarget.h"
#include "ObitTableOTFIndex.h"
/* Data simulator for GBT Penn Array... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.