text
stringlengths
7.55k
41.9k
// File: mumps/database/db_daemon.c // // module database - Database Daemon Functions /* Copyright (c) 1999 - 2012 * <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: * * ...
/* dlaopn.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_b8 = 1000000; static integer c_n1 = -1; /* $Procedure DLAOPN ( DLA, open new f...
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, ...
/* * Arduino's LiquidCrystal interface: Adapted for XMC4300 (and * friends) by <NAME> <<EMAIL>> * See https://github.com/arduino-libraries/LiquidCrystal * * LCD Lua module structure adapted from Mizar32's I2C LCD interface. */ #include <stdio.h> #include <string.h> #include <inttypes.h> #include "lua.h" #includ...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2007, The GROMACS development team, * check out http://www.gromacs.org for more information. * Copyright (c) 2012,2013, by the GROMACS development team, l...
/*************************************************************************** * Copyright (C) 2010 <NAME> * * <EMAIL> * * * * This program is free ...
/* Copyright: <NAME>, 2017 License: MIT Feel free to copy, use and enjoy according to the license provided. Copyright refers to the parser, not the protocol. */ /* for atomic operations when reference counting: `spn_add` and `spn_sub` */ #include "spnlock.inc" #include "resp.h" #include <math.h> #include <stdio.h> ...
// SPDX-License-Identifier: (GPL-2.0 OR MIT) /* Google virtual Ethernet (gve) driver * * Copyright (C) 2015-2021 Google, Inc. */ #include "gve.h" #include "gve_dqo.h" #include "gve_adminq.h" #include "gve_utils.h" #include <linux/ip.h> #include <linux/ipv6.h> #include <linux/skbuff.h> #include <linux/slab.h> #inclu...
/*-------------------------------------------------------------------- This source distribution is placed in the public domain by its author, <NAME>. You may use it for any purpose, free of charge, without having to notify anyone. I disclaim any responsibility for any errors. Optionally, please be nice and tell me if ...
/* * SM4 Encryption alogrithm (SMS4 algorithm) * GM/T 0002-2012 Chinese National Standard ref:http://www.oscca.gov.cn/ */ // Test vector 1 // plain: 01 23 45 67 89 ab cd ef fe dc ba 98 76 54 32 10 // key: 01 23 45 67 89 ab cd ef fe dc ba 98 76 54 32 10 // round key and temp computing result: // ...
#include "pho_private.h" /* definitions of the pho_object and ... */ #define HFNCT1(a,b) ((1.0 + 2.0*a)/(1.0 + 2.0*a*b)) #define EPS_HX_DIE 0.00001 #define EPS_HX_DA 0.00001 #define EPS_THETA 1.7e-3 /* THETA > 0.1 degree */ #define MAX_THETA 1.4 /* THETA < 80 degree */ #define MAX_AZIM...
#include "sg_assets.h" #include <string.h> #include "cJSON.h" #include "sg_log.h" #define FAST_OBJ_IMPLEMENTATION #define STB_IMAGE_IMPLEMENTATION #define CGLTF_IMPLEMENTATION #include "cgltf.h" #include "fast_obj.h" #include "meshoptimizer.h" #include "stb_image.h" static SgResult sgFillProjectsDirs(cJSON* projectsJ...
/* Copyright 1998 <NAME>. * * $Id$ * * Low-level memory allocator (portable). * * This allocator handles memory allocation for Larceny and manages the * memory descriptor tables that are used by the collector and the write * barrier. All allocation is done in page-sized chunks on page * boundaries; the alloca...
/* gbmvid.c - YUV12C M-Motion Video Frame Buffer format Reads and writes 24 bit RGB. */ /*...sincludes:0:*/ #include <stdio.h> #include <ctype.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include "gbm.h" #include "gbmhelp.h" /*...vgbm\46\h:0:*/ /*...vgbmhelp\46\h:0:*/ /*...e*/ /*...suseful:0:*/...
#include "hid_keyboard_ctrl.h" #include "my_keyboard.h" #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <inttypes.h> #include <esp_log.h> #include "btstack.h" #include "my_console.h" #include "my_bluetooth.h" #include "hog_key.h" #include "console.h" #include "stateCtrl.h" #inc...
/* LibTomCrypt, modular cryptographic library -- <NAME> */ /* SPDX-License-Identifier: Unlicense */ #ifndef TOMCRYPT_CUSTOM_H_ #define TOMCRYPT_CUSTOM_H_ /* macros for various libc functions you can change for embedded targets */ #ifndef XMALLOC #define XMALLOC malloc #endif #ifndef XREALLOC #define XREALLOC realloc...
#include "noncegen_512_avx512f.h" #include <immintrin.h> #include <string.h> #include "common.h" #include "mshabal_512_avx512f.h" #include "sph_shabal.h" sph_shabal_context global_32; mshabal512_context global_512; mshabal512_context_fast global_512_fast; void init_shabal_avx512f() { sph_shabal256_init(&global_32...
#include "mex.h" #include "math.h" #include "matrix.h" #include "float.h" /* * VestBMS_c2corrpostandlikec2adapt_mex.c * *VESTBMS_C2CORRPOSTANDLIKEC2QTRAPZ Multiple computations for C=2 (correlated) * * ================ INPUT VARIABLES ==================== * PRIORPDF2D: 2d prior over s_vis, s_vest. [S-by-S] (dou...
/* * Copyright (c) 2007, 2008 University of Tsukuba * 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 ...
/*****************************************************************************/ /* */ /* exports.c */ /* */ ...
/**************************************************************************** Alpha 8201/8301 Disassembler Copyright <NAME> Originally written for the MAME project. ****************************************************************************/ ...
/* alphaChain - Predicts faux centromere sequences using a probablistic model. */ /* Copyright (C) 2012 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #in...
/** * (c) 2017-2018 <NAME>. * Released under MIT license. Read LICENSE for more details. * * Based in previous tools and research by: fail0verflow, flatz. */ #include "self_decrypter.h" #include "ksdk.h" #include "blob.h" #include "debug.h" /* debugging */ #define DEBUG_SELF 0 #define assert(cond) if (!(cond))...
/* nbdkit * Copyright (C) 2018-2021 Red Hat Inc. * * 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 f...
/** @internal @file covdet.c ** @brief Covariant Detector - MEX ** @author <NAME> ** @author <NAME> ** @author <NAME> **/ /* Copyright (C) 2007-12 <NAME>, <NAME> and <NAME>. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file...
/* main.c -- main entry point for execution. * * * SCL; 2012-2015 */ #define _POSIX_C_SOURCE 200809L #include <unistd.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> #if defined(_WIN32) || defined(_WIN64) #include <process.h> #endif #include "common.h" #include "logging.h" #inclu...
/* * Copyright 2019 University of Washington, Max Planck Institute for * Software Systems, and The University of Texas at Austin * * 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 withou...
/* * Copyright 2013-2017 Advanced Micro Devices, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the r...
#if !defined(lint) && !defined(SABER) static const char rcsid[] = "$Id: res_findzonecut.c,v 1.16.140.1 2009-07-23 21:43:34 sar Exp $"; #endif /* not lint */ /* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1999-2003 by Internet Software Consortium * * Permission to use, copy, mo...
/* * Copyright (c) 2016-2017, Mellanox Technologies. All rights reserved. * Copyright (c) 2016-2017, <NAME> <<EMAIL>>. All rights reserved. * Copyright (c) 2016-2017, <NAME> <<EMAIL>>. All rights reserved. * Copyright (c) 2016, <NAME> <<EMAIL>>. All rights reserved. * Copyright (c) 2016, <NAME> <<EMAIL>>. All righ...
/*! \file bcmpc_imm_autoneg_profile.c * * PC_AUTONEG_PROFILEt IMM handler. */ /* * Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to * Broadcom Limited and/or its subsidiaries. * * Broadcom Switch Software License * * This license governs the use of the accompanying Broadcom software. ...
// Meridian 59, Copyright 1994-2012 <NAME> and <NAME>. // All rights reserved. // // This software is distributed under a license that is described in // the LICENSE file that accompanies it. // // Meridian is a registered trademark. /* * config.c: This file deals with user configuration of the game, such as * gr...
/* * Copyright (C) by Argonne National Laboratory * See COPYRIGHT in top-level directory */ #include "adio.h" #include "adio_extern.h" #ifdef AGGREGATION_PROFILE #include "mpe.h" #endif #undef AGG_DEBUG /* This file contains four functions: * * ADIOI_Calc_aggregator() * ADIOI_Calc_file_domains() * ADIOI_...
#ident "@(#) $Id: ip.c,v 1.1 2012/12/06 16:36:26 jdavid Exp $" /* Copyright (c) 2010, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain th...
/*! \file enc28j60.c \brief Microchip ENC28J60 Ethernet Interface Driver. */ //***************************************************************************** // // File Name : 'enc28j60.c' // Title : Microchip ENC28J60 Ethernet Interface Driver // Version : 1.0 // Target MCU : Atmel AVR series // // Descriptio...
/* * Copyright (c) 2012-2020 MIRACL UK Ltd. * * This file is part of MIRACL Core * (see https://github.com/miracl/core). * * 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...
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1....
//Sample program for the simulation of the Ising model in 2D // adapted by <NAME> from the code provided in // <NAME> and <NAME>, "Field Theory, the Renormalization Group // and Critical Phenomena" (third ed., World Scientific, Singapore, 2005) //We implement Heat-bath dynamics, single-cluster and Swendsen-Wan...
/* * (C) Copyright 2009-2012 * <NAME> <<EMAIL>> * BuS Elektronik GmbH & Co. KG * * SPDX-License-Identifier: GPL-2.0+ */ #include <config.h> #include <common.h> #include <linux/sizes.h> #include <asm/io.h> #include <asm/gpio.h> #include <asm/arch/hardware.h> #include <asm/arch/clk.h> #include <asm/arch/at91_matr...
#include "sctk.h" static void Compute_ROC (double *true_scores, int num_true, double *false_scores, int num_false, double **Pdet); static double ppndf (double p); /* return true if all the paths in the score structure have hyp confidences */ int hyp_confidences_available(SCORES *scor){ int g, p; int noconf = ...
/* WS2812FX.cpp - Library for WS2812 LED effects. 06.05.2018: https://github.com/kitesurfer1404/WS2812FX/tree/6ce37240ec411b24baa0444597bb88d828555569/src Ported to esp-open-rtos by PCSaito - 2018 www.github.com/pcsaito 07.05.2018: https://github.com/pcsaito/WS2812FX-rtos modified by amaider - 2020 */ #include "led...
/* $Xorg: t1funcs.c,v 1.5 2001/02/09 02:04:01 xorgcvs Exp $ */ /* Copyright International Business Machines,Corp. 1991 * All Rights Reserved * * License, subject to the license given below, to use, * copy, modify, and distribute this software * and its * documentation for any purpose and without fee is hereby * g...
/* SPDX-License-Identifier: BSD-2-Clause */ #include <tilck/common/basic_defs.h> #include <tilck/common/assert.h> #include <tilck/common/string_util.h> #include <tilck/common/fat32_base.h> /* * The following code uses in many cases the CamelCase naming convention * because it is based on the Microsoft's public doc...
# 1 "quicksort.c" # 1 "<built-in>" # 1 "<command-line>" # 1 "quicksort.c" # 1 "/usr/include/stdio.h" 1 3 4 # 29 "/usr/include/stdio.h" 3 4 # 1 "/usr/include/_ansi.h" 1 3 4 # 15 "/usr/include/_ansi.h" 3 4 # 1 "/usr/include/newlib.h" 1 3 4 # 16 "/usr/include/_ansi.h" 2 3 4 # 1 "/usr/include/sys/config.h" 1 3 4 # 1 "/usr...
/* MIT license Copyright (c) 2019-2021 <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...
#include <stdint.h> #include <sys/types.h> #include <string.h> #include "cx_hash.h" #include "cx_utils.h" #include "exception.h" union cx_u { cx_sha512_t sha512; }; union cx_u G_cx; #ifndef CX_SHA512_INIT_ALT_METHOD /* ----------------------------------------------------------------------- */ /* ...
#define _FILE_OFFSET_BITS 64 #define _LARGEFILE64_SOURCE /* See feature_test_macros(7) */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include "system.h" #include "io.h" #include "irq.h" #include "pci.h" #include "l...
/* * Copyright 2008 Search Solution Corporation * Copyright 2016 CUBRID Corporation * * 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-...
/* <NAME> (<EMAIL>), European Space Agency Software distributed under the "European Space Agency Public License � v2.0". All Distribution of the Software and/or Modifications, as Source Code or Object Code, must be, as a whole, under the terms of the European Space Agency Public License � v2.0. If You Distribute the ...
#include "SDL.h" #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" #include <time.h> #include "def.h" #include "options.h" #include "vm.h" static void PollEvents(); static void ExitHandler(); static inline int64_t GetPerformanceCounter() { return (int64_t)SDL_GetPerformanceCount...
#include <sys/types.h> #include <sys/stat.h> #include <string.h> #include <dirent.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <gdk/gdkkeysyms.h> #include <gtk/gtk.h> #include "config.h" #include "help_mp.h" #include "stream/stream.h" #include "interface.h" #include "../widgets.h" #include...
/* * Cursors.c -- Tk XDND Cursor support. * * This file implements utilities for using unix cursors in TkDND. * * This software is copyrighted by: * <NAME>, <NAME>. * e-mail: <EMAIL>, <EMAIL> * * The following terms apply to all files associated * with the software unless explicitly disclaimed in individua...
#include "charstring-il.h" #include "table/glyf.h" // Glyph building static void ensureThereIsSpace(cff_CharstringIL *il) { if (il->free) return; il->free = 0x100; RESIZE(il->instr, il->length + il->free); } void il_push_operand(cff_CharstringIL *il, double x) { ensureThereIsSpace(il); il->instr[il->length].type...
// Copyright 2012-2016 Mitchell mit<EMAIL>. See LICENSE. #if (!GTK && __linux__) #define _GNU_SOURCE 1 // for execvpe from unistd.h #endif #include <signal.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #if GTK #include <glib.h> #endif #if !_WIN32 #if (!GTK || __APPLE__) #include <errno.h> #include <sy...
#include "scp_address.h" FILE *dbgAddr; extern int USE_DOUBLE_MISS; extern int USE_SEGMENT_SIZE; extern prog_t prog; extern tcfg_edge_t **tcfg_edges; extern int num_tcfg_edges; extern tcfg_node_t **tcfg; extern int num_tcfg_nodes; extern int num_tcfg_loops; extern loop_t ...
/* * Copyright (c) 2017 Mellanox Technologies Ltd. All rights reserved. * Copyright (c) 2006-2009 Voltaire, Inc. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, a...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
#include "lang.h" #include "asc126_old.h" #include "asc126_new.h" char* gl_init_error; char* gl_power_off; char* gl_init_ok; char* gl_Loading; char* gl_file_overflow; char* gl_theme_credit; char* gl_theme_credit2; char* gl_generating_emu; char* gl_menu_btn; char* gl_lastest_game; char* gl_writing...
/** * The HDLRuby simulation global header, to include in C code * generated by hruby_low2c. **/ #include <pthread.h> /* The interface to the HDLRuby objects C models. */ typedef struct TypeS_ TypeS; typedef struct FlagsS_ FlagsS; typedef struct ValueS_ ValueS; typedef struct ObjectS_ ObjectS;...
/* 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) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/*************************************************************************** * msrecord.c: * * Generic routines to parse Mini-SEED records. * * Appropriate values from the record header will be byte-swapped to the * host order. The purpose of this code is to provide a portable way of * accessing common SEED dat...
#ifndef lint static const char RCSid[] = "$Id: mgf2inv.c,v 2.3 2012/05/15 15:36:33 greg Exp $"; #endif /* * Convert MGF to Inventor file. * * December 1995 <NAME> */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <ctype.h> #include <string.h> #include "mgf_parser.h" #include "lookup.h" #d...
#include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "ureg.h" #include "io.h" #include "../port/error.h" void (*midiintr)(void); void noted(Ureg*, Ureg**, ulong); void rfnote(Ureg**); void kernfault(Ureg*, int); char *excname[] = { "trap: external interrupt", "trap: T...
/************************************************************************** * * This file is part of the ParaNut project. * * Copyright (C) 2018-2020 <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * Efficient Embedded Systems Group * Hochschu...
/******************************************************************** * * File: KolmogorovSmirnovDist.c * Environment: ISO C99 or ANSI C89 * Author: <NAME> * Organization: DIRO, Université de Montréal * Version: 10 december 2010 * Copyright 1 march 2010 by Université de Montréal, ...
/* * --INFO-- * Address: 800ED6EC * Size: 000080 */ void OSReport(void) { /* .loc_0x0: mflr r0 stw r0, 0x4(r1) stwu r1, -0x78(r1) bne- cr1, .loc_0x30 stfd f1, 0x28(r1) stfd f2, 0x30(r1) stfd f3, 0x38(r1) stfd f4, 0x40(r1) stfd f5, 0x48(r1)...
/* * utf8.c * * copyright (c) 2019 <NAME> * * author: <NAME> <<EMAIL>.<EMAIL>(a)gmail.com> * license: Apache-2.0 * * https://github.com/shixiongfei/utf8 */ #include "utf8.h" #include <ctype.h> #include <limits.h> #include <stdlib.h> #include <string.h> #if defined(_MSC_VER) #include <W...
/* * 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...
/* * Crystal CS8900 ethernet controller * * Todo: * - promiscuous * * Copyright © 1998 Vita Nuova Limited. All rights reserved. * Revisions Copyright © 2000 Vita Nuova Holdings Limited. All rights reserved. */ #include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #includ...
/* * 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...
/* * imdct.c * Copyright (C) 2000-2003 <NAME> <<EMAIL>> * Copyright (C) 1999-2000 <NAME> <<EMAIL>> * * The ifft algorithms in this file have been largely inspired by Dan * Bernstein's work, djbfft, available at http://cr.yp.to/djbfft.html * * This file is part of a52dec, a free ATSC A-52 stream decoder. * See ...
#include <stdint.h> #include <stddef.h> #include <protos/linux.h> #include <fs/file.h> #include <lib/libc.h> #include <lib/blib.h> #include <lib/real.h> #include <lib/term.h> #include <lib/config.h> #include <lib/print.h> #include <lib/uri.h> #include <mm/pmm.h> #include <sys/idt.h> #include <lib/fb.h> #include <lib/ac...
#include <stdlib.h> #include <stddef.h> #include <string.h> #include <fcntl.h> #include <inttypes.h> #include <sxp.h> #include <sxpd.h> #include <config.h> #include <debug.h> #include <radix.h> #include <util.h> #include <mem.h> #include <config.h> #include <util.h> #include "../framework/inc/log_check.h" #include "...
/* */ #ifdef SIMULATION #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <math.h> #include <time.h> #include "../simulator/routers/base.h" #else #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include "freertos/FreeRTOS.h" #include...
#include <hre/config.h> #include <ftw.h> #include <fcntl.h> #include <limits.h> #include <ltdl.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <dm/dm.h> #include <hre/unix.h> #include <hre/user.h> #include <ltsmin-lib/ltsmin-standard.h> #include <mc-lib/hashtable.h> #i...
/* $OpenBSD: raptor.c,v 1.7 2010/08/07 03:50:01 krw Exp $ */ /* * Copyright (c) 2009 <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. * * ...
/***************************************************************************/ /* */ /* raspberry.c - mruby gem provoding access to Raspberry Pi IOs */ /* Copyright (C) 2015 <NAME> and <NAME>, */ /* paolo[dot]bosetti[...
/* * Copyright 2020, Cypress Semiconductor Corporation or a subsidiary of * Cypress Semiconductor Corporation. All Rights Reserved. * * This software, associated documentation and materials ("Software"), * is owned by Cypress Semiconductor Corporation * or one of its subsidiaries ("Cypress") and is protected by...
/*++ * * WOW v1.0 * * Copyright (c) 1991, Microsoft Corporation * * WKMAN.C * WOW32 16-bit Kernel API support (manually-coded thunks) * * History: * Created 16-Apr-2001 jarbats * --*/ #include "precomp.h" #pragma hdrstop /* * shimdb has ..,.. which conflicts with the typedef T...
/* SPDX-License-Identifier: MIT */ /* * websocket_demo.c * * WebSockets are defined here: http://tools.ietf.org/html/rfc6455 * * Copyright (C) 2014 - 2016, 2018 - 2019 <NAME> * <<EMAIL>> */ #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <limit...
#include "fakebbs.h" #include <time.h> #include <stdarg.h> #include <stdint.h> #include <sys/socket.h> #include <unistd.h> #include <sys/un.h> #include <sys/select.h> #include <strings.h> void socket_input(int usernum, char *inp); void write_to_socket(uint8_t code, uint16_t user, uint16_t data_length, uint8_t *data); ...
/* * This file is a part of viewssld package. * * Copyright 2007 <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 * * http://www.apache.org/licenses/LICENSE-2.0...
struct bsp_lm_s *main_lmroot=NULL; void pdgl_main_bestuv(float *norm, float *udir, float *vdir); void pdgl_main_readlights(char *name) { FILE *fd; char buf[256]; char **a; int i, j; main_lights=0; fd=fopen(name, "rt"); if(!fd)return; i=0; while(!feof(fd)) { memset(buf, 0, 256); fgets(buf, 255, fd); ...
/* * Routines only used by the receiving process. * * Copyright (C) 1996-2000 <NAME> * Copyright (C) 1996 <NAME> * Copyright (C) 2003-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 F...
/* libezbc - EZBC subband coding/decoding Copyright (C) 2004 <NAME> This library is inspired from code originaly developped by <NAME> in MC-EZBC. This rewritten version may still contain code similar to his original implementation. Reference paper: "Embedded Image Coding Using Zeroblocks Of Subband/...
// 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. #include "runtime.h" #include "malloc.h" typedef struct Sched Sched; M m0; G g0; // idle goroutine for m0 static int32 debug = 0; // Go scheduler // // The ...
/* * stm32f407xx_i2c_driver.c * * Created on: 11 de mai de 2021 * Author: igor */ #include "stm32f407xx.h" // ******************************* Private Helper functions ************************************** static void I2C_GenerateStartCondition(I2C_RegDef_t *pI2Cx){ pI2Cx->CR1 |= 1 << I2C_CR1_START; } s...
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<stdarg.h> //ver v5a = output reads with barcode mismatches //ver 7 = output reads with NoMatch reject codes #define READ_LEN 50 char gencode[]={ //"AAA","AAT","AAG","AAC", 'K', 'N', 'K', 'N', //"ATA","ATT","ATG","ATC", 'I', 'I', 'M', 'I', //"AGA","AGT...
/** * Bytecode Compiler for Kuroko * * Prototype bytecode marshaling tool to write binary forms of Kuroko source files. */ #include <assert.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <stdint.h> #include <unistd.h> #include <kuroko/kuroko.h> #include <kuroko/vm.h> #include <kuroko/compiler...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <genericLogger.h> #include <marpaESLIF.h> static short inputReaderb(void *userDatavp, char **inputsp, size_t *inputlp, short *eofbp, short *characterStreambp, char **encodingOfEncodingsp, char **encodingsp, size_t *encodinglp); #de...
/* ========================================================================= zyre_node - node on a ZRE network ------------------------------------------------------------------------- Copyright (c) 1991-2014 iMatix Corporation <www.imatix.com> Copyright other contributors as noted in the AUTHORS file...
#include "plateform.h" void Dispkey(core_crocods_t *core, CPC_KEY n, int status); void DispScanCode(core_crocods_t *core, CPC_SCANCODE n, int status); void PressKey(core_crocods_t *core, CPC_KEY n); #define PG_LBMASK565 0xF7DE #define PG_LBMASK555 0x7BDE #define AlphaBlendFast(pixel, backpixel) (((((pixel) & PG_LBMA...
/********************************************************************* * DDS demo code * sine synth to SPI to MCP4822 dual channel 12-bit DAC ********************************************************************* * Bruce Land Cornell University * Sept 2017 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
/* * 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 ...
/************************************************************************/ /* File Version: V0.5A */ /* History: 0.5A (2015-12-04) [Hardware Manual Revision : 0.5A] */ /* Date Modified: 26/04/2016 */ /*******************...
#include "parser.h" #include <assert.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> enum type { TYPE_FALSE, TYPE_TRUE, TYPE_NUMBER, TYPE_STRING, TYPE_TABLE, TYPE_CLOSURE, TYPE_BUILTIN_FUNCTION, }; typedef uint32_t table_id; struct closure { uint32_...
/* * Platform interface to the MacOS X CoreMIDI framework * * <NAME> <<EMAIL>> * and subsequent work by <NAME> and <NAME> * and <NAME> * * $Id: pmmacosxcm.c,v 1.2 2009/12/25 05:08:18 d_scott Exp $ */ /* Notes: since the input and output streams are represented by MIDIEndpointRef values an...
/****************************************************************************** * Copyright (C) 2014-2020 <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 restr...
/* * Copyright © 2013 Raspberry Pi Foundation * Copyright © 2013 RISC OS Open Ltd * * 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 that both that * cop...