text
stringlengths
3.12k
18.7k
/* * vic20-sidcart.c - VIC20 specific SID cart emulation. * * Written by * <NAME> <<EMAIL>> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Pu...
/* Copyright (c) 2017, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Universitätstrasse 6, CH-8092 Zurich. Attn: Systems Group. */ #include <stdlib.h> #include <s...
/* Terminal interface for N Mens Morris. Copyright (C) 2012 <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, modif...
/* * OpenBOR - http://www.LavaLit.com * ----------------------------------------------------------------------- * Licensed under the BSD license, see LICENSE in OpenBOR root for details. * * Copyright (c) 2004 - 2011 OpenBOR Team */ #include "Lexer.h" #include <stdio.h> #include <stdlib.h> #include <string.h> /...
/* load/store pcx files */ #include <bgbbtj.h> struct PcxHead_s { unsigned char tag; //0x0A unsigned char version; //typically 5 unsigned char encoding; //1=RLE unsigned char bpp; unsigned short minx; unsigned short miny; unsigned short maxx; unsigned short maxy; unsigned short hres; unsigned short vres; unsigned...
/* $OpenBSD: factor.c,v 1.30 2016/09/01 10:48:38 tb Exp $ */ /* $NetBSD: factor.c,v 1.5 1995/03/23 08:28:07 cgd Exp $ */ /* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME>. * * Redistributi...
/* * Cirugía - Copyright (C) <NAME> 2015-2016 * * 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 ...
/** * \file gaussian_conv_deriche.c * \brief Deriche's approximation of Gaussian convolution * \author <NAME> <<EMAIL>> * * Copyright (c) 2012-2013, <NAME> * All rights reserved. * * This program is free software: you can redistribute it and/or modify it * under, at your option, the terms of the GNU General ...
/* * linux/arch/m68k/sun3/sun3ints.c -- Sun-3(x) Linux interrupt handling code * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive * for more details. */ #include <linux/types.h> #include <linux/kernel.h> #include ...
#include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> const int indent_width = 2; struct cmd_stack { char *buffer; char *next; char *end; int count; int limit; char *(cmds[16]); int args[16]; }; enum bools { false = 0, true = 1 }; int read_t...
// 0x0700DFE8 - 0x0700E000 static const Lights1 ttm_seg7_lights_0700DFE8 = gdSPDefLights1( 0x4c, 0x4c, 0x4c, 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 ); // 0x0700E000 - 0x0700E100 static const Vtx ttm_seg7_vertex_0700E000[] = { {{{ -43, 93, -191}, 0, { 0, 376}, {0xb0, 0xa7, 0x28, 0xff}}}, {{{ ...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <limits.h> #include <libelf.h> #include <gelf.h> #include "vita-elf.h" #include "vita-import.h" #include "elf-defs.h" #include "sce-elf.h" #include "elf-utils.h" #include "fail-utils.h" // logging level int g_log = 0; #define N...
#include <windows.h> #define LOG_MODULE "iidxio-bio2" #include <stdatomic.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <string.h> #include "bemanitools/glue.h" #include "bemanitools/iidxio.h" #include "cconfig/cconfig-main.h" #include "aciodrv/device.h" #include "bio2drv/bi2a-iidx.h" #i...
/** * nftgen: Create nfts * * Version 1.0 March 2022 * * Copyright (c) 2022, <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...
#include "xftypedef.h" #include "xfbgraph.h" #include "xftextout.h" #include "xfmalloc.h" #include "xfunit.h" #include "xflist.h" static uint8 tt_get_size(XF_VIEW_List *tt) { XF_VIEW_ListUnit *posUnit = XF_NULL; uint8 posTemp = 0; if (XF_NULL == tt || XF_NULL == tt->head) return XF_NULL; for (posUni...
// ITU-T H.222.0(10/2014) // Information technology - Generic coding of moving pictures and associated audio information: Systems // 2.4.4.3 Program association table(p65) #include "mpeg-ts-proto.h" #include "mpeg-util.h" #include <stdlib.h> #include <string.h> #include <assert.h> struct pmt_t* pat_alloc_pmt(struct p...
/* * * Copyright (c) 2009 <NAME> <<EMAIL>>. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file or at http://github.org/redpig/patient0. * vim:tw=80:ts=2:et:sw=2 */ #include <assert.h> #include <dlfcn.h> #include <fcntl.h> #include <libkern/OSB...
#include <stdio.h> #include <stdlib.h> #include <math.h> // #include <sys/queue.h> /******* Layer FC 6 ********/ // #include "param_headers/6_weight.h" #include "param_headers/6_in.h" #include "param_headers/6_bias.h" #define IN_HEIGHT 6 #define IN_WIDTH 6 #define IN_DEPTH 256 #define OUT_HEIGHT 4096 // #define OUT...
/* * MIT License * * Copyright (c) 2020 <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, m...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <unistd.h> #include "fat12.h" #include "mkimg.h" unsigned int verbose; void fail(char* string) { printf("F: "); puts(string); exit(1); } void warning(char* string) { printf("W: "); puts(string); } void verbpr...
#include "tiles_generic.h" #include "m68000_intf.h" #include "z80_intf.h" #include "burn_ym2151.h" #include "burn_ym2203.h" #include "burn_ym2413.h" #include "burn_ym2612.h" #include "rf5c68.h" #include "burn_gun.h" #include "bitswap.h" #include "genesis_vid.h" #include "8255ppi.h" #define SYS16_ROM_PROG 1 #define S...
/* Copyright (c) 2007-2010 <NAME> <<EMAIL>> Copyright (c) 2010 <NAME> <<EMAIL>> Copyright (c) 2010 Center for Bioinformatics, University of Hamburg 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 a...
/* * 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...
/* * lxc: linux Container library * * (C) Copyright IBM Corp. 2007, 2008 * * Authors: * <NAME> <<EMAIL>.lez<EMAIL> at free.fr> * * 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; ...
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Duda I/O * -------- * Copyright (C) 2012-2014, <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...
/* res.c: Functions for loading resources from external files. * * Copyright (C) 2001-2006 by <NAME>, under the GNU General Public * License. No warranty. See COPYING for details. */ #include <stdlib.h> #include <string.h> #include <ctype.h> #include "defs.h" #include "fileio.h" #include "err.h" #include "oshw.h" ...
/* * Copyright (c) 2016-2020, 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 ...
/* -*- Mode: C -*- */ /* information.c -- */ /* * Copyright (c)1996, 1997, 1998 The Regents of the University of * California (Regents). All Rights Reserved. * * Permission to use, copy, modify, and distribute this software and * its documentation for educational, research, and not-for-profit * purposes, wit...
/****************************************************************************** * Copyright (c) 2015 Texas Instruments Incorporated - http://www.ti.com * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * ...
/* Editor Settings: expandtabs and use 4 spaces for indentation * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: * * -*- mode: c, c-basic-offset: 4 -*- */ /* * Copyright © BeyondTrust Software 2004 - 2019 * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you m...
#include <detect/detect_re2c.h> #include <assert.h> #include <stdlib.h> #include <string.h> #include <errno.h> int detect_re2c_add_data( struct detect_re2c *ctx, const void *data, size_t siz, bool fin) { assert(ctx->data == NULL || ctx->pos == ctx->data + ctx->siz); if (!ctx->tmp_data_in_use) {...
/* * Copyright (c) 2016 Intel 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-2.0 * * Unless required by applicable law or ...
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
// // SWMacros.h // CustomSWkitPod // // Created by 黄世文 on 2021/12/15. // Copyright © 2021 黄世文. All rights reserved. // /// 快捷创建属性 #define SWCreateProperty(propertyModifier, propertyPointerType, propertyName) \ @property(nonatomic,propertyModifier)propertyPointerType propertyName; \ ///暗黑模式颜色 #define SWDar...
#include <errno.h> #include <fcntl.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/socket.h> #include <bluetooth/bluetooth.h> #include <bluetooth/l2cap.h> #include <linux/videodev2.h> #define PORT 0x...
/** * @file buildDoubleBasedInput.c Driver to construct array of doubles for sorting. * @brief * Build up a pointer-based array of Doubles to use as a basis for testing * the various sorting algorithms. * * Required Input: * <ol> * <li>int numElements * <li>int verbose * </ol> * * Input flags...
/*======================================================================== * transcript.c -- Transcript generation routines for Tsunami client. * * This contains the code that logs Tsunami transfer statistics * available on the client to disk for later analysis. * * Written by <NAME> (<EMAIL>). * Copyright (C)...
///////////////// //example25.5.c ///////////////// #include <stdio.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_odeiv.h> #include <math.h> typedef struct{ double g;//gravity double M;//mass of the car double m;//mass of the load double r;//length of the rope double C;//damping...
/* * collector.c: * * Copyright (c) 2009-2017, NIPPON TELEGRAPH AND TELEPHONE CORPORATION */ #include "pg_statsinfod.h" #include <time.h> /* maintenance mode */ #define MaintenanceModeIsSnapshot(mode) ( mode & MAINTENANCE_MODE_SNAPSHOT ) #define MaintenanceModeIsLog(mode) ( mode & MAINTENANCE_MODE_LOG ) #define...
#include "bmm8563.h" #include "driver/i2c.h" #include <string.h> #undef ESP_ERROR_CHECK #define ESP_ERROR_CHECK(x) do { esp_err_t rc = (x); if (rc != ESP_OK) { ESP_LOGE("err", "esp_err_t = %d, line = %d", rc, __LINE__); } } while(0); #define I2C_NUM 0 void i2c_init() { i2c_config_t conf; conf.mode = I2C_MO...
/* GStreamer * unit test for the videobox element * * Copyright (C) 2006 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or ...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "mpi.h" #include "explicitPar.h" #define min(a,b) a <= b ? a : b int main(int argc, char *argv[]) { /* Sizes for discretization */ int size_x, size_y, size_z, me, x_domains, y_domains, z_domains; int size_x_glo, size_y_glo, size_z_glo; /* ...
// saes64.c // 2020-05-03 <NAME> <<EMAIL>> // Copyright (c) 2020, PQShield Ltd. All rights reserved. // Emulation code for SAES64 #include "saes64.h" #include "sboxes.h" // ( Multiply by 0x02 in AES's GF(256) - LFSR style ) static inline uint8_t aes_xtime(uint8_t x) { return (x << 1) ^ ((x & 0x80) ? 0x11B : ...
/* * @file seed.c * * The functions for the SEED object. * * $Id: seed.c 3885 2009-07-16 10:02:35Z tbailey $ * */ #include "seed.h" #include "hash_alph.h" #include <assert.h> #define trace(Y) fprintf(stderr,Y) /* seed_counter is global to all seed objects, and is used in order to place a serial_code ...
/* * Copyright (c) 1999, 2000 <NAME> * All rights reserved. * Copyright 2001 by <NAME> <<EMAIL>>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must ...
/* * Copyright (c) 2007-2011 <NAME> * All rights reserved. * * This file is part of the xprintf project. * The xprintf project is open source software and distributed * under the terms of the Simplified BSD License: * * Redistribution and use in source and binary forms, with or without modification, * are perm...
/* Last changed Time-stamp: <2007-07-10 19:10:56 xtof> $Id: options.c,v 1.12 2007/11/03 16:45:58 Kinwalker Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include <getopt.h> #include "options.h" static OptionS OptS; static struct option const long_options[] = { {"he...
// linux/libc.h // Allows a few specific programs to compile and run under linux. #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <fcntl.h> #include <assert.h> #include <memory.h> #include <stdarg.h> #include <termios.h> #include <sys/stat.h> #include <dirent.h> #define NOFILE ...
/* xixeventlib.c Functions for sending xixEventSet and xixEventClear TRAPS, NOTIFICATIONS and INFORMS in SNMPv1, SNMPV2c and SNMPv3. Currently only SNMPv2c has been implemented! <NAME> - <<EMAIL>> */ #include <net-snmp/net-snmp-config.h> #if HAVE_STDLIB_H #include <stdlib.h> #endif #...
/* * Copyright (c) 2019 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except i...
/************************************************************************************ PackProbe by <NAME> For documentation and the latest version see: http://powercartel.com/projects/packprobe/ Source Repository: <EMAIL>:PowerCartel/PackProbe.git Depends on SoftI2CMaster http://playground.arduino.cc/Main/Softwar...
/* * libx/matrix.c */ #include <math.h> #include <string.h> #include <matrix.h> void matrix_init(struct matrix_t * m, double a, double b, double c, double d, double tx, double ty) { m->a = a; m->b = b; m->c = c; m->d = d; m->tx = tx; m->ty = ty; } void matrix_init_identity(struct matrix_t * m) { m->a = 1...
// i8042.c #include <kernel.h> // #todo // Were was defined the 'PS2' confugyration structure? // See: input/i8042/ps2.h /* // #todo: Get these info with HAL. static int i8042_keyboard_irq=0; static int i8042_mouse_irq=0; static unsigned long i8042_keyboard_interrupt_handler=0; static unsigned long i8042_mouse_i...
/*************************************************** * This is an LGPL attempt to port the excelent Adafruit library * from C++ to C for platforms lacking C++ or Arduino support * * This library is Copyright (c) 2016, Allterco, Inc. All rights reserved * ****************************************************/ ...
/* TEST_HEADER id = $Id$ summary = null addr to fix (function) language = c link = testlib.o OUTPUT_SPEC assert_or_abort = true END_HEADER */ #include <string.h> #include "testlib.h" #include "mpscamc.h" #include "arg.h" /* what follows is hacked from newfmt.c */ #include "mps.h" /* tags */ enum {MCpadsingl...
/* Copyright (c) <NAME>, 1997. */ /* This program is freely distributable without licensing fees and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain. */ /* This program uses 3D texture coordinates to introduce "sifting" effects to warp a static ...
#include <string.h> #include <unistd.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdbool.h> #include <esim.h> #include "config.h" #include "dev_epiphany.h" #include "ctrl.h" #include "pal_base.h" #include <common.h> #include "../../../pal_base_private.h" #include...
#include <stdlib.h> #include "md5.h" // MACROS --------------------------------------------------------------------- // MD5 functions #define F(x,y,z) ((x & y) | (~x & z)) #define G(x,y,z) ((x & z) | (y & ~z)) #define H(x,y,z) (x ^ y ^ z) #define I(x,y,z) (y ^ (x | ~z)) // Rotate a 32 bit number left by n bits #defi...
/*- * ichsmb_pci.c * * Author: <NAME> <<EMAIL>> * Copyright (c) 2000 Whistle Communications, Inc. * All rights reserved. * Author: <NAME> <<EMAIL>> * * Subject to the following obligations and disclaimer of warranty, use and * redistribution of this software, in source or object code forms, with or * without ...
/* FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. *************************************************************************** * ...
/* * qstat * by <NAME> * * Teeworlds protocol * Thanks to <NAME> for the first Teeworlds patch (2008) * Thanks to <NAME> for the rewrite <<EMAIL>> (2014) * Thanks to <NAME> for some parts and help <<EMAIL>> * * Licensed under the Artistic License, see LICENSE.txt for license terms */ #include <string.h> #inc...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <dirent.h> #include <libgen.h> #include <signal.h> #include <fcntl.h> #include <pwd.h> #include <grp.h> #include <time.h> #include <locale.h> #include <langinfo.h> #include <sys/types.h> #include <sys/stat.h> #...
#include <linux/gpio.h> #include <linux/module.h> #include <linux/of_gpio.h> #include <linux/init.h> #include <linux/i2c.h> #include <linux/err.h> #include <linux/delay.h> #include <linux/kernel.h> #include <linux/input.h> #include <linux/slab.h> #include <linux/interrupt.h> #include <linux/jiffies.h> #include <linux/w...
/* * Copyright (c) 2000-2012 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file ex...
/* * Copyright 1996-2020 Cyberbotics 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 applicable law or ...
/* permutation/test.c * * Copyright (C) 2000 <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. * * Th...
/* * vol.c - Volume rendering helper routines etc. * * * $Id: vol.c,v 1.43 2004/02/03 06:00:40 johns Exp $ */ #include <stdio.h> #include "machine.h" #include "types.h" #include "macros.h" #include "vector.h" #include "util.h" #include "parallel.h" #include "threads.h" #include "vol.h" #include "box.h" #include ...
/* nbdkit * Copyright (C) 2017-2020 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...
#include <stdio.h> #include <string.h> #include "libparsecraylib.c" #define DISABLE_PARSEC "noparsec" #define NUM_COLORS 4 #define NUM_SHAPES 3 #define NUM_PLAYERS 8 const Color PlayerColors[NUM_COLORS] = { BLUE, RED, YELLOW, GREEN, }; enum PlayerShape { Rect = 0, Circle = 1, Triangle = 2 }; struct Player {...
/* * Copyright 2019-present Open Networking Foundation * Copyright (c) 2003-2018, Great Software Laboratory Pvt. Ltd. * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <string.h> #include <arpa/inet.h> #include <...
/* * Copyright 2021 ByteDance 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 agreed ...
/* * Copyright (c) 2010,2011,2012,2015 Apple Inc. All rights reserved. * * corecrypto Internal Use License Agreement * * IMPORTANT: This Apple corecrypto software is supplied to you by Apple Inc. ("Apple") * in consideration of your agreement to the following terms, and your download or use * of this Apple so...
// Lab 11 // this connection occurs in the USB debugging cable // U0Rx (PA0) connected to serial port on PC // U0Tx (PA1) connected to serial port on PC // Ground connected ground in the USB cable #include "tm4c123gh6pm.h" #include "UART.h" #include <string.h> //added this // Function Prototypes unsigned char parseDi...
/** * Copyright (c) 2020 <NAME> * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ #include "docker_util.h" #include <docker_log.h> #include <stdlib.h> #include <stdio.h> #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #include <archive.h> #include <arch...
#define _GNU_SOURCE #include <errno.h> #include <poll.h> #include <pthread.h> #include <string.h> #include <unistd.h> #include <pulse/pulseaudio.h> #include "../common.h" /** * Pulse connection structure. * @quit: The quit flag. * @pipe: The communication pipe. * @thread: The thread. * @width, lat: The w...
/* * trackingSub.c * ARToolKit5 * * Disclaimer: IMPORTANT: This Daqri software is supplied to you by Daqri * LLC ("Daqri") in consideration of your agreement to the following * terms, and your use, installation, modification or redistribution of * this Daqri software constitutes acceptance of these terms. ...
/* ProcFS - pid.c - generators for PID-specific files */ #include "inc.h" #include <sys/mman.h> #include <minix/vm.h> static void pid_psinfo(int slot); static void pid_cmdline(int slot); static void pid_environ(int slot); static void pid_map(int slot); /* * The files that are dynamically created in each PID direct...
//############################################################################# //! \file $FOLDER_EXAMPLES$/$DEVICE$_FixedPoint_FIR16/fir16d.c //! //! \brief 16-bit FIR Filter Example //! //! \date Aug 12, 2014 //! //! This examples shows how to implement a 16-bit FIR filter using the optimized //! FIR library rout...
/** @file chand_autocorr */ #include <math.h> #include <string.h> #include "ext.h" // standard Max include, always required #include "ext_obex.h" // required for new style Max object #include "ext_systime.h" // So we can get the time in milliseconds... right? #define DEFAULT_SAMPLE_SIZE 16 #define MAX...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * File Name : freertos.c * Description : Code for freertos applications ****************************************************************************** * @attention * * <h2><cente...
#include "pdb.h" #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <limits.h> #include <sys/stat.h> #include <sys/types.h> // http://www.psdevwiki.com/ps3/Project_Database_(PDB) unsigned int pdb_len_theme_01 = 210; static const unsigned char pdb_01...
/** @file @brief STM32F401RE Nucleo Initialize @date 2015.08.02 @author <NAME> */ #include "sysconfig.h" #include "tkprintf.h" #include "device/i2c_ioctl.h" #include "device/spi_ioctl.h" #include "device/rtc_ioctl.h" #include "device/video_ioctl.h" #include "device/vio_ioctl.h" #ifdef GSC_COMP_ENABLE_GRA...
/****************************************************************************** * * GPL LICENSE SUMMARY * * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License...
#include "dbhandler.h" #include "cidbmessages.h" #include "cidbconnection.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <memory.h> #include <sys/types.h> #include <unistd.h> /*#include <pthread.h>*/ #include "netutils.h" #include "logging.h" #include <sqlite3.h> #include <time.h> #include "ci_a...
/* * QEMU PC keyboard emulation * * Copyright (c) 2003 <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, ...
#include "bsTree.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include <limits.h> #include <math.h> #include <assert.h> BSTree* initTree(int m) { BSTree* bsTree = (BSTree*)malloc(sizeof(BSTree)); assert(bsTree); bsTree->mOrder = m; bsTree->root = NULL; return bsTree; } static void deleteNode(...
/*- * Copyright (c) 1983, 1992, 1993 * The Regents of the University of California. 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 a...
/**************************************************************************** * * * cryptlib Test Routines Header File * * Copyright <NAME> 1995-1999 * * * ****************************************************************************/ /* Define the following to enab...
/* * gpioinit.h * * Created on: Sep 7, 2021 * Author: AhmedAlaa * Description: This file contains all GPIO functions definitions */ #include "bitmath.h" #include "stdtypes.h" #include "gpio_reg.h" #include "gpio.h" // IO Pins void GPIO_SetPinDirection (uint8 PORTX, uint8 PINX, uint8 DIR) { Enable_Port(PO...
/* * LDAP Utilities * Copyright (C) 2019 <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 ...
/* Simple test application for libdedisp By <NAME> (2013) */ #include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> #include <dedisp.h> float gasdev(long *idum); // Assume input is a 0 mean float and quantize to an unsigned 8-bit quantity dedisp_byte bytequant(dedisp_float f) { dedisp_float...
#include "imd.h" //TODO: nachbarsuche mittels geometrischer loop über nachbarzellen für +y/-y-filteratome so wie für x-filter anpassen, // d.h. prüfen ob atom näher an +y oder -y grenze // bei +y: for(j=jmin;j<=jmax;j++) // bei -y: for(j=jmax;j>=jmin;j--) // // Weiterhin Problematisch: atome werden im imd_fix_cells_3d...
/* lzwcmprs.c - LZW compression code for TIFF */ /*----------------------------------------------------------------------*/ /* Copyright (c) 1987 */ /* by CompuServe Inc., Columbus, Ohio. All Rights Reserved */ /*----------------------------------------------------------------------*/ /* * ABS...
#include "mainwindow.h" #define SEPARATOR (char*)1 //MenuItem struct for easy construction of menu items typedef enum {CONDITION_NONE, CONDITION_POPULATED, CONDITION_SELECTED} ActivationCondition; typedef struct { const char* label; Icallback cb; ActivationCondition condition; } MenuItem; //Keyboard struct for ea...
/** * (C) Copyright 2018-2019 Intel 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-2.0 * * Unless required by applicable law or agr...
/* * Copyright © 2020 <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, distribut...
#include <stdio.h> #include <sys/wait.h> #include <getopt.h> #include <unistd.h> #include <stdlib.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> #include <string.h> #include <locale.h> #include "global_constants.h" #include "helpers.h" #include "message_queue.h" void wait_for_all_children(); char...
/* * TTML subtitle muxer * Copyright (c) 2020 24i * * This file is part of FFmpeg. * * FFmpeg 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 op...
/***************************************************************************//** * * @file OLED.c * @brief Driver for the OLED Display (SSD1305) * @author Embedded Artists AB * @author <NAME> * @version 1.0 * @date 14 March. 2012 * @warning Initialize I2C or SPI, and GPIO before calling any funct...
/* * Copyright (c) 2018, Intel Corporation * All rights reserved. * * Author: <NAME> <<EMAIL>> * * 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 co...