text
stringlengths
3.12k
18.7k
/* RetroArch - A frontend for libretro. * Copyright (C) 2010-2015 - <NAME> * Copyright (C) 2011-2017 - <NAME> * * RetroArch 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 Found- * ation, either version 3 of th...
/* * top-level run-time functions */ #include "star.h" #include <stdlib.h> #include <assert.h> #include <str.h> #include <lblops.h> #include "engineP.h" #include "decode.h" #include "globals.h" static poolPo prPool; /* pool of processes */ hashPo prTble; static integer processHash(void *); static comparison s...
#include "serial5.h" #define THIS_PORT huart5 #define MODULE_NAME "serial5" UART_HandleTypeDef huart5; DMA_HandleTypeDef hdma_uart5_rx; static sc_semaphore_t usart5_semap = NULL; static uint8_t usart5_msg[DEBUG_RX_MAX]; static uint32_t usart5_read_mode = WAIT_FOR_EVER; void UART5_IRQHandler(void) { /* USER COD...
/* * Copyright (C) 1989-2015, <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 cond...
#include <assert.h> #include "../types.h" #include "../rfxswf.h" #include "assets.h" static void add_dependencies(asset_resolver_t*assets, abc_asset_t*asset, asset_tag_t*atag) { TAG*tag = atag->tag; atag->num_deps = swf_GetNumUsedIDs(tag); int*positions = malloc(sizeof(int)*atag->num_deps); atag->deps ...
/* * Copyright (C) 2011-2020 <NAME> <<EMAIL>> * * 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 of the License, or (at your option) any later version. * * This ...
/* * uJIT VM builder: library definition compiler. * Copyright (C) 2020-2021 LuaVela Authors. See Copyright Notice in COPYRIGHT * Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT * * Portions taken verbatim or adapted from LuaJIT. * Copyright (C) 2005-2017 <NAME>. See Copyright Notice in lua...
/*- * Copyright (c) 2006 Verdens Gang AS * Copyright (c) 2006-2011 Varnish Software AS * 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...
/* ** Zabbix ** Copyright (C) 2001-2021 Zabbix SIA ** ** 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. ** **...
#include <linux/mm.h> #include <linux/file.h> #include <linux/mount.h> #include <linux/seq_file.h> #include "internal.h" /* * Logic: we've got two memory sums for each process, "shared", and * "non-shared". Shared memory may get counted more then once, for * each process that owns it. Non-shared memory is counted ...
/* XPMからSDL_Surfaceを生成する (sdlxpm.c) */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "SDL.h" #include "sdlxpm.h" #define FALSE 0 #define TRUE 1 /* 16進数の文字列を数値にする(下請け) */ static unsigned int atoix(const char *txt) { unsigned int x; sscanf(txt, "%x", &x); return x; } /* Surfaceに点を描く(SDL_C...
/* Copyright (C) 2006-2007 <NAME> This program 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 3 of the License, or (at your option) any later version. This program is distributed i...
//----------------------------------------------------- //--------- Program DSM501A Dust Sensor Module--------- //----------------------------------------------------- //-- Projet: air quality measurement with DSM501A -- //-- Date: 28-10-2019 -- //-- Progr: Main.c \DSM501A_QAir -...
/****************************************************************************/ /* Note: This test is not in the regular SPRNG test format */ /* */ /* _________ 2D FFT test _________ */ /* ...
/* torc - terminal orchestration, perhaps for something like controlling * multiple gdb sessions in lock-step. uses the unsavory TIOCSTI ioctl * call, so thus requires root or otherwise suitable permissions to * operate (OpenBSD dropped support for TIOCSTI) * * be sure to have some way to exit this program, as it ...
#include "list.h" #include <stdio.h> struct list_node *list_node_create(void *element); void list_node_free(struct list_node *node); struct list_node *list_get_node_at(struct list *list, int index); void list_add_node_after(struct list *list, struct list_node *previous_node, struct list_node *new_node); void *list_...
#include "server.h" int main(int argc, char **argv){ main_thread_tid = pthread_self(); int nseconds; int bufsz = 10; //Interruptions struct sigaction sigalarm; sigset_t smask; //Turn of the stdout buffer setvbuf(stdout, NULL, _IONBF, 0); //Parse the command line ...
// utility.c // // <NAME> // // Oregon State University // CS_344_001_W2019 Operating Systems 1 // Program 3: Smallsh // // This module contains constants, parameters, and functions that are useful // for the program but might seem too general to be related to a certain module. // They are essentially the "helpers" of ...
/***************************************************************************** * * File: simpletest.c * Author: <NAME>, SET code taken from Stuckey & <NAME> * Created: April 2009 * * Test program that does same as oahttslftest but actrually does NOT * do any insertes or lookups (i.e. no memory access) to se...
/** * \file * * \brief ANCS Application * * Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip products. * It is your responsibil...
#include "attitude_solution.h" #include "icm20602.h" #include <math.h> #define delta_T 0.005f //5ms计算一次 #define M_PI 3.1425f float I_ex, I_ey, I_ez; // 误差积分 quaterInfo_t Q_info = {1, 0, 0}; // 全局四元数 eulerianAngles_t eulerAngle; //欧拉角 //float Q_info; //float eulerAngle; float param_Kp = 50.0; // 加速度计(磁力计)的收敛速率比...
/* * Test program for the Spring 2004 15-410 Kernel project * Clone of the nibbles/snake game * * by <NAME> (mpa) * tweaked by <NAME> (de0u) for Fall 2011 P4 */ #include <stdlib.h> #include <stdio.h> #include <syscall.h> #include <syscall_int.h> #include <rand.h> #include <assert.h> #define SLEEP_TICKS 75 #def...
/* * Copyright 2010, 2011 <NAME> * * This file is part of Project Ubertooth. * * 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, or (at your option) * any later version. ...
/* * cyttsp5_platform.c * Cypress TrueTouch(TM) Standard Product V4 Platform Module. * For use with Cypress Txx4xx parts. * Supported parts include: * TMA4XX * TMA1036 * * Copyright (C) 2013 Cypress Semiconductor * * This program is free software; you can redistribute it and/or * modify it under the terms of...
#include <stdio.h> #include <cnn_config.h> #include <cnn.h> #include <cnn_private.h> #include <cnn_types.h> #include "test.h" #define INPUT_WIDTH 32 #define INPUT_HEIGHT 32 #define BATCH 7 #define EXPORT_PATH "test.xml" #define print_mat_info(str, matVar) \ printf("%s:...
/* * Copyright 1997 through 2004 by <NAME> (TSI @ UQV), <EMAIL> * * 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 t...
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <stdint.h> #include <sys/shm.h> #include <syslog.h> #include "cras_audio_area.h" #include "cras_config.h" #include "cras_messages.h" #...
/* * YAFFS: Yet another FFS. A NAND-flash specific file system. * * Copyright (C) 2002-2011 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Publi...
/* libwmf (ipa/fig.c): library for wmf conversion Copyright (C) 2000 - various; see CREDITS, ChangeLog, and sources The libwmf Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either ve...
/* * (C) Copyright 2005- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * * In applying this licence, ECMWF does not waive the privileges and immunities granted to it by * virtue of its status as an int...
/* * Copyright (C) 2013 F4OS Authors * * 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, publis...
#pragma ident "$Id: util.c,v 1.12 2017/11/21 18:06:12 dechavez Exp $" /*====================================================================== * * miscellaneous utilities * *====================================================================*/ #include "mseed.h" BOOL mseedSignaturesMatch(MSEED_HDR *a, MSEED_HDR ...
/******************************************************************** Copyright 2010-2017 <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 the Free Software Foundation, either version 3 of the License, or (at your...
/* (C)Copyright IBM Corp. 2007, 2008 */ /** * \file src/misc/mpid_init.c * \brief Normal job startup code */ #include "mpidimpl.h" #include "mpidi_star.h" #include <limits.h> MPIDI_Protocol_t MPIDI_Protocols; MPIDI_Process_t MPIDI_Process; DCMF_Hardware_t mpid_hw; MPID_Request __totalview_request_dummyvar; v...
/*********************************************************************************************************************** * * in_the_key_of_c * * emptymonkey's tool for converting RSA key pairs into C source code *representations. * * 2014-10-12 * ***************************************************************...
/* Copyright (c) 2010 - 2020, Nordic Semiconductor ASA * 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 * l...
#include "common/include/inttypes.h" #include "common/include/page.h" #include "hal/include/lib.h" #include "hal/include/kernel.h" #include "hal/include/hal.h" #include "hal/include/mem.h" /* * Get physical address of a user virtual address */ paddr_t translate(void *page_table, ulong vaddr) { // L1 table s...
#include <assert.h> #include <math.h> #include <string.h> #include "cprop_lp.h" #include "macros.h" #include "containers.h" CProp *cprop_create_from_mip( LinearProgram *mip, char verbose ) { int n = lp_cols( mip ); char *integer; ALLOCATE_VECTOR( integer, char, n ); double *lb, *ub, *coef; int *id...
// Meridian 59, Copyright 1994-2012 <NAME> and <NAME>. // All rights reserved. // // This software is distributed under a license that is described in // the LICENSE file that accompanies it. // // Meridian is a registered trademark. /* * overlay.c: Maintain and draw player overlays, which are first-person * pict...
/* ws2812 test */ #include <util/delay.h> #include <stdint.h> #include <stdbool.h> #include <string.h> #include "avr_io.h" #include "ws2812.h" #if defined(__AVR_ATmega328P__) /* assume Arduino UNO */ // ANALOG 0 --> PC0 // ANALOG 1 --> PC1 // ... // ANALOG 4 --> PC4 // ANALOG 5 --> PC5 // DIGITAL 2 -...
/* * Copyright (c) International Business Machines Corp., 2000 * Copyright (c) 2010 <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 * the Free Software Foundation; either version 2 of the Lic...
/* * (C) Copyright 2015 * <NAME>, DENX Software Engineering, <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 the Free Software Foundation; either version 2 of * the License, or (at your option) any later ve...
/** @file options.c * @brief Parses command-line options. * @copyright Copyright (c) 2018 <NAME> * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include "options.h" #include "log.h" #include "match.h" #include <stdio.h> #include <stdl...
/* $NetBSD: input.c,v 1.11 2009/05/25 04:33:53 dholland Exp $ */ /*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME> and <NAME>. * * Redistribution and use in source and binary forms, with ...
#include <uvh.h> #include <stdlib.h> #include "../src/sds.h" #include <fcntl.h> #define MAX_CHUNK 1024 struct fileserver { sds root; }; struct chunker { uv_fs_t open_req; uv_fs_t read_req; struct fileserver *fileserver; struct uvh_request *req; sds real_path; sds req_path; char buffe...
/** * Copyright (c) 2010 <NAME> <<EMAIL>> * * 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...
#include "spacedef.h" #include "debugdef.h" #include "intbits.h" #include "errordef.h" #include "match.h" #include "absdef.h" #include "minmax.h" #include "genfile.h" #include "matchstate.h" #include "leafblocktree.h" #include "mcontain.pr" #include "multiseq-adv.pr" #include "fmumself.pr" #include "fsuper.pr" #incl...
/** Parse type signatures * @file * * The parser translates the lexer's tokens into IR nodes * * This source file is part of the Cone Programming Language C compiler * See Copyright Notice in conec.h */ #include "parser.h" #include "../ir/ir.h" #include "../shared/memory.h" #include "../shared/error.h" #include ...
/* pxe.c - Pre-execution Boot Environment */ #include <xinu.h> /*------------------------------------------------------------------------ * get_sysid_entry_point - Retrieve the system ID entry point table address * from BIOS space. This is located somewhere * be...
/*! \file bcmltm_db_md_util.c * * Logical Table Manager - Utility functions. * * This file contains utility routines used to construct the LTM * database information. */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * *...
// // command_transformer.c: converts the retrieved commands into an array of integers. // #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "command_transformer.h" #include "instruction.h" #define C_INSTRUCTION_HEADER 0b1110000000000000 #define MEMORY_INSTRUCTION_MODE 0b00010000...
/* $OpenBSD: berkwdt.c,v 1.6 2010/04/08 00:23:53 tedu Exp $ */ /* * Copyright (c) 2009 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all cop...
/*$Id$*/ /* YEAFFT. A library to make real convolutions using Fast Fourier Transforms. Copyright (C) 2001-2006 <NAME>, <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation...
// Copyright (C) 2002 <NAME> // Copyright (C) 2009-2016 <NAME> // // This program is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free // Software Foundation; either version 3 of the License, or (at your option) // any later version. //...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <dirent.h> #include <utime.h> #include <sys/stat.h> #include "inifile.h" #define STRLEN 1024 #define TAR_BLKSIZ 512 struct tarhdr { char name[100]; char mode[8]; char uid[8]; char gid[8]; char size[12]; char mtime[12];...
// Copyright (c) 2014-2015 <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 con...
#include <string.h> #include <stdio.h> #include <time.h> #include "course_table.h" #include "pc/ini.h" #include "pc/platform.h" #include "pc/fs/fs.h" #define FILENAME_FORMAT "%s/sm64_save_file_%d.sav" #define NUM_COURSES 15 #define NUM_BONUS_COURSES 10 #define NUM_FLAGS 21 #define NUM_CAP_ON 4 const char *sav_flags[N...
#include <stdio.h> #include <stdlib.h> #include <strings.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <sys/socket.h> #include <sys/types.h> #include <arpa/inet.h> #include <fcntl.h> #include <poll.h> #include <sys/epoll.h> #include "common.h" #define SERVER_ERRNO __LINE__ #define SERVER_P...
/****************************************************************************** * ETSI TS 103 634 V1.1.1 * * Low Complexity Communication Codec Plus (LC3plus) * * * ...
#include "fixquat.h" #include "fixarray.h" // Conjugate of quaternion void qf16_conj(qf16 *dest, const qf16 *q) { dest->a = q->a; dest->b = - q->b; dest->c = - q->c; dest->d = - q->d; } // Multiply two quaternions, dest = a * b. void qf16_mul(qf16 *dest, const qf16 *q, const qf16 *r) { qf16 tmp; ...
/* The MIT License (MIT) * * Copyright (c) 2015 Monetra Technologies, LLC. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the righ...
/* SPDX-License-Identifier: BSD-3-Clause */ /* * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd * * Change Logs: * Date Author Notes * 2019-04-01 <NAME> the first version */ /**************************************************************************** * Included Files ***********...
/* * This file is part of the 'varbench' project developed by the * University of Pittsburgh with funding from the United States * National Science Foundation and the Department of Energy. * * Copyright (c) 2017, <NAME> <<EMAIL>> * * This is free software. You are permitted to use, redistribute, and * modify i...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/socket.h> #include <sys/types.h> #include <string.h> #include <netdb.h> #include <netinet/in.h> #include <arpa/inet.h> #include <signal.h> #include <errno.h> #include <sys/wait.h> #include <sys/time.h> #include <time.h> #include <pthread.h> #inclu...
#include <assert.h> #include <stdarg.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "treebuffer.h" #define unused(x) ((void)x) #define M (t->mems += 1) #define MM (t->mems += 2) #define MMM (t->mems += 3) #define MMMM (t->mems += 4) struct Node { Node * parent; int children; // the number ...
/* keyboard.c - Functionality for keyboard/keypresses * vim:ts=4 noexpandtab */ #include "keyboard.h" #include "i8259.h" #include "lib.h" #include "types.h" #include "terminals.h" // reference: https://wiki.osdev.org/PS/2_Keyboard, Appendix B of MP3 for open/read/write/close behavior /* Global variables */ // 1 me...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <limits.h> #include <libgen.h> #include <sys/types.h> #include <sys/stat.h> #include "mincrypt/sha.h" #include "bootimg.h" typedef unsigned char byte; int read_padding(FILE* f, unsigned items...
/** file: clock.c * author: <NAME> * * Derived from the atmel asf example qs_rtc_calendar_callback.c * */ //___ I N C L U D E S ________________________________________________________ #include <asf.h> #include "aclock.h" #include "main.h" //___ M A C R O S ( P R I V A T E ) ____________________...
/** * @file gui_graphics.c * @brief management of graphic resources * @author <NAME> <<EMAIL>> * @version 0.1b * @date (yyyy-mm-dd) 2013-10-14 * Licence: MIT */ #include "gui_graphics.h" #include "resources.h" /** * sprite_sheet_st * sprite sheet, where all sprites have the same width & height */ typedef st...
#include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include <nginx.h> #include <lua.h> #include <lualib.h> #include <lauxlib.h> #include "ngx_http_lua_api.h" static void *ngx_http_lua_fake_shm_create_main_conf(ngx_conf_t *cf); static ngx_int_t ngx_http_lua_fake_shm_init(ngx_conf_t *cf); static c...
#include <stdlib.h> #include <stdio.h> #include <sys/mman.h> #include <unistd.h> #define R0(x) x=0 #define R1(x) R0(x##0), R0(x##1), R0(x##2), R0(x##3), R0(x##4), R0(x##5), R0(x##6), R0(x##7), R0(x##8), R0(x##9) #define R2(x) R1(x##0), R1(x##1), R1(x##2), R1(x##3), R1(x##4), R1(x##5), R1(x##6), R1(x##7), R1(x##8), R1...
#define _GNU_SOURCE /* Needed to get O_LARGEFILE definition */ #include <errno.h> #include <fcntl.h> #include <limits.h> #include <poll.h> #include <sched.h> #include <stdio.h> #include <stdlib.h> #include <sys/fanotify.h> #include <sys/mount.h> #include <sys/stat.h> #include <sys/sysmacros.h> #include <sys/types.h...
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <sys/types.h> #include <sys/inotify.h> #include <limits.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netdb.h> #include <string.h> #define MAX_EVENTS 1024 /*Max. number of events to process at one go*/ #define LEN_NAME 64 /*Assuming that...
#include <cry/trivium.h> #include "misc.h" #include <string.h> #define S(a, n) (s ## a ## n) #define T(a) (t ## a) #define LOAD(s) do { \ CRY_READ32_LE(S(1, 1), (s) + 0); \ CRY_READ32_LE(S(1, 2), (s) + 4); \ CRY_READ32_LE(S(1, 3), (s) + 8); \ CRY_READ32_LE(S(2, 1), (s) + 12); \ CRY_READ32_L...
#include <errno.h> #include <stdio.h> #include <assert.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <arpa/inet.h> #include <linux/tcp.h> #include <linux/fcntl.h> #include <sys/mman.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/epoll.h> #include <netinet/in...
/* * 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 ...
/************************************************************************/ /* */ /* TimeOutTmr9.c */ /* */ /* Free running t...
/* * (C) Copyright 2007 * <NAME>, DENX Software Engineering, <EMAIL>. * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Fo...
/** @file @brief 32F469IDISCOVERY Initialize @date 2018.08.15 @author <NAME> */ #include "sysconfig.h" #include "tkprintf.h" #include "device/i2c_ioctl.h" #include "device/spi_ioctl.h" #include "device/sd_ioctl.h" #include "device/rtc_ioctl.h" #include "device/video_ioctl.h" #include "device/vio_ioctl.h" ...
#include <stdio.h> #include <stdlib.h> #include <sys/mman.h> // These are the sizes of used abstract variables // Header_t size = 8 // Node_t size = 16 // Node_t* size = 8; typedef struct header_t { // Allocated chunk int allocated_size; int magic; long long extra_size; // This extra size is added sp th...
/*-------------------------------------------------------------------------------*\ | | File: DrawingSetup.c | | Description: | | | | | | Copyright � 1994, <NAME> and <NAME> | \*-------------------------------------------------------------------------------*/ #include "DebugWindow.h" #include "ColorTables.h" #include...
/* Glidix kernel 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 condit...
#include <string.h> #include "ibm.h" #include "io.h" #include "mem.h" #include "pci.h" #include "i430hx.h" static uint8_t card_i430hx[256]; static void i430hx_map(uint32_t addr, uint32_t size, int state) { switch (state & 3) { case 0: mem_set_mem_state...
/* * Copyright 1998-2001, Texas Instruments. All rights reserved. * * By using this software the USER indicates that he or she has read, * understood and will comply with the following: * * 1. the above copyright notice appears in all copies of the software * and its documentation, or portions thereof...
#include <stdio.h> #include <string.h> #define BG_BLK "\x1B[40m" #define BG_WHT "\x1B[47m" #define TXT_RED "\x1B[31m" #define TXT_GREEN "\x1B[32m" #define TXT_YELLOW "\x1B[33m" #define TXT_BLUE "\x1B[34m" #define TXT_MAGENTA "\x1B[35m" #define TXT_CYAN "\x1B[36m" #define COL_RESET "\x1B[0m" #define BOARD_SI...
/* $Id: structs.c,v 1.10 2008/11/06 20:45:13 pekberg Exp $ ****************************************************************************** This is a GGI test application. Copyright (C) 1998 <NAME> [<EMAIL>] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and...
/* Extended Module Player * Copyright (C) 1996-2010 <NAME> and <NAME> * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See doc/COPYING * for more information. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "commo...
/* ameter - stat system components in a simple terminal Written in 2013 by <<NAME>> <<EMAIL>> To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. You should hav...
#include "common.h" #include "vdp.h" #include "tiles_res.h" #include "resources.h" static const uint16_t blank_data[0x80]; static volatile uint16_t* const vdp_data_port = (uint16_t*) 0xC00000; static volatile uint16_t* const vdp_ctrl_port = (uint16_t*) 0xC00004; static volatile uint32_t* const vdp_ctrl_wide = (uint32...
// // Created by yoshinori on 15/11/28. // #include <pthread.h> #include <syslog.h> #include <errno.h> #include <sys/socket.h> #include <unistd.h> #include <sys/un.h> #include "kvs.h" #include "kvsthread.h" #include "timerthread.h" #include "utils.h" #include "myclib/myclib.h" #include "myclib/linkedlist.h" #include ...
/* * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc. * All Rights Reserved. * * 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. * * This program is distributed in the hope that it woul...
/*D********************************************************* * Modul: GRAPHIC gwglist.c * * Create region selection widget * * * Copyright: yafra.org, Basel, Switzerland ***********************************************************/ static char rcsid[]="$Header: /y...
#include "heap.h" #include <Windows.h> #include <memory.h> #include <assert.h> #include "mem_debug.h" #define WORD_SIZE sizeof(tag_t) #define HEADER_SIZE WORD_SIZE #define FOOTER_SIZE WORD_SIZE #define SHEAP(heap) ((sheap_t*)heap) #define ALLOCATED_MASK ((tag_t)0x1) #define PREC_ALLOCATED_MASK ((tag_t)0x2) #defin...
/* * static-routing.c * * Created on: Oct 12, 2010 * Author: simonduq */ #include <stdio.h> #include "static-routing.h" #define DEBUG 0 #if DEBUG #include <stdio.h> #define PRINTF(...) printf(__VA_ARGS__) #define PRINT6ADDR(addr) PRINTF(" %02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%...
#include <string.h> #include <stdlib.h> #include <arm_neon.h> #include "crypto/sha1.h" /* Define for loading work var from message. */ #define SHA1_LOAD_W_FROM_MESSAGE(which) \ w[which] = vreinterpretq_u32_u8(vrev32q_u8(vld1q_u8(src_u8))); \ src_u8 += 0x10 #define SHA1_CALCULATE_W_FROM_PREVIOUS(i) \ w[i] = vsha1su1q...
/* * Copyright (c) 2010-2013, Juniper Networks, Inc. * All rights reserved. * This SOFTWARE is licensed under the LICENSE provided in the * ../Copyright file. By downloading, installing, copying, or otherwise * using the SOFTWARE, you agree to be bound by the terms of that * LICENSE. * * A profiler for SLAX scr...
/* * VOTSTAT -- Compute statistics for numeric columns of a VOTable. * * Usage: * votstat [<otps>] <votable> * * @file votstat.c * @author <NAME> * @date 6/03/12 * * @brief Compute statistics for numeric columns of a VOTable. */ #include <stdio.h> #include <unistd.h> #include <...
/* * Copyright (c) 2012-2022 Filip "widelec-BB" Maryjanski, BlaBla group. * All rights reserved. * Distributed under the terms of the MIT License. */ #include <proto/exec.h> #include <proto/multimedia.h> #include <proto/intuition.h> #include <proto/multimedia.h> #include <classes/multimedia/video.h> #include <clas...
/* File: dijkstra.c * Purpose: Implement Dijkstra's algorithm for solving the single-source * shortest path problem: find the length of the shortest path * between a specified vertex and all other vertices in a * directed graph. * * Input: n, the number of vertices ...
//======================================================================== // GLFW 3.4 - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2016 Google Inc. // Copyright (c) 2016-2017 <NAME> <<EMAIL>> // // This software is provided 'as-is', without any express or i...