text
stringlengths
5.8k
28.2k
/* * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to the limitations in the * disclaimer below) provided that the following conditions are met: * * * Redistributions of source ...
/***************************************************************** ** ** vm/funcargs.c ** ** All code dealing with how arguments of a function call end up ** in the callee's execution scope resides in this source file. ** *************** ** September ** ************************************************...
#include <stdio.h> #include <libavcodec/avcodec.h> #include <libavutil/opt.h> #include <libavutil/pixfmt.h> #include <libavformat/avformat.h> #include <libswscale/swscale.h> #include "ffmpeg_opt.h" #include "ffjpeg.h" AVCodecContext * _transcoder = NULL; AVFrame * _outputFrame, *pFrameYUV; AVPacket _inputPacket; struc...
/* Copyright (c) 1998, 1999, 2001, 2002, 2003 <NAME> * This file is part of the S-Lang library. * * You may distribute under the terms of either the GNU General Public * License or the Perl Artistic License. */ #include <stdio.h> #ifndef SLANG_VERSION # include <slang.h> #endif /* This is a temporary hack until ...
/* * ***** BEGIN GPL LICENSE BLOCK ***** * * 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 d...
/* $Revision: 1.3 $ $Date: 2005/06/27 10:58:00 $ $Author: mtuonone $ $Name: $ $Id: textfile.c,v 1.3 2005/06/27 10:58:00 mtuonone Exp $ */ /********************************************************* TEXTFILE.C <NAME> 24.9.2001 For dealing with ASCII-data. *******************************************...
/*********************************************************************** * * * MEME * Copyright 1994--2014, The Regents of the University of California * * Author: <NAME> * * ...
/* * key_table.c */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <arpa/inet.h> #include <sys/types.h> #include <sys/socket.h> #include "packet.h" #include "alg_keytbl.h" #include "hash.h" #define RAND_NO 0.6180339887498948482 /* * initialize the key table */ key_tbl_t* ...
#include "shapes.h" #include "gfx.h" #include <std/math.h> #include "color.h" static void draw_rect_int(ca_layer* layer, Rect rect, Color color); // TODO(PT): Change all occurences of BGR to RGB //convenience functions to make life easier double line_length(Line line) { //distance formula return sqrt(pow(line.p2.x...
/* Copyright 2008-2012 <NAME> Copyright 2008-2012 <NAME> 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 t...
#include <stdio.h> #include "imlib.h" // assets/image/565.bmp // assets/image/888.bmp #define _888_e void find_blobs(image_t *img_ts) { image_t *arg_img = img_ts; list_t thresholds; thresholds.size = 100; list_init(&thresholds, sizeof(color_thresholds_list_lnk_data_t)); WORN_PRINT("list in...
/** * * \file * * \brief Handling BT related activity for provision AP. * * Copyright (c) 2018-2020 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...
/******************************************************************************* * * * vmsUtils.c - Utility routines for VMS systems. * * * * This file contains the following functions: * * * * StrDescToNul - Convert VMS String Descriptor to C-l...
/* This program makes an grid of values in frequency-vs-wavenumber (f-k) space. The input array is assumed to be linear. The program uses Antelope databases. The spatial sampling can be uniform or non-uniform. It is meant to analyze dispersive signals across linear arrays. The output grid is arranged such that w...
/* 实现虚拟内存的管理: 本篇中:kvm族函数操作内核页表,uvm组函数操作用户列表 */ #include "param.h" #include "types.h" #include "memlayout.h" #include "elf.h" #include "riscv.h" #include "defs.h" #include "fs.h" /* * the kernel's page table. * 指向内核根页表的指针 */ pagetable_t kernel_pagetable; extern char etext[]; // kernel.ld sets this to end of k...
/* * Exploit for CVE-2008-1447 - Kaminsky DNS Cache Poisoning Attack * * Compilation: * $ gcc -o kaminsky-attack kaminsky-attack.c `dnet-config --libs` -lm * * Dependency: libdnet (aka libdumbnet-dev under Ubuntu) * * Author: marc.bevand at rapid7 dot com */ #define _BSD_SOURCE #include <sys/types.h> #includ...
/*!============================================================================= ============================================================================== \ingroup SLtask \file SL_traj_task.c \author <NAME> \date 1999 ========================================================================...
/* * Copyright 2017, DornerWorks * 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 GNU General Public License version 2. Note that NO WARRANTY is provided. * See ...
/**************************************************** * BCB board - iCub Facility - 2013 * * Main program * * * * Written by <NAME> * * <<EMAIL>> * *****...
#include "tape.h" #include "bbc_options.h" #include "log.h" #include "serial.h" #include "timing.h" #include "util.h" #include <assert.h> #include <inttypes.h> #include <string.h> enum { k_tape_max_tapes = 4, k_tape_system_tick_rate = 2000000, k_tape_bit_rate = 1200, k_tape_ticks_per_bit = (k_tape_system_tic...
#include <stdio.h> #include <stdbool.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #define YES 'S' #define FDT '\0' #define NO_MATCH (-1) #define AUTOMATON_STATES_ROWS 9 #define CHARACTER_MATCHERS_COLUMNS 8 #define CHARACTER_MATCHERS (CHARACTER_MATCHERS_COLUMNS - 1) #define CENTINEL_CHARACTER '%' stru...
#include <gmp.h> #include "ber.h" #include <rscheme.h> #define ASN_SET_CLASS(s) (gvec_ref( s, SLOT(3) )) #define ASN_PRINTABLE_STRING_CLASS(s) (gvec_ref( s, SLOT(4) )) #define ASN_UTCTIME_CLASS(s) (gvec_ref( s, SLOT(5) )) #define ASN_BITSTRING_CLASS(s) (gvec_ref( s, SLOT(6) )) st...
// SPDX-License-Identifier: GPL-2.0 // // container-riff-wave.c - a parser/builder for a container of RIFF/Wave File. // // Copyright (c) 2018 <NAME> <<EMAIL>> // // Licensed under the terms of the GNU General Public License, version 2. #include "container.h" #include "misc.h" // Not portable to all of UNIX platforms...
/*! \file bcma_bcmbdcmd_fifodma.c * * DMA FIFO instance commands in CLI. */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #include <shr/shr_thread.h> #include ...
#include "stats.h" double beta_binomial(int k, int n, double a, double b) { double p = lgamma(n+1) - lgamma(k+1) - lgamma(n-k+1) + lgamma(k+a) + lgamma(n-k+b) - lgamma(n+a+b) + lgamma(a+b) - lgamma(a) - lgamma(b); return p; } static double max( double a, double b ) { return a > b ? a : b; } /* sum of numbers i...
/* $Id: project.c,v 1.2 1997/01/29 19:05:29 brianp Exp $ */ /* * Mesa 3-D graphics library * Version: 2.2 * Copyright (C) 1995-1997 <NAME> * * 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...
/* probe.c: Preliminary device tree probing routines... Copyright (C) 1995 <NAME> (<EMAIL>) */ #include <linux/kernel.h> #include <linux/string.h> #include <asm/vac-ops.h> #include <asm/io.h> #include <asm/vaddrs.h> #include <asm/param.h> #include <asm/clock.h> #include <asm/system.h> /* #define DEBUG_PROBING */ ...
/**************************************************************************** * Driver for Solarflare Solarstorm network controllers and boards * Copyright 2007-2008 Solarflare Communications Inc. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Publi...
/* Copyright (c) 2016 <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, distribute, sublicens...
/****************************************************************************** * NAME * tsvq_util.c * <NAME> * February 1994 * Last Revision: * * SYNOPSIS * BOOLEAN initialize_tree(root,trsqfile,trsqname) * BOOLEAN lloyd(node) * void split_node(node,leftcentroid,rightcentroid) * v...
/* Copyright (c) 2014 <NAME> <<EMAIL>> 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...
//<NAME> // 4/16/2015 // File System Checker //compiled with gcc -o csefsck -Wall -std=c99 csefsck.c //Objectives: //Check Device ID //All Times are in Past //Free Block List //Used Blocks not present //All Other Blocks Present //Validate . and .. references //linkcount //Validate indire...
/* Amazon FreeRTOS OTA PAL for Curiosity_PIC32MZEF V0.9.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 restr...
/* * File: ex3.28_mpi_odd_even.c * Purpose: Implement parallel odd-even sort of an array of * nonegative ints. This version swaps pointers * after the merges instead of copying the temporary * array into the permanent array. * * Input: * A: elements of array (with DE...
/** * Afrimesh: easy management for B.A.T.M.A.N. wireless mesh networks * Copyright (C) 2008-2009 Meraka Institute of the CSIR * 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. Redist...
#include "kheap.h" #include <logger.h> #include <ordered_array.h> #include <paging.h> typedef struct { /* Array of holes sorted by size (ordered array) */ ordered_array_t index; /* The start of heap. */ u32int startAddress; /* The end of heap. Can be expanded up to maxAddress. */ u32int endAddress; /* Th...
/* GNU Objective C Runtime @synchronized implementation Copyright (C) 2010-2020 Free Software Foundation, Inc. Contributed by <NAME> <<EMAIL>> This file is part of GCC. GCC 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 Softw...
#include "cs.h" /* clear w */ static int cs_wclear (int mark, int lemax, int *w, int n) { int k ; if (mark < 2 || (mark + lemax < 0)) { for (k = 0 ; k < n ; k++) if (w [k] != 0) w [k] = 1 ; mark = 2 ; } return (mark) ; /* at this point, w [0..n-1] < mark holds */ } /* keep off-d...
#include "hrd.h" /* Every thread creates a TCP connection to the registry only once. */ __thread memcached_st* memc = NULL; /* Print information about all IB devices in the system */ void hrd_ibv_devinfo(void) { int num_devices = 0, dev_i; struct ibv_device** dev_list; struct ibv_context* ctx; struct ibv_devi...
#include "decoder.h" #include "logger.h" #include "utils.h" #include <libswscale/swscale.h> #include <libavutil/avutil.h> #include <libavutil/imgutils.h> #include <libavutil/cpu.h> static int lastID = 0; void decoder_replay(DecoderContext *dectx) { int res = 0; float time_in_seconds = 0; do { uint64_t time...
/***************************************************************************** * * stats_sigma.c * * Provides a calibration of the surface tension when the symmetric * free energy is used. This approach uses a droplet in 2d or 3d. * * * Edinburgh Soft Matter and Statistical Physics Group and * Edinburgh P...
/* { dg-do compile } */ /* { dg-options "-Wformat -Wformat-overflow=2 -ftrack-macro-expansion=0" } */ /* When debugging, define LINE to the line number of the test case to exercise and avoid exercising any of the others. The buffer and objsize macros below make use of LINE to avoid warnings for other lines. */...
#include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <sys/time.h> #include <math.h> #include <signal.h> #define __USE_GNU #include <sched.h> #include "../../BBBio_lib/BBBiolib.h" //----------------------------------------------------------------- void keypad_4x4_scan(); void Thread_4x4_scan(); // S03T ...
/****************************************************************************** ** Copyright (c) 2016-2017, Intel Corporation ** ** All rights reserved. ** ** ** ...
/* process Markdown (based on smu code), but only output links */ #include <sys/types.h> #include <ctype.h> #include <errno.h> #include <stdarg.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #ifdef __OpenBSD__ #include <unistd.h> #else #define pledge(a,b) 0 #endif #define READ_BUF_...
/* * librdkafka - Apache Kafka C library * * Copyright (c) 2012-2013, <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...
/**************************************************************************//** * @file mmu_ARMCA5.c * @brief MMU Configuration for ARM Cortex-A5 Device Series * @version V1.1.0 * @date 23. November 2018 * * @note * ******************************************************************************/ /* ...
/* * Context and render target management in wined3d * * Copyright 2002-2004 <NAME> * Copyright 2002-2004 <NAME> * Copyright 2004 <NAME> * Copyright 2005 <NAME> * Copyright 2006, 2008 <NAME> * Copyright 2007-2011, 2013 <NAME> for CodeWeavers * Copyright 2009-2011 <NAME> for CodeWeavers * * This library is fr...
/* * Copyright (C) <NAME> <<EMAIL>> * * 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...
#include "scrcpy.h" #include <getopt.h> #include <stdbool.h> #include <stdint.h> #include <unistd.h> #include <libavformat/avformat.h> #define SDL_MAIN_HANDLED // avoid link error on Linux Windows Subsystem #include <SDL2/SDL.h> #include "compat.h" #include "config.h" #include "log.h" #include "recorder.h" struct ar...
/* * FreeRTOS V202112.00 * Copyright (C) 2017 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, incl...
/* bench.c - Demo program to benchmark open-source compression algorithm Copyright (C) <NAME> 2012-2013 GPL v2 License 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 v...
/* * Copyright(C) NXP Semiconductors, 2012 * All rights reserved. * * Software that is described herein is for illustrative purposes only * which provides customers with programming information regarding the * LPC products. This software is supplied "AS IS" without any warranties of * any kind, and NXP Semicond...
#include <linux/kernel.h> #include <linux/sched.h> #include <linux/fs.h> #include <asm/segment.h> #include <linux/errno.h> #include "../block/blk.h" #include "scsi.h" #include "hosts.h" #include "sr.h" #include "scsi_ioctl.h" #include <linux/cdrom.h> #define IOCTL_RETRIES 3 /* The CDROM is fairly slow, so we need a ...
/*- * Copyright (c) 2016 <NAME> * All rights reserved. * * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * no...
/* * Copyright (c) 2003-2007 Chelsio, Inc. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this source ...
#include "ssd1306.h" #include <stdio.h> #include <string.h> #include <stdlib.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" #include "esp_log.h" #include "esp_system.h" #include "esp_err.h" #include "driver/i2c.h" #include "config.h" #include "freertos/semphr.h" #include "...
// SPDX-License-Identifier: GPL-2.0-only /* * Regulators driver for Marvell 88PM800 * * Copyright (C) 2012 Marvell International Ltd. * Joseph(<NAME> <<EMAIL>> * <NAME> <<EMAIL>> */ #include <linux/module.h> #include <linux/moduleparam.h> #include <linux/init.h> #include <linux/err.h> #include <linux/regmap.h> #i...
/******************************************************************** * * * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * * GOVERNED BY A BSD-STYLE SOURCE LICENS...
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved. */ #include <linux/delay.h> #include <linux/slab.h> #include <linux/sched/types.h> #include <media/cec-pin.h> #include "cec-pin-priv.h" struct cec_error_inj_cmd { unsigned int mode_offset; ...
/*********************** Graphplan ************************************** (C) Copyright 1995 <NAME> and <NAME> All rights reserved. Use of this software is permitted for non-commercial research purposes, and it may be copied only for that use. All copies must include this copyright message. This software is ...
/* * Copyright (c) 2014-2015 <NAME>, SUSE Linux GmbH. * All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the BSD_LICENSE file. */ #include <unistd.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <...
/* load_mod.c -- Protracker MOD loading code * Copyright (C) 2005-2006 <NAME> and <NAME> * For conditions of distribution and use, see copyright notice in LICENSE.TXT */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <math.h> #include <float.h> #include "load_module.h" #inc...
/* MMC (Morphing Match Chain) Match Finder Copyright (C) <NAME> 2010-2011 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 opti...
/* * Copyright (c) 2000-2001 Silicon Graphics, Inc.; provided copyright in * certain portions may be held by third parties as indicated herein. * All Rights Reserved. * * The code in this source file represents an aggregation of work from * Georgia Tech, <NAME>, <NAME>, <NAME> and other Silicon * Graphics engine...
/* * linux/fs/sysv/itree.c * * Handling of indirect blocks' trees. * AV, Sep--Dec 2000 */ #include <linux/buffer_head.h> #include <linux/mount.h> #include <linux/string.h> #include "sysv.h" enum {DIRECT = 10, DEPTH = 4}; /* Have triple indirect */ static inline void dirty_indirect(struct buffer_head *bh, str...
/* * Copyright (c) 2014-2016, Freescale Semiconductor, Inc. * Copyright 2016-2018 NXP * All rights reserved. * * THIS SOFTWARE IS PROVIDED BY NXP "AS IS" AND ANY EXPRESSED OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ...
#include <cnovrtcc.h> #include <cnovrparts.h> #include <cnovrfocus.h> #include <cnovrcanvas.h> #include <cnovr.h> #include <cnovrutil.h> #include <stdlib.h> #include <string.h> cnovr_shader * rendermodelshader; cnovr_pose eightiessunpose; cnovr_model * eightiessun; cnovr_model * playareacollide; cnovr_pose playa...
#include "common.h" #define SHUTDOWN_TIMER_ 1000 #define DESTROYER_PERIOD_ 100 #define WALKER_PERIOD_ 1000 #define WALKER_FILES_PER_PERIOD_ 1000 #define WALKER_FILES_UNCACHE_DELAY_ 10000 typedef struct curl_t_ { upd_iso_t* iso; void* udata; upd_iso_curl_cb_t cb; } curl_t_; ty...
/* * Rogue definitions and variable declarations * * @(#)rogue.h 3.38 (Berkeley) 6/15/81 */ /* * Maximum number of different things */ #define MAXROOMS 9 #define MAXTHINGS 9 #define MAXOBJ 9 #define MAXPACK 23 #define MAXTRAPS 10 #define NUMTHINGS 7 /* number of types of things (scrolls, rings, etc.) */ /* * r...
#include <stdio.h> #include <stdlib.h> #include <string.h> /******************************************************************************* Program: fmt56.c Purpose: Reads a text file resulting from optical character recognition of ISS bulletins for the period 1917-1956 This program identifies the different field...
/* ----------------------------------------------------------------------------- PicoModel Library Copyright (c) 2002, <NAME> & seaw0lf All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
/* Copyright (c) 2014, ENEA Software AB * Copyright (c) 2014, Nokia * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <getopt.h> #include <string.h> #include <inttypes.h> #include "ofp.h" #define MAX_WORKERS 64 /** * Parsed command line application arguments */ typedef struct { i...
/* * ITE IT913X silicon tuner driver * * Copyright (C) 2011 <NAME> (<EMAIL>) * IT9137 Copyright (C) ITE Tech 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 ...
/***************************************************************************** * udpgw.c: UDP/IP streaming Gateway ***************************************************************************** * Copyright (C) 2016-2017 * * Authors: <NAME> <<EMAIL> * * Permission is hereby granted, free of charge, to any person o...
/* * The Shadow Simulator * Copyright (c) 2010-2011, <NAME> * See LICENSE for licensing information */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #if !defined __USE_LARGEFILE64 #define __USE_LARGEFILE64 #endif #include <errno.h> #include <glib.h> #include <glib/gstdio.h> #include <stddef.h> #include <unistd....
/* * Copyright © 2000 SuSE, Inc. * * 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 copyright notice appear in all copies and that both that * copyright notice and this permission notice appear in...
#include "demo.h" // we have a set of cyclic glyphs, with each cycle composed of some number N_c // of glyphs. our string is made up of each cycle, with each occupying N_c // cells, each iterating through the N_c states in a round. the string emerges // from the center of the screen, moving in a spiral. // // so, each...
#include <stdio.h> #include "driver/i2c.h" /** * Pin assignment: * * - slave : * GPIO25 is assigned as the data signal of i2c slave port * GPIO26 is assigned as the clock signal of i2c slave port * - master: * GPIO18 is assigned as the data signal of i2c master port * GPIO19 is assigned as the cloc...
#include <stdio.h> #include <stdio_ext.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <fcntl.h> #include "Util.h" #include "Command.h" #include "Table.h" #include "SelectState.h" #include "UpdateState.h" #include "DeleteState.h" /// /// Allocate State_t and initialize so...
/*addrChangeDriver.c */ /*********************************************************************** * Copyright (c) 2002 The University of Chicago, as Operator of Argonne * National Laboratory, and the Regents of the University of * California, as Operator of Los Alamos National Laboratory, and * Berliner Elektronenspeich...
/* * Copyright (c) 2013-2014, ARM Limited and Contributors. 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 * l...
/* * (C) Copyright 2009-2010 * <NAME>, DENX Software Engineering, <EMAIL>. * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <asm/ppc4xx.h> #include <i2c.h> #include <libfdt.h> #include <fdt_support.h> #include <netdev.h> #include <asm/processor.h> #include <asm/io.h> #include <asm/ppc4xx-gpio...
// Tet -- http://tinyc.games -- (c) 2020 <NAME> // // Tet is an extremely small implementation of Tetris. #include <stdio.h> #include <stdlib.h> #include <time.h> #define SDL_DISABLE_IMMINTRIN_H #include <SDL.h> #include <SDL_ttf.h> #define BWIDTH 10 // board width, height #define BHEIGHT 20 #define BS 30 // si...
/* * Copyright 2012-17 Advanced Micro Devices, Inc. * * 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...
/* *++ * llvm_ctrlexpgen.c - Control expression generation for LLVM back-end * * * This module generates LLVM IR for control expressions. * * Copyright © 2013-2020, <NAME>. * All rights reserved. * Distributed under license. See LICENSE.TXT for details. *-- */ #include "llvmgen.h" /* * gen_conditional * ...
#include "lite_fb.h" #include <string.h> /* * fb_clear(), fb_fillrect() and fb_fill_poly() can be made *much faster* by * adding a very crude "blitter" to the LiteX SOC. The Blitter can fill a * contiguous zone of memory with a 32 bit value using DMA (much faster than * with the CPU !). When the Blitter is decla...
/* Copyright (c) 2006-2011, The Boeing Company. 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 t...
/** ****************************************************************************** * File Name : main.c * Description : Main program body ****************************************************************************** * * Copyright (c) 2016 STMicroelectronics International N.V. * Al...
// // OpenGL stuff // first v. 2016 by Dr <NAME> // C99 // #include "gl_utils.h" #define glog printf #define glog_err printf Gfx g_gfx; static void _glfw_error_callback( int error, const char *description ) { glog_err( "GLFW ERROR: code %i msg: %s\n", error, description ); } static void _glfw_window_size_callback...
/*----------------------------------------------------------------- boot.c BootLoader Loads a file into memory and runs it All resetMemory and startBinary functions are based on the MultiNDS loader by Darkain. Original source available at: http://cvs.sourceforge.net/viewcvs.py/ndslib/ndslib/examples/loader/boo...
/* * 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...
#define _GNU_SOURCE #include <numa.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <time.h> #include <kmeans/kmeans.h> /* diff two timespecs */ long double nanoseconds(struct timespec * start, struct timespec * end) { long double s = (long double) start->tv_nsec; s /= 1e9; s += (...
/* Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. Contributed by <NAME> This file is part of the GNU Fortran 95 runtime library (libgfortran). Libgfortran 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 So...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** ** This notice applies to any and all portions of this...
//Monitor de Sistema //<NAME> // #include <pthread.h> #include <unistd.h> #include <dirent.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <gtk/gtk.h> struct datosProceso { char nombre[32]; char estado[8]; int nThreads; int tamanioMemoria; }; struct datosSistema { int hilosCorriendo; int...
/* hillerLabView - To store,load,delete track views on the fly*/ /* A view are all the settings of which and how tracks are displayed */ /* This file gives the functionality to store track's present view * in data base and loadback (retrieve) any time across species. * It also provides functionality to delete v...
/* Copyright (c) 2002 Red Hat Incorporated. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditi...
size_t longley_n = 16; size_t longley_p = 7; double longley_x [] = { 1, 83.0, 234289, 2356, 1590, 107608, 1947, 1, 88.5, 259426, 2325, 1456, 108632, 1948, 1, 88.2, 258054, 3682, 1616, 109773, 1949, 1, 89.5, 284599, 3351, 1650, 110929, 1950, 1, 96.2, 3289...
/* Dia -- an diagram creation/manipulation program * Copyright (C) 1998, 1999 <NAME> * * paginate_psprint.[ch] -- pagination code for the postscript backend * Copyright (C) 1999 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License ...