text
stringlengths
3.12k
18.7k
/* $Id: natpmpc.c,v 1.13 2012/08/21 17:23:38 nanard Exp $ */ /* libnatpmp Copyright (c) 2007-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: * Redistributions of source code must retain...
/* * Written by <NAME> (<EMAIL>) for the OpenSSL project * 2015. */ /* ==================================================================== * Copyright (c) 2015 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided...
/* $NetBSD: next68k.c,v 1.8 2013/06/14 03:54:43 msaitoh Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME> and <NAME>. * * Redistribution and use in source and binary forms, with or without ...
/* * Copyright 2017 Dell Inc. or its subsidiaries. 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 * * Unless req...
/* * Copyright (c) 2016 - Qeo LLC * * The source code form of this Qeo Open Source Project component is subject * to the terms of the Clear BSD license. * * You can redistribute it and/or modify it under the terms of the Clear BSD * License (http://directory.fsf.org/wiki/License:ClearBSD). See LICENSE file * fo...
#include "perspective.h" //-- int check_side(int _X, int _Y, int _dX, int _dY, int _x, int _y); void get_barycentric(const STextureTriangle *_pTri, int _x, int _y, double *_pL1, double *_pL2, double *_pL3); void get_cartesian(const STextureTriangle *_pTri, double _l1, double _l2, double _l3, float *_pU, float *_pV); ...
/* * Copyright (c) 2020 Bouffalolab. * * This file is part of * *** Bouffalolab Software Dev Kit *** * (see www.bouffalolab.com). * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redistributions ...
#include <assert.h> #include <elf.h> #include <errno.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include <unistd.h> #include <getopt.h> #define IMAGE_FILE "./image" #define ARGS "[--extended] [--vm] <bootblock> <executable-file> ..." #define SECTOR_SIZE 0x200...
#ifdef STANDARD #include <string.h> #include <stdio.h> #include <stdlib.h> #ifdef __WIN__ typedef unsigned __int64 ulonglong; typedef __int64 longlong; #else typedef unsigned long long ulonglong; typedef long long longlong; #endif /* __WIN__*/ #else #include <my_global.h> #include <my_s...
#include <VLIB/video_codec.h> #include <VLIB/video_quantizer.h> #include <VLIB/video_packetizer.h> #include <VLIB/Platform/video_utils.h> #include <VLIB/Platform/video_config.h> #include <VP_Os/vp_os_malloc.h> #include <VP_Os/vp_os_print.h> extern C_RESULT video_utils_init( video_controller_t* controller ); extern C_...
/* (c) 2018 Microchip Technology Inc. and its subsidiaries. Subject to your compliance with these terms, you may use Microchip software and any derivatives exclusively with Microchip products. It is your responsibility to comply with third party license terms applicable to your use of third...
/***************************************************************************//** * @file * @brief FTD application logic. ******************************************************************************* * # License * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b> ************************************...
#include <minix/fb.h> #include <minix/chardriver.h> #include <minix/drivers.h> #include <minix/ds.h> #include <minix/sysutil.h> #include <minix/type.h> #include <minix/vm.h> #include <sys/ioc_fb.h> #include <assert.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h...
/* Proxy server used to interact with Web sites via exploited client's Web browsers. Accepts HTTP requests and * queues them in the database. Then waits for a response from the callback server via a FIFO to indicate that the * response has been received and is waiting in the database. Response is then returned to the...
#include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <sys/shm.h> #include <sys/types.h> #include <sys/ipc.h> #include <unistd.h> #include <errno.h> #include <time.h> #include <math.h> #include "../include/semaphore.h" typedef struct shared_data{ int readers_count; int writers_count; } Entry; dou...
#include "conv2d.h" #include <stdio.h> #define MIN(a, b) ((a) < (b) ? (a) : (b)) void conv2d_3x3(int64_t *o, int64_t *i, int64_t *f, int64_t R, int64_t C, int64_t F) { // We work on 4 rows of the output matrix at once int64_t block_size_o = 4; // We work on block_size_o + F - 1 rows of the input...
/*---------------------------------------------*/ /* >>>Slip<<< */ /* <NAME> */ /* VUB Software Languages Lab */ /* (...
/*- * SPDX-License-Identifier: Apache License 2.0 * * Copyright 2015 Big Switch Networks, Inc * Copyright 2017-2018 <NAME> * * 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...
/* Goom Project * Copyright (C) <2003> iOS-Software * * 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 option) any later version. * ...
#include "ui_display.h" #include "ent.h" #include "common.h" #include "graphics.h" #include "player.h" #include "debug.h" #include "numbers.h" #include "assets/lifeAmmount3.h" #include "assets/lifeAmmount2.h" #include "assets/lifeAmmount1.h" #include "assets/speedLevel0.h" #include "assets/speedLevel1.h"...
/* * unreach.c - Sends an ICMP unreach packets to all new connections * Not sure if this code works, haven't tested it in awhile. */ #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/socket...
/* * player.c * * Author: <NAME> */ #include "ledmatrix.h" #include "pixel_colour.h" #include "game_position.h" #include "projectile.h" #include "alien.h" #include "game_background.h" #include "player.h" #include <stdint.h> #include <stdlib.h> #include "game.h" ////////////////////////////////...
/* * Copyright © 2009 <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 ...
#include <gb/gb.h> #include <stdio.h> #include "main.h" #include "gfx.h" #include "sound.h" #include "timer.h" #include "input.h" #include "tiles/colorRects.h" int main(){ initialize_font(); initialize_timer(); /*sound2_test();*/ /*sound1_test();*/ /*sound4_test();*/ while(1){ wa...
// ******************************************************************************************* // ******************************************************************************************* // // Name : cpu_macros.h // Purpose : Macros and Support Functions // Date : 4th August 2019 // Author : <NAME> (<EMAIL>)...
/** * \file * * \brief SAM Frequency Meter (FREQM) Unit test * * Copyright (C) 2015 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 are...
#include <kstat.h> #include <stdio.h> #include <strings.h> #include <inttypes.h> #include <sys/sysinfo.h> #define CSSUM(name) sum.cpu_sysinfo.name += cpu.cpu_sysinfo.name #define CVSUM(name) sum.cpu_vminfo.name += cpu.cpu_vminfo.name #define PRINT_CSSUM(name) do { \ printf("cpu_stat:all:sys:%s\tL\t%llu\n", #name, su...
/* The MIT License cython/genreads.c is a modified version of the core loop of wgsim.c (https://github.com/lh3/wgsim): Copyright (c) 2008 Genome Research Ltd (GRL). 2011 <NAME> <<EMAIL>> all other code: Copyright (c) 2013,2018 <NAME> <<EMAIL>> Permission is hereby granted, free of c...
/* * Copyright (C) 2016 <NAME> All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions an...
/*------------------------------------------------------------------------ * Copyright 2007-2009 (c) <NAME> <<EMAIL>> * * This file is part of the ZBar Bar Code Reader. * * The ZBar Bar Code Reader is free software; you can redistribute it * and/or modify it under the terms of the GNU Lesser Public License as...
/** * \file * * \brief AVR XMEGA EDMA example 1 * * Copyright (c) 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 are met: * * 1...
/* * jabberd - Jabber Open Source Server * Copyright (c) 2002 <NAME>, <NAME>, * <NAME>, <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the...
/* * Copyright (C), 2000-2004 by the monit project group. * 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) a...
/****************************************************************************** * @file TK_Config.c * @brief Touch key sample code used to generate configuration table. * @version 1.0.1 * @date 02, October, 2012 * * @note * Copyright (C) 2012-2014 Nuvoton Technology Corp. All rights reserved. ...
#pragma once #include "baseelement.h" //#include "keygrabber.h" //#include "selector.h" //#include "dropdown.h" //#include "playerlist.h" //#include "colorpicker.h" #include "window.h" #include "category.h" /*Mtab #include "tab.h"*/ #include "miniwindow.h" #include "groupbox.h" #include "dropdown....
#include <stdio.h> #include <string.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/ioctl.h> #include <linux/videodev2.h> #include <math.h> #include "jpeglib.h" #define WRITE write #define READ read #include "system.h" #include "port.h" struct stats { uint32_t tag; uint16_t width; uint16_t he...
/* TMS5110 ROM Tables */ /* Note: all the tables in this file were read from the real TMS5110A chip, except for the chirptable and the interp_coeff */ /* This is the energy lookup table (4-bits -> 10-bits) */ const static unsigned short energytable[0x10] = { 0*2, 1*2, 2*2, 3*2, 4*2, 6*2, 8*2, 11...
/* * Copyright (c) 2018 <NAME> */ #include <kernel/include/kernel.h> #include <memory/include/malloc.h> #include <lib/include/string.h> #include <kernel/include/printk.h> #include <memory/include/paging.h> static struct malloc_header _recycle_bins[RECYCLE_BIN_SIZE]; void __free(struct malloc_header * hdr); #define...
#include <avr/io.h> #include <util/delay.h> #include <avr/interrupt.h> #include <compat/deprecated.h> #define NRF_SB 1 #define NRF_ESB 2 #define NRF_PL 3 //#define SENDER #define RFMODE NRF_SB //-------------------------------------------- //定義宣告 //--------------------...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "harness.h" #include "queue.h" /* Auxiliary function of q_sort */ static list_ele_t *merge(list_ele_t *l1, list_ele_t *l2); static list_ele_t *merge_sort(list_ele_t *head); /* * Create empty queue. * Return NULL if could not allocate space. */ q...
/* Fuzz-compare the OpenSSL function BN_mod_exp() and the matrixssl function pstm_exptmod(). * * To use this you should compile both matrixssl and openssl with american fuzzy lop and then statically link everything together, e.g.: * afl-clang-fast -o [output] [input] libgcrypto.a libcrypt_s.a libcore_s.a -I[path_to_...
#include <stdio.h> #include <stdlib.h> #define STARTNODE 1 #define ENDNODE 2 #define BARRIER 3 typedef struct AStarNode { int s_x; // 坐标(最终输出路径需要) int s_y; int s_g; // 起点到此点的距离( 由g和h可以得到f,此处f省略,f=g+h ) int s_h; // 启发函数预测的此点到终点的距离 int s_style;// 结点类型:起始点,终点,障碍物 stru...
//----------------------------------------------------------- // // SWE2007: Software Experiment II (Fall 2017) // // Whole code for PA #3 // October 11, 2017 // // 2016314723 <NAME> // Department of Software // Sungkyunkwan University // //----------------------------------------------------------- #include <stdio.h...
/*! \file dtls-bio.h * \author <NAME> <<EMAIL>> * \copyright GNU General Public License v3 * \brief OpenSSL BIO filter for fragmentation * \details Implementation of an OpenSSL BIO filter to fix the broken * behaviour of fragmented packets when using mem BIOs (as we do in * Janus). See https://mta.openss...
/** ****************************************************************************** * @file sgfx_credentials.c * @author MCD Application Team * @brief manages keys and encryption algorithm ****************************************************************************** * @attention * * <h2><center>&c...
#include "forward_helper.h" /* Sums all the gradients of a given hidden layer */ double sum_gradients_from_layer(hidden_layer *layer_k) { double sum = 0.0; hidden_layer *aux_k = layer_k; while(aux_k) { sum += aux_k->n_j->g; aux_k = aux_k->next; } return sum; } /* HELPER FUNCTION - Updates the coeficients o...
static int32_t getNumberOfBits(uint8_t byte) { uint32_t i,count; count = 0; for (i=0;i<8;i++) { if ((byte >> i) & 0x1) count++; } return count; } static int V1742UnpackEventGroup(uint32_t group, uint32_t *datain, CAEN_DGTZ_X742_GROUP_t *dataout) { int i, j,rpnt = 0, wpnt = 0, size1, size2,trg ...
/* * SMSC LAN95XX */ #include <u.h> #include <libc.h> #include <fcall.h> #include <thread.h> #include "usb.h" #include "usbfs.h" #include "ether.h" enum { Doburst = 1, Resettime = 1000, E2pbusytime = 1000, Afcdefault = 0xF830A1, // Hsburst = 37, /* from original linux driver */ Hsburst = 8, Fsburst = 129,...
/* ps1-4git - A git-aware section for your PS1 prompt Copyright (c) 2019, <NAME> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. You should have received a copy of the MIT License along with this program. If not, see <https://opensource.org/licenses/MIT>. */ ...
/* Copyright (C) 2020-21 <NAME> 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 conditions and the following disclaimer. ...
/******************************************************************************/ /* */ /* Copyright (c) 2013-2015, <NAME>, KAIST */ /* All rights reserved. */ /* ...
/* unigencircles.c -- program to superimpose dashed combining circles on combining glyphs. Author: <NAME>, 2013. 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...
/** Spiking Neuron Neural Simulator * Written by <NAME> 2012 */ #include "network.h" void save_nodeconnections(int node_id, Connection Connections[][NET_SIZE], Neuron *Neurons, char *file_name) { FILE *nodeconnections_file; nodeconnections_file = fopen(file_name, "a"); int i,c; char connection_str[50]...
#include <string.h> #include <time.h> #include <stdlib.h> #include "mbedtls/x509_crt.h" #include "common/rtime.h" #include "lang/lang.h" #include "main.h" typedef struct x509_fs_t { char *name; char *path; char *match; tommy_node node; } x509_fs_t; int x509_fs_compare(const void* arg, const void* obj) { char *s...
/* * This file is part of the coreboot project. * * Copyright (C) 2013-2014 Sage Electronic Engineering, LLC. * Copyright (C) 2015 Intel Corp. * * 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 Found...
/* * News Generation Functions. * * <EMAIL> * */ #include <string.h> #include <stdio.h> #include <stdlib.h> #include "prsconf.h" #include "protos.h" #include "nntpc.h" #include "nqueue.h" extern feedEntryType feed; elementType head; /* * clearEntries() * * This function clears the news entires and rec...
/* * Copyright (c) 2001-2004 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source code must retain the above copyright * notice, this list of conditi...
/* * File: dfa.c * Creator: * Created: * Time-stamp: */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdbool.h> #include "dfa.h" #include "IntHashSet.h" struct DFA { int DFA_N_STATE; IntHashSet **transitionTable; int currentState; int acceptingState; }; /** * Allocate...
/* A small utility for transfering decodes from <NAME>'s muilti-band FT8 receiver for the Red Pitaya 125-14 and 122-16 to RBN Aggregator for upload to the Reverse Beacon Network. Uses a pruned version of the WSJT-X UDP broadcast protocol because RBN Aggregator ignores many fields in the datagrams. ...
#include "cmd-install.h" #include "opt.h" char* arch_(struct install_options* param) { return cat(param->arch,"-",param->os,NULL); } char* sbcl_bin_extention(struct install_options* param) { return SBCL_BIN_EXTENTION; } int sbcl_version_bin(struct install_options* param) { char* home=configdir(); char* platf...
#include "main.h" #include "uart.h" #include "util.h" #include "lcd.h" #include "delay.h" #include "spi.h" // Globales tag u8 g_tag[10] = {0}; u8 g_flag = 0; u8 g_tag_lrc = 0; u8 g_nb_bit_read = 0; u8 g_data_index = 0; u8 g_timeout = 9; const u8 g_master_tag_add[10] = {0x6, 0xF, 0x0, 0x0, 0x3, 0x5, 0x3, 0x7, 0x8, 0...
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) International Business Machines Corp., 2001 * Copyright (c) 2017 <NAME> <<EMAIL>> * Author: <NAME> * * Verify that in6 and sockaddr fields are present. */ #include <errno.h> #include <arpa/inet.h> #include <netinet/in.h> #include <sys/socket.h> #in...
#include <avr/io.h> #include <stdint.h> #include "rtc_handler.h" #include "i2cmaster.h" #define DS1307_ADDRESS_READ 0xD1 #define DS1307_ADDRESS_WRITE 0xD0 #define SECONDS_ADDRESS 0x00 #define MINUTES_ADDRESS 0x01 #define HOURS_ADDRESS 0x02 #define DOW_ADDRESS 0x03 #define DATE_ADDRESS ...
/* request parsing and request object */ #include "nyara.h" #include "request.h" #include <sys/time.h> static VALUE str_html; static VALUE request_class; static VALUE sym_reading; static VALUE sym_writing; static VALUE str_transfer_encoding; #define P \ Request* p;\ Data_Get_Struct(self, Request, p); static voi...
/* MYDEMO.C - a demonstration PCRobots Robot in Turbo C */ /* Written by <NAME> 1993 */ #include <stdlib.h> #include <time.h> /* Include the PCROBOTS header file for the special function definitions*/ #include "pcrobots.h" /* Function prototypes */ void read_local_map(int x,int y); /* Type definitions */ typede...
/** zs-apc-spdu-ctl zs_snmp_support.c (C) 2018 <NAME> License: MIT License WARNING: parts of this file come from 'net-snmp', look at docs/COPYING.net-snmp **/ #include <stdbool.h> #include <stddef.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <inttypes.h> // include these ...
/* libpgm1.c - pgm utility library part 1 ** ** Copyright (C) 1989 by <NAME>. ** ** Permission to use, copy, modify, and distribute this software and its ** documentation for any purpose and without fee is hereby granted, provided ** that the above copyright notice appear in all copies and that both that ** copyright n...
/* Author: <NAME>, October 2011 This is the implementation of a good but simple random number generator designed by <NAME>, who placed it in the public domain. His website described the algorithm and its public domain status on 2:23 AM EDT October 8, 2011 at this location: http://burtleburtle.net/...
/* BSD 3-Clause License Copyright (c) 2017, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and...
/* * support.c * * Used by main.c for to call related funcitons of AT Commands. * * Authored by <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 ...
/* tz_neuroseg_plane.c * * 17-Apr-2008 Initial write: <NAME> */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <utilities.h> #include "tz_error.h" #include "tz_geo3d_point_array.h" #include "tz_neurofield.h" #include "tz_neuroseg.h" #include "tz_3dgeom.h" #include "tz_neuroseg_plane.h" Neuroseg_...
/* MARCH Satisfiability Solver Copyright (C) 2001-2009 <NAME>, <NAME>, and <NAME>. [<EMAIL>, <EMAIL>, <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 ...
/*--------------------------------------------------------------------*/ /* Copyright (C) Inria 2016 */ /* * Project: libLinAlg * Created on: April 20, 2016 * Author: <NAME> <<EMAIL>> **/ #include "../UTest.h" void testMatrixCholesky() { matrix* A = matrixCreateMalloc(3, 3); matrix* computedR...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include "ad_globl.h" #include "ad_prime.h" #include "ad_cone.h" #include "mygetopt.h" #include "version.h" extern char *optarg; extern int optind; static void print_version (void) { fprintf (stderr, "ad %s\n", Version); fprintf (std...
/* vdexExtractor ----------------------------------------- <NAME> <<EMAIL>> Copyright 2017 - 2018 by CENSUS S.A. 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 Lice...
/* SPDX-License-Identifier: GPL-2.0 */ /* Author: <NAME> - <EMAIL> at <EMAIL> dot <EMAIL> */ #include <errno.h> #include <getopt.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <linux/if_link.h> #include <net/if.h> #include <bpf/bpf.h> #include <bpf/libbpf.h> #define EXIT_G...
#include <sys/types.h> #include <errno.h> #if defined(_WIN32) || defined(_WIN64) #include <winsock.h> #include <io.h> #else #include <sys/socket.h> #include <unistd.h> #include <sys/un.h> #endif #include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include "mruby.h" #include "mruby/array.h" #includ...
/* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA"). * All rights reserved. * * This software is supplied "AS IS" without any warranties. * RDA assumes no responsibility or liability for the use of the software, * conveys no license or title under any patent, copyright, or mask work * rig...
/************************************************************************************************************** Platform: Fire Bird V P89V51RD2 lcd_array_disp.h Written by: <NAME>, NEX Robotics Pvt. Ltd. Edited By: <NAME>, NEX Robotics Pvt. Ltd. Last Modification: 2009-12-08 Used for displaying unsigned cha...
/* * Copyright 2017 <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 * * Unless required by applicable law or agree...
/** * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. * * SPDX-License-Identifier: BSD-3-Clause */ #include "pico/stdlib.h" #include <string.h> #include <stdint.h> #include <stdio.h> #include <stdarg.h> #include <stdbool.h> #include "font.h" #define LCD_WIDTH 255 #define LCD_HEIGHT 64 uint8_t framebuffer[LCD_WIDT...
#include "testutils.h" #include <assert.h> #include <errno.h> #include <limits.h> #include <sys/time.h> #include "rsa.h" #define KEY_COUNT 20 #define COUNT 100 static void random_fn (void *ctx, size_t n, uint8_t *dst) { gmp_randstate_t *rands = (gmp_randstate_t *)ctx; mpz_t r; mpz_init (r); mpz_urandomb (r...
/* Definitions of target machine GNU compiler. IA-64 version. Copyright (C) 1999-2017 Free Software Foundation, Inc. Contributed by <NAME> <<EMAIL>> and <NAME> <<EMAIL>> This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General...
/* * Copyright 2010-2018 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
/* Copyright (c) 2017 Airbus DS Limited */ #include "./util.h" #include <stdio.h> #include <string.h> #include <errno.h> #include <sys/socket.h> #include <netinet/in.h> #include <sys/ioctl.h> #include <unistd.h> #include <net/if.h> #include "./dlep_iana.h" #include "./check.h" static int send_peer_discovery_signa...
/* C L I E N T . C * BRL-CAD * * Copyright (c) 2006-2016 United States Government as represented by * the U.S. Army Research Laboratory. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as ...
#include "calc.h" int errorLine; struct node *newNode() { struct node *nop = (struct node *)malloc(sizeof(struct node)); nop->type = type_nop; nop->value_f = FLT_MAX; nop->value_i = INT_MAX; errorLine++; return nop; } struct node *nodeInt(int value) { struct node *integer = (struct node *)malloc(sizeo...
/* ------------------------------------------ * Copyright (c) 2018, Synopsys, Inc. All rights reserved. * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1) Redistributions of source code must retain the above copyr...
/* * Author: <NAME> * Copyright: <NAME> 2021, All rights reserved. * Created: 2021.MM.DD * Updated: 2021.MM.DD * Description: See header file. * Compile: gcc -o Gaussian_poolOrNot Gaussian_poolOrNot.c GSLfun.c -lgsl -lgslcblas -lm * Environment: $GSL_RNG_SEED */ #include <assert.h> #include <math.h> #in...
/* * CHAP, MSCHAP * * The client does not authenticate the server, hence no CAI * * Protocol: * * S -> C: random 8-byte challenge * C -> S: user in UTF-8 * C -> S: Chapreply or MSchapreply structure * S -> C: ok or 'bad why' * * The chap protocol requires the client to give it id=%d, the id of * the PPP m...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2018 NXP * */ #include <common.h> #include <command.h> #include <netdev.h> #include <malloc.h> #include <fsl_mdio.h> #include <miiphy.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> #include <exports.h> #include <asm/arch/fsl_serdes.h> #include <fsl-mc...
/* * Copyright (c) 2011, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of ...
/* * Copyright (C) 2013 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 law or...
#include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <pthread.h> #include <time.h> #include <unistd.h> #include <errno.h> #include <sys/time.h> #define N 100 int TIMES_; typedef struct Handle_t { // 本地值,用于被Value索引, handle下标 + 版本号 long value[2]; // __attribute__((aligned(128))); // value[2], 两份, 因为要准...
// IPA-DN-Ultra Library Source Code // // License: The Apache License, Version 2.0 // https://www.apache.org/licenses/LICENSE-2.0 // // Copyright (c) IPA CyberLab of Industrial Cyber Security Center. // Copyright (c) <NAME>. // Copyright (c) SoftEther VPN Project, University of Tsukuba, Japan. // Copyright (c) SoftE...
#ifndef PLATFORM_INCLUDED #include "platform.h" #endif #include "platform.c" #include "cityhash.c" #include "string.c" #include "errors.c" #include "symboltable.c" #include "lexer.c" #include "ast.c" #include "parser.c" #include "typecheck.c" #include "compiler.c" #include "runtime.c" // ---------------------------...
#include <stdio.h> //For standard things #include <stdlib.h> //malloc #include <unistd.h> #include <string.h> //memset #include <netinet/ip.h> //Provides declarations for ip header #include <sys/socket.h> #include <arpa/inet.h> #include <sys/ioctl.h> #include <net/if.h> #include <time.h> #include <sys/select.h> #includ...
/* <NAME> */ /* Version 0.3 */ /* Elimitates need for pre[], reducing assignments */ /* Version 0.2 */ /* Now uses the array pre[] to retain information previously computed, which reduces the number of assignment statements, and also */ /* Version 0.1 */ /* Now uses the array k[][] to retain information prev...
/* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. * * %sccs.include.redist.c% * * @(#)extern.h 8.1 (Berkeley) 05/31/93 */ #include <sys/signal.h> #include <stdio.h> #define BITS (8 * sizeof (int)) #define OUTSIDE (position > 68 && position < 246 && position !=...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...