text
stringlengths
5.8k
28.2k
//------------------------------------------------------------------- // // TANKS TO: // ---------------------------------------------- // // 01: God the creator of the heavens and the earth in the name of Jesus Christ. // // 02 - <NAME>: www.bellard.org // // ----------------------------------------------...
#include <gba.h> #include "puzzle.h" #include "backgrounds.h" #include "stack.h" #include "prng.h" // ------------------------------------------------------------------------------------------------- // Puzzle board is always 32x32 (1024) pieces, even if the puzzle itself is smaller than that. #define TOTAL_PIECE_CO...
#include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/slab.h> #include <linux/fs.h> #include <linux/errno.h> #include <linux/types.h> #include <linux/fcntl.h> #include <linux/proc_fs.h> #include <linux/string.h> #include <linux/ioport.h> #include <linux/ktime.h> #include <linux/hrt...
/****************************************************************************** Copyright (C) 2013 by <NAME> <<EMAIL>> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2...
/******************************************************************************* NAME: concatm SYNOPSIS: concatm [-c][-m mask][-v ovrlp] [-o <outfile>] nl ns <file1> sl1 ss1 [<file2> sl2 ss2] [ ... ] -c do color concatenation (first image-> red; second -> green...) -m mask value for background pixels...
/* * 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...
/* SPDX-License-Identifier: BSD-2-Clause */ /******************************************************************************* * Copyright 2017-2018, Fraunhofer SIT sponsored by Infineon Technologies AG * All rights reserved. *******************************************************************************/ #ifdef HAVE...
/* GELL 15.26: include file for the module: "read" */ /* translation done: "Wed June 30 93 17:33:58 " */ /* impure LLM3 predefined */ extern Ptr GIdlink, GIllink, GIfcons, GIevalst; extern Ptr GIfsymb; extern Ptr GIfcons; extern Ptr GIbvar; extern Ptr GMvoid; extern Ptr GMundef; extern Pt...
/* * ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer * * Copyright 2010 Analog Devices Inc. * * Licensed under the GPL-2 or later. */ #include <linux/delay.h> #include <linux/device.h> #include <linux/kernel.h> #include <linux/spi/spi.h> #include <linux/slab.h> #include <linux/sysfs.h> #include <linux...
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1996-2003 * Sleepycat Software. All rights reserved. */ #include "db_config.h" #ifndef lint static const char revid[] = "$Id: db_dup.c,v 11.36 2003/06/30 17:19:44 bostic Exp $"; #endif /* not lint */ #ifndef NO_SYSTEM_INCLUDES #includ...
/** ****************************************************************************** * @file main.c * @author Ronak * @version V1.0 * @date 01-December-2013 * @brief Default main function. ****************************************************************************** */ #include <string.h> #includ...
/* * rotate an image 180° in O(log Dx + log Dy) /dev/draw writes, * using an extra buffer same size as the image. * * the basic concept is that you can invert an array by inverting * the top half, inverting the bottom half, and then swapping them. * the code does this slightly backwards to ensure O(log n) runtime...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2011 The Chromium OS Authors. */ #include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> #include <panel.h> #include <part.h> #include <pwm.h> #include <video.h> #include <asm/cache.h> #include <asm/global_data.h> #include <asm/system.h> #inclu...
/* * * Copyright 2015, Google Inc. * 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 condi...
/*************************************************************************/ /* Copyright (c) 2004 */ /* <NAME>, <NAME>, and <NAME> */ /* Copyright 2008, 2009, 2013, 2014 <NAME> */ /* All rights reserved ...
/* * OMAP on-chip MMC/SD host emulation. * * Copyright (C) 2006-2007 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 or * (at your option) version 3 ...
/* * Copyright (c) 2020, Antmicro <www.antmicro.com> * * SPDX-License-Identifier: Apache-2.0 */ #define DT_DRV_COMPAT quicklogic_eos_s3_gpio #include <errno.h> #include <drivers/gpio.h> #include <soc.h> #include <eoss3_hal_gpio.h> #include <eoss3_hal_pads.h> #include <eoss3_hal_pad_config.h> #include "gpio_utils...
/*$ Copyright (c) 2014-2017, Azel 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 the follow...
/* * Copyright (c) 1996, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
/* Dia -- an diagram creation/manipulation program * Copyright (C) 1998 <NAME> * * Objects for drawing KAOS goal diagrams. * This class supports the whole goal specialization hierarchy * Copyright (C) 2002 <NAME> * * Based on SADT box object * Copyright (C) 2000, 2001 <NAME> * * Forked from Flowchart toolbox ...
/* 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...
// # Solver released by written permission from <NAME>, for non-commercial use only /* Produced by CVXGEN, 2018-08-30 09:02:13 -0400. */ /* CVXGEN is Copyright (C) 2006-2017 <NAME>, <EMAIL>. */ /* The code in this file is Copyright (C) 2006-2017 <NAME>. */ /* CVXGEN, or solvers produced by CVXGEN, cannot be used for c...
#include <stdio.h> #include <string.h> #include <arpa/inet.h> // For the htons #include <stdbool.h> #include "endpoint.h" #include "ws_parser.h" #include "ws.h" #include "io.h" // Useful Status code description is defined here static const char STATUS_101[] = "Switching Protocols\r\n"; static const char STATUS_301[] ...
/******************** (C) COPYRIGHT 2011 ************************************** * File Name : sdcardtest2.c * Hackeroos : caw, deh * Date First Issued : 09/21/2011 * Board : STM32F103VxT6_pod_mm (USART1) * Description : Test program for SDCARD driven from SPI2 ********************...
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* * function literals aka closures */ #include <u.h> #include <libc.h> #include "go.h" void closurehdr(Node *ntype) { Node *n, *name, *a; NodeList *l; ...
/* ==================================================================== * * * BSD LICENSE * * Copyright(c) 2016-2020 Intel Corporation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions *...
/* * net/sched/sch_sfq.c Stochastic Fairness Queueing discipline. * * 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 ver...
/******************************************************* * >> Como compilar: * * * * gcc B+_Tree.c -o B+_Tree * * * * >> Como executar: ...
/* * PowerPC64 Segment Translation Support. * * <NAME> and <NAME> {<EMAIL>|<EMAIL> * Copyright (c) 2001 <NAME> * * Copyright (C) 2002 <NAME> <<EMAIL>>, IBM * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as pu...
// Copyright 2013-2019 <NAME> // SPDX-License-Identifier: BSD-2-Clause #include "decode_time.h" #include "calendar.h" #include <stdbool.h> #include <string.h> #include <time.h> static int dst_count, minute_count; static struct DT_result dt_res; static bool getpar(const int buffer[], unsigned start, unsigned stop, ...
#include "tree_list.h" #include "union.h" #include <time.h> #define filename_buffer "../testDataOutput/buffer.txt" int* init_array_with_zeroes(int count); void get_chars_frequency(char filename[], int* freq_arr, long* length); void add_to_list (NODE** init, unsigned int freq, unsigned char symbol, NODE* branch); void...
#define internal_error() x_internal_error(__FILE__,__LINE__,__FUNCTION__) #define new(T) (T *)malloc(sizeof(T)) typedef enum {false, true} bool; typedef enum {TO, DOWNTO} For_Mode; typedef struct Identifier_List { char *id; struct Identifier_List *next; } Identifier_List; typedef enum { AND_TOKEN, ARRAY_TOKE...
/* 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 not...
/* $XConsortium: domain.c,v 1.5 94/04/17 20:34:11 rws Exp $ */ /**** module domain.c ****/ /****************************************************************************** Copyright (c) 1993, 1994 X Consortium Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated ...
/* $OpenBSD: cast.c,v 1.4 2012/04/25 04:12:27 matthew Exp $ */ /* * CAST-128 in C * Written by <NAME> <<EMAIL>> * 100% Public Domain - no warranty * Released 1997.10.11 */ #include <sys/types.h> #include <sys/systm.h> #include <crypto/cast.h> #include <crypto/castsb.h> /* Macros to access 8-bit bytes...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #include <math.h> #include <limits.h> #include "save_gals_binary.h" #include "../core_mymalloc.h" #include "../core_utils.h" #include "../model_misc.h" // Local Proto-Types // int32_t prepare_galaxy_for_output(struct GA...
/* Teem: Tools to process and visualize scientific data and images Copyright (C) 2005 <NAME> Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as...
/****************************************************************** ***** ***** ***** Name: cs8900.c ***** ***** Ver.: 1.0 ***** ***** Date: 07/05/2001 ...
/* * Copyright (C) 2003-2004 by <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of c...
/* * base.c contributed by <NAME> * Copyright (c) 2019-2020 K.Kosako */ #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <time.h> #include "oniguruma.h" #define PARSE_DEPTH_LIMIT 8 #define CALL_MAX_NES...
/* Copyright 2015 Google Inc. 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. 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 wri...
// Provides an interface with the CUDA driver API. #include <cuda.h> #include <cupti.h> #include <curand.h> #include <stdint.h> #include <stdio.h> #define ERROR_BUFF_SIZE 500 // Checks the result of a CUDA dirver API call and exits in case of error. int check_cuda(CUresult err, const char* file, const int line) { ...
/* =========================================================================== Copyright (C) 1999-2005 Id Software, Inc. This file is part of Quake III Arena source code. Quake III Arena source code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publish...
/* * Copyright (c) 2014 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
typedef struct PCMconftab PCMconftab; typedef struct PCMmap PCMmap; typedef struct PCMslot PCMslot; /* * physical device addresses are mapped to the same virtual ones, * allowing the same addresses to be used with or without mmu. */ #define PCMCIAcard(n) (PHYSPCMCIA0+((n)*PCMCIASIZE)) #define PCMCIAIO(n) (PCMCIAca...
/* * * This source file is part of ELINA (ETH LIbrary for Numerical Analysis). * ELINA is Copyright © 2019 Department of Computer Science, ETH Zurich * This software is distributed under GNU Lesser General Public License Version 3.0. * For more information, see the ELINA project website at: * http://elina.et...
// // oscsend.c // Function for sending OSC messages from Mathematica. // // ============================================================================== // This file is part of the 3D3A Mathematica Toolbox. // // Contributing author(s), listed alphabetically by last name: // <NAME> <<EMAIL>> // <NAME> <<EMAIL>> /...
/* ckmeta.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static integer c__1 = 1; static integer c__0 = 0; static integer c__2 = 2; /* $Procedure CKMETA ( CK ID to associat...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c)...
/* * This file is part of the Sofia-SIP package * * Copyright (C) 2005 Nokia Corporation. * * Contact: <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 v...
/* p0f - p0f.fp file parser ------------------------ Every project has this one really ugly C file. This is ours. Copyright (C) 2012 by <NAME> <<EMAIL>> Distributed under the terms and conditions of GNU LGPL. */ #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <unistd.h> #includ...
/* $XConsortium: pexSc.c,v 5.9 94/04/17 20:36:13 hersh Exp $ */ /* $XFree86: xc/programs/Xserver/PEX5/dipex/objects/pexSc.c,v 3.0 1995/07/07 15:36:14 dawes Exp $ */ /*********************************************************** Copyright (c) 1989, 1990, 1991 X Consortium Permission is hereby granted, free of charge, ...
/* * Copyright (c) <2008 - 2020>, University of Washington, Simon Fraser University, Bilkent 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: * * Redistributions of source code mu...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 2009 <NAME>, <NAME>. * Copyright (c) 2011 <NAME>, <NAME> * Copyright (c) 2012,2013, by the GROMACS development team, led by * <NAME>, <NAME>, <NAME>, and including many * others, as listed in the AUTHORS file in the top-level s...
/* cdwTagStorm - create a tag storm out of database contents. */ #include "common.h" #include "hash.h" #include "dystring.h" #include "cheapcgi.h" #include "jksql.h" #include "tagStorm.h" #include "intValTree.h" #include "cdw.h" #include "cdwLib.h" static void addPairedEndTags(struct tagStorm *tagStorm, struct tagSta...
/* Copyright 2016 <NAME> 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 ...
/* * Copyright (c) 2019 <NAME> * https://github.com/iotaledger/entangled * * MAM is based on an original implementation & specification by apmi.bsu.by [ITSec Lab] * * Refer to the LICENSE file for licensing information */ #include <memory.h> #include <stdlib.h> #include "mam/mss/mss.h" #include "mam/pb3/pb3.h"...
/* ----------------------------------------------------------------------------- * Programmer(s): <NAME> @ LLNL * <NAME> @ SMU * ----------------------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright (c) 2002-2021, Lawrence Livermore National Security *...
/* * Remote Call-Holding Alert Transmitter Module * Copyright (c) 2019 <NAME> * * Processor: PIC16F18855 * * The following macros must be defined on the XC8 command line or in project properties: * _XTAL_FREQ - CPU speed in Hz (Fosc) - must be 4000000 for this project * RF_CHANNEL - the channel to use for the...
/* * Copyright (C) 2013 Xilinx, Inc. * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <asm/io.h> #include <asm/arch/hardware.h> #include <asm/arch/sys_proto.h> #include <u-boot/md5.h> #include <u-boot/rsa.h> #include <u-boot/rsa-mod-exp.h> #include <u-boot/sha256.h> #include <spi_flash.h> ...
/* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be use...
/** * @file * The following is a full featured parser for configuration files using * basic format "key = value". * * Well, it's big, but it can properly manage spaces, empty lines, * single and double-quoted strings, hex numbers, comments, semicolons * and more. It also happens to be much more robust than the o...
/* * 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...
/******************** (C) COPYRIGHT 2013 ************************************** * File Name : pod6.c * Hackeroo : deh * Date First Issued : 02/11/2013 * Board : STM32F103VxT6_pod_mm * Description : Use pod board to prototype a sensor logger w shaft encoder ***********************...
/* * Broadband Forum IEEE 1905.1/1a stack * * Copyright (c) 2017, Broadband Forum * * 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 *...
#include <OpenGL.h> #include "Mob.h" #include "Humanoid.h" #include "Pig.h" #include "Sheep.h" #include "AI/BasicAI.h" #include "../Player/Player.h" ModelManager MobModelCache = NULL; Mob MobCreate(Level level) { Entity entity = EntityCreate(level); entity->Type = EntityTypeMob; entity->FootSize = 0.5; EntitySetP...
/* ==================================================================== * Copyright (c) 1999-2004 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. Redi...
/** * Example how the board-counter can be use to derive * information about the number of lost samples, and * the thus the related time-period due to buffer-overrun * * This example should be used with any board that * offers analogue input channels (Trion dACC or Trion-dSTG) * This Board shall be installed as...
/* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee and The University * of Tennessee Resea...
/*- * Copyright (c) 2011-2015 <NAME>. * 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: * 1. Redistributions of source code must retain the above copyright * ...
#include "TYS_MPU6050.h" /* USER CODE BEGIN Includes */ #include "inv_mpu.h" #include "inv_mpu_dmp_motion_driver.h" #include <math.h> #define ADDRESS_W 0xD0 //写地址 0x68 #define ADDRESS_R 0xD1 //读地址 0x69 #define MPU_PWR_MGMT1_REG 0X6B //电源管理寄存器1 #define MPU_GYRO_CFG_REG 0X1B //陀螺仪配置寄存器 ...
/*************************************************************************/ /* Copyright (c) 2014 <NAME> */ /* All rights reserved */ /* */ /* Use of the link gramm...
#include "../stdafx.h" #include "world.h" #include "attributes.h" #include "outline.h" #include "rendering.h" #include "util.h" static const float hexVertices[] = { 0.0f, 0.0f, 0.5f * -0.8660254f, 0.5f * 0.5f, 0.5f * -0.8660254f, 0.5f * -0.5f, 0.5f * 0.0000000f, 0.5f * -1.0f, 0.5f ...
/* SHA-1 in C By <NAME> <<EMAIL>> 100% Public Domain Test Vectors (from FIPS PUB 180-1) "abc" A9993E36 4706816A BA3E2571 7850C26C 9CD0D89D "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" 84983E44 1C3BD26E BAAE4AA1 F95129E5 E54670F1 A million repetitions of "a" 34AA973C D4C4DAA4 F61EEB2B DBAD2731 ...
#include <stdint.h> #include <string.h> #include <math.h> #include "constants.h" #include "iset.h" #include "gen_board.h" #include "random.h" #if 0 #include <Python.h> #define PRINT(...) PySys_WriteStdout(__VA_ARGS__) //#define PRINT(...) printf(__VA_ARGS__) #else #define PRINT(...) do {} while (0); #e...
/* Copyright: Copyright (c) 2002-2004 SFNT Finland Oy. All rights reserved. Calendar time retrieval and manipulation. */ #include "sshincludes.h" #include "sshgetput.h" #define SSH_DEBUG_MODULE "SshCalendar" /* Returns seconds that local timezone is east from the UTC meridian and boolean whic...
/* * SDL display driver * * Copyright (c) 2017 <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, mo...
/* ** Purpose: Implement the 42 FSW Interface application ** ** Notes: ** 1. This is part of prototype effort to port a 42 simulator FSW controller ** component into a cFS-based application ** ** References: ** 1. OpenSat Object-based Application Developer's Guide. ** 2. cFS Application Developer's Guide. *...
/** * main.c * * Contains implementation of os_ctrl. * * Spawns an amiibo_scan.py process and main_interface process upon starting. * * Continuously monitors a pipe written to by the amiibo_scan process to allow * for switching between game/UI processes. * * Terminates execution and outputs an error messag...
/** * \file warnings.c * * \brief Check topology and messages on PennMUSH objects and give warnings * * */ #include "config.h" #include <stdio.h> #include <string.h> #include <stdarg.h> #include "copyrite.h" #include "conf.h" #include "externs.h" #include "mushdb.h" #include "lock.h" #include "flags.h" #includ...
/* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee and The University * of Tennessee Resea...
#include <stdio.h> #include <string.h> #include <syslog.h> #include <math.h> #include <stdlib.h> #include <stdint.h> #include "TI_sensortag.h" #include "ble.h" #include "gatt_att.h" // magnetometer-variables are in micro teslas (notice: scale for magnetic field of the earth: ~20- ~65 uT) float max_magnetics_field = 0...
/* * Game logic implementation * * Mostly decoupled from the GameTank platform. * gametank.h is imported for the input button masks */ #include "tetris.h" #include "gametank.h" char tmpPieceBuf[PIECEBUF_SIZE]; const unsigned char rotation_matrix[PIECEBUF_SIZE] = { 20,15,10, 5, 0, 21,16,11, 6, 1, 22,...
/** * \file flt_latex.c * \author <NAME>, <<EMAIL>> * * This plugin handles lot of standard directives */ /* {{{ Initial comments */ /* * $LastChangedDate$ * $LastChangedRevision$ * $LastChangedBy$ * */ /* }}} */ /* {{{ Includes */ #include "cfconfig.h" #include "defines.h" #include <stdio.h> #include <std...
// match XML regular expression // 10 MAR 2011 // compile as standalone application // #define STANDALONE // author: <NAME>, <EMAIL> /* This work, including the source code, documentation and related data, is placed into the public domain. The orginal author is <NAME>. THIS SOFTWARE IS PROVIDED AS...
#include "DGraphX.h" #include "Interp2D.h" #define m(i,j) m[4*i+j] #define N_ITER 100 #define PI 3.14159265358 #define min(a,b) (a) < (b) ? (a) : (b) static int permut[5] = {5, 2, 4, 1, 3}; static int tmp[5]; static double coeff; double shoot(int mode, double par, int n, Point *pt); double func(double x, double y) ...
/* Random.c quasi- and pseudo-random-number generation last modified 8 Jun 10 th */ /* PART 1: Sobol quasi-random-number generator adapted from ACM TOMS algorithm 659 */ static void SobolGet(This *t, real *x) { number seq = t->rng.sobol.seq++; count zerobit = 0, dim; while( seq & 1 ) { ++zerobit; ...
/* SPDX-License-Identifier: BSD-3-Clause * * Copyright 2020 The Chromium OS 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 <zephyr.h> #include <device.h> #include <devicetree.h> #include <drivers/adc.h> #include <driv...
/******************************************************************************* * // Begin statement * * * * Author: Dr. <NAME> * * Em...
/* Copyright 1995, 1996 by Abacus Research and * Development, Inc. All rights reserved. */ #if !defined (OMIT_RCSID_STRINGS) char ROMlib_rcsid_error[] = "$Id: error.c 76 2005-01-04 23:45:03Z ctm $"; #endif #include "rsys/common.h" #include <stdarg.h> #include "SysErr.h" #include "SegmentLdr.h" #include "CQui...
//////////////////////////////////////////////////////////////////// // Initialize Scenes // // initializing variables for two or more scenes int i; static int sceneNumber = 0; static int resetScene = TRUE; float nullVar; float buffer_TRANS[TRSZ]; float normalize_TRANS[TRSZ]={ 0.000000, 0.000000, 0.0...
/* $XConsortium: pasteup.c,v 1.9 94/04/17 20:39:27 rws Exp $ */ /**** module pasteup.c ****/ /****************************************************************************** Copyright (c) 1993, 1994 X Consortium Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associa...
/* lserv2.c lumin's server 2, which implements sort of server/client model. This is a test code, the author is reading <<UNIX Network Programming : Socket API>> C.D.Luminate <<EMAIL>> 2014/10/{03,04} */ /* TODO : some times it behaves strangely, e.g. if I type PASS pass first, then USER user, t...
//**********************************************************************; // Copyright (c) 2015, Intel Corporation // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of s...
/* * BGui version 2.0 unoffical repackage and rerelease by <NAME>. * Original author: <NAME> (Skis) * */ /* File: BGui.c (C) 1998 <NAME> (Skis) Web: http://www.concentric.net/~skis E/M: <EMAIL> BGui -- A win-95 like drop in replacement for the Allegro GUI. All errors in this file are (C) 1998 Dan Huizenga. If you...
#include "stdlib.h" #include "stdio.h" #include "stddef.h" #include "math.h" #include "utils.h" #include "potential.h" #include "fcsintp.h" #include "assert.h" /* within the header */ int _axbsch(int N, float * X, double v) { // indices for the left/right/middle point int i = 0, j = N - 1; int k = (i + j) / ...
/**** BSIM3v3.3.0, Released by Xuemei Xi 07/29/2005 ****/ /********** * Copyright 2004 Regents of the University of California. All rights reserved. * File: b3noi.c of BSIM3v3.3.0 * Author: 1995 <NAME> and <NAME>. * Author: 1997-1999 <NAME>. * Author: 2001 <NAME> * Modified by <NAME>, 10/05/2001. **********/ #...
/* dirichlet.c * SRE, Sat Oct 25 09:50:56 2003 [Stanford] * * Evaluation of and sampling from Dirichlet densities, mixture * Dirichlet densities, Beta densities, and Gamma densities. * * SVN $Id: dirichlet.c 1526 2005-12-13 20:20:13Z eddy $ */ #include "squidconf.h" #include <stdlib.h> #include <stdio.h...
/* * Copyright (c) 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, dis...
/* This file deals with the suspension and revival of processes. A process can * be suspended because it wants to read or write from a pipe and can't, or * because it wants to read or write from a special file and can't. When a * process can't continue it is suspended, and revived later when it is able * to conti...