text
stringlengths
3.12k
18.7k
/* * Copyright (C) 2016-2018 Marvell International Ltd. * This program is provided "as is" without any warranty of any kind, * and is distributed under the applicable Marvell proprietary limited use * license agreement. */ #include <stdio.h> #include <debug.h> #include <arch.h> #include <platform_def.h> #include ...
/* Libart_LGPL - library of basic graphic primitives * Copyright (C) 1998 <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 Foundation; either * version 2 of the License, or (at your op...
/* ===================================================================== * Author: <NAME> <<EMAIL>> * This file is distributed under the same license as OpenSSL ==================================================================== */ #include "dstu_engine.h" #include "dstu_params.h" #include "dstu_asn1.h" #include "...
/* * Copyright (c) 2004 by Archim * All rights reserved. * * For License information please see LICENSE (that was unexpected wasn't it!). * * The header data used is (c) SUN Microsystems, * opcodes.h being the exception I'm the only one boring enough to write that. * * Wow, a configuration statement, thanks...
/* display.c Written by <NAME> & <NAME> Note: Parts of the program are written by <NAME> and <NAME> */ #include <stdint.h> #include <pic32mx.h> #include "headerfile.h" /* Declare a helper function which is local to this file */ static void num32asc( char * s, int ); #define DISPLAY_CHANGE_TO_COMMAND_MODE (PORTFCLR ...
// Copyright 2016 The Vanadium 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 "miniv.h" #include <stdio.h> static struct utype knownUserTypes[utidMax]; static int nKnownUserTypes = 0; static int64_t decodeSign(uint64_t in...
/** hdc1008.c - (c) 2015 <NAME> Communicate with a TI HDC1008 sensor via i2c This code was tested with a Adafruit HDC1008 breakout board. https://learn.adafruit.com/adafruit-hdc1008-temperature-and-humidity-sensor-breakout HDC1008 Datasheet: http://www.ti.com/lit/ds/symlink/hdc1008.pdf Usage: hdc1008 - communicat...
#include "main.h" #include "config.h" extern ntrConfig_t *ntrConfig; extern bootNtrConfig_t *bnConfig; extern u8 *tmpBuffer; extern char *g_error; typedef struct { void(*invalidateDataCache)(void *, u32); void(*storeDataCache)(void *, u32); void(*flushDataCache)(void *, u32...
/* Broadcom B43 wireless driver IEEE 802.11n 2059 radio device data tables Copyright (c) 2011 <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 Li...
/* * Copyright (C) 2008 The Android Open Source Project * 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, t...
/****************************************************************************/ /* */ /* PC-DCL - DCL command line interpreter for Windows. */ /* Copyright (C) 1991-2007 by <NAME> */ /* ...
/* * pulp_nn_conv_Ho_parallel.c * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * Copyright (C) 2018-2020 University of Bologna * * 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...
/* MIT License * * Copyright (c) 2021 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, me...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/* * Memory and machine-specific definitions. Used in C and assembler. */ /* * Sizes */ #define BI2BY 8 /* bits per byte */ #define BI2WD 32 /* bits per word */ #define BY2WD 4 /* bytes per word */ #define BY2V 8 /* bytes per double word */ #define BY2PG 4096 /* bytes per page */ #define WD2PG (BY...
/*************************************************************************************************/ /* Example of a standalone application using the vklite API in a canvas. */ /* This script writes a triangle.png file rendered with the GPU. */ /*******************...
/** * @file */ /****************************************************************************** * Copyright (c) 2013, AllSeen Alliance. All rights reserved. * * 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 2021 <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 later version. * * This program is distributed in the...
/* * delaep64.c - Cartridge handling, Dela EP64 cart. * * 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 GNU General Public...
/* Copyright (C) 1994-1995 Apogee Software, Ltd. 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 distr...
/* $Id$ */ /* * Copyright (c) 2006-2009 <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, t...
/* * Copyright (c) 2021 hpmicro * * SPDX-License-Identifier: BSD-3-Clause * */ #include "hpm_dma_drv.h" hpm_stat_t dma_setup_channel(DMA_Type *ptr, uint32_t ch_num, dma_channel_config_t *ch) { uint32_t tmp; if ((ch->dst_width > DMA_SOC_TRANSFER_WIDTH_MAX) || (ch->src_width > DMA_SOC_TRANSFER_...
/* * Copyright 2012, Google 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: * * * Redistributions of source code must retain the above copyright * notice, this list of cond...
#include <stdbool.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include "enums.h" #include "log.h" #include "list.h" #include "instructions.h" #include "readline.h" #include "stringop.h" #include "linker.h" #include "runtime.h" #include "generated.h" static uint64_t swapbits(uint6...
/* * renderwave.c - Audiality 2 render-to-wave via low level API * * This test sets up a realtime state with an off-line substate, uses the * latter to render sound into a wave, and then plays that on the realtime * state. * * Copyright 2013-2015 <NAME> <<EMAIL>> * * This software is provided 'as-is', without ...
/* * Copyright (c) 2002-2013 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the * above copyright noti...
/* * 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 have received a copy of the CC...
/* * 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...
/* * Product specific probe and attach routines for: * Adaptec 154x. * * Derived from code written by: * * Copyright (c) 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 me...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define TAM 3 struct Fila{ char modelo[30], marca[30], cor[20]; int ano, placa, chassi; }; // recebe uma fila de carros e o inicio e o fim da mesmo por referência void insere(struct Fila f[], int *inicio, int *fim){ if((*inicio == -1 && *fi...
/* rbacaudit.c - RBAC Audit */ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software <http://www.openldap.org/>. * * * 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. * * A copy o...
#include <process/process.h> #include <stdlib.h> #include <panic/panic.h> #include <mm/virt_mm.h> #include <debug/debug.h> #include <stack/kstack.h> #include <scheduler/scheduler.h> #include <process/used_list.h> #include <mm/phys_mm.h> #include <loaders/executable_loader.h> #include <interrupts/interrupts.h> #include ...
// // KwikEMart (Proyecto de ventas) // // Creado por: <NAME> // <NAME> // <NAME> // // 28/11/16. // Copyright © 2016. All rights reserved. // #include<stdio.h> #include<stdlib.h> #include<string.h> ////////////////////////////////////////////////////////VARIABLES GLOBALES///////////////...
/* * Copyright (C) 2010 Freescale Semiconductor, 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; either version 2 of the License, or * (at your option) any late...
/* ==== PERVASIVE BYTEARRAYS ==== * * Copyright 2013 Ravenbrook Limited <http://www.ravenbrook.com/>. * 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 o...
// SPDX-License-Identifier: BSD-3-Clause /* * Copyright (C) Foundries Ltd. 2020 - All Rights Reserved * Author: <NAME> <<EMAIL>> */ #include <crypto/crypto.h> #include <se050.h> #include <string.h> #define BIT(nr) (1UL << (nr)) /* base value for secure objects (transient and persistent) */ #define OID_MIN ((uin...
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1999 - 2000 // // File: intrsect.c // //-------------------------------------------------------------------------- #include "common.h" ULONG GetIntersec...
/* * pfmlib_sparc.c : support for SPARC processors * * Copyright (c) 2011 Google, Inc * Contributed by <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 rest...
#include "zdssKeys.h" #include "zdssMessages.h" #include "zdssVals.h" #include "zprogress.h" #include "heclib.h" /** * Function: zcheckPathnameBins * * Use: Semi-Public * * Description: Walks through a DSS file checking that all pathname bins * contain valid information. (It does not check to see if * t...
#include "des_int.h" static const char *me; struct test_case { char *saltstr; int saltlen; unsigned char keys[12][8]; }; struct test_case test_cases[] = { { "Sodium Chloride", -1, { { 0xa4, 0xd0, 0xd0, 0x9b, 0x86, 0x92, 0xb0, 0xc2, }, { 0xf1, 0xf2, 0x9e, 0xab, 0xd0, 0xef, 0xdf, 0x73, }, { 0xd6, 0x85...
/* * nessDB storage engine * Copyright (c) 2011-2012, BohuTANG <overred.shuttler at gmail dot com> * All rights reserved. * Code is licensed with BSD. See COPYING.BSD file. * */ #include "config.h" #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdlib.h> #include <unistd.h> #include <s...
// ********************************************************************************** // MIT License // // 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 with...
#include "shell.h" #include "uart.h" #include "meta_macro.h" #include "string_util.h" #include "mailbox.h" #include "pm.h" #include "framebuffer.h" const char * shell_command_list[] = { "hello", "help", "timestamp", "reboot", "bd", "vcmem", "txt", 0x0 }; const char * shell_command_descriptions[] = { ...
/* Copyright (c) 2006-2013 uim Project http://code.google.com/p/uim/ 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 n...
#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <stdbool.h> #include <search.h> #define MIN(a,b) ((a)<(b)?(a):(b)) #define ABS(x) ((x)<0?-(x):(x)) #define IS_EMPTY(c) ((c)=='.'?1:0) int min_cost = 100000000; // Here's the map // 0 12 //...
/* * Copyright (C) 2008-2013 Nabto - All Rights Reserved. */ /* * deunabto_external_environment.c * * Created on: 6-10-2011 * Author: <EMAIL> */ #include <stdio.h> #include "uip.h" #include "clock-arch.h" #include "unabto_common_main.h" #include "unabto_env_base.h" uint32_t basestationIPV4 = 0; // for e...
#include <stdio.h> #include <time.h> #if defined __amd64__ // These macros put in out_var the flags resulting from inval1 +/- inval2 #define ADD_OUT_FLAGS(out_var, inval1, inval2) asm ( \ "add %[invalc], %[invald];" \ "pushfq;" \ "pop %[outval];"\ : [outval] "=r" (out_var) \ ...
/* * * Copyright (C) 2011, 2015 Cisco Systems, Inc. * Copyright (C) 2015 CBA research group, Technical University of Catalonia. * * 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: * * ...
/* $OpenBSD: sd_scsi.c,v 1.6 2003/06/25 02:18:35 krw Exp $ */ /* $NetBSD: sd_scsi.c,v 1.8 1998/10/08 20:21:13 thorpej Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution a...
/******************************************************************************/ /******************************************************************************/ #include "math.h" #include "sys_types.h" #include "sys_define.h" #include "string.h" #include "lib_util.h" #include "mtos_misc.h" #include "mtos_task.h" #in...
#include "process.h" #include "interrupts.h" #include "io.h" #include "liballoc.h" #include "messages.h" #include "object_pools.h" #include "service.h" #include "thread.h" #include "timer.h" #include "virtual_allocator.h" // The last assigned process ID. size_t last_assigned_pid; // Linked list of processes that ar...
/* * Copyright (C) 2009-2021 <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI...
/* * rtc.c * Created on: Mar 11, 2018 * Author: Dennis, <NAME> */ #include "rtc.h" #include "../fs/fs.h" #include "../process/process.h" /* Definitions for RTC ports and registers*/ //set this bit when writing to addr port to disable NMI #define RTC_DIS_NMI 0x80 #define RTC_REG_A 0x0A #def...
/* Copyright (C) 2001-2021 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license ...
/* * Copyright (C) 2005 <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 License, or * (at your option) any later version. * * This progra...
// #include <stdio.h> #include <string.h> #include "m_pd.h" #include "m_imp.h" /* FIXME need access to c_externdir... */ #include "g_canvas.h" typedef struct _openfile{ t_object x_ob; int x_isboxed; char *x_vistext; int x_vissize; int x_vislength; int x_rtex...
/* read/write an MLX90615 sensor with Raspberry-pi * * Copyright (c) 2017 <NAME> <<EMAIL>> * * mlx_lib 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 * opt...
// The Snipe editor is free and open source, see licence.txt. #include "text.h" #include "line.h" #include "string.h" #include "file.h" #include "unicode.h" #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <assert.h> // A text object stores an array of bytes, as a gap buffer. Fo...
/* * IFV demuxer * * Copyright (c) 2019 <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 opti...
/************************************************************************** * * Copyright 2013-2014 RAD Game Tools and Valve Software * Copyright 2010-2014 <NAME> and Tenacious Software LLC * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software ...
#include "tsf_ir.h" #include "tsf_ir_different.h" #include <errno.h> #include <inttypes.h> #include <stdio.h> #include <sys/time.h> #ifdef TSF_BUILD_SYSTEM #include "tsf.h" #else #include <tsf/tsf.h> #endif static void usage(void) { fprintf(stderr, "Usage: tsf_ir_speed [<count>]\n"); exit(1); } static double ...
/* This file is part of the YAZ toolkit. * Copyright (C) Index Data * See the file LICENSE for details. */ /** * \file opac_to_xml.c * \brief Implements OPAC to XML conversion */ #if HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #include <string.h> #include <stdlib.h> #include <yaz/proto.h> #inclu...
#include <msp430.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <strsep.h> #include "address.h" #include "font6x8.h" #include "font12x16.h" #include "ssd1306_lib.h" #include "ssd1306_i2c_lib.h" volatile uint32_t i; unsigned char data [2]; unsigned char *TI_transmit_field; un...
#include <fcntl.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <sys/ioctl.h> #include <termios.h> #include <tty.h> #include <unistd.h> #define NDEBUG #define ESC 27 #define DEL 127 /* structs, definitions */ struct termios old_config; enum MODE { NORM...
#include <sys/types.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <sys/shm.h> #include <sys/stat.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/wait.h> void writeOutput(char *command, char *output); void write_to_pipe(char *comma...
// drzewo czerwone-czarne // (C) <NAME> #include "naglowek.h" void dodajElement(tree *a, int dana) { if ((*a) == NULL) { (*a) = (tree) malloc(sizeof(struct node)); (*a)->w = dana; (*a)->c = 0; (*a)->o = NULL; (*a)->l = NULL; (*a)->p = NULL; } else { while (1) { if ((((*a)->l == NULL) && (dana < (*a...
/********************* discretize_wf.c *********************************/ /* MILC Version 7 Read a real ASCII wave function and interpolate. The wave function file has r, U(r) pairs, where r is in fm and U(r) is the reduced wave function. Rescale to lattice spacing a and store result in a MILC complex ...
/** * 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...
/** * * This file is part of MultiCopy * MultiCopy 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. * * MultiCopy is distributed...
/*============================================================================ fourierf.c - <NAME> <<EMAIL>> http://www.intersrv.com/~dcross/fft.html Contains definitions for doing Fourier transforms and inverse Fourier transforms. This module performs operations on arrays of 'float'. Rev...
#include "Rts.h" #include "sm/OSMem.h" #include "linker/MMap.h" #include "Trace.h" #include "ReportMemoryMap.h" #if RTS_LINKER_USE_MMAP #include <sys/mman.h> #endif /* Link objects into the lower 2Gb on x86_64 and AArch64. GHC assumes the * small memory model on this architecture (see gcc docs, * -mcmodel=small)....
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/***************************************************************************** * \file testsuite_dtl_hv.c * \author <NAME> * \date 2013-08-16 * \brief Unit tests for DTL hash * * Copyright (c) 2013-2019 <NAME> * Permission is hereby granted, free of charge, to any person obtaining a copy of * t...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <time.h> #include <sys/stat.h> #include <stdbool.h> #include <limits.h> // Globale Variablen fuer die Bestenliste int scores[10]; char names[256*10]; /* Oeffnet eine Datei mit dem Namen "name" "mode" legt den Modus, in dem die Datei geoeffnet werde...
/*************************************************************************** Copyright (c) 2021, The OpenBLAS Project 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...
#include "ms5611.h" #include "scheduler.h" #define W_MS5611_ADDR 0xEE // 0x77 #define R_MS5611_ADDR 0xEF #define CMD_RESET 0x1E // ADC reset command #define CMD_ADC_READ 0x00 // ADC read command #define CMD_ADC_CONV 0x40 // ADC conversion command #define CMD_AD...
/** @file uioptimized - demonstrate the drawing of various objects using jgraphics @ingroup examples */ #include <stdlib.h> #include "ext.h" #include "ext_obex.h" #include "jpatcher_api.h" #include "jgraphics.h" /**********************************************************************/ // Data Structures typedef ...
// // completeTableau.c // // // Created by <NAME> on 02.08.17. // // #include "completeTableau.h" // only gets invoked if the table is initialzied with a correct formula void complete(struct tableau *t) { // use depth first search to complete the tableau t depthFirstSearch(t); } // gets invoked if the node i...
/* # This file is part of the Astrometry.net suite. # Licensed under a 3-clause BSD style license - see LICENSE */ #include <math.h> #include <stdio.h> #include <string.h> #include "cutest.h" #include "usnob.h" #include "usnob-fits.h" #include "an-bool.h" #include "an-endian.h" #include "starutil.h" static void as...
#include <assert.h> #include <stdbool.h> #include <console.h> #include <list.h> #include <module.h> #include <string.h> #include <heap.h> #include <usb/ehci.h> #include <usb/ohci.h> #include <usb/uhci.h> #include <usb/usb.h> /* direction */ #define REQ_TYPE_DEV_TO_HOST 0x80 #define REQ_TYPE_HOST_TO_DEV 0x00 /* type...
#include "fonction.h" t_move** Astar(Position pos1, Position tresor, char* labData, int size_x, int size_y){ //Trouve le chemin le plus rapide vers le trésor //Initialisation des variables et structures int i; ListeC closedList=NULL, openList=NULL, temp_list, min_list; Position voisins[4], cp; Case D...
/* Copyright 2001-2012 Xiph.Org and contributors. 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 the following disclaimer...
/* Definitions of target machine for GCC for IA-32. Copyright (C) 1988, 1992, 1994, 1995, 1996, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 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 L...
// -*-Mode: C++;-*- // technically C99 // * BeginRiceCopyright ***************************************************** // // $HeadURL$ // $Id$ // // -------------------------------------------------------------------------- // Part of HPCToolkit (hpctoolkit.org) // // Information about sources of support for research an...
// Sorting visualizations #include <types.h> #include <matrix.h> #include <timers.h> #include <random.h> #include <stddef.h> #include <stdlib.h> #include <math.h> #include <stdio.h> #include "gfx_sort1D_algos.c" // declares: // static int * data; // static int n; // static int sorting_algorithm; // ...
/*________________________________________________ * This file is part of TOS-6, a hobby Operating * System made by github user Edelkrebs. * * All the code you see in this file is licensed * under the MIT license and you are free to use * it wherever and whenever you want. * ...
/** * @file canola.c * @author <NAME> * @date January 23, 2020 * @brief Functions for interacting with Canola CAN controller * AXI-slaves (e.g. send/receive), and utility functions * to generate and check CAN messages */ #include "canola.h" #include "canola_axi_slave.h" #include "xil_io.h" ...
#include "cian.h" /// See interpret.c: States. extern char *p, *lp, *data; extern long *e, *le, tk, ival, ty, loc, *id, *sym; extern int line; int main(int argc, const char *argv[]) { // Source file descriptor. int fd; // Flags: print source and assembly/executed instructions. bool src, debug; /...
/*************************************************************************** vidhrdw.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "driver.h" #include "vidhrdw/generic.h" #define VIDEO_RAM_SIZE 0x40...
/* GStreamer Intel MSDK plugin * Copyright (c) 2018, Intel Corporation * All rights reserved. * * <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 reta...
#include "types.h" #include "user.h" #include "date.h" //the rtcdate struct is defined here. #include "fcntl.h" #define WAIT 6000 //one minute #define NULL ((void*) 0) typedef struct Node { char *line; struct Node *next; struct Node *prev; //I've decided I don't really need this list to go both ways, but ...
#include "server.h" #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/socket.h> #include <sys/sendfile.h> #include <fcntl.h> #include <arpa/inet.h> #include <dirent.h> #include <string.h> #include <memory.h> #include <unistd.h> #in...
/* Copyright 2015 the unarr project authors (see AUTHORS file). License: LGPLv3 */ /* adapted from https://code.google.com/p/theunarchiver/source/browse/XADMaster/XADRARParser.m */ #include "rar.h" static inline uint8_t uint8le(unsigned char *data) { return data[0]; } static inline uint16_t uint16le(unsigned char...
#include "cache.h" #include "object-store.h" #include "promisor-remote.h" #include "config.h" #include "transport.h" #include "strvec.h" static char *repository_format_partial_clone; void set_repository_format_partial_clone(char *partial_clone) { repository_format_partial_clone = xstrdup_or_null(partial_clone); } s...
#include "iofw_uart.h" #include <errno.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include "iofw_registry.h" #include "iofw_slots.h" #include <stm32f4xx_hal.h> #include "circ.h" struct iofw_uart_device { UART_HandleTypeDef huart; int refs; int irqn; struct circ_buf *buf; HAL...
#include <stdint.h> #include <string.h> #include "pbkdf2-hmac-sha256.h" static uint32_t ror(uint32_t n, uint32_t k) { return (n >> k) | (n << (32 - k)); } //#define ror(n,k) ((n >> k) | (n << (32 - k))) #define Ch(x,y,z) (z ^ (x & (y ^ z))) #define Maj(x,y,z) ((x & y) | (z & (x | y))) #define S0...
/******************************************************************* Copyright (C) 2009 FreakLabs 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 cod...
/* * The MIT License (MIT) * * Copyright (c) 2014 <NAME> <<EMAIL>> * Copyright (c) 2017 <NAME> <frederik dot schwan at linux dot com> * * 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...
/** * Copyright (C) 2017, <NAME> **/ #include <inttypes.h> #include <unistd.h> #include <pthread.h> #include <stdlib.h> #include <signal.h> #include <errno.h> #include <string.h> #include <error.h> #include <barrier.h> #include <utils/log.h> #include <utils/thread.h> #include <utils/static_assertion.h> #include <ru...
/** * Example showing how to generate cell centered data of two cubed sphere * tiles. * * $Id: ex3.c 831 2011-09-14 20:24:21Z dkindig $ */ // std includes #include <stdio.h> #include <math.h> #include <netcdf.h> #include <nccf_utility_functions.h> #include <nccf_global.h> #include <nccf_coord.h> #include <nccf...