text
stringlengths
3.08k
10.5k
/// MentOS, The Mentoring Operating system project /// @file zone_allocator.h /// @brief Implementation of the Zone Allocator /// @copyright (c) 2019 This file is distributed under the MIT License. /// See LICENSE.md for details. #pragma once #include "gfp.h" #include "math.h" #include "stdint.h" #incl...
#pragma config(Motor, port1, FRWheel, tmotorVex393_HBridge, openLoop, reversed) #pragma config(Motor, port2, RConveyor, tmotorVex393_MC29, openLoop, reversed) #pragma config(Motor, port3, DRLauncher, tmotorVex393_MC29, openLoop, reversed) #pragma config(Motor, port4, ...
#include <pigpio.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #define NUMPINS 32 #define BYTES 8 typedef enum { START = 0, DOWN18ms = 1, UP40us = 2, DOWN80us = 3, UP80us = 4, PREFIX = 5, BIT = 6 } State; struct PinData { State state; int bitNumber; unsig...
/* * resource_capability_switch_main_0.c * * Created on: Jun 26, 2018 * Author: build */ #include <stdio.h> #include <stdbool.h> #include "st_things/st_things.h" #include <tinyara/gpio.h> #include <iotbus/iotbus_gpio.h> #include <iotbus/iotbus_error.h> //#define DEBUG_SWITCH static const char* PROP_POWE...
#include "crypto_hash.h" #include <stdint.h> #include <string.h> inline static void __attribute__((always_inline)) ror(uint32_t *o0, uint32_t *i0, int bits, uint32_t *r0, uint32_t *r1) { *r0 = *i0 >> bits; *r1 = *i0 << (32 - bits); *o0 = *r0 | *r1; } inline static void __attribute__((always_inline)) spbox...
/****************************************************************************** * * Copyright (C) 2009, The Gentee Group. All rights reserved. * This file is part of the Gentee open source project - http://www.gentee.com. * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE GENTEE LICENSE ("AGREEMENT"). * ANY USE, REPR...
/** * Copyright © 2009 Red Hat, 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, merge, pu...
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2019 Brno University of Technology * * tcpgen - a simple DPDK TCP DNS traffic generator * Author: <NAME> <<EMAIL>> */ #include <stdint.h> #include <stdio.h> #include <rte_cycles.h> #include <rte_log.h> #include "stats.h" #include "common.h" #include "args....
/* Definitions of target machine for GNU compiler, for IBM S/390. Copyright (C) 2000, 2002, 2003, 2004 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 publ...
#include <string.h> #include "cofb.h" #include "giftb128.h" static inline void padding(u32* d, const u32* s, const u32 no_of_bytes){ u32 i; if (no_of_bytes == 0) { d[0] = 0x00000080; // little-endian d[1] = 0x00000000; d[2] = 0x00000000; d[3] = 0x00000000; } else if (no_...
#include "stdio.h" #include "constvar.h" #define LEX_RELOOP 0 #define LEX_DELIM 1 #define LEX_MUL 2 #define LEX_DIV 3 #define LEX_ADDMIN 4 #define LEX_DIGIT 5 #define LEX_LETTER_ 6 #define LEX_SYMBOL 7 static char ReadAChar(); static int FoundRELOOP(); static int STR2INT(); static int FoundKeyword(); static int str...
/** * EIA-FR - APF-27 Development Environment for LMI Labs * * Abstract: APF27 Clocking Module */ #include "imx27_clock.h" /* Clock Source Control Register (CSCR) bit fields */ #define CSCR_MPEN (1 << 0) /* MPLL Enable */ #define CSCR_SPEN (1 << 1) /* Serial Peripheral PLL Enable */ #define CSCR_FPM_EN (1 << 2...
#include <string.h> #include <stdlib.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/event_groups.h" #include "esp_wifi.h" #include "esp_event.h" #include "esp_log.h" #include "esp_system.h" #include "esp_smartconfig.h" #if CONFIG_IDF_TARGET_ESP8266 #include "tcpip_adapter.h" #include "s...
/* * Copyright (c) 2013-2015, Xerox Corporation (Xerox) and Palo Alto Research Center, Inc (PARC) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must r...
#include "Choose_Language.h" #include "Def.h" #include "App.h" // Global variables extern Gpu_Hal_Context_t* g_pHalContext; extern E_LANG g_language; static uint32_t frame_addr = SS_FLASH_ADDR_FRAME_0; static uint32_t frame_index = 0; int8_t CL_TAGS[3] = {CL_TAG_CIRCLE_EN, CL_TAG_CIRCLE_DE, CL_TAG_CIRCLE_CN}; extern...
#include <sodium.h> #define ZPL_IMPLEMENTATION #include "zpl.h" char *sk_read_line(void) { char *line = NULL; size_t buf_size = 0; ssize_t rc = getline(&line, &buf_size, stdin); if (rc < 0) { printf("Error: Cannot get input from console.\n"); exit(EXIT_FAILURE); } return line; ...
/* optomizer.c * * (C) Copyright Jul 27 1996, <NAME>. * ALL RIGHTS RESERVED. * This code may be copied for personal, non-profit use only. * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "MachSet.h" #include "global.h" #include "typesets.h" #include "error.h" #define isgoto(C,i) (o...
/* Includes ------------------------------------------------------------------*/ #include "stm32f4xx.h" #include "Serial.h" #define BUFFER_SIZE 100 uint8_t receiveBuffer[BUFFER_SIZE]; uint16_t bufferWritePos = 0; uint16_t bufferReadPos = 0; void Serial_Init(void) { USART_InitTypeDef USART_InitStructure; Serial_NVI...
/* utility.c May 2010 */ /* ** Calculate the utility of a set of prediction ** ** <NAME> */ #include <stdio.h> #include <math.h> #include "util.h" /************************************************************/ /* */ /* INTERFACE FUNCTIONS WITH R ...
/* * Copyright (C) 2018-2020 Alibaba Group Holding Limited */ #include "avutil/byte_rw.h" #include "avutil/bio.h" #include "avformat/flac_rw.h" static const int _rate_table[16] = { 0, 88200, 176400, 192000, 8000, 16000, 22050, 24000, 32000, 44100, 48000, 96000, 0, 0, 0, 0 }; static const int32_t _blocksize...
/* eddsa-verify-test.c Copyright (C) 2014 <NAME> This file is part of GNU Nettle. GNU Nettle is free software: you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the Lic...
/* * SocketLib.c * isentlib * * Created by <NAME> on 27/09/07. * Copyright 2007 __MyCompanyName__. All rights reserved. * */ #include <string.h> #include <unistd.h> #include <sys/types.h> #ifndef _WIN32 #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #else #include <winsock.h> #endif ...
/* the core of phase vocoder without FFT, for fun (this is not phase vocoder) * Copyright (C) 2007-2013 <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 ...
// DISTRIBUTION STATEMENT A. Approved for public release. Distribution is unlimited. // // This material is based upon work supported by the Department of the Air Force under Air Force Contract No. FA8702-15-D-0001. Any opinions, findings, conclusions or recommendations expressed in this material are those of the autho...
#include <linux/input.h> extern void btn_on(int); extern void btn_off(int); void send_ascii(char val) { int lshift = 0; int key = 0; switch(val) { // 1234 Row case '1': key = KEY_1; break; case '2': key = KEY_2; break; case '3': key = KEY_3; break; case '4': key = KEY_4; break; case '5': key = KEY_5; ...
#include "../refalloc.h" #include <process.h> #include <stdlib.h> #include <assert.h> #include <string.h> #include <stdio.h> #include <time.h> #include <windows.h> static void test_destructor(void*); static unsigned __stdcall test_thread(void *); struct test_box* test_constructor(int j); static int thread_join(uintpt...
#include <d4est_solver_cg.h> #include <d4est_util.h> #include <ini.h> #include <d4est_linalg.h> #include <sc_reduce.h> static int d4est_solver_cg_input_handler ( void* user, const char* section, const char* name, const char* value ) { d4est_solver_cg_params_t* pconfig = (d4est_solver_cg_params_t*)user; if (d4e...
// // main.c // CF.Factorial.Timings // // Created by <NAME> on 2/16/20. // Copyright © 2020 Alan @ FreeShell. All rights reserved. // // MARK: - Setup and header includes // TODO: Timing tool. Choose just one! #define GETRUSAGE_ /* use getrusage() */ #undef GETTOD_ /* use gettimeofday() */ #undef CLOC...
// SPDX-License-Identifier: GPL-2.0-only // // Copyright (c) 2021 MediaTek Inc. // Author: <NAME> <<EMAIL>> #include "clk-mtk.h" #include "clk-pll.h" #include <dt-bindings/clock/mt8195-clk.h> #include <linux/clk-provider.h> #include <linux/platform_device.h> #define MT8195_PLL_FMAX (3800UL * MHZ) #define MT8195_PLL...
#include "esp_camera.h" #include <WiFi.h> // Select camera model //#define CAMERA_MODEL_WROVER_KIT //#define CAMERA_MODEL_ESP_EYE //#define CAMERA_MODEL_M5STACK_PSRAM //#define CAMERA_MODEL_M5STACK_WIDE #define CAMERA_MODEL_AI_THINKER #include "camera_pins.h" void send_event(const char *event); const char* ssid = "Gala...
/** * * Witchcraft Compiler Collection * * Author: <NAME> - <EMAIL> * ******************************************************************************* * The MIT License (MIT) * Copyright (c) 2016-2022 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
/** * @file main.c * @author <NAME> * @copyright 2019 - All Rights Reserved * @date 6/8/2019 * @version 1.0 * * @brief I am interpreting a "ball cycle" to mean all balls from the queue have been used or cycled * into the clock trays at least once. I determine this when I pu...
/******************************************************************************\ * Performance test on a file system using varying block sizes, file size, and * * whether I/O is synchronous or not * \****************************************************************************...
#include <x86intrin.h> #include <string.h> #include <stdint.h> #include <stdbool.h> #include "fixparser.h" const char* INITIAL_HEADER_42 = "8=FIX.4.2\x01""9="; const char* INITIAL_HEADER_44 = "8=FIX.4.4\x01""9="; const int INITIAL_HEADER_LEN = 12; const int CHECK_SUM_LEN = 7; static inline int calculate_checksum(co...
/* * Created by <NAME> on 2017-01-02. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "tree.h" /** * A helper function that allocates a new tree node. * * @param value The entry's value. It represents either an attribute or a filename. * @return A pointer to the newly allocated node....
/* * Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd. * 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 *...
#include<gb/gb.h> #include<stdio.h> #include<stdlib.h> #include"GameCharacter.c" #include"Player_sprite.c" #include"textures.c" #include"map1.c" #include"map2.c" #include"splashscreen_data.c" #include"splashscreen_map.c" struct GameCharacter player; const char blank[1] = {0x00}; UBYTE flag = 0; INT16 cur...
/* Copyright (C) 2015, WSID */ /* 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, dist...
/* suftest.c Copyright <NAME> 1999. Program to test suffix sorting function. Reads a sequence of bytes from a file and calls suffixsort. This is the program used in the experiments in "Faster Suffix Sorting" by <NAME> (<EMAIL>) and Kunihiko Sadakane (<EMAIL>) to time the suffixsort function in the ...
/******************************************************************************************************** * @file pm.h * * @brief This is the header file for B86 * * @author Driver & Zigbee Group * @date 2021 * * @par Copyright (c) 2021, Telink Semiconductor (Shanghai) Co., Ltd. ("TELINK") * * ...
/* * grid-wb.c * * Created on: May 12, 2016 * Updated on: July 15, 2016 * Author: <NAME> <<EMAIL>> */ #include "grid-wb.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <signal.h> #include "six.h" #include "grid.h" #include "grid_wb_cmd.h" #include "grid_wb_...
/* * $Id: ad_ntfs_iwrite.c 922 2001-05-31 14:10:48Z karsten $ * */ #include "ad_ntfs.h" void ADIOI_NTFS_IwriteContig(ADIO_File fd, void *buf, int count, MPI_Datatype datatype,int file_ptr_type, ADIO_Offset offset, ADIO_Request *request, int *error_code) { ADIO_Status status; int err=-1; ...
/* * Copyright (c) 2019 Nordic Semiconductor ASA * * SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic */ #include <shell/shell_bt_nus.h> #include <bluetooth/gatt.h> #include <logging/log.h> LOG_MODULE_REGISTER(shell_bt_nus, CONFIG_SHELL_BT_NUS_LOG_LEVEL); SHELL_BT_NUS_DEFINE(shell_transport_bt_nus, C...
#include <stdlib.h> #include <assert.h> #include <rte_ip.h> #include <rte_mbuf.h> #include <rte_memcpy.h> #include "packet-io.h" size_t global_total_length; size_t global_read_length = 0; /*@ fixpoint bool missing_chunks(list<pair<int8_t*, int> > missing_chunks, int8_t* start, int8_t...
#ifdef HAVE_CONFIG_H #include <config.h> #endif #ifdef STORAGE_WITH_MATH #include <math.h> #endif #include "common.h" #include "log.h" #include "storage_number.h" #if __GNUC__ #if __x86_64__ || __ppc64__ #define ENVIRONMENT64 #else #define ENVIRONMENT32 #endif #endif storage_number pack_storage_number(calculated_num...
/* * Copyright (C) 2015-2017 Texas Instruments Incorporated - http://www.ti.com/ * * 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 * n...
// The Mordax Microkernel // (c) <NAME> 2013 <<EMAIL>> // Report bugs and issues on <http://github.com/skordal/mordax/issues> #include "debug.h" #include "irq.h" #include "kernel.h" #include "mm.h" #include "mmu.h" #include "scheduler.h" #include "service.h" #include "drivers/debug/debug.h" #include "drivers/interrup...
#include <petscksp.h> void readVector(Vec* x, int m, const char* optionName) { char vfilein[PETSC_MAX_PATH_LEN], buf[PETSC_MAX_PATH_LEN]; PetscBool found; PetscOptionsGetString(NULL, NULL, optionName, vfilein, PETSC_MAX_PATH_LEN, &found); FILE *file; PetscFOpen(PETSC_COMM_SELF, vfilein, "r", &file); // r...
/**************************************************************************** * Copyright (c) 2011 by <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 sou...
/***************************************************************************** * * psi_stats.c * * Statistics for the electrokintic quantities. * * Edinburgh Soft Matter and Statistical Physics Group and * Edinburgh Parallel Computing Centre * * (c) 2012-2017 The University of Edinburgh * * Contributin...
#define _POSIX_C_SOURCE 200809L #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <assert.h> #include <time.h> #include <errno.h> #include <unistd.h> #include <sys/poll.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <pml.h> #include "shared.h" #incl...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/wait.h> #include <sys/shm.h> #include <semaphore.h> #include <errno.h> #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #include "../utils/utilities.h" #include "server.h" struct shared{ //the line that chi...
#include "file.h" #include "sha1-inl.h" #include <sys/stat.h> #include <sys/types.h> int filecache_init(struct filecache *fi) { fi->data = (struct strbuf *)malloc(sizeof(struct strbuf)); if (!fi->data) error("out of memory\n"); strbuf_init(fi->data, 0); return 0; } // int filecache_init_fd(st...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the program and library */ /* SCIP --- Solving Constraint Integer Programs */ ...
#include "runtime.h" #include <stdio.h> #include <signal.h> #include <stdlib.h> /* * global variables */ void initYieldpoint() { #ifdef CHECKING_YIELDPOINT turnOffYieldpoints(); #endif #ifdef PAGE_PROTECTION_YIELDPOINT yieldpoint_protect_page = (Address) mmap(NULL, BYTES_IN_PAGE * 2, PROT_NONE, MAP_SHARE...
/* XerXes - Most powerful dos tool - THN (http://www.thehackernews.com) */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <unistd.h> #include <netdb.h> #include <signal.h> #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <arpa/inet.h> #include <ti...
/* ** Filename : general.c ** ** Made by : <NAME> - 3AL-1 ** ** Description : Contains varied easy functions */ /*================ INCLUDES ================*/ #include <stdio.h> #include <string.h> #include "../header/general.h" /*================ FUNCTIONS ================*/ /* Goal : Give the length of the longe...
/*=========================================================================== _____ _____ _____ _____ ___| _|__ __|_ |__ __|__ |__ __| __ |__ ______ | \ / | || \ || | || |/ / ||___ | | \/ | || \ || \ || \ ||___ | |_...
#pragma ident "$Id: main.c,v 1.1 2016/11/16 22:08:29 dechavez Exp $" /*====================================================================== * * Generate condensed APS output file, compute average azimuth * * GSRAS version * *====================================================================*/ #include "util.h...
#include <xbook/fsal.h> #include <xbook/fatfs.h> #include <xbook/dir.h> #include <xbook/path.h> #include <xbook/file.h> #include <string.h> #include <unistd.h> #include <dirent.h> #include <sys/dir.h> #include <sys/stat.h> #include <stdio.h> #ifdef GRUB2 #include <arch/module.h> #include <arch/page.h> #include <cpio....
#include <assert.h> #include <string.h> #include <vulkanx/result.h> #include <vulkanx/command_buffer.h> VkResult vkxCreateFences( VkDevice device, uint32_t fenceCount, VkBool32 fenceSignaled, const VkAllocationCallbacks* pAllocator, VkFence* pFences) { if (fenceCount == 0) return VK_SUCCESS; ...
/* Copyright (c) 2011, Yahoo! Inc. All rights reserved. Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. Author: <NAME> */ #include <R_ext/Applic.h> #define R_VEC(i) (i-1) #define R_MAT(i,j,nrow) (((j-1)*(nrow))+(i-1)) #define R_3DA(i,j,k,nrow,ncol) (((...
/* * Exercise 5-10. * * Write the program expr, which evaluates a reverse Polish expresion from * the command line, where each operator or operand is a separate argument. * For example, * * expr 2 3 4 + * * * evaluates 2 x (3+4). */ #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h...
/* * $Id: libnet-example-3.c,v 1.1.1.1 2000/05/25 00:28:49 route Exp $ * * libnet example code * example 2: raw socket api / ICMP_ECHO packet(s) using an arena * * Copyright (c) 1998 - 2001 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * m...
// // MyLog.h // MyLog // // <NAME> on 4/4/11. // Copyright 2011 Reply. All rights reserved. // #ifdef DEBUG #define DLog(fmt, ...) NSLog((fmt), ##__VA_ARGS__); #define DDLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); // #define DLog(...) // #define DDLog...
#include "avm_core.h" static unsigned char avm_uart_init(void *conf); static unsigned int avm_uart_conf[] = {72, 115200}; avm_module_t avm_uart_module_st = { 0, &avm_uart_conf[0], avm_uart_init, NULL, NULL }; static unsigned char avm_uart_init(void *conf) { uart_init(((unsigned int *)conf)[0...
#include "global-config.h" #include "octeon-pci-console.h" #include "cvmcs-common.h" #include "cvmcs-nic.h" #include <cvmx-atomic.h> #include <cvmx-access.h> #include <cvmx-fau.h> #include "cvmcs-nic-tunnel.h" #include "cvmcs-nic-rss.h" #include "cvmcs-nic-ipv6.h" #include "cvmcs-nic-ether.h" #include "cvmcs-nic-mda...
#define EXPORT __attribute__((visibility("default"))) #define HIP_FATBIN_CODE 0xBA55ED50 #define HIP_MAX_STREAMS 24 #define HIP_MAX_KERNARGS 1024 #define HIP_MAXARGSTRUCTSZ 1024 #define HIP_MAX_KERNELS 128 // VALCHECK is xdeadbeef #define VALCHECK 3735928559 struct hipi_fbwrapper { unsigned int magic; unsigned...
#include "pic.h" #include "timer.h" #include "usart.h" #include "utils.h" #include <avr/cpufunc.h> #include <avr/interrupt.h> #include <avr/io.h> #include <util/delay.h> #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #define enable_timer() do { T3_config(-1, cs_clkio_8); } while (false) #define disabl...
/** * SSD1306xLED - Library for the SSD1306 based OLED/PLED 128x64 displays * * @author <NAME> * * This is part of the Tinusaur/SSD1306xLED project. * * Copyright (c) 2018 <NAME>, The Tinusaur Team. All Rights Reserved. * Distributed as open source software under MIT License, see LICENSE.txt file. * Retain in ...
#include "config.h" #include <util/delay.h> #include "can_volvo/can_volvo.h" #include "canbus/canbus.h" #include "rti/rti.h" #include "time/time.h" #include <stdio.h> #include <string.h> uint32_t button_seen_time[NUM_BUTTONS]; static uint8_t relay_state = 0; static uint8_t user_poweroff = 0; static uint8_t ignition_...
/**\file i2c_task.c * \brief <b> I2C Interpreter Task (slave-only) </b> * * * Created on: May 20, 2016 * Copyright (c) 2016 <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, * Dr. <NAME> and the Mobile Integrated Solutions Laboratory * * Permission is hereby granted, free of charge, to any person ...
const char rcsid_util_c[] = "$Id: util.c,v 1.1.1.1 2002/09/04 20:48:53 dtype Exp $"; /* * Copyright (c) 1996, 1997, 1998, 1999, <NAME>. All rights reserved. * See the LICENSE file in the release for redistribution information. */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #inc...
/* * fs/minix/inode.c * * This file is part of JunOS Operating System. * * Copyright (C) 2016, <NAME> <<EMAIL>> * Licensed under MIT, http://opensource.org/licenses/MIT. */ #include "minix.h" static void m1_read_inode(struct inode *inode, struct minix1_inode *m1) { struct minix1_inode *i_ex...
/* * panel-lgd-wxga-7-0.c: Panel driver for lgd-wxga-7-0 panel. * * Copyright (c) 2013-2017, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the F...
/* * Copyright (c) 2014-2016 IBM Corporation. * 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...
/* * Copyright (c) 2012-2016 <NAME> * See LICENSE for details. * * Shazz / TRSi */ #include <yaul.h> #include "collide.h" /*returns maximum or minimum of number*/ #define COLLIDE_MAX(a,b) ((a > b) ? a : b) #define COLLIDE_MIN(a,b) ((a < b) ? a : b) /* * returns true if pixel at (u,v ) is a transparent pixel ...
/* * Copyright (c) 1996, 1998-2005, 2007-2011 * <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 copies. * * THE SOFTWARE IS PROVIDED "AS...
////////////////////////////////////////////////////////////////////// // IPUtil.h : Declaration of some global helper function for sockets // Copyright (c)1997-2001 Microsoft Corporation // // some global definitions // Original Create Date: 5/16/2001 // Original Author: shawnwu ////////////////////////////////...
/* Part of the Raspberry-Pi Bare Metal Tutorials Copyright (c) 2013-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 ...
/********************************************************************************************************* * Software License Agreement (BSD License) * * Author: <NAME> <<EMAIL>> * * * * Copyright (c) 2013, WIDE Project and NICT *...
/* $Header: /usr/sctpCVS/rserpool/lib/udpDist.c,v 1.1 2006-05-30 18:02:03 randall Exp $ */ /* * Copyright (C) 2002 Cisco Systems Inc, * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1....
/********************************************************************** // Copyright (c) 2015 <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 // restrictio...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
/* * Monitor Crusadar Kings 2 game and copy autosaves to a destination directory. */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdbool.h> #include <errno.h> #include <sys/inotify.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <fcntl.h> #include <signal.h> #de...
// TODO: add license of VPORT #include <stdio.h> #include <string.h> #include <sys/stat.h> #include <assert.h> #include <fcntl.h> #include <unistd.h> #include <rte_malloc.h> #include "vport.h" #define ROUND_TO_64(x) ((x + 32) & (~0x3f)) /* Connect to an existing vport_bar * */ struct vport *from_vbar_addr(size_t ...
/*- * Copyright (c) 2014-2018 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list ...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <omp.h> #include "mpi.h" #include <string.h> #include <math.h> // USAGE: mandelbrot_mpi <cols> <rows> <task_size> <x0> <y0> <dx> <dy> // OUTPUT: <time_spent_in_ms> #define TRIALS 50 #define ISTR_SIZE 1 #define BUFFER_SIZE (ISTR_SIZE + MAX_DATA_SIZE) #...
/* * 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...
/* The MIT License (MIT) Copyright (c) 2015 chenqi 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...
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
// // BRBloomFilter.c // // Created by <NAME> on 9/2/15. // Copyright (c) 2015 etzwallet 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 withou...
/* * SCC subtitle demuxer * Copyright (c) 2017 <NAME> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at you...
/* File: libwww_util.h ** Author(s): kifer ** Contact: <EMAIL> ** ** Copyright (C) The Research Foundation of SUNY, 2000 ** ** XSB 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 vers...
/* Created by <NAME> on 05/08/2020.*/ #include <stdlib.h> #include <string.h> #include "instruction_word.h" /** * @brief the instruction_word_t struct */ struct instruction_word_t { int opcode; int func; int sourceAddressingMethod; int sourceRegister; int destinationAddressingMethod; int des...
/* $OpenLDAP$ */ /* This work is part of OpenLDAP Software <http://www.openldap.org/>. * * Copyright 1998-2021 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted only as authorized by the OpenLDAP * Public License. ...
// engler, cs140e: your code to find the tty-usb device on your laptop. #include <assert.h> #include <fcntl.h> #include <string.h> #include <sys/stat.h> #include <time.h> #include "libunix.h" #define _SVID_SOURCE #include <dirent.h> static const char *ttyusb_prefixes[] = { "cu.SLAB_USB", // mac os "tty...
/************************************************************************* Sega vector hardware *************************************************************************/ /* * History: * * 980206 Cleaned up and simplified the spinner routines. BW * */ #include "driver.h" #include "sega.h" #incl...
#include "globals.h" #include "char.h" #define Y_RAINBOW_COUNT MATRIX_Y CRGB y_rainbow[Y_RAINBOW_COUNT]; uint8_t m_y_count = 0; void fill_y_rainbow(){ static uint8_t x, y; fill_rainbow(y_rainbow, Y_RAINBOW_COUNT, m_y_count, 256 / Y_RAINBOW_COUNT); for(y=0; y<MATRIX_Y; y++){ for(x=0; x<MATRIX_X;...
/* Copyright 2017 <NAME> <<EMAIL>> Copyright 2018 <NAME> <fo<EMAIL>89 at gmail.com> 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) an...