text
stringlengths
3.12k
18.7k
// Made by <NAME>, 2020 #include <errno.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <net/if.h> #include <sys/types.h> #include <sys/stat.h> #include <netlink/genl/genl.h> #include <netlink/genl/family.h> #include <netlink/genl/ctrl.h> #include <netlink/msg.h> #include <...
// Copyright 2017 Espressif Systems (Shanghai) PTE LTD // // 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 applicab...
/* * FFM (ffserver live feed) muxer * Copyright (c) 2001 <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 ...
#include <stdlib.h> #include <math.h> #include <stdio.h> #include <unistd.h> #include <limits.h> #include <string.h> #define VIS_FILE "vis_data.txt" #define GLOW_COUNT 100 #define MAX_DIM 40 #define BUF_SIZE 5000 #define RHO 0.4 #define GAMMA 0.6 #define BETA 0.08 #define N_T 5 #define STEP_SIZE 0.03 #define L_0 5 /...
/*************************************************************************** * Copyright (C) 2011 by Broadcom Corporation * * <NAME> - <EMAIL> * * * * This program is free soft...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
/* # This file is part of the Astrometry.net suite. # Licensed under a 3-clause BSD style license - see LICENSE */ /* Write Matlab figures to demonstrate the correctness of the Healpix code. */ #include <math.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "healpix.h" #include "starutil.h" ...
#include <stdio.h> #include <conio.h> #include <math.h> #include <string.h> #include "gameUtils.h" #include "setup.h" #include "view.h" #define LEFT_ARROW 75 #define UP_ARROW 72 #define RIGHT_ARROW 77 #define DOWN_ARROW 80 #define ENTER 13 #define NEXT_SHIP 46 #define MIN(a,b) (((a)<(b))?(a):(b)) #defin...
/* * Copyright (C) 2017 <NAME> - sigma star gmbh * * 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 the hope that it will be useful, but WITHOU...
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, A...
/* $Id$ Copyright 1989-2014 <NAME> This file is part of Linear/C3 Library. Linear/C3 Library 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 3 of the License, or any later v...
#include <stdio.h> #include <stdlib.h> #include "../h/common.h" #include "../h/compiler.h" #include "../h/scanner.h" #ifdef DEBUG_PRINT_CODE #include "../h/debug.h" #endif Parser parser; Chunk *compilingChunk; static Chunk* currentChunk() { return compilingChunk; } static void errorAt(Token *token, const char...
/* ============== PROJETO 2 DE ESTRTURUAS DE DADOS 2 ============== <NAME> 11800910 <NAME> 11876933 Explicacao projeto: https://ae4.tidia-ae.usp.br/access/content/attachment/61c65473-dfd7-45e0-9c5b-f83baa36b63d/Atividades/31604d0b-fae8-42b8-b950-2f625d6f8035/projeto_2.pdf */ #include <stdio.h> #include <stdli...
#include <stdlib.h> #include <ncurses.h> #include <assert.h> #include "keyboard.h" #include "card.h" #include "stack.h" #include "game.h" #include "cursor.h" #include "gui.h" #include "common.h" static void handle_term_resize() { clear(); refresh(); if (term_size_ok()) { draw_deck(deck); draw_cursor(cur...
/* * Copyright (C) 2018-2020 luoyun <<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 la...
#include <ctype.h> #include <stddef.h> #include <stdio.h> #include <bt.h> #include "ptrace/pmodule.h" PMODULE_DEFINE("example_dynamic_pmodule", load, NULL, NULL); /* * struct my_pair { * int i; * void *v; * }; */ static void pm_my_pair(ptrace_variable_t *pv, bt_variable_t *bv) { bt_variable_t *i = NULL...
/* The MIT License (MIT) * * Copyright (c) 2017 <NAME> * * Software repository: MoonVulkan, https://github.com/stetre/moonvulkan * * 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...
/* Threat Sniffer for network file transfers using raw Pcap Library * Author: <NAME> * Year: 2002 */ #include <pcap.h> #include <stdio.h> #include <ctype.h> #include <unistd.h>//getpass() #include "finalnext.h" #include "finalfunctions.c" // int count1=0; void my_callback(u_char *useless,const struct pcap_pkth...
/* ** Copyright (c) 1999, 2000 <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 distr...
#include "neuron.h" #include "../storable_spikes.h" #include <ross.h> // If spikes and heartbeats "occur" at the same time (ie, they are scheduled // for the same timestamp), then all heartbeat events will be processed before // any spike event does. // // This ordering is not arbitrary: // Processing a heartbeat invo...
/* Copyright (c) 2013, 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 co...
#include <stdio.h> #include <ctype.h> #include "cactus.h" #include "sonLib.h" // OpenMP #if defined(_OPENMP) #include <omp.h> #endif /* * Code to calculate a maximum likelihood (ML) string for a block using Felsenstein's pruning algorithm. */ ///// // Code to for creating a phylogenetic model of a given event tree...
/* * This file is part of TISEAN * * Copyright (c) 1998-2007 <NAME>, <NAME>, <NAME> * * TISEAN 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...
/* * Gophernicus * * Copyright (c) 2009-2018 <NAME> <<EMAIL>> * Copyright (c) 2019 Gophernicus Developers <<EMAIL>> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions...
#include <stdint.h> #include <sys/types.h> #include <sys/stat.h> #include <string.h> #include <stdio.h> #include <assert.h> #include <errno.h> #include <unistd.h> #include <stdlib.h> #include <tcpcrypt/tcpcrypt.h> #include "src/tcpcrypt_ctl.h" #define MAX_LEN 1200 #define TCP_CRYPT 15 #ifndef SOL_TCP #define SOL_TC...
/* * The MIT License * * Copyright (c) 2013 GitHub, Inc * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, ...
#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...
/* Copyright (C) Intel Corp. 2006. All Rights Reserved. Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to develop this 3D driver. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the ...
#include "ip.h" #include "icmp.h" #include "tcp.h" #include <stdlib.h> #include <string.h> #include <stdio.h> #define swap32(x) ((((x)&0xFF) << 24) | (((x)&0xFF00) << 8) | (((x)&0xFF0000) >> 8) | (((x)>>24) & 0xFF)) //为32位数据交换大小端 static tcp_listening_socket_entry_t tcp_listening_table[TCP_MAX_LISTENER]; // listeni...
/* * LufaLayer.c * (c) 2014 flabbergast * USB and Board layer: provides "easy-to-use" functions for * the main program code. * * Portions of code come from a LUFA library Demo (license below). */ /* LUFA Library Copyright (C) <NAME>, 2014. dean [at] fourwalledcubicle [dot] com ...
/* SPDX-License-Identifier: BSD-3-Clause * Copyright (c) 2018 Microsoft Corp. * All rights reserved. */ /* * The indirection table message is the largest message * received from host, and that is 112 bytes. */ #define NVS_RESPSIZE_MAX 256 /* * NDIS protocol version numbers */ #define NDIS_VERSION_6_1 0x00060...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "types.h" #include "hwdefs.h" #include "emu.h" #include "state.h" #include "cpu.h" #include "mmu.h" #include "lcd.h" #include "audio.h" #include "disassembler.h" #include "debugger.h" #include "gui.h" #include "fileio.h" #include "rom.h" #include "wr...
/* getRna - get mrna sequences */ /* Copyright (C) 2013 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "options.h" #include "hdb.h" #include "jksql.h" #include "genbank.h" #include "linefile.h" #include "fa...
/* * * Arduino Sketch to communicate with the Syma S107 IR Helicopter. * Author: <NAME> * * This code has been adapted from the code available at the following URL: * * https://sites.google.com/site/spirixcode/code/kodek.txt?attredirects=0 * * The original author is <NAME> AKA "Aqualung", from the RCGroups....
/******************************************************************************* Karnov - <NAME>, <EMAIL> *******************************************************************************/ #include "driver.h" static bitmap_t *bitmap_f; UINT16 karnov_scroll[2], *karnov_pf_data; static tilemap *fix_tilema...
#include <math.h> #include <stdio.h> typedef union { double d; uint64_t u; } Double; void printDouble(double d) { if(d < 0) { printf("-"); d = -d; } int h = d; int l = d * 1000.0; l %= 1000; printf("%d.%d", h, l); } /* origin: FreeBSD /usr/src/lib/msun/src/e_sqrt.c */ /* * ======================...
// Copyright 2017 <EMAIL> // Licensed under the MIT license (http://opensource.org/licenses/MIT) #include <stdint.h> #include "led_vm.h" #include "core/timer.h" #include "ws2812.h" // #define scale(x, v) ( ((uint16_t)x * (uint16_t)v) >> 8) static inline uint8_t scale(uint8_t x, uint8_t scale_factor) { return ((u...
/*** * Copyright 1987 by AT&T Bell Laboratories. * All rights reserved. * Note: Lucent Technologies is now Alcatel-Lucent; some copyrights * may have been assigned by AT&T to Alcatel-Lucent. ***/ #define MAX_NUMBERS 299 #define MAX_NAMED 20 #define BLOCKSIZ 1024 /* PSF Changed 200 to 256 to handle non-English ch...
//============================================================================== // Include //============================================================================== #include "celib/memory/allocator.h" #include "celib/id.h" #include "celib/memory/memory.h" #include "celib/api.h" #include "celib/log.h" #includ...
// SPDX-License-Identifier: GPL-2.0 /* * Hibernation support for x86 * * Copyright (c) 2007 <NAME> <<EMAIL>> * Copyright (c) 2002 <NAME> <<EMAIL>> * Copyright (c) 2001 <NAME> <<EMAIL>> */ #include <linux/gfp.h> #include <linux/smp.h> #include <linux/suspend.h> #include <linux/scatterlist.h> #include <linux/kdebug...
/** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** * This file is part of clib library * Copyright (C) 2011 <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 * ...
/* * Copyright (c) 2014,2015,2016,2017,2018 Apple Inc. All rights reserved. * * corecrypto Internal Use License Agreement * * IMPORTANT: This Apple corecrypto software is supplied to you by Apple Inc. ("Apple") * in consideration of your agreement to the following terms, and your download or use * of this Apple...
#include "kitty_tools.h" char *stristr (const char *meule_de_foin, const char *aiguille) { char *c1, *c2, *res = NULL ; int i ; c1=(char*)malloc( strlen(meule_de_foin) + 1 ) ; strcpy( c1, meule_de_foin ) ; c2=(char*)malloc( strlen(aiguille) + 1 ) ; strcpy( c2, aiguille ) ; if( strlen(c1)>0 ) {for( i=0; i<strlen(c1...
/* $OpenBSD: dpclock.c,v 1.3 2014/10/11 18:41:18 miod Exp $ */ /* $NetBSD: dpclock.c,v 1.3 2011/07/01 18:53:46 dyoung Exp $ */ /* * Copyright (c) 2012 <NAME>. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyri...
/* rgu_game.c * * <!------------------------------------------------------------------------- * Copyright (c) 2018 <NAME> <github.com/kirklange> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from th...
//Librerias #include <sys/socket.h> #include <linux/if_packet.h> #include <net/ethernet.h> /* the L2 protocols */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <arpa/inet.h> #include <string.h> #include <sys/ioctl.h> #include <net/if.h> //Declaracion de variables necesarias para la estr...
/* * encode.c * * CCITT PCM encoder * * * author: lszhang 2011-12-20 09:37:51 * */ /*******************************************************/ //#define LOG_NDEBUG 0 #define LOG_TAG "pcm_enc.c" #include <stdlib.h> #include <string.h> #include "aenc_sw_lib.h" #include "alib_log.h" #define ENCODEEND (ERR_AUDI...
/*************************************************************************/ /* */ /* Language Technologies Institute */ /* Carnegie Mellon University */ /* ...
/* +--------------------------------------------------------------------------+ | CHStone : a suite of benchmark programs for C-based High-Level Synthesis | | ======================================================================== | | | | * Colle...
/* * Copyright (c) 2005 <NAME> * Copyright (c) 2006 <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 * noti...
/* Copyright 2015 The Chromium OS 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 "dcrypto.h" #include "internal.h" #include "registers.h" #include "util.h" static const uint8_t *dcrypto_sha256_final(SHA256_CTX *ctx); ...
/* $XFree86: xc/extras/Mesa/src/mesa/drivers/dri/i810/i810span.c,v 1.2 2004/12/15 15:40:27 tsi Exp $ */ #include "glheader.h" #include "macros.h" #include "mtypes.h" #include "colormac.h" #include "i810screen.h" #include "i810_dri.h" #include "i810span.h" #include "i810ioctl.h" #include "swrast/swrast.h" #define D...
#include <signal.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <json.h> #include <rime_api.h> #define DEFAULT_BUFFER_SIZE 1024 typedef enum _RimeRequestType { IOError, Invalid, Schema, Context, } RimeRequestType; typedef enum _RimeRequestAction { Nop, GetCurr...
/* * Copyright(C) 2012 <NAME>. All Rights Reserved. * * This file is part of the YARD-ICE. * * This library 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 3.0 of the License,...
/** * \file frne.c * \author <NAME> * \author <NAME> * \brief MEX file body * * * FRNE * * TAU = FRNE(ROBOT*, Q, QD, QDD, GRAV, FEXT) * ROBOT* = INIT(N, MDH, L, GRAV) * * where Q, QD and QDD are row vectors of the manipulator state; pos, * vel, and accel. * * Returns the joint torque required to ac...
/* * This is a part of uJIT's testing suite. * Copyright (C) 2015-2019 IPONWEB Ltd. See Copyright Notice in COPYRIGHT */ /* * Test below is about how profiler stream and parses VM state when * VM executes Lua function (initially represented as a form of Lua code * chunk) which resides in shared between VMs data....
/////////////////////////////////////////////////////////////////////////////// // // IMPORTANT NOTICE // // The following open source license statement does not apply to any // entity in the Exception List published by FMSoft. // // For more information, please visit: // // https://www.fmsoft....
/* * Copyright (C) 2019 Konsulko Group * Author: <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 require...
/* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
/** Option handling * @file * * This source file is part of the Cone Programming Language C compiler * See Copyright Notice in conec.h */ #include "conec.h" #include "coneopts.h" #include "shared/options.h" #include <string.h> #include <stdio.h> #include <stdlib.h> // List of option ids enum { OPT_VERSION, ...
#pragma once /* * All sorts of defines related to Windows kernel * https://www.vergiliusproject.com/ * Windows SDK/DDK */ typedef struct _UNICODE_STRING { UINT16 Length; UINT16 MaximumLength; CHAR16* Buffer; } UNICODE_STRING, * PUNICODE_STRING; typedef struct _KLDR_DATA_TABLE_ENTRY { ...
/* mpn_toom3_sqr -- Square {ap,an}. Contributed to the GNU project by <NAME>. THE FUNCTION IN THIS FILE IS INTERNAL WITH A MUTABLE INTERFACE. IT IS ONLY SAFE TO REACH IT THROUGH DOCUMENTED INTERFACES. IN FACT, IT IS ALMOST GUARANTEED THAT IT WILL CHANGE OR DISAPPEAR IN A FUTURE GNU MP RELEASE. Copyrigh...
#include <string.h> #include "engine.h" #include "contrib/ibxm.h" #define DEFAULT_AUDIO_FREQ 48000 #define MAX_AUDIO_CHANNELS 4 static struct sfx_channel_s { int on; int id; Uint32 pos; } glob_sfx_channels [MAX_AUDIO_CHANNELS]; static int glob_sfx_channel_pos = 0; static struct sfx_list { Uint32 len; Uint8...
#include <stdlib.h> #include <string.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/mman.h> #include <mba/diff.h> #include <mba/hexdump.h> #include <mba/msgno.h> /* bindiff format is as follows: * * struct bdiff_patch { * ...
#include "utils.h" #include "tesseract.h" #include <string.h> #include <errno.h> #include <ctype.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <sys/wait.h> #include <assert.h> #define _die(code, msg, ...) (error(0, (code), "" msg, ##__VA_ARGS__), _exit(1)) // wait for child process to...
/* Author: <NAME> & <NAME> : <NAME> <NAME> Date: 13-6-2014 Revision: 2 uart.c: UART2 driver for ARM-board V5 pin-info: PA2 - TX PA3 - RX To enable UART use the following line: UART_init(); To use UART on interrupt base use: UART_INT_init(); This file initialize the UA...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #include <inttypes.h> #include "transactions/tx.h" #include "base58/b58.h" #include "utils.h" #include "data_tx_tests.h" /* { type: 12, version: 1, senderPublicKey: '<KEY>', fee: 500000, timestamp: 1560177967395, proofs: [ '...
/* Copyright (c) 2019-2021, <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR...
/*************************************************************************** * FILENAME: draw_wavef.c FORTRAN VERSION * DESCRIPTION: * Called by mpi_wave routines to draw a graph of results * AUTHOR: <NAME> * LAST REVISED: 05/10/16 ***************************************************************************/ ...
#include "StringDictEntry.h" #include <Python.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include <stdalign.h> #include <stdint.h> #include "LEB128.h" static const uintptr_t pyptr_lowbits_mask = alignof(PyObject) - 1; static const uintptr_t pyobject_pointer_lowbits = (alignof(PyObject) == 1) ? ...
// // omp_overhead.c // // Measures OMP overhead and speedup, also reports thread affinity status. // 1. Measure the time to execute a serial function // 2. Measure the time to execute the same serial function on individual // threads. The same amount of work is performed as in the single // thread case. (weak s...
/*============================================================================================= * * kbAlloc.c * * --------------------------------------------------------------------------------------------- * * MIT License * * Copyright(C) 2017 : KUNBUS GmbH, Heerweg 15C, 73370 Denkendorf, Germany * * Permission is he...
#include "WFEXTH.h" #include "xxHash/xxhash.c" #define MAGIC_NUMBER 0xffabcd #define MAX_TABLE_SIZE 64 struct Operation* help[MAX_NUM_OF_THREADS] = {0}; int opSeqnum[MAX_NUM_OF_THREADS] = {0}; volatile struct Dstate* ht = {0}; static uint64_t Prefix(uint64_t const key, int const depth) { int shift = 64 - depth; ...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2009-2012 Oak Ridge National Laboratory. All rights reserved. * Copyright (c) 2009-2012 Mellanox Technologies. All rights reserved. * Copyright (c) 2014 Los Alamos National Security, LLC. All rights * re...
/* $Header: /home/schj/src/vamps_0.99g/src/topsys/RCS/notree.c,v 1.4 1999/01/06 12:13:01 schj Alpha $ */ /* $RCSfile: notree.c,v $ * $Author: schj $ * $Date: 1999/01/06 12:13:01 $ */ static char RCSid[] = "$Id: notree.c,v 1.4 1999/01/06 12:13:01 schj Alpha $"; /*F:notree.c * This file contains the 'bare-soil' to...
/* * RPC client-side support */ #include <stdio.h> #include <base/time.h> #include <base/stddef.h> #include <base/list.h> #include <base/log.h> #include <base/atomic.h> #include <runtime/smalloc.h> #include <runtime/sync.h> #include <runtime/timer.h> #include <breakwater/nocontrol.h> #include "util.h" #include "nc...
// sys_partitions.c #include <string.h> #include <stdio.h> #include "sys_partitions.h" #include "file_func.h" /*********** * Diskstats ************/ bool diskstats_update(diskstats *curr_diskstats) { bool ret = false; char blank_string[128]; int sizeof_line = 512*sizeof(char); char *line = (char *)malloc(sizeof...
/* Test mpz_add, mpz_add_ui, mpz_cmp, mpz_cmp, mpz_mul, mpz_sqrtrem. Copyright 1991, 1993, 1994, 1996, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU MP Library. The GNU MP Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Lice...
/* * Copyright (c) 2010 <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, dis...
/* * Copyright 2020 Makani Technologies LLC * * 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 ...
#include "osgs_config.h" #include "osgs_logging.h" #include "osgs_audiogen.h" #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdarg.h> #include <string.h> #include <assert.h> #define __USE_MISC #include <math.h> #include <limits.h> #include <time.h> #include <GL/glew.h> #include <SDL2/SDL.h> #i...
#pragma once //Structures and defines: #define SOUND_SLOTS 4 #define SOUND_STREAM_FLAG_USER_CONTROLLED ( 1 << 0 ) #define SOUND_STREAM_FLAG_ONE_THREAD ( 1 << 1 ) #define FLOAT32_TO_INT16( res, val ) \ { \ float temp = val; \ temp *= 32767; \ if( temp > 32767 ) \ temp = 32767; \ if( temp < -...
#include "lbuiltin_operator.h" #include <limits.h> #include <math.h> #include <stdlib.h> #include "vendor/mini-gmp/mini-gmp.h" #include "lval.h" #include "lenv.h" #define UNUSED(x) (void)(x) /* Conditions: overflow conditions for long. */ static bool lbi_cond_num_add_overflow(const long a, const long b) { retu...
/* american fuzzy lop++ - fuzzer header ------------------------------------ Originally written by <NAME> Now maintained by <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>> Copyright 2016, 2017 Google Inc. All rights ...
/* radare - LGPL - Copyright 2015-2016 - pancake, condret, riq, qnix */ #include <r_asm.h> #include <r_lib.h> #include <string.h> #include "../snes/snesdis.c" static struct { ut8 op; char *name; size_t len; } ops[] = { {0x00, "brk", 1}, {0x0b, "anc #0x%02x", 2}, {0x2b, "anc #0x%02x", 2}, {0x8b, "ane #0x%02x", ...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* kernel.c :+: :+: :+: ...
/* wvWare * Copyright (C) <NAME>, <NAME>, and others * * 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 ...
#include "main.h" #include "state.h" #include "lua_core.h" #include "textures.h" State *state; bool stateInit( const char *exePath ) { state = malloc( sizeof( State ) ); state->exePath = malloc( STRING_LEN * sizeof( char ) ); strncpy( state->exePath, exePath, STRING_LEN - 1 ); state->hasWindow = true; state->r...
/* alert tcp $EXTERNAL_NET $HTTP_PORTS -> $HOME_NET any (msg:"WEB-CLIENT Microsoft Excel oversized ib memory corruption attempt"; flowbits:isset,file.xls; flow:to_client,established; content:"|16 00 02 00|"; content:"|17 00|"; distance:2; within:2; content:"|06 00|"; metadata:policy balanced-ips drop, policy security-i...
//! @file acpi.h //! @brief File containing declarations for ACPI high level functions #pragma once #include <init/stivale2.h> #include <lib/target.h> #include <misc/attributes.h> #include <misc/types.h> //! @brief ACPI SDT tables header struct acpi_sdt_header { char signature[4]; uint32_t length; uint8_t rev; u...
#include "storage_lib.h" #include "stdio.h" #include "storage1_lib.h" #include "storage2_lib.h" typedef ret_code_t (*storage_init_function_t)(void); typedef ret_code_t (*storage_read_function_t)(uint32_t address, uint8_t* data, uint32_t length_data); typedef ret_code_t (*storage_store_function_t)(uint32_t address...
/* ** File: pane.c ** ** Author: <NAME> <<EMAIL>> ** ** Description: Library that provides a common frame in order to put display ** information on the OS. Some people call these windows. I call ** them pane.s */ /** Headers **/ #include "../kern/gcc16.h" #include "pane.h" #include "....
/* 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 may not...
/** * \file socket_client.c * \author <NAME> * \date Jun 26, 2020 * \copyright Copyright 2017-2021 <NAME> MIT License * \brief Event based socket client implementation * */ #include <stdlib.h> #include <stdio.h> #include <sys/socket.h> #include <netinet/in.h> #include <netinet/ip.h> #include <n...
#include "include.h" static void force_update(void); static struct tm *get_time(void); static void handle_minute_tick(struct tm *tick_time, TimeUnits units_changed); static void set_text(int index, int hour); static void animation_update(void *data); static void accel_tap_handler(AccelAxisType axis, int32_t direction)...
/* filttab.h 2.3 9/26/87 */ #include <stdio.h> /* * Modified by <NAME>, 8/87 to support Sun greektool routines */ #define MAX_ESC 10 #define NORM_GREEK "A" #define GREEK 01 #define ROMAN 02 #define MAX_GK_CHARS 512 #define END_STD_FONT 256 int p_dump(); int p_font(); typedef struct { char * look_for; sho...
/* * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2018-09-01 ZeroFree first implementation */ #include <rtthread.h> #include <rtdevice.h> #include <board.h> #include <stdlib.h> #include <...
#include <getopt.h> #include <stdio.h> #include <gencon.h> #include <genmap.h> #include <parRSB.h> #define MAXNV 8 /* maximum number of vertices per element */ #define MAXDIM 3 /* maximum number of vertices per element */ /* elem_data must always start with vtx_data */ typedef struct { int proc; long long vtx[M...
// // This file implements a symbolic backtrace when a program aborts // Especially when we lanuch bigstick on hopper or edison we may // not want to do another run to find the failing routine. // <NAME> 23Oct2013 // #include <stdio.h> #include <stdlib.h> #include <execinfo.h> #include <signal.h> #include <sys/resour...
/* * fs/sdcardfs/derived_perm.c * * Copyright (c) 2013 Samsung Electronics Co. Ltd * Authors: <NAME>, <NAME>, <NAME>, * <NAME>, <NAME> * * This program has been developed as a stackable file system based on * the WrapFS which written by * * Copyright (c) 1998-2011 <NAME> * Copyright (c) 2009 ...