text
stringlengths
3.12k
18.7k
// Switch.c // Runs on LM4F120/TM4C123 // Provide functions that initialize a GPIO as an input pin and // allow reading of two negative logic switches on PF0 and PF4 // and an external switch on PA5. // Use bit-banded I/O. // Daniel and <NAME> // September 12, 2013 /* This example accompanies the book "Em...
/* * prog : gbd-gl.c * desc : demo opengl (glut) program for the gbd framework * * NOTE: This is borrowed code. Sub-optimal for RPi. Use * OpenGLES instead. * * Compile with: * * "gcc -Wall -O2 gbd-gl.c -o gbd-gl -lglut -lGLU -lrt -lm" * This program is distributed in the hope that it will be useful...
// 0x0701A150 - 0x0701A240 static const Vtx hmc_seg7_vertex_0701A150[] = { {{{ -3583, 2253, -3276}, 0, { -4118, -7186}, {0xff, 0xff, 0xff, 0xff}}}, {{{ -2559, 2253, -2764}, 0, { 990, 3032}, {0xff, 0xff, 0xff, 0xff}}}, {{{ -3071, 2253, -2764}, 0, { 990, -2076}, {0xff, 0xff, 0xff, 0xff}}}, ...
/* * $Id: datablock.c,v 1.5.2.2 2016/03/19 04:06:17 sfeam Exp $ */ /* GNUPLOT - datablock.c */ /*[ * Copyright <NAME> 2012 * * Gnuplot license: * * Permission to use, copy, and distribute this software and its * documentation for any purpose with or without fee is hereby granted, * provided that the above cop...
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <math.h> #include <pthread.h> #include <semaphore.h> #define NDEBUG #ifdef NDEBUG #define DEBUG_CMD(cmd); #else #define DEBUG_CMD(cmd) cmd; #endif typedef struct { long double A; long double B; long double fA; long double fB; lon...
/**************************************************************************** * * * GNAT COMPILER COMPONENTS * * * * ...
/* * This file is part of the UCB release of Plan 9. It is subject to the license * terms in the LICENSE file found in the top-level directory of this * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No * part of the UCB release of Plan 9, including this file, may be copied, * modified, prop...
#ifndef lint static const char RCSid[] = "$Id: objset.c,v 2.17 2015/04/28 16:56:10 greg Exp $"; #endif /* * objset.c - routines for maintaining object sets. * * External symbols declared in object.h */ #include "copyright.h" #include "standard.h" #include "octree.h" #include "object.h" #ifndef OSTSIZ #if...
#include <stdlib.h> #include "mesh.h" #if 0 int mesh_bd_hyperfaces_size(const mesh * m) { int i, j, m_bd_hyperfaces_size, m_dim, m_fc; int * m_cn; jagged1 m_hyperfaces_to_cells_sizes; m_dim = m->dim; m_cn = m->cn; mesh_fcn_part2(&m_hyperfaces_to_cells_sizes, m, m_dim - 1, m_dim); m_bd_hyperfaces_size...
/* WF32d -- basic 2-D image reduction This file contains: WF32d */ # include <stdio.h> # include <time.h> # include <string.h> #include "hstcal.h" # include "hstio.h" # include "wf3.h" # include "wf3info.h" # include "hstcalerr.h" # include "wf3corr.h" /* calibration switch names for calwf3 */ # include "trlbu...
/** * @file * * @date 01.04.10 * @author <NAME> */ #include <embox/cmd.h> #include <unistd.h> #include <time.h> #include <drivers/nxt_buttons.h> #include <drivers/lcd.h> extern __u8 display_buffer[NXT_LCD_DEPTH+1][NXT_LCD_WIDTH]; #define SPEED_INC 5 #define SIZE_X 25 #define SIZE_Y 16 #define SNAKE_LEN 4 #define...
#include <RASLib/inc/common.h> #include <RASLib/inc/gpio.h> #include <RASLib/inc/time.h> #include <RASLib/inc/motor.h> #include <RASLib/inc/linesensor.h> #include <RASLib/inc/adc.h> #include <unistd.h> // Blink the LED to show we're on tBoolean blink_on = true; void blink(void) { SetPin(PIN_F3, blink_on); blin...
/* Glidix GUI Copyright (c) 2014-2017, <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 condition...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include "psfilt.h" #include "defines.h" unsigned int nfft[3]; int xmin=0; /* window column minima */ int ymin=0; /* window row minima */ int width, ymax, xmax; /* interferogram width, window maxima */ void psfilt(char *int_fi...
/* test-eintr This tests the EINTR error code. It registers a handler for <ctrl-c> so that the user can generate a signal, and in turn blocks on either connect() or recv(). Usage #1: test-eintr 172.16.58.3. 80 This tries to connect to a server that doesn't exist, so the connect() function will have a long ti...
#include <ncurses.h> #define ENTER 10 #define ESC 27 #define UP 0 #define DOWN 1 #define LEFT 2 #define RIGHT 3 #define PLAYER_DEAD 0 #define ENEMY_DEAD 1 #define NONE_DEAD 2 #define vect_up(v) (vector){v.x, v.y-1} #define vect_down(v) (vector){v.x, v.y+1} #define vect_left(v) (vector){v.x-1, v.y} #define vect_righ...
/* * Train text on a two-state HMM using Baum-Welch algorithm * * @author yatbear <<EMAIL>> */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <ctype.h> #include <math.h> #define VOCAB_SIZE 27 // vocabulary si...
/* * Copyright (c) 2014-2015 <NAME> <<EMAIL>> * * Distributed under the terms of the MIT license. * (See LICENSE.MIT or http://opensource.org/licenses/MIT) */ #include <errno.h> #include <sys/mount.h> #include <sys/types.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <mntent.h> #include <s...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "tga.h" #include "model.h" typedef int Vector[3]; typedef double Mat4x4[4][4]; typedef double Mat4x1[4]; void swap(int *a, int *b); int abs(int a); double d_abs(double a); int Round(double a); int c_length(int a, int b, int c, int *s);...
#include <exec/tasks.h> #include <exec/execbase.h> #include "hardware.h" #include "memory.h" #include "blitter.h" #include "reader.h" #include "io.h" #include "ilbm.h" #include "serial.h" #include "coplist.h" #include "tasks.h" #include "worker.h" #include "sushiboyz.h" #define WIDTH 320 #define HEIGHT 256 #define D...
/* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. */ #include <stdbool.h> #include "logical-intercore.h" #include "mt3620-baremetal.h" #include "intercore.h" static uint32_t GetBufferSize(uint32_t bufferBase); static BufferHeader* GetBufferHeader(uint32_t bufferBase); ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "globheads.h" #include "protos.h" #define ALPHA 0.00001 /*--------------------end protos */ int PQperm(csptr mat, int bsize, int *Pord, int *Qord, int *nnod, double tol) { /*-------------------------------------------------...
// Copyright 2018 INTRIG/FEEC/UNICAMP (University of Campinas), Brazil // //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 require...
/*========================================================== File: font.c Author: _pragma Description: Handles fonts (rendering, initialization). ==========================================================*/ #include <GL/gl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #i...
#include <stdio.h> #include <stdlib.h> #include <ntsid.h> #include <pthread.h> #include <unistd.h> #include <ctype.h> #include "header.h" /* --- globals --- */ matrix_t * M; pthread_mutex_t mutex; pthread_cond_t condition; int main(int argc, char ** argv) { pthread_t * threadIds; coordinate_t ** coordinates; ...
/** * @file gpio.c * @brief * * DAPLink Interface Firmware * Copyright (c) 2009-2016, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtai...
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ /* gcr-viewer-tool.c: Command line utility Copyright (C) 2011 Collabora Ltd. The Gnome Keyring Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as publish...
/*************************************************************************/ /* */ /* jfc.c - JFS Compiler */ /* Copyright (c) 1999-2000 <NAME> */ /* ...
/* * yarrow.c * * Created on: Oct 22, 2019, 12:46:59 PM * Author: <NAME> * * Based on GNU Nettle implementation */ #include <assert.h> #include <stdlib.h> #include <string.h> #include "yarrow.h" #include "macros.h" /* Parameters */ /* An upper limit on the entropy (in bits) in one octet of sample data....
/* * Copyright (C) 2015 <NAME> <<EMAIL>> * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @{ * * @file */ #include <errno.h> #include "utlist.h" #include "net/gnrc/netif.h" #inc...
/* GBNserver.c */ /* Witten by <NAME> and <NAME> */ #include <time.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <stdio.h> #include <unistd.h> /* close() */ #include <string.h> /* memset() */ #include <stdlib.h> #include "sendto_.h" #inclu...
/*****************************************************************************/ /* */ /* typeconv.c */ /* */ ...
/* * bincipher * * bin2cipher.c * * Copyright (c) 2017 sasairc * * 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 u...
/* * Copyright [1999-2017] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute * * 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.o...
/* * Copyright (c) 2013-2015, Xerox Corporation (Xerox) and Palo Alto Research Center, Inc (PARC) * 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 r...
#include "jkGUITitle.h" #include "General/Darray.h" #include "General/stdBitmap.h" #include "General/stdFont.h" #include "General/stdStrTable.h" #include "General/stdFileUtil.h" #include "Engine/rdMaterial.h" // TODO move stdVBuffer #include "stdPlatform.h" #include "jk.h" #include "Gui/jkGUIRend.h" #include "Gui/jkGU...
/*! \file main.c * \brief Snake game on terminal * * Simple snake implemented on linux terminal * Includes a top list record in file for competition * * Written by <NAME> * 1706228 * 02.10.2018 */ //#define DEBUG #include <stdio.h> #include <stdlib.h> // for random number #include <string.h> // memory operat...
#pragma config(Sensor, port1, userSensor, sensorNone) #pragma config(Sensor, port4, touch2, sensorVexIQ_LED) #pragma config(Sensor, port5, touch3, sensorVexIQ_LED) #pragma config(Sensor, port9, touch1, sensorVexIQ_LED) #pragma config(Sensor, port10, touch4, sensorVexIQ_LED) ...
#include <stdlib.h> #include <string.h> #include <errno.h> #include <limits.h> #ifdef USE_LEGACY_APPINDICATOR #include <libappindicator/app-indicator.h> #else #include <libayatana-appindicator/app-indicator.h> #endif #include "systray.h" static AppIndicator *global_app_indicator; static GtkWidget *global_tray_menu =...
/* xZTL: Zone Translation Layer User-space Library * * Copyright 2019 Samsung Electronics * * Written by <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...
/* ** $Id: print.c,v 1.55a 2006/05/31 13:30:05 lhf Exp $ ** print bytecodes ** See Copyright Notice in lua.h */ #include <ctype.h> #include <stdio.h> #define luac_c #define LUA_CORE #include "ldebug.h" #include "lobject.h" #include "lopcodes.h" #include "lundump.h" #define PrintFunction luaU_print #define Sizeof(x...
/* Copyright (C) 2000-2002, 2009-2010 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by <NAME> <<EMAIL>>, 2000. NOTE: The canonical source of this file is maintained with the GNU C Library. See glibc/locale/programs/ld-ctype.c. Bugs can be reported to <EMAIL>. Th...
/* * QEMU Leon3 System Emulator * * Copyright (c) 2010-2011 AdaCore * * 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...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <sys/select.h> #include <errno.h> #include <signal.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #define _GNU_SOURCE #include <getopt.h> #include "common.h" #define PORT 42380 #define BUF_SIZE 256 #...
#include "sys/backtrace.h" #include "sys/xip.h" #include "fsal.h" #include "osal.h" #include "wifinetstack.h" #include "idmanage/pbuf.h" #include "security/drv_security.h" #include "phy/drv_phy.h" #include "soc_defs.h" #include "ieee80211_mgmt.h" #include "ieee80211_mac.h" #include "sta_func.h" #include "wifi_api.h" #i...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <unistd.h> #include <time.h> #include "timer.h" #ifdef HAVE_GRAPHICS #include "display.h" #include "graphics.h" #endif #include "ShallowWater.h" /***************************************************************************************...
/* * Copyright 1998-2018 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...
/*************************************************************************** M.A.M.E.32 - Multiple Arcade Machine Emulator for Win32 Win32 Portions Copyright (C) 1997-2003 <NAME> and <NAME> This file is part of MAME32, and may only be used, modified and distributed under the terms of the MAME license, in "re...
#include <assert.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include <sys/stat.h> #include <syslog.h> #include <unistd.h> #include "config.h" #include "ini.h" #include "hll.h" /** * Static pointer used for * while we are still parsing the ...
/* * Copyright (c) 2005 <NAME> * Copyright (c) 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 * version 2.1 of the License, or (at your option) any later vers...
#include <config.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <signal.h> #include <termios.h> #include <fusionsound.h> #include <direct/mem.h> #include <direct/list.h> static IFusionSound *sound = NULL; static IFusionSoundMusicProvider *provider = NULL;...
/* PDCurses */ #include "pdcwin.h" #include <stdlib.h> #include <string.h> #ifdef PDC_WIDE #define USE_UNICODE_ACS_CHARS 1 #else #define USE_UNICODE_ACS_CHARS 0 #endif #include "acs_defs.h" DWORD pdc_last_blink; static bool blinked_off = FALSE; static bool in_italic = FALSE; /* position hardware cursor at (...
/* See LICENSE for license information. */ /** * struct WindowBase - window interface/base class */ #pragma once #include "settings.h" #include "timing.h" #include "util.h" #include <stdalign.h> #define WINDOW_IS_CLOSED (1 << 0) #define WINDOW_IS_FULLSCREEN (1 << 1) #define WINDOW_NEEDS_SWAP (1...
#include <stdio.h> #include <stdlib.h> #include "TNaryTree.h" #include "cola.h" void EncontrarArbol (TNaryTree Arbol, TElemento i, TNaryTree* found) { if (Arbol==NULL){ *found=NULL; }else { if (igual(&i, &(Arbol)->info)) { *found=Arbol; }else { TNar...
/* Target-dependent code for NetBSD/hppa Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc. This file is part of GDB. 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;...
/** ****************************************************************************** * @file FreeRTOS/FreeRTOS_Mail/Src/main.c * @author MCD Application Team * @brief Main program body ****************************************************************************** * @attention * * Copyright (c) 2018 ...
/* $LastChangedRevision: 851 $ * $LastChangedDate:: 2015-11-05 15:25:38 +0100 $ * * Copyright (c) 2016, Linz Center of Mechatronics GmbH (LCM) http://www.lcm.at/ * All rights reserved. */ /* * This file is licensed according to the BSD 3-clause license as follows: * * Redistribution and use in source a...
/* * Copyright (c) 1989, 1990, 1993, 1994, 1995, 1996 * 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: (1) source code distributions * retain the above copyright notice and this ...
#include "stm32f7xx_ll_bus.h" #include "stm32f7xx_ll_rcc.h" #include "stm32f7xx_ll_system.h" #include "stm32f7xx_ll_utils.h" #include "stm32f7xx_ll_gpio.h" #include "stm32f7xx_ll_exti.h" #include "stm32f7xx_ll_spi.h" #include "stm32f7xx_ll_pwr.h" uint8_t ubButtonPress = 0; uint8_t aTxBuffer[] = "**** SPI_T...
/*- * Copyright (c) 2001-2007, by Cisco Systems, 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: * * a) Redistributions of source code must retain the above copyright notice, * this...
/* * AAC encoder TNS * Copyright (C) 2015 <NAME> * * 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 opt...
/* Copyright (c) 2004-2007, <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 following...
/*! @file : MCUX_FRDM_KL02Z_IoT_RTU_demo.c * @author <NAME> * @version 1.0.0 * @date 8/01/2021 * @brief Funcion principal main * @details * v0.1 dato recibido por puerto COM es contestado en forma de ECO * v0.2 dato recibido por puerto COM realiza operaciones especiales * A/a=invierte estado de LE...
/* * Copyright 2017, Data61 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) * ABN 41 687 119 230. * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(DATA...
#include <stdarg.h> #include <stddef.h> #include <setjmp.h> #include <cmocka.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "utils/testMacros.h" #include "utils/zfpChecksums.h" #include "utils/zfpHash.h" struct setupVars { uint dimLens[4]; Scalar* dataArr; void* buffer; size_t bufsize...
/* * Copyright (c) 2015, Freescale Semiconductor, Inc. * Copyright 2016-2017 NXP * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "fsl_debug_console.h" #include "fsl_lpspi.h" #include "fsl_flexio_spi.h" #include "pin_mux.h" #include "board.h" #include "fsl_common.h" #include "fsl_int...
#include <sys/wait.h> #include <inttypes.h> #include <sys/time.h> #include <string.h> #include <assert.h> #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <errno.h> #include <time.h> #include "shr.h" #define W 0 #define R 1 #define F 2 char *ring = "/dev/shm/" __FILE__ ".ring"; /* make an enum and...
/* * 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, distribute, sublicense, and/or sell...
/*------------------------------------------------------------------------- * * pg_conversion.c * routines to support manipulation of the pg_conversion relation * * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * ...
/* * adv_pci1723.c * Comedi driver for the Advantech PCI-1723 card. * * COMEDI - Linux Control and Measurement Device Interface * Copyright (C) 2000 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by *...
#include <stdio.h> #include <stdlib.h> #include "grafo.h" #include "fila.h" struct grafo{ elem m[MAX_NUM_VERTICES][MAX_NUM_VERTICES]; int numVertices; int direcionado; }; /*Função criar_grafo: cria um grafo; @argumentos: ponteiros para inteiros n, erro e direcionado; @retorno: retorna, se obteve sucesso, um ponte...
#include <admin.h> #include <apdu.h> #include <ctap.h> #include <device.h> #include <oath.h> #include <openpgp.h> #include <piv.h> #include <string.h> enum APPLET { APPLET_NULL, APPLET_PIV, APPLET_FIDO, APPLET_OATH, APPLET_ADMIN, APPLET_OPENPGP, APPLET_ENUM_END, }; static const uint8_t PIV_AID[] = {0xA0...
#ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <glib.h> #include <stdio.h> #include <unistd.h> #include <sys/wait.h> #include <sys/prctl.h> #include "network.h" #include "process.h" #include "dns.h" char **shadowsocks_args; char *plugin_file; char *SS_REMOTE_HOST; char *SS_REMOTE_PORT; char *SS_LOCAL_HOST; ch...
/************************************************************************** * * Copyright 2007 VMware, 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 w...
#include "bme280.h" #include "i2c.h" #include "tmr0.h" #define MODE_WRITE 0 #define MODE_READ 1 #define BME280_DELAY 100 #define BME280_SAMPLE_SKIP 0x00 #define BME280_SAMPLE_X1 0x01 #define BME280_FILTER_OFF 0x00 #define BME280_STANDBY_0_5 0x00 #define BME280_MODE_NORMAL 0x03 #define BME280_RESET_POWERON 0xb6 #de...
#pragma once #include <windows.h> #define INSTRUCT_LENGTH 64 #define memsharedname "Local\\VDCApiLog" typedef signed char Int8; typedef unsigned char UInt8; typedef signed short Int16; typedef unsigned short UInt16; typedef signed int Int32; typedef unsigned int UInt32; typedef signed __int64 Int64; typedef unsigne...
#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...
/* * src/tdigest.c * * Implementation of the t-digest data structure used to compute accurate percentiles. * * It is based on the MergingDigest implementation found at: * https://github.com/tdunning/t-digest/blob/master/src/main/java/com/tdunning/math/stats/MergingDigest.java * * Copyright (c) 2016, <NAME> <<...
/** @file setupRoot.c * @brief Prepare a shifter environment based on image in the filesystem. * * The setupRoot program prepares a shifter environment, including performing * site-required modifications and user-requested bind mounts. This is * intended to be run by a WLM prologue prior to batch script execu...
#pragma once #define CL_TARGET_OPENCL_VERSION 300 #include <CL/cl.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #define CL_CHECK_ERR(ret) \ if ((ret) < 0) \ fprintf(stderr, \ "%s, line %d: cl error (%...
/* * helper functions for physically contiguous capture buffers * * The functions support hardware lacking scatter gather support * (i.e. the buffers must be linear in physical memory) * * Copyright (c) 2008 <NAME> * * Based on videobuf-vmalloc.c, * (c) 2007 <NAME>, <<EMAIL>> * * This program is free softwar...
/*- * Copyright (c) 2008 <NAME> <<EMAIL>>, * <NAME> <<EMAIL>>, * <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. Redistribut...
/* Copyright (C) 1997-2001 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in th...
/* Copyright (c) 2021 <NAME> */ /************************************************************************ SACPOFILT - SAC POlarization FILTer for three-component (3-C) data ************************************************************************* Author: <NAME>, RISSC, University of Naples, Italy, February 2010 ...
#include "common.h" #include "blob.h" #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <errno.h> #include <unistd.h> #include <sys/stat.h> #include <sys/mman.h> void blob_init(struct blob *blob) { memset(blob, 0, sizeof(*blob)); history_init(&blob->undo); history_init(&blob->redo); } ...
// // test_transforms.h // C-ray // // Created by Valtteri on 24.6.2020. // Copyright © 2020 <NAME>. All rights reserved. // #include "../src/datatypes/transforms.h" #include "../src/datatypes/vector.h" // Grab private functions float findDeterminant(float A[4][4], int n); float findDeterminant4x4(float A[4][4]);...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2018 <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 ...
#define _GNU_SOURCE #include "./headers/handler_test.h" #include "../headers/global.h" #include "../headers/handler.h" void test_global() { int addrlen = sizeof(struct sockaddr_in6); struct sockaddr_in6 address; memset(&address, 0, addrlen); address.sin6_addr.__in6_u.__u6_addr32[0] = 0; address.s...
/* * lsif.c * * list available interfaces * * Copyright (c) 2021 Cisco Systems, Inc. All rights reserved. License at * https://github.com/cisco/mercury/blob/master/LICENSE */ #ifndef _GNU_SOURCE #define _GNU_SOURCE /* To get defns of NI_MAXSERV and NI_MAXHOST */ #endif #include <arpa/inet.h> #include <sys...
/** @file patest_stop.c @ingroup test_src @brief Test different ways of stopping audio. Test the three ways of stopping audio: - calling Pa_StopStream(), - calling Pa_AbortStream(), - and returning a 1 from the callback function. A long latency is set up so that you can hear the difference. Then a simple 8...
#include <stdbool.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "parser.h" #include "variable_vector.h" term* _parseInfix(const char str[], int *index, term* term1, char* name, term** parent, hash_table* ht_variables, hash_table* ht_constants); bool isAcceptedCharacter(char c) { if ((c >= 'A...
/** * @file suite_bbob.c * @brief Implementation of the bbob suite containing 24 noiseless single-objective functions in 6 * dimensions. */ #include "coco.h" #include "f_attractive_sector.c" #include "f_bent_cigar.c" #include "f_bueche_rastrigin.c" #include "f_different_powers.c" #include "f_discus.c" #include "f...
/* SPDX-License-Identifier BSD-3-Clause */ #define _GNU_SOURCE #include <stdarg.h> #include <stdlib.h> #include <stdbool.h> #include <stdio.h> #include <netinet/in.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <jansson.h> #include <ev.h> #include <evsched.h> #include <syslog.h> #include <getop...
/* * CGlib * * A Low-Level GPU Graphics and Utilities API * * Copyright (C) 2011 Intel Corporation. * * 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, includin...
// clang t.c -lcygwin -lSDL2main -lSDL2 // clang -std=c++11 -S -emit-llvm #include <stdio.h> #include <stdbool.h> #include <SDL2/SDL.h> #define WIN_TITLE "hello, world" #define WIN_X 2000 #define WIN_Y 50 #define WIN_WIDTH 1800 #define WIN_HEIGHT 980 #define X_ACC 211380.0f #define Y_ACC X_ACC #define MAX_OBJS 1000...
/* * Xen control light * * file: xcl_net.c * * NEC Europe Ltd. PROPRIETARY INFORMATION * * This software is supplied under the terms of a license agreement * or nondisclosure agreement with NEC Europe Ltd. and may not be * copied or disclosed except in accordance with the terms of that * a...
/* $Id: visual.c,v 1.22 2007/05/25 21:22:19 soyt Exp $ ****************************************************************************** Graphics library for GGI. Handles visuals. Copyright (C) 1997 <NAME> [<EMAIL>] Copyright (C) 2000 <NAME> [<EMAIL>] Permission is hereby granted, free of charge, to any p...
/* FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. This file is part of the FreeRTOS distribution. FreeRTOS is free software; you can redistribute it and/or modify it under the terms of...
// // BRKeyECIES.c // // Created by <NAME> on 4/30/18. // Copyright (c) 2018 breadwallet 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...
// Physical memory allocator, intended to allocate // memory for user processes, kernel stacks, page table pages, // and pipe buffers. Allocates 4096-byte pages. #include "types.h" #include "defs.h" #include "param.h" #include "memlayout.h" #include "mmu.h" #include "spinlock.h" #include "x86.h" #include "proc.h" voi...