text
stringlengths
3.12k
18.7k
/* detect.c ** Author: <NAME> ** ------------- ** ** The detection functions used by screenfetch-c on OS X (Darwin) are implemented here. ** Like the rest of screenfetch-c, this file is licensed under the MIT license. */ /* standard includes */ #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <stri...
// // asteasy.c // Dulang // // Created by <NAME> on 02.03.2020. // Copyright © 2020 <NAME>. All rights reserved. // #include "astgen.h" #include "optimizer.h" #include "compilerr.h" #include <stdlib.h> #include <string.h> #define MIN(X, Y) (((X) < (Y)) ? (X) : (Y)) #define MAX(X, Y) (((X) < (Y)) ? (Y) : (X)) voi...
// pdchess.h - A component of the PD-Chess package // By <NAME> - April 1, 1993 // (C) Copyright 1993 - 2020 by <NAME> #define BOARD_SIZE 8 #define NUM_PIECE_DEFS 6 #define NUM_ALIST_SLOTS 6 #define SLOT_SIZE_INC 10 #define ZERO_EFFECT_SLOT 5 #define MAX_ARMY_SIZE ...
/* gui_canvas.c - GUI container allowing manually placed components. */ /* * GRUB -- GRand Unified Bootloader * Copyright (C) 2008,2009 Free Software Foundation, Inc. * * GRUB is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * t...
/* $FreeBSD: src/sys/pci/ohci_pci.c,v 1.16 2000/02/20 14:22:44 n_hibma Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME> (<EMAIL>) at * Carlstedt Research & Technology. * * Redistribution a...
/* * hifmc100_spi_general.c * * The Flash Memory Controller v100 Device Driver for hisilicon * * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. * * 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 ...
/*! * ------------------------------------------------------------------------------------------------- * \file fdlibm.h * \par ESA Contract Number * 4000117691/16/NL/FE * \brief Header file of the fdlibm library. * \version c07acbf539f8880d8c1255e7f85138b89f33387b * \date 2018-03-22 17:44:24 +0100 * \par ...
/* * Copyright (c) 2002 <NAME> * Copyright (c) 1997, 1998 <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 * ...
/* * userport_rtc_58321a.c - Generic userport RTC (58321a) emulation. * * Written by * <NAME> <<EMAIL>> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GN...
/** * @file * @brief * @version 0.2 * @date Jun 21, 2017 * @author <NAME> * @author <NAME> <<EMAIL>> */ #include <assert.h> #include <fcntl.h> #include <math.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <time.h> #include <unistd.h> #include <d...
/* $Id: code.c,v 1.22 2014/04/19 07:47:51 ragge Exp $ */ /* * Copyright (c) 2008 <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 copie...
/* * XAA acceleration for CL-GD546x -- The Laugna family * * lg_xaa.c * * (c) 1998 <NAME>. * <EMAIL> * Tukwila, WA * * Much of this code is inspired by the XAA acceleration from XFree86 * 3.3.3, laguna_acl.c */ /* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/cirrus/lg_xaa.c,v 1.4 2000/1...
#include "cheat.h" #include "mem.h" #include "debug.h" #include "util.h" #include "kernel/api.h" #include "libcheat/libcheat.h" #include <vitasdk.h> typedef struct cheat_data_t { uint32_t base_addr; } cheat_data_t; static cheat_t *cheat = NULL; static cheat_data_t cheat_data; enum { CO_SETBASEADDR = CO_E...
// REDSUBTEADT.C ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #include <stdio.h> #include <stdlib.h> #include <string.h> #include "redSubteADT.h" // Estructuras ////////////////////////////////////////////////////////////...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyri...
/* $OpenBSD: process_machdep.c,v 1.9 2003/01/16 00:33:14 mickey Exp $ */ /* * Copyright (c) 1999-2003 <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 sourc...
/* Interprocedural reference lists. Copyright (C) 2010 Free Software Foundation, Inc. Contributed by <NAME> 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 Software Foundation; either version 3...
#include <stdio.h> #include <string.h> #define MAX 20 #define INF 99999 /** * Stores an edge, with two nodes (u, v) + weight (w) */ typedef struct edge { int u, v, w; } edge; /** * Stores an edge listing for MST used on kruskal's algorithm */ typedef struct edge_list { edge edge[MAX]; int no_of_edges; } edge...
#include "Mishell.h" char* buffer; //TODO implement special args array where pipes and redirections are stored : fixed //TODO fix print flush error (works on correctly on gdb but not on stdout) : fixed //TODO implement last command entry with '\033' '[' 'A/B/C/D' //TODO fix pipes, error management and opening/clos...
/* htlist files on the server This is a hacked version of htget.c from fuzix. The intent is to have a command that just copies files from the http server to the CP/M system. The server address is known and does not change, nor will the port change. */ #include <stdio.h> #include <stdlib.h> #include <stdint.h...
/** * @file gic.c * */ /* Copyright (C) 2018-2021 by <NAME> mailto:<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 right...
/* * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #include "prof_int.h" #include <stdio.h> #include <string.h> #ifdef HAVE_STDLIB_H #include <stdlib.h> #endif #include <errno.h> #include <ctype.h> #define SECTION_SEP_CHAR '/' #define STATE_INIT_COMMENT 1 #def...
/* * Copyright © 2002 <NAME> * * 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 sup...
/// Looking at a.out formats /// /// First task: /// Look at mips COFF stuff: /// Print out the contents of a file and do the following: /// For data, print the value and give relocation information /// For code, disassemble and give relocation information /// /// Copyright (c) 1992-1993 The Regents of the Univer...
/* Consult http://libsdl.org/ to get SDL2(zlib license) for your platform. -------------------------------------- compilation using MSVC(for windows): -------------------------------------- In developer cmd: set inc_path="PATH TO THE INCLUDE FOLDER" set lib_path="PATH TO THE LIB FOLDER" set exec_name="Game Of Life.e...
#include "util.h" #include "buddy.h" #include "uart.h" struct buddy_head buddy_list[BUDDY_MAX_ORDER + 1]; struct buddy_allocated buddy_allocated_list; void buddy_test() { buddy_init(); int PFN1, PFN2, PFN3, PFN4, PFN5; uart_putstr("================================== buddy system ===========================...
// Copyright (c) Microsoft Corporation. All rights reserved. // SPDX-License-Identifier: MIT #include "az_test_definitions.h" #include <azure/core/az_credentials.h> #include <azure/core/internal/az_credentials_internal.h> #include <azure/core/internal/az_http_internal.h> #include <azure/core/az_http_transport.h> #incl...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * File Name : freertos.c * Description : Code for freertos applications ****************************************************************************** * @attention * * <h2><cente...
/* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "../gfx.h" #include "../mem.h" #include "../main.h" //Gfx constants #define OTLEN 8 //Gfx state DISPEN...
/*Fetcher.c: The way remap actually gets pixels out of its input images. This set of routines is based on the "blocking/reblocking" idea from the Land Analysis System's geom1p image rectifier. The idea is: we break the input image up into 256x256 blocks, and each block is written to a contiguous chunk of a temporary ...
#include "interpretMacros.h" //////////// helper functions (to be moved in separate modules) void testPrintVariables(char pszVars[][0x02][LINE_BUF_LEN_FIXED], const size_t varCount, const char* szFileName) { // test print variables: int i; const char* szVarDatOutputFile = szFileName; FILE* fvars; ...
/* * Copyright (c) 2014-2018 Cesanta Software Limited * 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 * * ...
/* Copyright (C) 2017-2019 Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted for any purpose (including commercial purposes) * provided that the following conditions are met: * * 1. Redistributions of source code must ret...
/* ---------------------------------------------------------------------------- * SAM Software Package License * ---------------------------------------------------------------------------- * Copyright (c) 2011, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary f...
#include <unistd.h> #include <sys/wait.h> #include <stdio.h> #include <stdlib.h> #include <termios.h> //termios, TCSANOW, ECHO, ICANON #include <string.h> #include <stdbool.h> #include <errno.h> #include "shortdir.h" #include "highl.h" #include "good_morning.h" #include "kdiff.h" #include "todo.h" const char...
/* * * This file is part of libmpeg3 * * LibMPEG3 * Author: <NAME> <<EMAIL>> * Page: heroine.linuxbox.com * Page: http://www.smalltalkconsulting.com/html/mpeg3source.html (for Squeak) * LibMPEG3 was originally licenced under GPL. It was relicensed by the author under the LGPL and the Squeak license o...
/*===-- upc_backtrace.c - UPC Runtime Support Library --------------------=== |* |* The LLVM Compiler Infrastructure |* |* Copyright 2012-2014, Intrepid Technology, Inc. All rights reserved. |* This file is distributed under a BSD-style Open Source License. |* See LICENSE-INTREPID.TXT for details. ...
/* * crontab: read/write/delete/edit crontabs */ #include "config.h" #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <pwd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include <string.h> #include <utime.h> #include <ctype.h> #if HAVE_LIBGEN_H # include <...
#include <pebble.h> static Window *s_window; static Layer *s_window_layer, *s_dots_layer, *s_progress_layer, *s_average_layer; static TextLayer *s_time_layer, *s_step_layer; static char s_current_time_buffer[8], s_current_steps_buffer[16]; static int s_step_count = 0, s_step_goal = 0, s_step_average = 0; //Color whe...
#include <stdio.h> #include <stdlib.h> /* Permite usar "NULL" */ #include <string.h> #include <Math.h> #include "Uteis.h" #include "FilaPrioridade.h" #include "Arvore.h" #include "FilaArvore.h" CodByte* novaCodByte(char* cod, char byte) { CodByte* ret = (CodByte*) malloc(sizeof(CodByte)); ret->byte = byte; ...
#include <assert.h> #include <stdlib.h> #include <string.h> #include <nusys.h> #include <nualstl_n.h> #include "canvas.h" #include "collision.h" #include "data.h" #include "debug.h" #include "defines.h" #include "entities.h" #include "gfx.h" #include "mathdefs.h" #include "shape.h" #include "util.h" #include "vec.h" ...
/* movstat/medacc.c * * Copyright (C) 2018 <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. * * This...
#include <kipr/botball.h> #include <math.h> #include <create_functions.h> #include <create_comp_lib.h> #include <alissa.h> #include <camera.h> #include <filter.h> int above_yellow = arm_min + 900; int clear_swings = arm_min + 150; int grab_yellow = arm_min + 1240; int yellow_above_pvc = arm_min + 330; int yellow_place ...
/* * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved. * * This file is part of the device-mapper userspace tools. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject ...
/* * Copyright (C) 2016 Intel 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...
#include <tile/view.h> #include <tile/entity.h> #include <tile/math.h> static void ApplyAspect( int *pOutW, int *pOutH, int InW, int InH, double fAspectRatio, TlAspect_t Aspect ) { double fResX, fResY; double fDstAspectRatio; if( fAspectRatio*fAspectRatio < 0.000001 || !InW || !InH ) { *pOutW = InW; ...
#include "globals.h" #ifdef COUNTBITS16 s32bit countbits16[65536]; static void init_countbits() { s32bit i; countbits16[0] = 0; for(i = 1; i < 65536; i++){ countbits16[i] = (i & 1) + countbits16[i >> 1]; } } #endif #ifdef COUNTBITS8 s32bit countbits8[256]; static void init_countbits() { s32bit...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #define MAXBYTES 600000 int size = 0; char *strlower(char *str){ /* Function to convert uppercase letters to lowercase. PARAMETERS: - str: string that we want to convert to lowercase. ...
/* Copyright (C) Intel Corp. 2006. All Rights Reserved. Intel funded Tungsten Graphics to develop this 3D driver. 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, inclu...
#include <stdlib.h> #include <string.h> #include <assert.h> #include <bst.h> typedef struct node node_t; struct node { void *key; void *value; int balance; struct node *left; struct node *right; }; // typedeffed to bst_t in "bst.h" // lazy height // height[0] = is_height_up_to_date // height[1] =...
#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <string.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include <errno.h> #include <time.h> #include <signal.h> #include <sys/timerfd.h> #include <sys/epoll.h> #include <wait.h> #includ...
#include <fcntl.h> #include <linux/fb.h> #include <linux/input.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <sys/mman.h> // mmap PROT_ #include <sys/poll.h> #include <sys/stat.h> #include <sys/types.h> #include <termios.h> #include <time.h> #include <unistd.h> #include ...
/** * @file compiler.h * @brief include file for standard system include files, * or project specific include files that are used frequently, * but are changed infrequently */ #pragma once #include <stdio.h> #include <stddef.h> #include <stdint.h> #include <stdlib.h> #include <setjmp.h> #includ...
/** * @file lexer.c * @author strah19 * @date May 23 2021 * @version 1.2 * * @section 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 version 2 of * the License, or (...
/** * Copyright (c) 2020 <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, di...
#include "graffiks/gl_helper.h" #define _USE_MATH_DEFINES #include <stdlib.h> #include <math.h> void gfks_set_view_matrix(float matrix[], float eye_x, float eye_y, float eye_z, float center_x, float center_y, float center_z, float up_x, float up_y, float up_z) { /...
#include <float.h> #include <stdio.h> #include <assert.h> #include <string.h> #ifdef _arch_dreamcast #include <dc/pvr.h> #else #define PVR_PACK_COLOR(a, r, g, b) {} #endif #include "profiler.h" #include "private.h" #include "../containers/aligned_vector.h" static unsigned char ZCLIP_ENABLED = 1; unsigned char _glI...
#include <stdlib.h> #include <stdio.h> #include <cnaiapi.h> #define BUFFSIZE 256 #define BOARDSIZE 59 #define RECEIVED_PROMPT "Received> " void create_board(char board[BOARDSIZE]); void send_board(connection conn, char board[BOARDSIZE]); char receive_choice(connection conn); void put_choice_on_board(char boa...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief Demonstrate how to implement PS/2 slave protocol by PSIO. * * @copyright SPDX-License-Identifier: Apache-2.0 * @copyright Copyright (C) 2021 Nuvoton Technology Corp. All rights reserved...
/** * -------------------------------- * LiteScript lang - gtihub.com/luciotato/LiteScript * Copyright (c) 2014 <NAME> * -------------------------------- * This file is part of LiteScript. * LiteScript is free software: you can redistribute it and/or modify it under the terms of * the GNU Affero General Public ...
#include <ruby.h> #include <ruby/io.h> #include <fcntl.h> #include <math.h> int my_readbyte(VALUE io){ return NUM2INT( rb_funcall(io, rb_intern("readbyte"),0)); } char *my_read(VALUE io, long nbytes){ char * result = (char*)malloc(nbytes+1); VALUE nbytes_v = INT2NUM(nbytes); VALUE rstr = rb_funcall(io, rb_in...
/* File: cyclic_derived.c * Purpose: Build a derived datatype that can be used in collective * communications of arrays that have a cyclic distribution. * The program reads in an array of ints on 0, distributes it * among the processes, prints the contents of each process' * ...
/* * Copyright (c) 2018 <NAME> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later vers...
#include <time.h> #include <sys/time.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_log.h" #include "screen_pcd8544.h" #include "obc.h" #include "pcd8544.h" #include "pcd8544_font_utils.h" #define TAG "PCD8544_TASK" /** * Array of screen delays in miliseconds for each existing screen *...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "sock_msg.h" #define MAX_BUFSZ 4096 /*max text line length*/ #define SERV_START_PORT 4096 /*port*/ #include <unistd.h> // char** readNodes(); typedef enum { mympi_Char, mympi_Int, mympi_Float, mympi_Double, } mympi_Type; int client(char *msg, ...
/** @file * Copyright (c) 2018-2019, Arm Limited or its affiliates. All rights reserved. * SPDX-License-Identifier : Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ht...
/** ****************************************************************************** * File Name : stm32f0xx_hal_msp.c * Description : This file provides code for the MSP Initialization * and de-Initialization codes. ****************************************************...
// // Enums, constants and structs related to the Wiimote protocol // #pragma once #include <stdint.h> #pragma pack(push, 1) #define HID_INPUT_REPORT (0xA1) #define HID_OUTPUT_REPORT (0xA2) #define WIIM_REPORT_RUMBLE (0x10) #define WIIM_REPORT_LED ...
/* * tinysvcmdns - a tiny MDNS implementation for publishing services * Copyright (C) 2011 <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 mus...
#include <console/console.h> #include <arch/io.h> #include <stdint.h> #include <device/device.h> #include <device/pci.h> #include <device/pci_ids.h> #include <stdlib.h> #include <string.h> #include <cpu/amd/gx2def.h> #include <cpu/x86/msr.h> #include <cpu/x86/cache.h> #if 0 void bug645(void) { msr_t msr; rdmsr(CPU_I...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * This notice applies to any and all portions of...
/* * QEMU IDE Emulation: PCI PIIX3/4 support. * * Copyright (c) 2003 <NAME> * Copyright (c) 2006 Openedhand Ltd. * * 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,...
/** * Main GCCG program * * @author <NAME>, <NAME> * @date 22-May-2009, 22-Oct-2012 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <mpi.h> #include "initialization.h" #include "compute_solution.h" #include "finalization.h" #include "vol2mesh.h" #include "util_write_files....
/* * The MIT License (MIT) * * 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 restriction, including without limitation the rights * to use, cop...
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> ...
#include <string.h> #include "csf.h" #include "csfimpl.h" static const char * const openModes[3] = { S_READ, S_WRITE, S_READ_WRITE }; /* Return the access mode of m * MopenPerm returns the permission. * Note that M_WRITE is deprecated */ enum MOPEN_PERM MopenPerm( const MAP *m) { return m->fileAccessMode; ...
// gcc -o test init_window.c -I. -lwayland-client -lwayland-server -lwayland-client-protocol -lwayland-egl -lEGL -lGLESv2 #include <wayland-client.h> #include <wayland-server.h> #include <wayland-client-protocol.h> #include <wayland-egl.h> // Wayland EGL MUST be included before EGL headers #include "init_window.h" #in...
/**************************************************************** * Copyright (C) 2017 Schneider Electric * * * * Derivative work: based on udhcpc_wrapper.c * *******************************************************...
/* * Copyright (C) SplinterGU (Fenix/BennuGD) (Since 2006) * Copyright (C) 2002-2006 Fenix Team (Fenix) * Copyright (C) 1999-2002 <NAME> (Fenix) * * This file is part of Bennu Game Development * * This software is provided 'as-is', without any express or implied * warranty. In no event will the au...
// Name : <NAME> // ID : 504941113 // Email : <EMAIL> #include <mraa.h> #include <mraa/aio.h> #include <stdio.h> #include <getopt.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <poll.h> #include <math.h> #include <errno.h> int period = 1; char scale = 'F'; int opt_log = 0; int log_fd; str...
/* Copyright (c) 2011-2017 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "hostpid.h" #include "ioloop.h" #include "buffer.h" #include "str.h" #include "net.h" #include "write-full.h" #include "time-util.h" #include "istream.h" #include "ostream.h" #include "iostream-private.h" #include "i...
// Include Standard Headers that we Need #include <stdio.h> #include <stdint.h> #include <math.h> // Include Custom Utilities #include "targa.h" #include "custommath.h" // Parameters // Camera Field of View #define camfov 1.0f // Number of Path-Traced Samples #define samples 512U // Resolution #define resolutionx 6...
/* GStreamer * * unit test for shm elements * Copyright (C) 2013 Collabora Ltd * @author: <NAME> <<EMAIL>> * * 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 Foundation; either * version 2...
/** * \file * * \brief ACIFB software driver for AVR32 UC3. * * Copyright (C) 2009-2014 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 following conditions...
/* -*- linux-c -*- */ /* fewbody_collapse.c Copyright (C) 2002-2004 <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 2 of the License, or (at your option) any ...
/* * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Sony Corp. and <NAME> of Software Research Associates, Inc. * * %sccs.include.redist.c% * * from: $Hdr: vt100.h,v 4.300 91/06/09 06:14:58 root R...
/* * Copyright (c) 2012 <NAME> * See LICENSE for details. * * <NAME> <<EMAIL>> */ #include <vdp2/scrn.h> #include <common.h> #include "vdp2-internal.h" static uint16_t pattern_name_control(struct scrn_ch_format *cfg) { uint16_t pnc; uint16_t scn; uint8_t scn_bits; switch (cfg->...
#include "Scavenger.h" #include "Heap.h" #include "StackFrame.h" #include "CodeDescriptors.h" #include "Thread.h" #include "Exception.h" #include <string.h> #define SCAVENGER_ALIGN 8 static void iterateStack(Scavenger *scavenger); static void iterateExceptionHandlers(Scavenger *scavenger); static void iterateHandles(...
/* build.c ======= Author: R.J.Barnes */ /* LICENSE AND DISCLAIMER Copyright (c) 2012 The Johns Hopkins University/Applied Physics Laboratory This file is part of the Radar Software Toolkit (RST). RST is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General ...
/* --------------------------------------------------- < <NAME> 2020 - Translator using Google Translate > ------------------------------------------------------- \ \ \ |\___/| ==) ^Y^ (== \ ^ / )=*=( / \ | ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <errno.h> #include <sys/stat.h> #include <sys/mman.h> #include <sys/types.h> #include <fcntl.h> #include <unistd.h> #include "layout.h" #include "x11.h" static size_t nlayouts = 0; static layout_t* layouts = NULL; size_t layout_co...
#include "fd_spim.h" #include "fd_log.h" #include "fd_nrf5.h" static inline NRF_GPIO_Type *fd_spim_get_nrf_gpio(uint32_t port) { return (NRF_GPIO_Type *)(NRF_P0_BASE + port * 0x300UL); } static void fd_spim_configure( fd_gpio_t gpio, nrf_gpio_pin_dir_t dir, nrf_gpio_pin_input_t input, nrf_gpio_pi...
/* * Skeksi Virus disinfector, by ElfMaster. January 2016 * * -= About: * This disinfector is the first prototype, it is written for those who may have been so unfortunate * as to infect their own system. The disinfector will work any infected ET_EXEC file, provided that * it has section headers. This is somewhat...
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <sys/select.h> #include <assert.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <string.h> #include "hyper.h" struct conn_data { int fd; hyper_waker *read_waker; hyper_...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> // Prototype of The Buddy Memory Allocator // Struct that represents the elements of the list of free memory struct freeBlock { struct freeBlock *next; // Pointer to next free block of memory in the list unsigned int size; // size of block of memory ...
/* * Copyright (c) 2015-2018 Nexenta Systems, inc. * * This file is part of EdgeFS Project * (see https://github.com/Nexenta/edgefs). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional informat...
/* * Copyright (C) 2007 <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, or (at your option) * any later version. * * This program is distributed in ...
/* module : initsym.c version : 1.2 date : 10/26/20 */ #include "symbol.h" #include "ident.h" #include "initsym.h" static void erw(char *a, standardident s) { sym_getsym(sym_lookup(a))->sym = s; } /* erw */ static void est(char *a, standardident s) { sym_getsym(sym_lookup(a))->id = s; } /* e...
/* * view.c * * Created on: May 28, 2019 * Author: maartenweyn */ #include "view.h" #include "tatysoundviewer.h" #include "view_defines.h" #define MAIN_EDJ "/edje/main.edj" struct sound_val_s { char raw[5]; char leq[5]; char leq_min[5]; char leq_hour[5]; char leq_8hours[5]; char leq_day[5]; }; ty...
/* Unix SMB/CIFS implementation. ping pong test Copyright (C) <NAME> 2007 Significantly based on and borrowed from lockbench.c by Copyright (C) <NAME> 2006 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published ...