text
stringlengths
3.08k
10.5k
#include <string.h> #include "sha256.h" typedef void (*func_ptr)(void *input_data, uint32_t digest[8], uint64_t num_blks); /* Padding (FIPS180-2, Section 5.1.1) */ static uint8_t padding[64] = { 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0...
/** * \file * * \brief QTouch component task for the FreeRTOS Web/DSP Demo. * * Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively w...
/** \file led.c \author <NAME> - <EMAIL>, <NAME> - <EMAIL>, <NAME> - <EMAIL> \date 01/13/2018 \brief Main persistence of vision file for the rotor RPi controller. This program will run the logic of the rotor RPi */ // Linux C libraries #include <stdio.h> //printf, fprintf, stderr, fflush, sc...
/* * The Shadow Simulator * Copyright (c) 2010-2011, <NAME> * See LICENSE for licensing information */ #include <glib.h> #include <netinet/in.h> #include <sys/epoll.h> #include "echo.h" void mylog(GLogLevelFlags level, const gchar* functionName, const gchar* format, ...) { va_list variableArguments; va_start(v...
#include <stdio.h> #include <assert.h> #include <stdbool.h> #include <stdint.h> #include <inttypes.h> // Last code point in range #define BYTE1_LAST_CODE_POINT 0x007Fu #define BYTE2_LAST_CODE_POINT 0x07FFu #define BYTE3_LAST_CODE_POINT 0xFFFFu #define BYTE4_LAST_CODE_POINT 0x10FFFFu // Prefix for header (leading) byt...
/******************************************************************************* * (c) 2016 Ledger * (c) 2018, 2019 ZondaX GmbH * (c) 2019 Binance * * 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 th...
// casper_tftp.c - CASPER handlers for LwIP TFTP server. // // These handlers provide the interface between LwIP's TFTP server and the // CASPER TAPCP implementation. #include "lwip/apps/tftp_server.h" #include "casper_tftp.h" #include "casper_tapcp.h" // Because LwIp only supports a maximum of one active transfer at...
#include <math.h> #include <stdio.h> #include <string.h> #include <assert.h> #include "vicmain_c.h" #include "applic.h" #include "taeconf.inp" #include "parblk.inc" #include "defines.h" #include "cartoTaeUtils.h" #define NOTFOUND 0 #define NORTH 1 #define SOUTH 2 #define EAST 3 #define WEST 4...
#include <errno.h> #include "hash.h" // LOAD_FACTOR is the number of items to number of buckets ratio // that triggers a table resize. #ifndef LOAD_FACTOR # define LOAD_FACTOR 0.65 #endif // GROW_FACTOR is how many times the current size the table grows // to on a resize. #ifndef GROW_FACTOR # define GROW_FACTOR 2.0...
/* Copyright (C) 2005 Red Hat, Inc. */ struct semanage_port; struct semanage_port_key; typedef struct semanage_port record_t; typedef struct semanage_port_key record_key_t; #define DBASE_RECORD_DEFINED struct dbase_file; typedef struct dbase_file dbase_t; #define DBASE_DEFINED #include <stdlib.h> #include <stdio.h> ...
// // Macros.h // UniversalApp // // Created by huanyu.li on 2018/5/19. // Copyright © 2018年 huanyu.li. All rights reserved. // #define kAppStringPlaceholder @"none" #define kScrollViewDisableAdjustsInsets(scrollView, viewController) \ _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "sdk_common.h" #include "sz_face_module.h" #include "sz_image_module.h" #include "sz_license_module.h" #include "sz_net_module.h" static void usage(char **argv) { printf( "usage: %s [a:b:c] \n" " -a face1.jpg...
//--------------------------------------------------------------------------- // gprune_main.c // // Main function for graph pruner, which removes vertices and edges with // specific labels. // // Usage: gprune <label> <inputgraphfile> <outputgraphfile> // // Removes all vertices and edges with label equal to <label> i...
/***************************************************************************** * Copyright (C) Queen's University Belfast, ECIT, 2016 * * * * This file is part of libsafecrypto. * * ...
/* * Copyright (c) 2015, Parse, LLC. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to use, * copy, modify, and distribute this software in source code or binary form for use * in connection with the web services and APIs provided by Parse. * * As with any software...
/* $Id: acb4000.c,v 1.5 2006/09/30 12:34:21 fredette Exp $ */ /* scsi/acb4000.c - ACB4000 SCSI disk emulation: */ /* * Copyright (c) 2003 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * ar...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/wait.h> #include <fcntl.h> /* For O_* constants */ #include <sys/stat.h> /* For mode constants */ #include <unistd.h> #include <sys/mman.h> #include <errno.h> #include <semaphore.h> #include <pthread.h> #inc...
/** * @file * @brief Console command prompt. * * @details Supports typing proposals and custom welcome messages. * * Implementation of MVC with passive model. * This entity is controller, cmdline is model, and screen is view. * * @author <NAME> */ #include <string.h> #include <assert.h> #include <drivers/te...
#include <SDL2/SDL.h> #include "game.h" static SDL_Window *window; static SDL_Renderer *renderer; static SDL_Texture *sprites; void renderTile(uint8_t i) { uint8_t j = i & 7; const static SDL_Rect clips[2] = { { TILE_W, PIECE_H, TILE_W, TILE_H }, { 0, PIECE_H, TILE_W, TILE_H } }; SDL_Rect renderQuad = { ORI...
/* // Copyright (c) 2010-2017 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
#include "ws2812.h" #define WS2812_T0H_NS (350) #define WS2812_T0L_NS (1000) #define WS2812_T1H_NS (1000) #define WS2812_T1L_NS (350) #define WS2812_RESET_US (280) uint32_t ws2812_t0h_ticks = 0; uint32_t ws2812_t0l_ticks = 0; uint32_t ws2812_t1h_ticks = 0; uint32_t ws2812_t1l_ticks = 0; static void ws2812_rmt_transl...
/* Errors */ #include <errno.h> #include <wasi/api.h> int errno; /* used by perror */ const char *_emsg[ERRNO_MAXERR+1] = { "No error occurred", "Argument list too long", "Permission denied", "Address in use", "Address not available", "Address family not supported", "Resource unavailable, or operation ...
/* * Copyright (C) 2015-2021 IoT.bzh Company * Author "<NAME>" * * $RP_BEGIN_LICENSE$ * Commercial License Usage * Licensees holding valid commercial IoT.bzh licenses may use this file in * accordance with the commercial license agreement provided with the * Software or, alternatively, in accordance with the...
#include <jinet/io.h> #include <jinet/ints.h> #include <stdint.h> #include <jinet/debug.h> #include <jinet/apic.h> #include <jinet/term.h> #include <jinet/printf.h> extern void irq0(); extern void irq1(); extern void irq2(); extern void irq3(); extern void irq4(); extern void irq5(); extern void irq6(); extern void irq...
#include "crc.h" #include "platform.h" #include "ymodem_def.h" #include "ymodem_sender.h" struct _ymodem_sender_t { stream_t* comm; istream_t* file; size_t rx_timeout_ms; void* on_progress_ctx; progress_func_t on_progress; }; static bool_t ymodem_sender_notify(ymodem_sender_t* y, size_t finish, size_t total) { ...
/* blink.c * * Raspberry Pi GPIO example using sysfs interface. * <NAME>. <<EMAIL>> * * This file blinks GPIO 4 (P1-07) while reading GPIO 24 (P1_18). */ /* RPi Model B GPIOs (Rev 1 / Rev 2): 1 - 0 (SDA) / 2 (Rev 2) 2 - 1 (SCL) / 3 (Rev 2) 3 - 4 4 - 7 (CE1) 5 - 8 (CE0) 6 - 9 (MISO) 7 - 10 (MOSI)...
/** * @file cli-printer.c * @author <NAME> * @date 2016-03-07 */ #include <stdlib.h> #include <unistd.h> #include <assert.h> #include <string.h> #include "print_server_client.h" #include <argp.h> /// program version string const char *argp_program_version = "CprE308 Command Line Printer"; /// progra...
/* picoser.c - UART driver for Pico */ #include <pico/critical_section.h> #include <hardware/uart.h> #include <hardware/structs/uart.h> #include <hardware/gpio.h> #include <hardware/irq.h> #include "bbuart.h" #define NDATA 512 // Length of serial receive buffer (must be a power of 2) typedef struct { u...
/* * TimerCounter.c * * Created: 2020-12-29 오후 11:57:28 * Author: SON */ #include "TimerCounter.h" pAngle_3Dim Accelero_Angle; pAngle_3Dim Gyro_Angle; Angle_3Dim AngleData; void InitPortSetting(void) { //OC0A, OC0B Pin PWM Enable sbi(DDRD, PIND6); sbi(DDRD, PIND5); //OC2A, OC2B Pin PWM Enable sbi(DDRB, ...
/* *@file: just a demo, for reference only. the demo in consist of ext_interrupt(wakeup_in pin) to wakeup 4G module, * it is necessary for user to call "Ql_SLP_WakeLock_Lock()" in the beginning of callback for keeping 4G module * awake, and then deal with other things. * *@date 2018-08-30 *@author gale ...
/** * @file status.c * * Atilo: Othello/Reversi Game \n * Copyright (C) 1999-2007 <NAME> \n * http://atilo.sourceforge.net/ \n */ #include "all.h" static GtkWidget *progressbar; static GtkWidget *black_pawnsnb, *white_pawnsnb; static GtkWidget *black_owner, *white_owner; static GtkWidget *black_horo, *white_h...
/* $NetBSD: ssn.c,v 1.2 2002/03/24 23:17:36 bjh21 Exp $ */ /*- * Copyright (c) 2002 <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...
/* GELL 15.26: include file for the module: "sets" */ /* translation done: "Wed June 16 93 18:02:31 " */ /* impure LLM3 predefined */ extern Ptr GIdlink, GIllink, GIfcons, GIevalst; /* LLM3 functions */ extern Ptr GXunbind7(), GXunbind5(), GXunbind3(), GXunbind1(); extern Ptr GXpop...
/****************************************************************************** * File Name : nvic_dma_mgr.c * Date First Issued : 11/06/2013 * Board : Discovery F4 (F405 or F407) * Description : Manage interrupt addresses and usage conflicts ***********************************************...
#include <stdlib.h> #include <stdio.h> #include "ANN/models/PCFNN/layer.h" #include "ANN/tools.h" #include "ANN/models/PCFNN/network.h" struct PCFNN_NETWORK *PCFNN_NETWORK_new() { struct PCFNN_NETWORK *net = malloc(sizeof(struct PCFNN_NETWORK)); if (net == NULL) return NULL; net->size = 0; net->layer...
/* File : core_portme.c */ /* Author : <NAME>, EEMBC Legal : TODO! */ #include <stdio.h> #include <stdlib.h> #include "coremark.h" #include "pwr_modes.h" /* CODE & PRODUCT CONFIGURATION ----------------------------------------------*/ #include "stm32f4xx.h" volatile ee_u32 Begin_Time = 0x00u, End_Time = 0x00u; #i...
/* * M_APM - mapm_log.c * * Copyright (C) 1999 - 2003 <NAME> * * Permission to use, copy, and distribute this software and its * documentation for any purpose with or without fee is hereby granted, * provided that the above copyright notice appear in all copies and * that both that copyright notic...
/* * hifmc_common.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 the * F...
#include "DeviceInterface.h" #include "Module.h" #include "InternalErrors.h" #define OScDevInternal_BUILDING_OPENSCANLIB 1 #include "OpenScanDeviceLibPrivate.h" // Array of strings; each element _and_ the array itself must be freed when // replacing; last element is always null static char **g_adapterPaths; // Arr...
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <time.h> int isFirst = 1; void menu(); int getChoice(); void calculator(int); void weightedAverage(); void drawTetragon(); void doit(int (*f)(int, int), int, int); int divide(int, int); int add(int, int); int sub(int, int); int mult(int, int); int po...
#include <Windows.h> #include <DbgHelp.h> #include <stdio.h> #include <assert.h> #include "lgdb_step.h" #include "lgdb_event.h" #include "lgdb_symbol.h" #include "lgdb_utility.h" #include "lgdb_context.h" #include "lgdb_exception.h" void lgdb_handle_exception_debug_event(struct lgdb_process_ctx *ctx) { /* ...
/* This file is part of GDBM, the GNU data base manager. Copyright (C) 2011, 2013 Free Software Foundation, Inc. GDBM 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, or (at your opti...
/*---------------------------------------------------------------- * Copyright (c) 2022 Faceplate * * This file is provided to you 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.apach...
#include "q.h" #include "qap.h" static void regression(int nmol, mol_data * md, double * f1, double * f6, FILE * fo){ int npar, atpar[NATOMS+1]; { double a0[NATOMS], a[NATOMS], fa[NATOMS]; int bp[NATOMS], fixflag[NATOMS]={0}, fatpar[NATOMS+1]; int nfpar, nparams = pars_default(2, a0, bp); np...
// // Book: OpenGL(R) ES 2.0 Programming Guide // Authors: <NAME>, <NAME>, <NAME> // ISBN-10: 0321502795 // ISBN-13: 9780321502797 // Publisher: Addison-Wesley Professional // URLs: http://safari.informit.com/9780321563835 // http://www.opengles-book.com // Additional contributions co...
/* Unix SMB/CIFS implementation. helper mapping functions for the SAMDB server Copyright (C) Stefan (metze) Metzmacher 2002 Copyright (C) <NAME> 2004 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...
/* ** Born to code, die for bugs! */ #include "mpool.h" #include <assert.h> #include <stdio.h> #include <malloc.h> struct mpool_chunk_t { struct mpool_chunk_t* next; char data[1]; }; struct mpool_object_t { union { struct mpool_object_t* next; void* data; }; }; static void mpool_alloc_chunk(struct mpool_t*...
/* * This file is part of uCNC_controller. * * Copyright (C) 2014 D.Herrendoerfer * * uCNC_controller 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 ...
/* concurrent.c * * Copyright © 2013 <NAME> <<EMAIL>> * Copyright © 2014 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, as * published by the Free Software Foundation. * * This program is distributed in...
/* MIT 2009-2021 -- pancake /at/ nopcode /dot/ org */ #define ut64 unsigned long long #define ut8 unsigned char static int earlyquit = 0; static int verbose = 1; static int scriptn = 0; static const char **scripts = 0; static int cmdn = 0; static char **cmds = 0; static ut64 oldseek, curseek = 0LL; static int obsize...
/* * * Copyright (c) International Business Machines Corp., 2001 * * 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 l...
#include "mov-internal.h" #include <assert.h> // ISO/IEC 14496-12:2012(E) // 8.3.2 Track Header Box (p31) // Box Type : 'tkhd' // Container : Movie Box('trak') // Mandatory : Yes // Quantity : Exactly one /* aligned(8) class TrackHeaderBox extends FullBox('tkhd', version, flags){ if (version==1) { unsigned in...
/********************************************************************** * Copyright (c) 2020 Aergo Foundation * * Distributed under the MIT software license, see the accompanying * * file COPYING or http://www.opensource.org/licenses/mit-license.php.* *******************************...
/* * getlocationsegments.c : entry point for get_location_segments * RA functions for ra_serf * * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOT...
#include <stdio.h> #include "debug.h" #include "object.h" #include "value.h" void disassembleChunk(Chunk* chunk, const char* name) { printf("== %s ==\n", name); for (int offset = 0; offset < chunk->count;) { offset = disassembleInstruction(chunk, offset); } } static int simpleInstruction(const char* name, int ...
// // (C) CharLS Team 2015, all rights reserved. See the accompanying "License.txt" for licensed use. // // Use the CharLS DLL on windows, the static library on other platforms. #ifdef WIN32 #define CHARLS_DLL 1 #else #define CHARLS_STATIC 1 #endif #define _CRT_SECURE_NO_DEPRECATE #include "../../src/charls.h" #i...
#include <stdio.h> struct node{ char pname [100]; int pcode; int price; int quantity; struct node* left; struct node* right; }; struct node* root=NULL; struct node* create(struct node* root,int x,int y,int z,char b[100]){ struct node* temp=(struct node*)malloc(sizeof(struct node)); temp-...
/* $Id: socksys.h,v 1.1.1.1 2001/02/22 14:58:12 serg Exp $ * socksys.h: Definitions for STREAMS modules emulation code. * * Copyright (C) 1998 <NAME> (<EMAIL>) */ #define MSG_HIPRI 0x01 #define MSG_ANY 0x02 #define MSG_BAND 0x04 #define MORECTL 1 #define MOREDATA 2 #define TBADADDR 1 #define TBADOPT 2 #defi...
// // Created by <NAME> on 2021/1/14. // #include "scanner.h" #include <stdio.h> #include <string.h> #include <stdbool.h> typedef struct { // current token's start const char *start; // current char const char *current; int line; } Scanner; Scanner scanner; void initScanner(const char *source) ...
#include <dirent.h> #include <errno.h> #include <fcntl.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <unistd.h> #define SLEEP_TIME 2 typedef struct copy_task { char src_dir[NAME_MAX]; char dst_dir[NAME_MAX]; short copy_type; // 0 - for a regula...
#include <stdio.h> #include <stdint.h> #include <string.h> #include <time.h> #include "py/runtime.h" #include "py/repl.h" #include "py/gc.h" #include "py/mperrno.h" #include "py/stackctrl.h" #include "shared/runtime/pyexec.h" #include "wm_hal.h" #include "mpy_common.h" #include "mpy_hal_boot.h" #include "libc_po...
// Simple nmea parser, based on initial work by Rebane. // Supports only RMC - coordinates, speed and time. #include <math.h> #include <inttypes.h> #include "tiny_nmea.h" static uint8_t nmea_parse_number(char *str, uint8_t len, int32_t *value); static int32_t nmea_power(int32_t value, uint8_t from, uint8_t to); bo...
/* * lws-api-test-fts - lws full-text search api test * * Written in 2010-2019 by <NAME> <<EMAIL>> * * This file is made available under the Creative Commons CC0 1.0 * Universal Public Domain Dedication. */ #include <libwebsockets.h> #if defined(LWS_HAS_GETOPT_LONG) || defined(WIN32) #include <getopt.h> #endif ...
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) /* * pci.c - DesignWare HS OTG Controller PCI driver * * Copyright (C) 2004-2013 Synopsys, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redis...
/****************************************************************************** * @file config_pdma.c * @version V3.00 * @brief PDMA setting. * * @copyright SPDX-License-Identifier: Apache-2.0 * @copyright Copyright (C) 2021 Nuvoton Technology Corp. All rights reserved. **********************************...
/* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2011 The University of Tennessee and The University * of Tennessee Resea...
/** * Sphere: the JavaScript game platform * Copyright (c) 2015-2022, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the abov...
/*- * BSD LICENSE * * Copyright (c) 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 copyri...
/* * binary.h - Binary I/O routines * * Copyright (c) 2004-2019 <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyrig...
// SPDX-License-Identifier: BSD-3-Clause /** * @file test-path-manager.c * * @brief mptcpd path manager test. * * Copyright (c) 2019-2021, Intel Corporation */ #undef NDEBUG #include <assert.h> #include <unistd.h> #include <ell/main.h> #include <ell/genl.h> #include <ell/timeout.h> #include <ell/util.h> /...
/* * NUT: Nano Unit Tests for CARME * * Copyright (c) 2018 <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, co...
/* This file is part of ptrace-burrito * * Copyright 2010-2018 <NAME> <<EMAIL>> * * 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) 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: * * 1. Redistributions of source code must retain the above copyright notice, * this list of c...
/* 檔案基礎I/O函式庫 Basic File Input & Output Library Develop by <NAME> This program is licensed under GNU General Public License v3. */ //-----include header files, 引入標頭檔----- #include <math.h> // include math.h header file, 引入標頭檔math.h #include <stdbool.h> // include stdbool.h header file, 引入...
#include <string.h> #include "load.h" #include "dump.h" /* stolen from Bijou */ #define IF(c, s) if (c) error(S, s); #define UNLESS(c, s) IF(!(c), s) static void error(LoadState* S, const char * msg) { fprintf(stderr, "%s: %s in bytecode\n", S->name, msg); exit(EXIT_FAILURE); } #define LoadMem(S, b, n, ...
/**************************************************************************** * boards/arm/lpc17xx_40xx/zkit-arm-1769/src/lpc17_40_appinit.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional info...
/* * Copyright (C) 2016-2018 Red Hat, Inc. * * Author: <NAME> * * This file is part of GnuTLS. * * GnuTLS 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 you...
/******************** (C) COPYRIGHT 2010 ************************************** * File Name : usartx_rxdma_init.c * Hackor : deh * Date First Issued : 10/09/2010 deh * Description : USARTx rx using dma common routine *************************************************************************...
/* * Mesa 3-D graphics library * * Copyright (C) 2010 LunarG 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 u...
/*********************************************************************** Copyright (c) 2006-2011, Skype Limited. 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 retai...
/* * Copyright (c) 1982, 1986, 1993 * The Regents of the University of California. 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...
/** * iommu_fill_pdir - Insert coalesced scatter/gather chunks into the I/O Pdir. * @ioc: The I/O Controller. * @startsg: The scatter/gather list of coalesced chunks. * @nents: The number of entries in the scatter/gather list. * @hint: The DMA Hint. * * This function inserts the coalesced scatter/gather list chu...
/* Copyright 2015 <NAME>.P. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writi...
/* Auteur: <NAME> <ee<EMAIL>> Mise à jour par: <NAME> <<EMAIL>> <NAME> <<EMAIL>> */ #include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <stddef.h> #include <string.h> // taille du tampon de sortie #define OUTPUT_BUF_SIZE (1024 * 1024 * 16) // tampon de sortie uint8_t g_output_buf [OUTPUT_BUF_SIZE]; ...
//---------------------------------------------------------------------- // Minimal program to playback a file on a given timeslot on a Corelatus GTH // // Doesn't attempt any error handling. // Doesn't keep track of L1 status // Doesn't log L1 errors and status changes // // Author: <NAME> (<EMAIL>) // // Copyright (c...
#include <u.h> #include <libc.h> #include <draw.h> #include <cursor.h> #include <event.h> #include <bio.h> #include <plumb.h> #include <ctype.h> #include <keyboard.h> #include <thread.h> #include "page.h" typedef struct Cached Cached; struct Cached { Document *doc; int page; int angle; Image *im; int ppi; }; sta...
/* $XFree86: xc/programs/Xserver/hw/xfree86/xf4bpp/ppcRslvC.c,v 1.6 2005/03/28 02:51:07 dawes Exp $ */ /************************************************************ Copyright 1987 by Sun Microsystems, Inc. Mountain View, CA. All Rights Reserved Permission to use, copy, modify, and distribute...
/* SPDX-License-Identifier: MIT */ /* * Author: <NAME> <<EMAIL>> * Date: 2016 */ #include <stdint.h> #include <stdio.h> #include <FreeRTOS.h> #include <task.h> #include <math.h> #include <tps65381.h> static struct adc *adc; static struct tps65381 *tps; static void tpstest_task(void *data) { TickType_t lastWakeUpTi...
#include "clar_libgit2.h" #include "repository.h" #include "reflog.h" #include "reflog_helpers.h" int reflog_entry_tostr(git_str *out, const git_reflog_entry *entry) { char old_oid[GIT_OID_HEXSZ], new_oid[GIT_OID_HEXSZ]; assert(out && entry); git_oid_tostr((char *)&old_oid, GIT_OID_HEXSZ, git_reflog_entry_id_old...
/* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * 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/lice...
/** * 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...
/* 7zMain.c Test application for 7z Decoder LZMA SDK 4.16 Copyright (c) 1999-2005 <NAME> (2005-09-24) */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "7zCrc.h" #include "7zIn.h" #include "7zExtract.h" typedef struct _CFileInStream { ISzInStream InStream; FILE *File; } CF...
// ---------------------------------------------------------------- // -------------------- ledStrip -------------------------------- // ---------------------------------------------------------------- #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <fcntl.h> #include <stdio.h> #i...
/** ****************************************************************************** * @file main.c * @author Ac6 * @version V1.0 * @date 01-December-2013 * @brief Default main function. ****************************************************************************** */ #include<stdlib.h> #include<st...
/*------------------------------------------------------------------------- * * WIN <--> UTF8 * * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION * src/backend/utils/mb/conversion_procs/utf8_and_w...
#include "cp/cp.h" #include "ip/exact/bac/bac.h" #include "cp/exact/bac/bac.h" static int get_cut_slack_(cp_prob *cp, cp_exact_bac_env *bac_env, double *cut_slack); int cp_age_cuts(cp_prob *cp, cp_exact_bac_env *bac_env, int *ndel) { int *del = NULL; double *cut_slack = NULL; int rval; int i,...
#include <stm32f4xx.h> #include <core_cm4.h> #include "gpio.h" #include "usart.h" #include <stdio.h> #define CORE_CLOCK_SPEED 16000000 #define USART_BAUD_RATE9600 9600 void sleep(int ticks) { int i = 0; for(i = 0; i < ticks; i++) { ; } } typedef enum usart_input_e { USART_INPUT_A = (uint32_t)'A...
/* *Copyright (C) 1994-2000 The XFree86 Project, Inc. All Rights Reserved. * *Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the *"Software"), to deal in the Software without restriction, including *without limitation the rights ...
/* * Copyright (c) 2010-2011 Aalto University and RWTH Aachen University. * * 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...
#include "asm.h" #define MOP(_n, _t, _b)\ [(_t * 16) + _b] = ((struct MicroOp) { #_n, true, _t, _b }) struct MicroOp { const char *name; bool present; u8 type, index; }; // microcode types #define MTA 0 #define MTB 1 #define MTG 2 #define MTD 4 struct MicroOp MICRO_OPS[] = { // TYPE A MICROCODE ...