text
stringlengths
5.8k
28.2k
#include "stdafx.h" #include "state.h" #include "link.h" #ifndef WINVER #define min(a, b) ((a) > (b) ? (b) : (a)) #endif void state_userpages(CPU_t *, upages_t*); TCHAR *symbol_to_string(CPU_t *, symbol83P_t *, TCHAR *); static int find_header(u_char (*dest)[PAGE_SIZE], int page, int ident1, int ident2) { int i; ...
/******************************Module*Header*******************************\ * Module Name: tt.h * * interface to the font scaler. Also defines some macros that should * have been defined in the scaler *.h files * * Created: 17-Nov-1991 15:56:21 * Author: <NAME> [BodinD] * * Copyright (c) 1990 Microsoft Corpo...
/* * 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-FreeBSD * * Copyright (c) 2012 <NAME> <<EMAIL>> * Copyright (c) 2013 <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. R...
#include "../labstreaminglayer/LSL/liblsl/include/lsl_c.h" #include "ads1299.h" #include <stdio.h> #include <sys/time.h> #include <time.h> #include <bcm2835.h> int InputCheck(int seconds) { fd_set set; struct timeval timeout = {seconds, 0}; FD_ZERO(&set); FD_SET(0, &set); return sele...
/* Copyright 2012, 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 conditi...
/* main.c raycasting program follows the explanation at permadi.com/tutorial/raycast/ differs in that it uses vectors and matrices but the pricipals are the same */ #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <math.h> #include "utility.h" #include "quickscreen.h" #include "vec...
/* Copyright 2016 Technical University of Denmark, DTU Compute. All rights reserved. This file is part of the time-predictable VLIW processor Patmos. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
#include <stdio.h> /* all kinds of things, file stream i/o */ #include <dos.h> #include <stdlib.h> /* exit */ #include <bios.h> /* biosdisk */ #include <mem.h> /* memcmp */ #include <direct.h> /* getdisk */ #include <io.h> /* read/write with simple "unstreamed" handles */ #include "md5.h" #include "globa...
// SPDX-FileCopyrightText: 2013-2014 condret <<EMAIL>> // SPDX-License-Identifier: LGPL-3.0-only #define GB_8BIT 1 #define GB_16BIT 2 #define ARG_8 4 #define ARG_16 8 #define GB_IO 16 // Most io (Joypad, Sound, Screen ...) typedef struct { const char *name; const int type; } gb_opcode; static const char *...
/* Copyright (C) 2014 Parrot SA 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 following dis...
// 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. /* * basic types */ typedef signed char int8; typedef unsigned char uint8; typedef signed short int16; typedef unsigned short uint16; typedef signed int ...
//File: util2.c //Location: ~/manuprobe/src/cgi #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "util.h" #include "tags.h" #include "cgi.h" unsigned char* http_val (char* word, int m){ int x; for (x=0;x<=m;x++) { if (!strcmp(entries[x].name,word)) return(entries[...
/* * Copyright (C) by Argonne National Laboratory * See COPYRIGHT in top-level directory */ #include "ad_daos.h" #include "adio_extern.h" #include <assert.h> #include "../../mpi-io/mpioimpl.h" #ifdef MPIO_BUILD_PROFILING #include "../../mpi-io/mpioprof.h" #endif #include "mpiu_greq.h" enum { DAOS_WRITE, ...
/*! \file trm_notify.c * * This module implements the notification functionality of the * transaction manager. The notification being made to the application * in case where a transaction or entry operation changes state or in * the case that a table had changed and required notification. */ /* * Copyright: (c) ...
/* ==== ARENA MANAGEMENT ==== * * Copyright 2013 Ravenbrook Limited <http://www.ravenbrook.com/>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * 1. Redistributions of so...
/* srm */ /* Copyright (c) 2000 <NAME> * Portions copyright (c) 2007 Apple 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 * ...
#include "tilemap.h" #include "tile.h" #include "../vector/vector.h" #include "../graphics/rectangle.h" #include "../globals.h" #include "../common.h" #include "../camera/camera.h" #include "../sprites/sprite.h" #include "../serialization/serializer.h" #include "../serialization/serialization_reader.h" #include "lua/m...
/* * pptpd.c * * Grabs any command line argument and procecesses any further options in * the pptpd config file, before throwing over to pptpmanager.c. * * $Id: pptpd.c,v 1.13 2003/08/22 06:30:54 danield Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #ifdef __linux__ #define _GNU_SOURCE 1 /* strdup(...
/** ****************************************************************************** * @file clean_lcd_swap_buffer.c * @author MCD Application Team * @version V1.0.1 * @date 12-April-2017 * @brief This file implements a work around to get a clean swap buffer on DSI screen MB1166 ******************...
/****************************************************************************** * * Copyright (C) 2019 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software wit...
#include "lib_adrc.h" const ADRC_Init Default_ADRC = { .TD.R = 10000000.f, .NLC = { .B = 1.f, .Alpha_p = 1.f, .Alpha_n = 1.f, .Alpha_f = 1.f, .Beta_p = 0, .Beta_n = 0, .Beta_f = 0, .MaxOutputClamp = 0, .Delta = 0 }, .ESO = { .Alpha1 = 1.f, .Alpha2 = 1.f, .Alpha3 = 1.f, .Omega = 0, ....
/** * \file * * \brief Unit tests for FreeRTOS TWI Interface Layer. * * Copyright (c) 2011 - 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 ...
/* Copyright (c) 2006 <NAME> * * TERMS * * 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 and the follow...
/* * Copyright (c) 2017, MammothDB * 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 ...
/* --COPYRIGHT--,BSD_EX * Copyright (c) 2017, Texas Instruments Incorporated * 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 c...
/* spkcov.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__2 = 2; static integer c__6 = 6; /* $Procedure SPKCOV ( SPK coverage ) */ /* Subroutine */ int spk...
/* ************************************************************* *\ * text.c * * * * Project: NotificaThor * * Author: <NAME> (<EMAIL>) * * ...
/* $NetBSD: audit.c,v 1.1.1.9 2011/02/18 22:32:28 aymeric Exp $ */ #if HAVE_CONFIG_H #include "config.h" #endif #include <nbcompat.h> #if HAVE_SYS_CDEFS_H #include <sys/cdefs.h> #endif __RCSID("$NetBSD: audit.c,v 1.1.1.9 2011/02/18 22:32:28 aymeric Exp $"); /*- * Copyright (c) 2008 <NAME> <<EMAIL>>. * All rights re...
/** Copyright (c) 2016 <NAME> */ #include <FF/gui/winapi.h> #include <FF/data/conf.h> #include <FFOS/thread.h> #include <FFOS/semaphore.h> typedef struct gui_wmain { ffui_wnd wmain; ffui_menu mm; ffui_btn bpause , bstop , bprev , bnext; ffui_label lpos; ffui_tab tabs; ffui_trkbar tpos , tvol; ffui_vie...
// Options: --no-argc --no-arrays --no-bitfields --checksum --concise --no-consts --no-float --no-inline-function --max-array-dim 3 --max-array-len-per-dim 10 --max-block-depth 5 --max-block-size 4 --max-expr-complexity 2 --max-funcs 1 --max-pointer-depth 2 --no-pointers --no-structs --no-unions --no-volatiles --no-b...
/*------------------------------------------------------------------------- * * parser.c * Main entry point/driver for PostgreSQL grammar * * Note that the grammar is not allowed to perform any table access * (since we need to be able to do basic parsing even while inside an * aborted transaction). Therefore, ...
/* $OpenBSD: if_le.c,v 1.1 2006/05/16 22:48:18 miod Exp $ */ /* * Copyright (c) 1995 <NAME> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * This file is part of Libav. * * Libav 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 version. * * Libav is distributed in...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* 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, mo...
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2014 Intel Corporation. All rights reserved. * * * 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 ...
/*- * Copyright (c) 2004 <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 an...
#include "block.h" #include "../../res/map/tiled.h" #include "../../res/data/block_lower_sprite.h" #include "../../res/data/block_sprite.h" #include "configuration.h" #include "collision.h" #include "input.h" #include "player.h" #include "sprite.h" #include "types.h" #include "wasm4.h" //--------------------------...
/* mpn_invertappr and helper functions. Compute I such that floor((B^{2n}-1)/U - 1 <= I + B^n <= floor((B^{2n}-1)/U. Contributed to the GNU project by <NAME>. The algorithm used here was inspired by ApproximateReciprocal from "Modern Computer Arithmetic", by <NAME> and <NAME>. Special thanks to <NAME...
/** * (C) Copyright 2017-2021 Intel Corporation. * * SPDX-License-Identifier: BSD-2-Clause-Patent */ #define D_LOGFAC DD_FAC(tests) #include <stdio.h> #include <fcntl.h> #include <string.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> #include <sys/ioctl.h> #include <uuid/u...
#include "Client.h" int value; //enum of current connection states typedef enum { scanning, opening, discoverServices, discoverCharacteristics, readCharacteristics, enableIndication, Indication, running } ConnState; //enum of current connection properties typedef struct { uint8_t con...
/* ../netlib/zunbdb1.f -- translated by f2c (version 20160102). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the e...
/* * Copyright 2018, 2020 <NAME> <<EMAIL>> * * 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 and the foll...
/* * Copyright (C) 2017 Authors of Cilium * * 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 progr...
/* * * 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...
/* Main source file of MTB-UNI v4 CPU's ATmega128 firmware. */ #include <stdbool.h> #include <util/delay.h> #include <avr/interrupt.h> #include <avr/io.h> #include <avr/wdt.h> #include "common.h" #include "io.h" #include "scom.h" #include "outputs.h" #include "config.h" #include "inputs.h" #include "diag.h" #include...
/* * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief Demonstrate SPI data transfer with PDMA. * QSPI0 will be configured as Master mode and SPI1 will be configured as Slave mode. * Both TX PDMA function and RX PDMA func...
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Slabs memory allocation, based on powers-of-N. Slabs are up to 1MB in size * and are divided into chunks. The chunk sizes start off at the size of the * "item" structure plus space for a small key and value. They increase by * a mult...
#include "l.h" static int spaninit; /* * called twice, * once before noops, once after * assumes noops will not extend the branches at all */ void span(int first) { Prog *p; Optab *o; long c, memc, ramc, idat, rdat, etext; int m, again; if(first){ xdefine("etext", STEXT, textstart); xdefine("_ramtext", ...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2020 Google LLC * * Modified from coreboot nhlt.c */ #define LOG_CATEGORY LOGC_ACPI #include <common.h> #include <binman.h> #include <dm.h> #include <log.h> #include <malloc.h> #include <tables_csum.h> #include <acpi/acpi_table.h> #include <asm/acpi_nhlt.h> #inc...
/* * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ /* * Ifparse splits...
/**********************************************************************************/ /* MIT License */ /* */ /* Copyright (c) 2020 <NAME> */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining a copy */ /* of this software and associated d...
/* * FILE: table.c * AUTH: <NAME> <<EMAIL>> * * DESC: stubgen symbol table goodies * * DATE: 1996/08/14 22:04:47 * * Copyright (c) 2004 <NAME> * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * *...
/*------------------------------------------------------------------------------ * rinexobs.c : rinex observation file functions * * * reference : * (1) W.Gurtner and L.Estey, RINEX The Receiver Independent Exchange Format * Version 3.01, June 22, 2009 * (2) RINEX The Receiver Independent Exchange Forma...
#include <stdio.h> #include <stdlib.h> #include <string.h> /* ****************************************************************** ALTERNATING BIT AND GO-BACK-N NETWORK EMULATOR: SLIGHTLY MODIFIED FROM VERSION 1.1 of J.F.Kurose This code should be used for PA2, unidirectional or bidirectional data transfer prot...
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYIN...
#include <string.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> #ifndef M_PI # define M_PI 3.141592653589793 #endif #define GA 2.39996322972865332 int frame = 0; int asymmetric = 1; int N; double minD = 0; double bestMinD = 0; typedef struct { double x,y,z; } v...
/* 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/li...
#include <string.h> #include <errno.h> #include "libp2p/varint.h" #include "lmdb.h" #include "libp2p/utils/logger.h" #include "libp2p/crypto/encoding/base58.h" #include "ipfs/repo/fsrepo/journalstore.h" #include "ipfs/repo/fsrepo/lmdb_datastore.h" struct JournalRecord* lmdb_journal_record_new() { struct JournalRecor...
/* test an lwipopts.h file with default contents */ #define NO_SYS 0 #define NO_SYS_NO_TIMERS 0 #define LWIP_TIMERS 1 #define LWIP_TIMERS_CUSTOM 0 #define LWIP_MPU_COMPATIBLE 0 #define LWIP_TCPIP_CORE_LOCKING 1 #define L...
/* INTEL CONFIDENTIAL Copyright 2009 Intel Corporation All Rights Reserved. The source code contained or described herein and all documents related to the source code ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the Material remains with Intel Corporation or its suppliers and ...
/* * (C) 2015 <NAME> <<EMAIL>> * * SPDX-License-Identifier: GPL-2.0+ */ /* * Support for the SSD2828 bridge chip, which can take pixel data coming * from a parallel LCD interface and translate it on the flight into MIPI DSI * interface for driving a MIPI compatible TFT display. */ #include <common.h> #include...
/* $OpenBSD: acpiec.c,v 1.44 2011/01/09 22:27:21 jordan Exp $ */ /* * Copyright (c) 2006 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all co...
/* * Batch 13 * Authors: <NAME>, <NAME>. * 2013A7PS079P and 2013A7PS183P * <EMAIL> & <EMAIL> * Alex-1995 and Abhinav0208 - github handles. */ // program to make parse table #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include "stack.h" #include "makeFirstSet.h" #include "Parser...
// SPDX-License-Identifier: GPL-2.0-only /* * BCM47XX NAND flash driver * * Copyright (C) 2012 <NAME> <<EMAIL>> */ #include "bcm47xxnflash.h" #include <linux/module.h> #include <linux/kernel.h> #include <linux/slab.h> #include <linux/delay.h> #include <linux/bcma/bcma.h> /* Broadcom uses 1'000'000 but it seems t...
/* Fast dependency generator for LAMMPS * (c) 2016 <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: * * * Redistributions of source code must retain the above copyright ...
/** This file is in the public domain. * * This program demonstrates use of the M25PE20 SPI serial flash on * the TrxEB board, or the M25P10A SPI serial flash on the SuRF board. * * @homepage http://github.com/pabigot/bsp430 * */ #include <bsp430/platform.h> #include <bsp430/clock.h> #include <bsp430/utility/up...
/* * gtkmovelist.c * by <NAME>, 2005 * * Analysis move list * * This program is free software; you can redistribute it and/or modify * it under the terms of version 3 or later of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it ...
//file: dumptap.c /****************************************************************************** Dump a SIMH .tap format tape image file with numbers in hex or octal, and/or characters in ASCII, EBCDIC, BCD, SDS, or Burroughs BIC code, in the style of an old-fashioned memory dump. dumptap options <basefilename> ...
/*!The Make-like Build Utility based on Lua * * 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 L...
/* Fiducial tracking library. Copyright (C) 2004 <NAME> <<EMAIL>> Maintainer (C) 2005-2016 <NAME> <<EMAIL>> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of ...
/*! \file trm_trans.c * * This module implements the transaction handling backend * of the transaction manager (TRM) */ /* * 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 reserv...
#include "geminc.h" #include "gemprm.h" #include "vfcmn.h" #define EOL "\n" extern SpcInfo_t newinfo; extern SpcInfo_t spcinfo; void vfwsaw ( int *iret ) /************************************************************************ * vfwsaw * * ...
// Options: --no-argc --no-arrays --no-bitfields --checksum --concise --no-consts --no-float --no-inline-function --max-array-dim 3 --max-array-len-per-dim 10 --max-block-depth 5 --max-block-size 4 --max-expr-complexity 2 --max-funcs 1 --max-pointer-depth 2 --no-pointers --no-structs --no-unions --no-volatiles --no-b...
/* sha1.h * * The sha1 hash function. */ /* nettle, low-level cryptographics library * * Copyright (C) 2001 <NAME>, <NAME>, <NAME> * * The nettle 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 Fo...
#include <stdlib.h> #include <stdint.h> #include <math.h> #include "rasterizer.h" int rasterizer_init(rasterizer *r, int width, int height) { r->width = width; r->pitch = (width+3) & ~3; // make sure actual width is a multiple of 4 r->height = height; if((r->depth = malloc(sizeof(float)*r->pitch*r->he...
/* $OpenBSD: schizoreg.h,v 1.6 2002/08/02 16:44:39 jason Exp $ */ /* * Copyright (c) 2002 <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 ...
#include <stdio.h> #include <string.h> #include <math.h> #include <unistd.h> #include <assert.h> /*======================================================================== This is a version of the facenorm.c program originally used to normalize FERET face images for the FERET 1996/97 studies. This code was orig...
/* Memtest86 SPD extension * added by <NAME>, 2004, <EMAIL> * * Released under version 2 of the Gnu Puclic License * ---------------------------------------------------- * MemTest86+ V4.20 Specific code (GPL V2.0) * By <NAME>, <EMAIL> * http://www.canardpc.com - http://www.memtest.org */ #includ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <pthread.h> #include <signal.h> #include <sys/time.h> #include <math.h> #include "scip2.h" #include "timesync.h" #include "common/getopt.h" #include "common/timestamp.h" #include "common/timespec.h" #include "common/vhash.h" #inc...
/* BSD 2-Clause License, see github.com/ma16/hantek_dso_2090 */ #include "hantekDlg.h" #include <assert.h> #include <string.h> /* memcpy */ #include "dod.h" /* usb control transfer (do-or-die) */ static void controlXfer( libusb_device_handle *handle, uint8_t requestType, uint8_t requ...
/* * Copyright 2003, QNX Software Systems Ltd. All Rights Reserved. * * This source code may contain confidential information of QNX Software * Systems Ltd. (QSSL) and its licensors. Any use, reproduction, * modification, disclosure, distribution or transfer of this software, * or any software which includes or ...
/** * IPMA video frame extractor by <NAME>, ViaThinkSoft (C) 2022 * Supports codecs IPMA and IP20 * Revision: 2022-01-16 * License: Apache 2.0 **/ #define VERSION "2022-01-16" #define _CRT_SECURE_NO_WARNINGS // #define VISUAL_STUDIO_TEST #include <windows.h> #include <vfw.h> #include <stdio.h> #i...
/* * Copyright 2007,2010 Freescale Semiconductor, Inc * <NAME> * * Based vaguely on the pxa mmc code: * (C) Copyright 2003 * <NAME>, Nexus Technologies, Inc. <EMAIL> * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or *...
/* * Copyright (c) 2015 <NAME> <<EMAIL>> * * Jansson is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. */ #include <math.h> #include <stdio.h> #include <string.h> #include <ubjansson.h> static int passed, failed; static json_t *test1(void ...
// SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2020 Facebook */ #define _GNU_SOURCE #include <argp.h> #include <linux/compiler.h> #include <sys/time.h> #include <sched.h> #include <fcntl.h> #include <pthread.h> #include <sys/sysinfo.h> #include <sys/resource.h> #include <signal.h> #include "bench.h" #include "tes...
#include <stdint.h> #include "stdlib/common.h" #include "modules/memory/kheap.h" #include "stdlib/stdio.h" #include "modules/interrupt/isr.h" #include "modules/memory/paging.h" #define INITIAL_HEAP_SIZE (0x1000 * INITIAL_HEAP_PAGE_COUNT) struct header { uint8_t free; uint32_t size; }; struct free_header { stru...
/* * Copyright (c) 2019, 2020 <NAME> (KTOWN) * * SPDX-License-Identifier: Apache-2.0 */ #include <zsl/colorimetry.h> /** * CIE 1988 Photopic Luminous Efficiency Function. * 380nm to 780nm in 5nm increments (81 values). */ static const struct zsl_clr_spd zsl_clr_conv_lef_cie88_photopic_5nm = { .size = 81, .co...
/* CF3 Copyright (c) 2015 ishiura-lab. Released under the MIT license. https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md */ #include<stdio.h> #include<stdint.h> #include<stdlib.h> #include"test1.h" uint64_t x39 = UINT64_MAX; int16_t x123 = -1; uint8_t x124 = 0U; volatile uint64_t x137 = UINT64_MAX; int16_t ...
/* imm-reward.c ***** Copyright 1994-1997, Brown University Copyright 1998, 1999, <NAME> All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose other than its incorporation into a comme...
/* Emacs style mode select -*- C++ -*- *----------------------------------------------------------------------------- * * * PrBoom: a Doom port merged with LxDoom and LSDLDoom * based on BOOM, a modified and improved DOOM engine * Copyright (C) 1999 by * id Software, <NAME>, <NAME>, <NAME>, <NAME>, <NAME> ...
// // Created by sachetto on 18/10/17. // #include "file_utils.h" #define STB_DS_IMPLEMENTATION #include "../3dparty/stb_ds.h" #include "../3dparty/sds/sds.h" #include <stdio.h> #include <fcntl.h> #include <string.h> #include <errno.h> #include <ctype.h> #include <unistd.h> #include <stdlib.h> #include <dirent.h> #i...
/* * This file is part of the Black Magic Debug project. * * Copyright (C) 2011 Black Sphere Technologies Ltd. * Written by <NAME> <<EMAIL>> * * Copyright (C) 2018 <NAME> <<EMAIL>> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License ...
/* * sntp.c * * Created on: 2014. 12. 15. * Author: Administrator */ #include <string.h> #include <stdlib.h> #include <time.h> #include "sntps.h" #include "../../Ethernet/socket.h" ntpsformat NTPsformat; datetime Nowdatetime; uint8_t ntpsmessage[48]; uint8_t *data_buf; uint8_t NTPs_SOCKET; uint8_t time_z...
//***************************************************************************** // //! @file main.c //! //! @brief NemaGFX example. //! this example use one frame buffer demonstrate two picture trasition effect, //! with Nema GPU support, the effect include //! NEMA_TRANS_LINEAR_H, //! NEMA_TRANS_CUBE_H, //! NEMA_TRANS...
#include "cache.h" #include "range-diff.h" #include "string-list.h" #include "run-command.h" #include "argv-array.h" #include "hashmap.h" #include "xdiff-interface.h" #include "linear-assignment.h" #include "diffcore.h" #include "commit.h" #include "pretty.h" #include "userdiff.h" #include "apply.h" struct patch_util ...
/***************************************************************************//** * @file * @brief PIR driver. * @version 1.0.2 ******************************************************************************* * # License * <b>Copyright 2019 Silicon Laboratories Inc. www.silabs.com</b> *****************************...
#include "MD2_load.h" #include <stdio.h> #include <string.h> #include <stdlib.h> // malloc #include <math.h> // sqrt //! The MD2 magic number used to identify MD2 files. #define MD2_ID 0x32504449 //! Limit values for the MD2 file format. #define MD2_MAX_TRIANGLES 4096 #define MD2_MAX_VERTICES 2048 #...