text
stringlengths
5.8k
28.2k
/***************************************************************************** * * <NAME> <<EMAIL>> * 20 July 1989 * * $Revision: 7.16 $ * * bool * format(fmt, precision, num, buf, buflen) * char *fmt; * double num; * char buf[]; * int buflen; * * The format function will produce a string representati...
/* * The Shadow Simulator * Copyright (c) 2010-2011, <NAME> * See LICENSE for licensing information */ #define _GNU_SOURCE #include <string.h> #include <glib.h> #include <stddef.h> #include <stdlib.h> #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <netinet/in.h> #inc...
#include "stddefx.h" /********/ /* USES */ /********/ /* libs ext. <>, our "" */ #include "csf.h" #include "misc.h" #include "app.h" #include <string.h> /* memcpy */ /*************/ /* EXTERNALS */ /*************/ /**********************/ /* LOCAL DECLARATIONS */ /**********************/ /* additional ones, std ...
/* * JPEG2000 encoder and decoder common functions * Copyright (c) 2007 <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 o...
#define _GNU_SOURCE /* See feature_test_macros(7) */ #include <dlfcn.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <unistd.h> #include <sys/syscall.h> #include <sys/types.h> #include <pthread.h> #include <signal.h> #include <poll.h> #include "debu...
#include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "io.h" #include "init.h" #include <libg.h> #include <gnot.h> uchar *intrreg; uchar idprom[32]; ulong rom; /* open boot rom vector */ int cpuserver; ulong romputcxsegm; ulong bank[2]; char mempres[256]; char fbstr[32];...
/** * Copyright (c) 2018, 2019, 2020, 2021 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, ...
// Copyright (c) 2010-2016 The YP-Spur Authors, except where otherwise indicated. // // 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 /...
/* * Copyright (C) 2012 The Android Open Source Project * * 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 app...
/* jit.demultiplex Copyright 2001-2005 - Cycling '74 <NAME> <EMAIL> */ #include "jit.common.h" #include "ext_strings.h" typedef struct _jit_demultiplex { t_object ob; char demultiplexdim; long scan_a; long scan_b; char autoclear; } t_jit_demultiplex; void *_jit_demultiplex_class; t_jit_err jit_demultipl...
#ident "@(#) $Id: application.c,v 1.1 2012/12/06 16:20:57 jdavid Exp $" /* Copyright (c) 2010, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must r...
/* * heap.c * * Copyright (c) 2008-2010 CSIRO, Delft University of Technology. * * This file is part of Darjeeling. * * Darjeeling 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 vers...
/* * ak4558.c * * Copyright (C) <NAME> * <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/module.h> #include <sound/soc.h> #include <linu...
/******************** (C) COPYRIGHT 2013 ************************************** * File Name : co1.c * Hackeroo : deh * Date First Issued : 01/22/2013 * Board : STM32F103VxT6_pod_mm * Description : Prototype a sensor ### OLIMEX ### *************************************************...
/************************************************************************** Copyright 2001 2d3d Inc., Delray Beach, FL 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 withou...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2008, The GROMACS development team, * check out http://www.gromacs.org for more information. * Copyright (c) 2012,2013, by the GROMACS development team, l...
#define _GNU_SOURCE #include <stdarg.h> #include <stddef.h> #include <setjmp.h> #include <cmocka.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <wire.h> void handle_text(char* buf, int sz, char* data, int dsz, wirecallbacks_t* cbs) { int* res = (int*)cbs->userdata; *res = (strncmp(buf...
/* * Copyright (c) 2012 Qualcomm Atheros, Inc. * * Permission to use, copy, modify, and/or 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 THE AUT...
/***************************************************************************//** * @file * @brief LESENSE decoder demo for EFR32FG23. This example uses LESENSE * to scan two ACMP channel in low energy mode. The LESENSE is able to * detect when the input signal crosses over a certain threshold and will...
#include <stdint.h> #include <stdlib.h> #include <time.h> // struct tm #include <string.h> ////////////////////// // Schema Definition ////////////////////// typedef struct warehouse_t { int w_id; // primary key; this field need to hold up to 2*W unique IDs char w_name[11]; char w_street_1[21]; cha...
#include <assert.h> #include <string.h> #include <stdlib.h> #include "ice40.h" #define MAX(x, y) (x) > (y) ? (x) : (y) #define ARRAY_SIZE(x) ((sizeof(x) / sizeof(*x))) #define DEBUG_PRINT(...) // #define DEBUG_PRINT(...) printf(__VA_ARGS__) // #define SCAN_DEBUG // Make this a macro so line numbers work ...
#include <uv.h> #include "hs_uv.h" #include <assert.h> #include <stdlib.h> #include <stdio.h> /********************************************************************************/ // initialize a loop with its data to give slot size. return NULL on fail. uv_loop_t* hs_uv_loop_init(size_t siz){ int r; uv_loop_t*...
#include "common/cmd_channel_impl.h" #include "common/devconf.h" #include "common/guest_mem.h" #include "common/ioctl.h" #include "common/socket.h" #include "common/cmd_handler.h" #include "worker.h" #include <assert.h> #include <errno.h> #include <fcntl.h> #include <poll.h> #include <string.h> #include <sys/mman.h> ...
/** * Author: <NAME> * Description: Transfer Encrypted File Client */ #include "default.h" #define DEFAULT_HOST "localhost" #define EXIT_PROGRAM 0 #define DONT_EXIT_PROGRAM 1 #define CMD_QUIT "quit" #define CMD_HELP "help" #define CMD_LS "ls" #define CMD_LLS ...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
/* MIB service - remote.c - remote service management and communication */ #include "mib.h" /* * TODO: the main feature that is missing here is a more active way to * determine that a particular service has died, so that its mount points can * be removed proactively. Without this, there is a (small) risk that we ...
#include "MKL25Z4.h" #include "uart.h" #include "main.h" #include "adc16.h" #include "timers.h" char strNewLine[] = "\r\n"; float servoPConstant = 22; float servoIConstant; float servoDConstant = 6; unsigned short PWCenter = 4500; unsigned short tempPW = 0; volatile float midpointError; //Buffers...
//Description - Load fonts bypassing registry and Windows\Fonts directory //Usage : loadfonts [ path-to-fontfile | [-R] directory | -L list-of-fonts-and-dirs ]... // fontfile : tested with *.ttf, *.ttc (not all work), .otf, *.pfb (with associated .pfm and .mmm, not all work) /* To compile with Microsoft Visual C...
/* Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. All rights reserved. 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 Unl...
/* * 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: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditio...
#include "nbody_barneshut.h" /* Implementation of a barnes-hut algorithm for the N-Body problem. */ void nbodybarneshut (particle_t * array, int nbr_particles, int nbr_iterations) { int n; double step = TIMESTEP; node * root1; node * root2; node * root; particle_t tmp; printf("Creation of the tree ..."); roo...
#include <stdlib.h> #include <string.h> #include "regex-engine.h" #define MAX_REGEXP_OBJECTS 30 /* Max number of regex symbols in expression. */ #define MAX_CHAR_CLASS_LEN 40 /* Max length of character-class buffer in. */ enum { UNUSED, DOT, BEGIN, END, QUESTIONMARK, STAR, ...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include "lab2.h" #include "inc/hw_gpio.h" #include "inc/hw_ints.h" #include "inc/hw_memmap.h" #include "inc/hw_types.h" #include "driverlib/debug.h" #include "driverlib/gpio.h" #include "driverlib/interrupt.h" #include "driverlib/sysctl.h" #include...
#include "tokens.h" #include <stdint.h> #include <stddef.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include "debug.h" static char const * tok_tbl[256] = { "NUL", // 0 "▸DMS", // 1 "▸DEC", // 2 "▸FRAC", // 3 "→", // 4 "BoxPlot", // 5 "[", // 6 "]", // 7 "{", // 8 "}", // 9 "ʳ", // 10 "...
static const char rcsid[] = "$Header: /tmp/cvstest/DHCP/dst/dst_support.c,v 1.4 2007/12/06 00:50:22 dhankins Exp $"; /* * Portions Copyright (c) 1995-1998 by Trusted Information Systems, Inc. * Portions Copyright (c) 2007,2009 by Internet Systems Consortium, Inc. ("ISC") * Portions Copyright (c) 2012 by Internet S...
#define _POSIX_C_SOURCE 200809L #include <ctype.h> #include <fcntl.h> #include <inttypes.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "build.h" #include "deps.h" #include "env.h" #include "graph.h" #include "util.h" /* .ninja_deps file format The head...
/***************************************************************************** / / SPACE (SPArse Cholesky Elimination) Library: graph.c / / author <NAME>, University of Paderborn / created 99sep14 / / This file contains functions dealing with the graph object. / ********************************************...
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or its l...
/* Abstraction of GNU v2 abi. Copyright (C) 2001-2019 Free Software Foundation, Inc. Contributed by <NAME> <<EMAIL>> 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...
/** * @file tinysync.c * @author <NAME> * @date 2014.09.03 * @brief Tiny-sync time synchronisation algorithm * * MIT License * * Copyright (c) 2022 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
/* * Copyright (C) 2014 The Regents of the University of California. * * 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...
/* # This file is part of the Astrometry.net suite. # Licensed under a 3-clause BSD style license - see LICENSE */ #include <math.h> #include <stdio.h> #include <string.h> #include <assert.h> #include <stdlib.h> #include "mathutil.h" #include "keywords.h" #define InlineDefine InlineDefineC #include "mathutil.inc"...
/* libFLAC - Free Lossless Audio Codec library * Copyright (C) 2004-2009 <NAME> * Copyright (C) 2011-2016 Xiph.Org Foundation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source c...
/* * fs/proc/kcore.c kernel ELF/AOUT core dumper * * Modelled on fs/exec.c:aout_core_dump() * <NAME> <<EMAIL>> * ELF version written by <NAME> <<EMAIL>> * Modified and incorporated into 2.3.x by <NAME> <<EMAIL>> * Support to dump vmalloc'd areas (ELF only), Tigr<NAME>ivazian <<EMAIL>> * Safe accesses to vmalloc...
/** * @file * * @date 31.03.2017 * @author <NAME> */ #include <stdint.h> #include <string.h> #include <drivers/common/memory.h> #include <hal/reg.h> #include <util/array.h> #include <util/log.h> #include <framework/mod/options.h> #define CCM_BASE OPTION_GET(NUMBER, base_addr) #define CCM_ANALOG_BASE...
//------------------------------------------------------------------------------ // GB_mex_about: print the 'about' information //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2018, All Rights Reserved. // http://suitesparse.com See GraphBLA...
/*------------------------------------------------------------------------- * * partcache.c * Support routines for manipulating partition information cached in * relcache * * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of Califo...
/******************************************************************************* * main.c * * (c)2015 LimiFrog / CYMEYA * This program is licensed under the terms of the MIT License. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. * Please refer to the License File LICENSE.txt located at ...
/* GStreamer * Copyright (C) <2007> <NAME> <<EMAIL>> * * gstrtppayloads.h: various helper functions to deal with RTP payload * types. * * 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 Fo...
#include "screen.h" #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #include <string.h> #include "compat.h" #include "icon.xpm" #include "lock_util.h" #include "log.h" #include "tiny_xpm.h" #define DISPLAY_MARGINS 96 #ifdef OVERRIDE_FONT_PATH # define DEFAULT_FONT_PATH OVERRIDE_FONT_PATH #else # define DEFAULT_FONT...
/* * Copyright (c) 1997-2007 The Stanford SRP Authentication Project * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without ...
//################################ //## ANDROID ## //################################ #include <SLES/OpenSLES.h> #include <SLES/OpenSLES_Android.h> #define MAX_NUMBER_INTERFACES 4 #define MAX_NUMBER_INPUT_DEVICES 4 int g_default_buffer_size = 1024; int g_buffer_size = 0; uint* g_sound_output_buffe...
// mp3player.c: MP3 Player Implementation in C for Sony PSP // //////////////////////////////////////////////////////////////////////////// #include <pspkernel.h> #include <pspdebug.h> #include <pspiofilemgr.h> #include <pspdisplay.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <errno.h> #incl...
/* EXAMPLES\NONSYM\dndrv3.f -- translated by f2c (version 20100827). */ #include <stdlib.h> #include "arpack.h" /** * \BeginDoc * * Simple program to illustrate the idea of reverse communication * in inverse mode for a generalized nonsymmetric eigenvalue problem. * * We implement example three of ex...
// ISO/IEC 14496-1:2010(E) // Annex I: Usage of ITU-T Recommendation H.264 | ISO/IEC 14496-10 AVC (p150) // // 1. Start Codes shall not be present in the stream. The field indicating the size of each following NAL unit // shall be added before NAL unit.The size of this field is defined in DecoderSpecificInfo. // 2. ...
#include "crypto_sign.h" #include <stdlib.h> #include <string.h> #include "api.h" #include "randombytes.h" #include "zerobytes.h" #include "params.h" #include "wots.h" #include "horst.h" #include "hash.h" #include "crypto_hash_blake512.h" #include "permute.h" #define BIGINT_BYTES ((TOTALTREE_HEIGHT-SUBTREE_HEIGHT+7)/...
/* * Copyright (C) 2019 GreenWaves Technologies * * 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 l...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c)...
/* <NAME>'s way of getting code execution is smart, amazing work. Here it comes. This contains the code in which we can run our unsigned or signed binaries outside of the sandbox. So if you wonder where ziVA is, it is here. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include ...
/* common.h : for use with the program 'segal' by <NAME>, LBL */ /***********************************************************************/ /* COPYRIGHT NOTICE *******************************************/ /***********************************************************************/ /* This program is copyrigh...
#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <stdarg.h> #include <assert.h> #include <memory.h> #include <errno.h> #include <unistd.h> #include <arpa/inet.h> #include <netdb.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include...
#include <stdio.h> #include <libintl.h> #include <locale.h> #include <string.h> #include <argp.h> /** * Convert roman num to decimal * Domain: 1..100 * @param rom - roman num string * @return integer number */ int fromRoman( char *rom) { int n = 1; if ( strcmp("I", rom ) == 0 ) return n; n++; if (...
/* Sorting and loading of PSL align records into the database. This module * functions as a singlton object, with global state that can be reset. * Refer to the doc/database-update-step.html before modifying. */ #include "common.h" #include "gbAlignData.h" #include "gbAlignTbl.h" #include "gbGeneTbl.h" #include "gbC...
/* zxbench.c - Benchmark zxid libraries * Copyright (c) 2010 <NAME> (<EMAIL>), All Rights Reserved. * Copyright (c) 2006 Symlabs (<EMAIL>), All Rights Reserved. * Author: <NAME> (<EMAIL>) * This is confidential unpublished proprietary source code of the author. * NO WARRANTY, not even implied warranties. Contain...
#include <rm.h> #define PLOT 0 #define RM_RANGE_PARTICLES 1 #define TOP 1 #define RIGHT 1 #define BOTTOM 1 #define LEFT 1 tw_petype rm_pes[] = { { (pe_init_f) rm_pe_init, (pe_init_f) rm_pe_post_init, (pe_gvt_f) rm_pe_gvt, (pe_final_f) rm_pe_final }, {0}, }; tw_lptype rm_lps[] = { { (init_f) _rm_i...
/*s: include/gui/panel.h */ #pragma src "/sys/src/libpanel" #pragma lib "libpanel.a" /*s: type [[Icon]] */ typedef void Icon; /* Always used as Icon * -- Image or char */ /*e: type [[Icon]] */ // forward decls typedef struct Panel Panel; /* a Graphical User Interface element */ typedef struct Scroll Scroll; typede...
/* factory.c <NAME> (<EMAIL>), 02 Aug 2021 FreeBSD-style copyright and disclaimer apply */ #include "game/chunk.h" #include "game/coord.h" #include "items/io.h" #include "items/item.h" #include "items/types.h" #include "render/ui.h" #include "utils/vec.h" #include "utils/htable.h" // --------------------------...
#include <stdio.h> #ifdef _USE_GMP # include <gmp.h> #else # error "GMP support missing" #endif #include <stdlib.h> #include <assert.h> #include <limits.h> #include <inttypes.h> #define USE_SIEVE 1 #define USE_ESIEVE 1 #define USE_LUT50 1 #define SIEVE_LOGSIZE 34 #ifdef USE_SIEVE # include <sys/types.h> # include <sy...
#include "assets/model/model.h" #include <assert.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <stdio.h> #include <assets/model/postprocess.h> /*----------------------------------------------------------------- * Data iterator *---------------------------------------------------------------...
///////////////////////////////////////////////////////////// // // Many source code lines are copied from RaspiVid.c // Copyright (c) 2012, Broadcom Europe Ltd // // Lines have been added by <NAME> - mai 2013 // <EMAIL> // to work with OpenCV 2.3 // visit thinkrpi.wordpress.com // Enjoy ! // This file display camera ...
/* Copyright (C) 2021 Barcelona Supercomputing Center and University of * Illinois at Urbana-Champaign * SPDX-License-Identifier: MIT */ /** \file * \brief c function tests for the modal/binned aerosol representation */ #include <math.h> #include <stdio.h> #include <stdlib.h> #include "../test_common.h" #include "...
/* * Author: <NAME> <<EMAIL>> * Bitcoin: 1CanaaniJzgps8EV6Sfmpb7T8RutpaeyFn * * This is free and unencumbered software released into the public domain. * For details see the UNLICENSE file at the root of the source tree. */ #include <stdbool.h> #include <stdint.h> #include "minilibc.h" #include "system_config.h...
/* main.c - Resource library - Public Domain - 2014 <NAME> / Rampant Pixels * * This library provides a cross-platform resource I/O library in C11 providing * basic resource loading, saving and streaming functionality for projects based * on our foundation library. * * The latest source code maintained by R...
/******************************************************************************* * Copyright (C) 2004-2007 Intel Corp. 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 sourc...
/* ------------------------------------------------------------------------- @file lcd_nokia_5110.c @date 08/22/19 10:32:01 @author <NAME> @email <EMAIL> @brief @detail Licence: 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 ...
/* # _____ ___ ____ ___ ____ # ____| | ____| | | |____| # | ___| |____ ___| ____| | \ PS2DEV Open Source Project. #----------------------------------------------------------------------- # Copyright 2001-2004, ps2dev - http://www.ps2dev.org # Licenced under Academic Free License ve...
/* * IMS Open Corpus Workbench (CWB) * Copyright (C) 1993-2006 by IMS, University of Stuttgart * Copyright (C) 2007- by the respective contributers (see file AUTHORS) * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as publish...
/********************************************************************* DS1302.C <NAME>, ADEMCO 05/26/99 This file handles the Dallas DS1302 Real Time Clock. On the Motorola Coldfire MCF5206, the DS1302 requires three port pins, designated as follows... RESET* Port PP0 CLOCK Port PP1 DATA Port PP2 **...
/* * NASA Docket No. GSC-18,370-1, and identified as "Operating System Abstraction Layer" * * Copyright (c) 2019 United States Government as represented by * the Administrator of the National Aeronautics and Space Administration. * All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the...
/** * MIT License * * Copyright (c) 2021 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, ...
#include <stdio.h> #include <stddef.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <mpi.h> #include "mp-mpiu.h" static void * default_mpiu_malloc_func(const char * name, size_t size, const char * file, const int line, void * userdata) { return malloc(size); } static void default_mpiu_free_func...
#include <math.h> #include "darknet.h" void probe_cgan(network *net, char *filepath, char *name); void ideal_cgan(network *net, char *filepath, char *name); void train_cgan(char *datacfg, char *gcfg, char *gweight, int *gpus, int ngpus, int clear) { int i; float avg_loss = -1; char *base = basecfg(gcfg);...
#include <sys/types.h> #include "assert.h" #include "chunk.h" #include "config.h" #include "debug.h" #include "error.h" #include "init.h" #include "os.h" /* For sys_alloc, enough padding to ensure can malloc request on success */ #define SYS_ALLOC_PADDING (TOP_FOOT_SIZE + MALLOC_ALIGNMENT) #define HALF_MAX_SIZ...
/* * Driver for Semtech SX8654 I2C touchscreen controller. * * Copyright (c) 2015 Armadeus Systems * <NAME> <<EMAIL>> * * Using code from: * - sx865x.c * Copyright (c) 2013 U-MoBo Srl * <NAME> <<EMAIL>> * - sx8650.c * Copyright (c) 2009 <NAME> * - tsc2007.c * Copyright (c) 2008 <NAME> * - ad...
#include<graphics/opengl_es.h> #include<graphics/opengl_es2.h> #include<graphics/v3d.h> #include<graphics/gpu_mem_util.h> #include <plibc/stdio.h> #define v3d ((volatile __attribute__((aligned(4))) uint32_t*)(uintptr_t)(V3D_BASE)) #define ALIGN_128BIT_MASK 0xFFFFFF80 extern uint32_t GPUaddrToARMaddr (uint32_t BUSaddr...
#include <assert.h> #include <ctype.h> #include <errno.h> #include <libgen.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include "compile.h" #include "jv.h" #include "jq.h" #include "jv_alloc.h" #include "version.h" int jq_testsuite(int argc, char* argv[]); static const char* prog...
/* * Copyright (c) 2020, <NAME> * * Permission to use, copy, modify, and/or 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 THE AUTHOR DISCLAIMS A...
/* * Copyright (C) 2007 <NAME> <<EMAIL>> * * This file is part of MPlayer. * * MPlayer 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 v...
/* mpfr_get_decimal128 -- convert a multiple precision floating-point number to an IEEE 754-2008 decimal128 float See https://gcc.gnu.org/legacy-ml/gcc/2006-06/msg00691.html, https://gcc.gnu.org/onlinedocs/gcc/Decimal-Float.html, and TR 24732 <http://www.open-std.org/jtc1/sc22/wg14/www/projec...
/* Translated from Bitcoin Core's C++ project: * src/crypto/sha256.cpp commit eb7daf4d600eeb631427c018a984a77a34aca66e * * Copyright (c) 2014-2018 The Bitcoin Core developers * Distributed under the MIT software license, see the accompanying * file COPYING or http://www.opensource.org/licenses/mit-license.php. */...
/* * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (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.mozilla.org/MPL/ * * Sof...
#include "nine.h" #include "version.h" #include "mp.h" #include "libsec.h" #include "keyboard.h" extern int cflag; int exdebug; extern int keepbroken; uv_tty_t tty; uv_async_t ev_conschar; uv_loop_t* kbdloop; uv_cond_t line_ready; uv_mutex_t line_lock; enum { Qdir, Qcons, Qconsctl, Qdrivers, Qhostowner, Qhostst...
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <math.h> #include <string.h> #define MAXOP 100 //if rezult of recognizing of string is digit returning value is '0' #define NUMBER_0 '0' //if rezult of recognizing of string is 'a' returning value is '1' #define NUMBER_1 '1' //if rezult of recognizing...
/* * 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...
/* * Mesa 3-D graphics library * Version: 0.1 * * Copyright (C) 1999-2002 <NAME> 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, includi...
/* * fns.h: generated by the following command: * * tail -n +1 sys/src/9/*.c wasm/sys/src/9/devproc.c wasm/sys/src/9/os.c | tr '.</\n{}#;' '\t(\t\t\n\n\n\n' * | grep -o '\t[_A-Za-z][_A-Za-z0-9 \*]*\t[A-Za-z_][A-Za-z0-9_ ]*'\('.*\t' | grep -v static >fns.h * * (then some further manual editing required to f...
/* * util.c */ #define _GNU_SOURCE #include "config.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <errno.h> #include "copyright.h" #include "defs.h" #include "struct.h" #include "data.h" #include "planet.h" #if !defined(strcasestr) #define strcasestr strstr #endif /* !def...
/* * Copyright (C) 1997 Massachusetts Institute of Technology * * This software is being provided by the copyright holders under the * following license. By obtaining, using and/or copying this software, * you agree that you have read, understood, and will comply with the * following terms and conditions: * *...
// Comment this line if you don't have opengl installed #define _opengl #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <math.h> #ifdef _opengl #include <GL/freeglut.h> #include <GL/glut.h> #endif typedef struct { float r; float g; float b; float a; } Color; ...
/* georec.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static doublereal c_b11 = 1.; /* $Procedure GEOREC ( Geodetic to rectangular coordinates ) */ /* Subroutine */ int geore...