text
stringlengths
3.12k
18.7k
// Copyright 2015 <NAME> // Licensed under the Do What The Fuck You Want To License, Version 2 // See LICENSE for details or http://www.wtfpl.net/txt/copying #include <dlfcn.h> #ifndef HEADLESS #include <SDL2/SDL.h> #endif #include "cellhack/cellhack.h" #define usage() fprintf (stderr, "USAGE: cellhack turns width ...
/* Copyright (c) 2013 <NAME> and <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, pub...
/* Copyright 2016 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #define _GNU_SOURCE /* For asprintf */ #include <errno.h> #include <fcntl.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include ...
/* * 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...
/* * Copyright (C) 2008 Texas Instruments, Inc <www.ti.com> * * See file CREDITS for list of people who contributed to this * project. * * 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; e...
// Copyright (c) 2018 // <NAME> <<EMAIL>> // // License: MIT (see LICENSE for details) #include <stdlib.h> #include <string.h> #include <stdint.h> #include "led_effects.h" #include "nrf.h" #include "nrf_gpio.h" #include "nrf_pwm.h" #include <nrf_delay.h> #include "boards.h" #define LED_PIN NEOPIXEL void show_with...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <pthread.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <unistd.h> #include <ctype.h> #include <arpa/inet.h> #include "protocol.h" #include "board.h" void play(long sock); int authenticate(int s...
#include "hal/HAL.h" #include "hal/SPI.h" static void init(void); static void reset_ch1(); static void reset_ch2(); static unsigned char readWrite(SPIChannelTypeDef *SPIChannel, uint8_t data, uint8_t lastTransfer); static unsigned char spi_ch1_readWrite(uint8_t data, uint8_t lastTransfer); static unsigned ch...
/* * * Copyright (C) 2011, 2015 Cisco Systems, Inc. * Copyright (C) 2015 CBA research group, Technical University of Catalonia. * * 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: * * ...
#include "local.h" static double scb_crit, *x, c[10], kap[5], kaq[5], max_p2; /* static int side, type; */ static int type; design *scb_des; double covar_par(lf,des,x1,x2) lfit *lf; design *des; double x1, x2; { double *v1, *v2, *wk; paramcomp *pc; int i, j, p, ispar; v1 = des->f1; v2 = des->ss; wk = des->oc; ...
/* * fast_kmeans_step.c - fast pairwise distance matrix * * This MEX file works, but comments and documentation in particular are * a little slim ... * * Syntax: * [assigns,bestdists,clustersizes,centroids] = * fast_kmeans(waves,centroids,normsqr_waves,chunk) * * ##### NOTE #####...
// WasmRasteriser.c // Triangle texture mapper with correct perspective and simple lighting // <NAME>, 2017 // alanmacleod.eu // github.com/alanmacleod // // Inspired by portions of <NAME>' course work: https://github.com/ssloy // #include <stdio.h> #include <stdbool.h> #include "W...
#include <stdio.h> #include <stdlib.h> #include "arm.h" #include "arm_mem.h" #include "bios.h" #include "io.h" #include "sdl.h" #include "video.h" #include <unistd.h> #include <dirent.h> #include <switch.h> #define JOY_A 0 #define JOY_B 1 #define JOY_X 2 #define JOY_Y 3 #define JOY_LSTICK 4 #define JOY_RSTICK 5 #de...
/* ** The Sleuth Kit ** ** <NAME> [carrier <at> sleuthkit [dot] org] ** Copyright (c) 2006-2011 <NAME>, Basis Technology. All Rights reserved ** Copyright (c) 2003-2005 <NAME>. All rights reserved ** ** TASK ** Copyright (c) 2002 <NAME>, @stake Inc. All rights reserved ** ** Copyright (c) 1997,1998,1999, Internatio...
#include "stdlibc.h" uint32_t __last_rand = RAND_INIT; uint32_t sprintf(char *s, char *format, ...){ my_va_list args; char *s_org = s; char disp_digit; int pad_flg; uint32_t conv_len; char tmp[16]; int i; int data_int; char pad_char; my_va_start(args, format); ...
/* * Copyright 1998-2003 VIA Technologies, Inc. All Rights Reserved. * Copyright 2001-2003 S3 Graphics, 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 witho...
#include "types.h" #include "stat.h" #include "user.h" //#include "uthread.h" #define Q 0 #define P 1 #define R 2 #define Z 3 #define M 4 #define X 5 #define F 6 int table[5][6][6]; int* arrayCurrent; int* arrayNext; int numberOfSoldiers; int endOfLine = 0; //to check if we done to calculate the whole line. //stru...
/******************************************************************* NAME: transpose utility functions PURPOSE: These functions support the transpose timing test. The functions provided here are: void fill_mat () double test_results () void fill_garbage...
/***************************************************************************** * websocket.c: Simple websocket framing support * this file is part of https://github.com/ouistiti-project/libhttpserver ***************************************************************************** * Copyright (C) 2016-2017 * * Author...
//#include "stuff.h" //#include "kernel_memory.h" #include "mini_kernel.h" #include "Entry.h" #define BUCKET_MAGIC 0x0420 #define MEM_FREE 1 #define MEM_RESERVED 2 #define MEM_ACPI 3 #define MEM_HIBER 4 #define MEM_DEFECTIVE 5 typedef struct { uint16_t Magic; uint8_t Allocated; uint8_t Unused3; ...
// 0x0700B010 - 0x0700B110 static const Vtx bitdw_seg7_vertex_0700B010[] = { {{{ 307, 102, -818}, 0, { 5760, -4460}, {0x8d, 0xf0, 0xe3, 0xff}}}, {{{ -306, 102, -818}, 0, { 3716, -4460}, {0x8d, 0xf0, 0xe3, 0xff}}}, {{{ -306, 102, 819}, 0, { 3716, 990}, {0x8d, 0xf0, 0xe3, 0xff}}}, ...
/****************************************************************************** * * cmx_fault_decoder.c - Fault decoder module for ARM Cortex-M MCUs * * Written in 2015 by <NAME> (tronics.kroesche.io) * * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify,...
/* Author: <NAME> <<EMAIL>> Copyright (c) 2015 Cromulence LLC 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...
/* * Copyright (c) 2020 Cisco and/or its affiliates. * 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 applicabl...
#define BOOT_DATA_MAX 64 #include "packet.h" #define PAGE_SIZE 64 #define SECTOR_SIZE (PAGE_SIZE * 16) #define BASE_ADDR ((uint8_t*) 0x1000) #define TOP_OF_BOOT BASE_ADDR #define CONFIG_ADDR (TOP_OF_BOOT - PAGE_SIZE) static void* memset(void* dst, uint8_t fill, int len) { uint8_t* to = (uint8_t*) dst; while (--...
/* * Copyright (c) 1999-2003 Smithsonian Astrophysical Observatory */ /* * * zprocess.c -- routines to start up and communicate with a slave process * * based on zfiopr.c from NOAO IRAF system (more loosely than previously, * since we replaces the fork/exec with our own Launch()). * */ #include "zprocess.h"...
#include <stdio.h> #include "graphe.h" #define BUFFER_LENGTH 10000 #define LF 5 #include <string.h> #include<stdlib.h> #include<graph.h> #include<math.h> void LireGrapheErreur(int n, char *s); void _DessinerFleche(double x,double y,double xx,double yy); void _DessinerBoucle(double x,double y); /* Lire un graphe * ...
//rad10d.c - rad10d c code file //For project details visit https://clews.pro/projects/rad10.php and https://gitlab.com/clewsy/rad10d //For info regarding the mpd c library (libmpdclient), visit https://www.musicpd.org/libs/libmpdclient/. #include "rad10d.h" //Global declarations. int8_t volume_delta = 0; //Desire...
/* * OS independent serial interface * * Heavily based on Pirate-Loader: * http://the-bus-pirate.googlecode.com/svn/trunk/bootloader-v4/pirate-loader/source/pirate-loader.c * */ #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #ifdef USE_WINDOWS_OS #else #include <unistd.h> // for read/write #inclu...
/* Includes */ #include "stm32l1xx.h" #define HSI_VALUE ((uint32_t)16000000) #include "nucleo152start.h" #include <stdio.h> /* Private typedef */ /* Private define */ /* Private macro */ /* Private variables */ /* Private function prototypes */ /* Private functions */ void delay_ms(unsigned long delay); void de...
#include <stdint.h> #include <string.h> #include "thashx2.h" #include "address.h" #include "params.h" #include "f1600x2.h" #include "fips202x2.h" void thash(unsigned char *out, const unsigned char *in, unsigned int inblocks, const spx_ctx *ctx, uint32_t addr[8]) { uint32_t addrx...
/** * \file * * \brief SAM True Random Number Generator (TRNG) Unit test * * Copyright (C) 2014-2015 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 followi...
/* Copyright 2009-2012 Urban Airship 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: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the f...
/* $XFree86: xc/programs/xcursorgen/xcursorgen.c,v 1.8 2002/11/23 02:33:20 keithp Exp $ */ /* * xcursorgen.c * * Copyright (C) 2002 <NAME> * * 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 copyr...
/* * A lighter replacement for pocketchip-batt script in PocketCHIP. See the README.md. * Copyright (C) <NAME>, 2017. http://github.com/aleh/pocketchip-batt */ #include <stdio.h> #include <stdint.h> #include <errno.h> #include <linux/i2c-dev.h> #include <fcntl.h> #include <X11/Xlib.h> #include <X11/extensions/dpm...
/*****************************************************************************\ ** ** ** FILE: metabbs.c ** ** AUTHORS: Alexios ** **...
/* * spi_tx_arduino.c * * Created on: Mar 27, 2020 * Author: vladi */ /* * spi_tx_testing.c * * Created on: Mar 26, 2020 * Author: vladi */ #include <stdio.h> #include <string.h> #include "stm32f407xx.h" #define LED_ON 1U #define LED_OFF 0U //arduino analog pins #define ANALOG_PIN0 0 #defi...
#include <PiDxe.h> #include <Library/LKEnvLib.h> #include <Chipset/gsbi.h> #include <Library/ArmLib.h> #include <Library/AtomicLib.h> #include <Library/DebugLib.h> #include <Library/InterruptsLib.h> #include <Library/IoLib.h> #include <Library/MallocLib.h> #include <Library/TimerLib.h> #include <Library/UefiBootServ...
/* * Copyright (c) 2020, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at w...
/****************************************************************************/ #include <dos/dosextens.h> #include <dos/dostags.h> #include <dos/rdargs.h> #include <exec/execbase.h> #include <rexx/rxslib.h> #include <rexx/errors.h> #include <clib/rexxsyslib_protos.h> #include <clib/utility_protos.h> #include <clib/...
extern unsigned char UNICODEbuffer[200]; extern String fontname; #ifndef _EPD_DRIVE_H_ #define _EPD_DRIVE_H_ /**************-------------------------------------------************** Register table **************-------------------------------------------**************/ #define EPD2X9 1 //#define EPD1X54...
#include <Python.h> #include <numpy/arrayobject.h> #include <numpy/npy_math.h> #include <math.h> /* Define docstrings */ static char module_docstring[] = "C implementation of utility functions used in Voronoi grids"; static char simplex3d_volume_docstring[] = "Compute the volume of a 3d simplex"; static char neighbou...
/***********************************************************************/ /* */ /* Objective Caml */ /* */ /* <NAME>, <N...
/* MIT License Copyright (c) 2017 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
/* mipslabwork.c This file written 2015 by <NAME> Updated 2017-04-21 by <NAME> This file should be changed by YOU! So you must add comment(s) here with your name(s) and date(s): This file modified 2017-04-31 by <NAME> For copyright and licensing, see file COPYING */ #include <stdint.h> /* Decla...
/** * \file test_ecg_petsc_op.c * \author <NAME> * \date 2018/11/06 * \brief Benchmark of different routines for computing the SpMM */ /******************************************************************************/ /* INCLUDE */ /*******...
/* wiring_analog.c - analog input and output Part of Arduino - http://www.arduino.cc/ Copyright (c) 2005-2006 <NAME> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either versi...
#include <stdio.h> #include <stdlib.h> struct node *add_to_list(struct node *list, int n); struct node *search_list(struct node *list, int n); struct node *delete_from_list(struct node *list, int n); void print_list(struct node *list); int duplicates(struct node *list); void clear_list(struct node *list); struct node ...
#include <SDL.h> #define MAP "data/map.bmp" /******************************************************************/ /** Déclaration des constantes concernant la partie graphique **/ /******************************************************************/ // Énumère les sprites utilisables enum { ROAD=0, GRASS, ...
#include "common.h" #include <assert.h> #include <elf.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <divsufsort.h> #include <divsufsort64.h> // http://karel.tsuda.ac.jp/lec/EditDistance/ #define i_whole (i + wind_cnt * (WINDOW_SIZE - 1)) #define INTEGRATE_MAX (255 - 1) int diff(const char *...
/* * DebugConsole.c * */ #include "Application.h" // Declare external functions extern void CheckStatus(char* StringPtr, CyU3PReturnStatus_t Status); extern void IndicateError(uint16_t ErrorCode); extern CyU3PReturnStatus_t I2C_DebugPrint(uint8_t Priority, char* Message, ...); extern void SelectSPI_Device(uint32_t...
/* * Bindle Binaries Tools * Copyright (C) 2014 Bindle Binaries <<EMAIL>>. * * @BINDLE_BINARIES_BSD_LICENSE_START@ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source co...
/* * A queue is (roughly speaking) a Monitor in the sense of Hoare's paper. * It is an Object that includes synchronisation. * * It has the following methods: * Create: Create the queue and set it up ready for use. * Destroy: Input to the queue is finished (it will deallocate itself later). * Put: Put an el...
/* * Developed by <NAME> * Copyright (c) 2015 Celticom * * 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. * * THE SOFTWARE IS PROVIDED "AS IS" AND T...
#include "memcache_conn.h" #include "server.h" #include "utils.h" #include <assert.h> #include <event.h> #include <fcntl.h> #include <netinet/tcp.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sysexits.h> #include <unistd.h> // prototypes. static void process_hit_response...
/** ******************************************************************************* * * THIS SOFTWARE IS AN UNOFFICIAL RELEASE FROM DIALOG SEMICONDUCTOR (‘DIALOG’) * AND MAY ONLY BE USED BY RECIPIENT AT ITS OWN RISK AND WITHOUT SUPPORT OF ANY * KIND. THIS SOFTWARE IS SOLELY FOR USE ON AUTHORIZED DIALOG PRODUCTS AN...
#include "common.h" #include "sasstarget.h" #include <scarv/mp/mpn.h> #include <scarv/mp/mpz.h> #include <scarv/mp/mrz.h> #define NL 4 // size length in limbs (a limb is 32 bits) #define W 3 // window size for LtR algorithm #define PW (1<<(W-1)) // (2^(W-1)) // For evaluating Ttest on modulo exponentiation =...
#define _GNU_SOURCE #include "tsar.h" #define LVS_PROC_STATS "/proc/net/ip_vs_stats" #define LVS_CONN_PROC_STATS "/proc/net/ip_vs_conn_stats" #define LVS_CMD "sudo /usr/local/sbin/slb_admin -ln --total --dump" #define LVS_CONN_CMD "sudo /usr/local/sbin/appctl -csa" #define LVS_CMD_PATH "/usr/local/sbin/slb_admi...
/* The MIT License (MIT) Copyright (c) 2014 UnicornRaceEngineering 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...
/****************************************************************/ /* BGP-4 Protocol Viewer */ /* Programmed By <NAME> 2000/03 */ /* */ /* Route Update RTT Estimation ...
#include <pebble.h> static Window *s_main_window; static GSize s_window_size; /* * Gray values for the animated gradient. */ static int s_gray_top; static int s_gray_bottom; /* * Helper value for draw_method_feedback(). */ static int s_time_feedback_y; /* * Bayer matrix for ordered dithering. * * Have a look...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (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 * o...
/* * AWS IoT EduKit - Core2 for AWS IoT EduKit * Smart Thermostat v1.2.2 * main.c * * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. * Additions Copyright 2016 Espressif Systems (Shanghai) PTE LTD * * Licensed under the Apache License, Version 2.0 (the "License"). * You ...
/** * Copyright © 2016, University of Washington * 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,...
/* * Copyright (C) 2021 Texas Instruments Incorporated * * 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 condit...
#include "../include/v_program.h" #include "../include/v_types.h" #include "../include/v_loader.h" #include "../include/v_memory.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <GL/gl.h> #define SHD_DIR "/shader" #define VRT_EXT ".*v" #define FRG_EXT ".*f" GLuint glCreateProgram(); void glUseP...
/* x_net_tcpreceive.c 20060424. <NAME> did it based on x_net.c. x_net.c header follows: */ /* Copyright (c) 1997-1999 <NAME>. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ #include "m_pd.h" #include "s_stuff.h" #ifdef _W...
/* Disciplina: SCC0221 - Introdução à Ciência da Computação I - Professor <NAME> Trabalho 3 - Balanceamento de Recrusos Nome: <NAME> <NAME> Num. USP: 10724181 */ #include <stdlib.h> //Precisamos incluir a biblioteca "stdlib.h" dessa vez pois vamos alocar na #include <...
/* Copyright (c) 2018 NicoHood See the readme for credit to other people. 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,...
/** * gui_callbacks.c - GUI callback code for SciteProj * * Copyright 2006 <NAME>, 2009-2016 <NAME> * * This file is part of SciteProj. * * SciteProj 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, e...
// C11 standard // created by cicek on 30.12.2018 21:39 #include <stdio.h> #include <stdlib.h> #define SENTINEL -100000000 struct dugum { int icerik; struct dugum *sol; struct dugum *sag; }; struct ikili_arama_agaci { struct dugum *kok; }; void ikili_arama_agaci_olustur(struct ikili_arama_agaci **a...
#include <string.h> #include <stdlib.h> #include "driver/args.h" #include "common/arraylist.h" const Args default_args = { .help = false, .version = false, .debug = false, .compiler_debug = false, .size_opt = 0, .speed_opt = 1, .emit_format = EMIT_LINK, .target = NULL, .output_fil...
/* A few general routines used throughout HMMER. * * Contents: * 1. Miscellaneous functions for H3 * 2. Error handling (Die, Fail) * 3. License and copyright */ #include "p7_config.h" #include <math.h> #include <float.h> #ifdef HAVE_MPI #include <mpi.h> #endif #include "easel.h" #include "esl_getopts...
//Example ATmega2560 Project //File: ATmega2560Project.c //Author: <NAME> //Created: March 2015 //An example file for second year mechatronics project //include this .c file's header file #include "Robot.h" //static function prototypes, functions only called in this file static void motors_init(void); stat...
// Copyright (c) 2017 <NAME> // // This program is free software; you can redistribute it and/or modify it // under the terms of the MIT License. See LICENSE for more details. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/ioc...
/* * Copyright (c) 2021 Fastly, <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, publ...
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 <NAME> <<EMAIL>> */ /* * Check that memory marked with MADV_FREE is freed on memory pressure. * * o Fork a child and move it into a memory cgroup * * o Allocate pages and fill them with a pattern * * o Madvise pages with MADV_FREE * * o Ch...
/* BSD License Copyright (c) 2005, <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 the above copyright notice, this list of conditions and the followin...
/* Copyright 2019-2020 <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 Unless required by applicable law or agreed to in writing, s...
#include <stdlib.h> #include <dsballegro.h> #include <lua.h> #include <lauxlib.h> #include <lualib.h> #include "objects.h" #include "champions.h" #include "lua_objects.h" #include "global_data.h" #include "uproto.h" #include "timer_events.h" #include "editor_shared.h" #include "gamelock.h" #include "istack.h" extern s...
/* Copyright (c) 2020 <NAME> */ /* Add this flag when compiling geng: -D'PLUGIN="prunelaman.h"' */ /* Using rationals for (k,l) comes with a small overhead. Define this macro to use integers for (k,l). */ // #define INT_KL #define NTH_NODE(n) (bit[n]) /* Apparently lookup is faster than bitshift. */ /* Comment out ...
/* * FreeRTOS Kernel V10.1.1 * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. 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, includ...
/* * Copyright 2010, Weill Medical College of Cornell University * All rights reserved. * * This software is distributed WITHOUT ANY WARRANTY * under license "license.txt" included with distribution and * at http://neurodatabase.org/src/license. */ /** @file * @brief Count spike train words disregarding c...
// Copyright 2018 Minim 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 to in wr...
/******************************************** Trabalho ED1 2018/1: Sistema colaborativo <NAME> e <NAME> lista.c: implementações para lista genérica ********************************************/ #include "lista.h" #include <stdio.h> #include <stdlib.h> #include <string.h> // Implementando uma lista gené...
/** * @file aw9106b.c * @brief driver for aw9106b */ #include <stdbool.h> #include "aw9106b.h" #include "rgb_common.h" #include "i2c.h" #include "wait.h" #include "amk_printf.h" #ifndef AW9106B_DEBUG #define AW9106B_DEBUG 0 #endif #if AW9106B_DEBUG #define aw9106b_debug amk_printf #else #def...
#include <string.h> #include <stdio.h> #include <math.h> #include "main.h" #include "stm32f1xx_hal_tim.h" #define PI 3.14159 #define ASR 1.8 //360/200 = 1.8 void SystemClock_Config(uint8_t clock_freq); void TIMER2_Init(void); void GPIO_Init(void); void Error_Handler(void); TIM_HandleTypeDef htimer2;...
#include "network_server.h" /* Create server's socket * Args: * - server_port: Port to bind * Return: * - socket's file descriptor * */ int init_server_conn(int server_port) { int enable = 1; struct sockaddr_in serv; // sockaddr for source int fd; // Socket's file descriptor int addr_len; // A...
/*- * Copyright 2005,2007,2009 <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...
/* * Copyright 2004-2015 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is 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 * ...
#define _XOPEN_SOURCE #include <sys/types.h> #include <sys/wait.h> #include <errno.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdbool.h> #include <signal.h> #include <limits.h> #define WAIT_FOR_PROC_DEATH_TIMEOUT 10 #define SEP "---" #ifndef NDEBUG #define DPRINTF...
/*- * Copyright (c) 2011-2016 Varnish Software * Copyright 2019 UPLEX - <NAME> Systemoptimierung * All rights reserved. * * Authors: <NAME> <<EMAIL>> * Geoffrey <<EMAIL>> * <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted p...
#include <stdint.h> #include "MKL05Z4.h" #define DISABLE_WDOG 1 /* Predefined clock setups Multipurpose Clock Generator (MCG) in FLL Engaged Internal (FEI) mode Reference clock source for MCG module is the slow internal clock source 32.768kHz Core clock = 47.97MHz, BusClock = 23.48MHz *...
/* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2017 The University of Tennessee and The University * of Tennessee Resea...
/* * Copyright 1997, Regents of the University of Minnesota * * minitpart2.c * * This file contains code that performs the initial partition of the * coarsest graph * * Started 7/23/97 * George * * $Id$ * */ #include "metis.h" /************************************************************************* * T...
/* Copyright 2004,2007,2008,2010-2012,2014,2015,2018 IPB, Universite de Bordeaux, INRIA & CNRS ** ** This file is part of the Scotch software package for static mapping, ** graph partitioning and sparse matrix ordering. ** ** This software is governed by the CeCILL-C license under French law ** and abiding by the rules...
/* ============================================================================= * * normal.c * -- Implementation of normal k-means clustering algorithm * * ============================================================================= * * Author: * * <NAME> * ECE Department, Northwestern University * email: ...
/* mbed Microcontroller Library * Copyright (c) 2015-2016 Nuvoton * * 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...
/*- * Copyright (c) 2004 <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 retain the above copyright * notice, this list of co...