text stringlengths 5.8k 28.2k |
|---|
/*
* This is a simple 'sstable' implemention, merge all mtable into on-disk indices
* BLOCK's LAYOUT:
* +--------+--------+--------+--------+
* | sst block 1 |
* +--------+--------+--------+--------+
* | sst block 2 |
* +--------+--------+--------+--------+
* | ... |
/*
*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*
* Cint QOS Setup example code for MPLS
* In the CINT example we present 2 different functions of QOS in MPLS w... |
/*
* This file is part of the UCB release of Plan 9. It is subject to the license
* terms in the LICENSE file found in the top-level directory of this
* distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
* part of the UCB release of Plan 9, including this file, may be copied,
* modified, prop... |
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
// Copyright (c) 2020 Cloudflare
#define _GNU_SOURCE
#include <arpa/inet.h>
#include <string.h>
#include <linux/pkt_cls.h>
#include <netinet/tcp.h>
#include <test_progs.h>
#include "progs/test_cls_redirect.h"
#include "test_cls_redirect.skel.h"
#include "test_cls... |
#include <stdio.h>
#include "elecanisms.h"
#include "peripheral_core.h"
#include "i2c_address_space.h"
#include "ajuart.h"
#include "adafruit_led.h"
// picocom -b 115200 /dev/ttyUSB0
char buffer[128];
#define switch1 0b0000000001 // wait / okay
#define switch2 0b0000000010 // uh huh / uh uh
#define switch3 0b... |
/**
* Copyright (C) 2020-2021 <NAME>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
**/
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <stdatomic.h>
#include <assert.h>
#i... |
/**
* Parts of this software are based on BLAKE2:
* https://github.com/BLAKE2/BLAKE2
*
* BLAKE2 reference source code package - reference C implementations
*
* Copyright 2012, <NAME> <<EMAIL>>. You may use this under
* the terms of the CC0, the OpenSSL Licence, or the Apache Public License
* 2.0, at your optio... |
// GTA V Script Information v1.0 by <NAME>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
// Script file header definition
typedef struct {
uint32_t magic; // 0x00
uint32_t someNumber1; // 0x04
uint64_t pagesOffset; // 0x08
uint64_t codePagesOffset; // 0x10
uint32_t globalsVersion; // 0x18
uint3... |
//
// OSTN15.c
// OSTN15
//
// Created by <NAME> on 21/7/2018.
// Copyright (c) 2018 <NAME>. All rights reserved.
//
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "OSTN15.h"
#include "fancyOut.h"
#include "geoids.data"
#include "explorerMaps.data"
#include "gridPosition.data"
#d... |
/*
* smpl_core_pebs_sys.c - Intel Core processor PEBS system-wide example
*
* Copyright (c) 2008 Google, Inc
* Contributed by <NAME> <<EMAIL>>
*
* Based on code:
* Copyright (c) 2006 Hewlett-Packard Development Company, L.P.
* Contributed by <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, ... |
/*
* Copyright (C) 2017 The Android Open Source Project
*
* 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 app... |
/****************************************************************************************/
/* Vis.c */
/* */
/* Author: <NAME> ... |
/**************************************************************************
* Initio A100 device driver for Linux.
*
* Copyright (c) 1994-1998 Initio Corporation
* 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 ... |
/*
* Copyright (c) 2003 <NAME>
* Copyright (c) 2003 Massachusetts Institute of Technology
*
* 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 ... |
/*
* Author <NAME>
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <memory.h>
#include <time.h>
#include <stdarg.h>
#include <errno.h>
#include <assert.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#... |
#define BGBBTJ_BTIC1C_EFL_BLOCKLZ 1
#define BGBBTJ_BTIC1C_EFL_MIPMAP 2
#define BGBBTJ_BTIC1C_EFL_DIFFCLR 4
#define BGBBTJ_BTIC1C_EFL_BLOCKZI 8
#define BGBBTJ_BTIC1C_EFL_EXTMODES 16
#define BGBBTJ_BTIC1C_EFL_MOTION 32
#define BGBBTJ_BTIC1C_EFL_USEARITH 64 //use arithmetic coding
#define BGBBTJ_BTIC1C_EFL_BLKMB1 65536
... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 ... |
/****************************************************************************/
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
/* ... |
/* zpipe.c: example of proper use of zlib's inflate() and deflate()
Not copyrighted -- provided to the public domain
Version 1.4 11 December 2005 <NAME> */
/*
* Copyright 2016, International Business Machines
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exc... |
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include "ellipsoids.h"
void rotation_matrix(Ellipsoid *ellipsoid){
// Updates the rotation matrix associated to ellipsoid->q.
rotation(ellipsoid->Q,ellipsoid->q); // rotation matrix associated to ellipsoid->q
}
double belonging_function(Ellipsoid *ellipsoi... |
/**
* This sample program balances a two-wheeled Segway type robot such as Gyroboy in EV3 core set.
*
* References:
* http://www.hitechnic.com/blog/gyro-sensor/htway/
* http://www.cs.bgu.ac.il/~ami/teaching/Lejos-2013/classes/src/lejos/robotics/navigation/Segoway.java
*/
#include "ev3api.h"
#include "ap... |
/*
* Alithia Engine
* Copyright (C) 2009-2010 <NAME>
*
* 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 the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
... |
// Copyright 2011 The Avalon Project Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0
// that can be found in the LICENSE file.
//
// Open serial port and decode IMU MTData messages
// Default mode and settings are defined in mtcp.h and set
// by imucfg_main.c.
//
#include... |
/*
* calib_stereo.c
* ARToolKit5
*
* Camera stereo parameters calibration utility.
*
* Run with "--help" parameter to see usage.
*
* This file is part of ARToolKit.
*
* ARToolKit is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as pu... |
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
/*
* Feature : Mirroring over L3 tunnel(ERSPANv3)
*
* U... |
// Copyright (c) 2015, <NAME>
// For conditions of distribution and use, see the accompanying LICENSE and README files
// This file is part of the benchmarks for the AUMA machine learning based auto tuning application
// developed at the Norwegian University of Science and technology
#include <stdio.h>
#include <std... |
#include "ecc.h"
#include <string.h>
#define TRUE 1
#define FALSE 0
void
get_curve_param(curve_params_t *para)
{
#ifdef EIGHT_BIT_PROCESSOR
//init parameters
//prime
para->p[24] = 0x00;
para->p[23] = 0xFF;
para->p[22] = 0xFF;
para->p[21] = 0xFF;
para->p[20] = 0xFF;
p... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdatomic.h>
#include "cache.h"
// panic 抛出 rapidcache 致命错误
#define panic(_msg_) { \
fprintf(stderr, "rapidcache panic: %s (at %s: line %d)\n", (_msg_), __FILE__, __LINE__); \
exit(1); \
}
// panic_ext 自定义文件和行数抛出 rapidcache 致命错误
#define p... |
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "hxa.h"
#include "hxa_utils.h"
typedef struct{
unsigned int edge;
unsigned int original;
float value;
void *next;
void *previous;
}HxAHoleEdge;
float un_hole_vector_normalized3f(float *vec, float *start, float *... |
/** Copyright (c) 1995, California Institute of Technology **/
/** U. S. Government sponsorship under NASA contract is acknowledged **/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lbl_image_data.h"
/*****************************************************************************... |
/*========================================================================
* common.c -- Shared routines between the Tsunami client and server.
*
* This module contains routines of use to both the Tsunami client and
* the Tsunami server.
*
* Written by <NAME> (<EMAIL>).
* Copyright © 2002 The Trustees of India... |
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <stdbool.h>
#include <string.h>
#include "vec.h"
#define ATOM_RADIUS 0.25 // As a proportion of lattice's size
#define GRID_SIZE 200
/***** STRUCTS *****/
// Structure contenant toutes les données intéressantes de la simulation
struct data_t {
uns... |
/*
* coWPAtty - Brute-force dictionary attack against WPA-PSK.
*
* Copyright (c) 2004, <NAME> <<EMAIL>>
*
* $Id: cowpatty.c,v 1.2 2004/11/02 11:46:42 jwright Exp $
*
* 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
* publ... |
// Copyright (C) 2018-2020, <NAME>, <NAME> University Linz, Austria
const char * usage =
"usage: scranfilize [ <option> ... ] [ <original-cnf> [ <scrambled-cnf> ] ]\n"
"\n"
"where '<option>' is one of the following\n"
"\n"
" -h print this command line option summary and exit\n"
" --version print version a... |
/*****************************************************************************
* DESCRIPTION
* This file contains the three functions used to get and set the date
* values on the dmi header structure. It also contains some operations
* used to maintain the list of header members.
*
****************************
* SetLis... |
// Console input and output.
// Input is from the keyboard or serial port.
// Output is written to the screen and serial port.
#include "types.h"
#include "defs.h"
#include "param.h"
#include "traps.h"
#include "spinlock.h"
#include "sleeplock.h"
#include "fs.h"
#include "file.h"
#include "memlayout.h"
#include "mmu.h... |
/*
* This source file is part of the "Joe Objects Executor" open source project
*
* Copyright 2017 <NAME> (www.bertacca.eu)
*
* 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
*
... |
/*
* Copyright 2013 <NAME>, <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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
/*
* Copyright (c) 2015-2019 The Linux Foundation. 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 notice and this permission notice appear in all
* copies.
*
* THE SOFTWARE IS ... |
/*-------------------------------------------------------------------------
*
* zpage.c
* Routines to operate on a zheap page.
*
* The zheap page consists of the page header, line pointer array, tuples and
* transaction slots. The line pointer array grows from top to down and
* tuples grow from bottom to up. ... |
#pragma once
#include "../global/vars.h"
void inject_gameflow(bool replace);
void DoGameflow();
int TitleOptions();
void DoTitle(uchar name, uchar audio);
void do_dels_cutseq_selector();
void DoLevel(uchar name, uchar audio);
enum gf_languages
{
LNG_ENGLISH,
LNG_FRENCH,
LNG_GERMAN,
LNG_ITALIAN,
LNG_SPANISH,
L... |
/* P O L Y G O N _ O P . C
*
* BRL-CAD
*
* Copyright (c) 2015-2022 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
* versio... |
/* $Id: mode.c,v 1.28 2008/08/01 08:42:43 cegger Exp $
******************************************************************************
FreeBSD vgl(3) target: mode management
Copyright (C) 2000 Alcove - <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this so... |
/*
Copyright (C) 2009-2019 Parallel Realities
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 t... |
/****************************************************************************
* arch/arm/src/tiva/tiva_lowputc.c
*
* Copyright (C) 2009-2010, 2014, 2018 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted... |
/*--------------------------------------------------------------------
* $Id$
*
* This file is part of libRadtran.
* Copyright (c) 1997-2012 by <NAME>, <NAME>,
* <NAME>, <NAME>
*
* ######### Contact info: http://www.libradtran.org #########
*
* This program is free software; you can... |
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2018 Intel Corporation. All rights reserved.
//
// Author: <NAME> <<EMAIL>>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <sys/stat.h>
#include <errno.h>
#include <alsa/asoundlib.h>
#include "kernel/abi.h"
#include "... |
/*
* Copyright (c) 2011-2018 The DragonFly Project. All rights reserved.
*
* This code is derived from software contributed to The DragonFly Project
* by <NAME> <<EMAIL>>
* by <NAME> (GSOC 2013 - mentored by <NAME>, compression)
*
* Redistribution and use in source and binary forms, with or without
* modificat... |
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2006 The University of Tennessee and The University
* of Tennessee Resea... |
// Copyright 2017 Google 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/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
/*!
* License: Revised BSD 3-Clause License, see LICENSE.TXT file include in the project
*/
/* -------------------------------------------------------------------------- */
/* --- DEPENDANCIES --------------------------------------------------------- */
/* fix an issue between POSIX and C99 */
#if __STDC_VERSION__ ... |
#include <core.h>
#ifdef TARGET_A2
//int time_temp_int;
//struct timespec time_temp;
unsigned char global_kb;
unsigned int screen_row_offset[] =
{
1024U, // 0x0400
1152U,
1280U,
1408U,
1536U,
1664U,
1792U,
1920U,
1064U,
1192U,
1320U,
1448U,
1576U,
1704U,
... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* PCMCIA high-level CIS access functions
*
* The initial developer of the original code is <NAME>
* <<EMAIL>>. Portions created by <NAME>
* are Copyright (C) 1999 <NAME>. All Rights Reserved.
*
* Copyright (C) 1999 <NAME>
* Copyright (C) 2004-2010 <NAME>
*/
... |
/*
* LIBOIL - Library of Optimized Inner Loops
* Copyright (c) 2004 <NAME> <<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:
* 1. Redistributions of source code must retain the a... |
/*
* Copyright (c) 2007, 2008 University of Tsukuba
* 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 ... |
/*
* $Id: mesh_validate.c 40193 2011-09-14 00:37:27Z campbellbarton $
*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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) 2013, Broadcom Europe Ltd
Copyright (c) 2013, <NAME>
Copyright (c) 2013, <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... |
/*
* GIT - The information manager from hell
*
* Copyright (C) <NAME>, 2005
*/
#include "cache.h"
#include "builtin.h"
#include "exec_cmd.h"
#include "parse-options.h"
#ifndef DEFAULT_GIT_TEMPLATE_DIR
#define DEFAULT_GIT_TEMPLATE_DIR "/usr/share/git-core/templates"
#endif
#ifdef NO_TRUSTABLE_FILEMODE
#define TEST... |
/*
* drivers/mtd/nand.c
*
* Overview:
* This is the generic MTD driver for NAND flash devices. It should be
* capable of working with almost all NAND chips currently available.
* Basic support for AG-AND chips is provided.
*
* Additional technical information is available on
* http://www.linux-mtd.infr... |
// gcc -Og -c vm.c && gcc -o vm vm.o && ls -l vm && time ./vm
// gcc -O3 -c vm.c && gcc -o vm vm.o && ls -l vm && time ./vm
// clang -O3 -c vm.c && clang -o vm vm.o && ls -l vm && time ./vm
//
// gcc -Og -fprofile-generate -c vm.c && gcc -fprofile-generate -pthread -o vm vm.o && time ./vm && gcc -Og -fprofile-use -c vm... |
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
//#include <memory.h>
#include <stdlib.h>
#include <string.h>
#include "aos/aos.h"
#include "itls/ssl.h"
#include "itls/net.h"
#include "itls/debug.h"
#include "itls/platform.h"
#include "iot_import.h"
#define LOG_... |
/*
* earthmap.c
*
* Copyright (c) 2013 Yoshi
* This software is distributed under the MIT License.(../MIT-LICENSE.txt)
*
*/
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
#include "type.h"
#define GLOBAL_VALUE_DEFINE
#include "g_variable.h"
#define todeg (180.0... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
/*****************************************************************************
* utility - Utility functions for libxlsxwriter.
*
* Used in conjunction with the libxlsxwriter library.
*
* Copyright 2014-2018, <NAME>, <EMAIL>. See LICENSE.txt.
*
*/
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#inclu... |
/**
* @author <NAME>
* @description functions
* @modules save old command result, format to a custom result, print new display to user
* @version 1.00
* */
#include "PPADLibrary.h"
//Definitions of functions
int Menu(void)
{
// system("color 0C");//red on black
int choice = 0;
char choiceConfirmed;
... |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "iot_import.h"
#include "iot_export.h"
#include "iot_export_mqtt.h"
#include "aos/log.h"
#include "aos/yloop.h"
#include "aos/network.h"
#include <netmgr.h>
#include <aos/kernel.h>
#incl... |
/*
* ColdFire Fast Ethernet Controller emulation.
*
* Copyright (c) 2007 CodeSourcery.
*
* This code is licenced under the GPL
*/
#include "hw.h"
#include "net.h"
#include "mcf.h"
/* For crc32 */
#include <zlib.h>
//#define DEBUG_FEC 1
#ifdef DEBUG_FEC
#define DPRINTF(fmt, ...) \
do { printf("m... |
/* Copyright (C) 2017-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C 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 2.1 of the
... |
/* spke10.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__1 = 1;
static integer c__6 = 6;
/* $Procedure SPKE10 ( Evaluate SPK record, type 10 ) */
/* Subroutine... |
#include <stdio.h>
#include <string.h>
#include "libp2p/crypto/key.h"
#include "libp2p/crypto/rsa.h"
#include "libp2p/crypto/sha256.h"
// mbedtls stuff
#include "mbedtls/config.h"
#include "mbedtls/platform.h"
#include "mbedtls/entropy.h"
#include "mbedtls/ctr_drbg.h"
#include "mbedtls/bignum.h"
#include "mbedtls/x50... |
#include "tft_screen.h"
#include "gfxfont.h"
#ifndef _swap_int16_t
#define _swap_int16_t(a, b) { int16_t t = a; a = b; b = t; }
#endif
static uint8_t _width = ST7735_TFTWIDTH;
static uint8_t _height = ST7735_TFTHEIGHT;
static uint8_t rotation = 1;
static uint8_t cursor_y = 0;
static uint8_t cursor_x... |
/*
* Copyright 2009 <NAME>, 2011 ArtForz
* 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 lis... |
// kian riscv house rotation demo, author <NAME>
/* fast sin/cosine by https://www.atwillys.de/content/cc/sine-lookup-for-embedded-in-c/ */
#include <stdint.h>
#include <math.h>
#include "stdlib.c"
#include "gfx_lib.h"
#include "kianv_spi_bitbang.h"
typedef uint8_t u8;
typedef uint32_t u32;
// adapted from waveshar... |
#include "parser_int.h"
#define FAST_USER_NEW_USER_IDX (FAST_USER_IDX_OFFSET+0) // a
#define FAST_USER_FREE_USER_IDX (FAST_USER_IDX_OFFSET+1) // b
#define FAST_USER_NEW_GROUP_IDX (FAST_USER_IDX_OFFSET+2) // c
#define FAST_USER_FREE_GROUP_IDX (FAST_USER_IDX_OFFSET+3) // d
#define FAST_USER_NEW_RESOURCE_... |
/*
* Copyright (c) 2012, 2015, JANET(UK)
* 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 ... |
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <time.h>
#include <unistd.h>
#include <stdbool.h>
#include <semaphore.h>
int num_of_reducer;
int num_of_slots;
char filename[100];
int arr_length = 0;
int count = 0;
int* in_pointer;
int* out_pointer;
int* ptr_u... |
/* mpfr_eint, mpfr_eint1 -- the exponential integral
Copyright 2005-2016 Free Software Foundation, Inc.
Contributed by the AriC and Caramba projects, INRIA.
This file is part of the GNU MPFR Library.
The GNU MPFR Library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser Gen... |
/******************************************************************************/
/* */
/* Copyright (c) 1990-2016, KAIST */
/* All rights reserved. ... |
/******************************************************************************
Copyright (C) 2014 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... |
/** file: utils.c
* created: 2015-02-25 11:18:42
* author: <NAME>
*/
//___ I N C L U D E S ________________________________________________________
#include "accel.h"
#include "leds.h"
#include "main.h"
#include "utils.h"
#include <math.h>
//___ M A C R O S ( P R I V A T E ) ____________________... |
#include "ECDLP_PoW.h"
//META FUNCTIONS
EPOCH_POW_INSTANCE EpochPowInstance_new(const char * hash, int d){
LOG(" --- Generating EPOCH block parameters --- ");
double time_spent1, time_spent2, time_spent3;
clock_t begin, end;
BIGNUM * prime = BN_new();
EC_GROUP * E;
EC_POINT * P;
char * ... |
/*
* Copyright (C) 2010-2016 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
* The code contained herein is licensed under the GNU General Public
* License. You may obtain a copy of the GNU General Public License
* Version 2 or later at the following locations:
*
* http://www.opensource.org/licenses/gp... |
/* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved.
This software is licensed as OpenSource, under the Apache License, Version 2.0.
This license is available at: http://opensource.org/licenses/Apache-2.0. */
#include <stdio.h>
#include "sys.h"
#include <errno.h>
#include ... |
#include "ele.h"
#define CUTOFF3 0.7
void report_redef_stat();
void general_edge_redef(ELE_INFO_t *);
void build_local_edge_net(ELE_INFO_t *, int, ELE_DATA_t **);
void local_edge_net_walk(ELE_INFO_t *, EDGE_TREE_t *, int, ELE_DATA_t **);
void cruise_local_edge_net(ELE_DATA_t *);
void dissolve_local_edge_net(ELE_D... |
/****************************************************************
This file was created automatically by `FlexCat 1.5'
from "AmiFTP.cd".
Do NOT edit by hand!
****************************************************************/
#if defined(__SASC) || defined(_DCC)
#include <proto/locale.h>
#elif defined(__GNUC... |
#include "Imu.h"
#include "mymath.h"
#include "Filter.h"
//#include "DataTrans.h"
#include "include.h"
const float RtA = 57.2957795f;
const float AtR = 0.0174532925f;
/*参考坐标,定义为ANO坐标*
俯视,机头方向为x正方向
+x
|
+y--|--
|
g
*/
//世界坐标平面XY转平面航向坐标XY
void w2h_2d_trans(float w[VEC_XYZ],float ref_ax[VEC_XYZ],flo... |
#include <stdio.h>
#include <string.h>
#ifdef MTK_GPT_SCHEME_SUPPORT
#include <platform/partition.h>
#else
#include <mt_partition.h>
#endif
#include <platform/boot_mode.h>
#include <platform/ram_console.h>
#include <platform/mt_reg_base.h>
#include "elf.h"
#include "KEHeader.h"
/**************************/
/* --------... |
/* Copyright © 2021-2022 <NAME>
*
* See LICENSE.txt for licensing info.
*
* Name: config.c
*
* Description: Command-line argument parsing.
*
* Author: <NAME>, <EMAIL>
*/
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <testha... |
/*
* 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... |
/* The Computer Language Benchmarks Game
* http://benchmarksgame.alioth.debian.org/
*
* contributed by <NAME>
*/
#include <stdlib.h>
#include <stdio.h>
#define TRUE 1
#define FALSE 0
/* The board is a 50 cell hexagonal pattern. For . . . . .
* maximum speed the board will be implemented as . . . . .
* 5... |
/*
* Copyright notice: This file contains code from OpenSSL 0.9.8
* Please consult COPYING.OpenSSL for the license terms that apply.
*/
/*
* #define s expected by this code:
* - OLD_SSL: define this if the code is supposed to run on some unspecified older version of OpenSSL (without EVP_MD_CTX_new)
* - PLATFORM_... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdbool.h>
#include <string.h>
#include <errno.h>
#include <math.h>
#define GLFW_INCLUDE_GLEXT
#include <GLFW/glfw3.h>
#define LA_IMPLEMENTATION
#include "la.h"
#define SV_IMPLEMENTATION
#include "sv.h"
#define DEFAULT_SCREEN_W... |
/*
* Author: syang2forever
* Mail: <EMAIL>
* Blog: syang2forever.github.io
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
/* An implementation of 5-stage classic pipeline simulation */
/* don't count instructions flag, enabled by default, disable for inst count */
#undef NO_INSN_COUNT
#include ... |
/* Copyright 2013 <NAME> <<EMAIL>>, see COPYING for license */
#include <gssapi/gssapi.h>
#include <gssapi/gssapi_ext.h>
#include "gss_ntlmssp.h"
OM_uint32 gss_init_sec_context(OM_uint32 *minor_status,
gss_cred_id_t claimant_cred_handle,
gss_ctx_id_t *con... |
/*
Copyright (C) 1996-1997 Id Software, Inc.
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 distribut... |
/*++
Copyright (c) 1992-1997 Microsoft Corporation
Module Name:
trapthrd.c
Abstract:
Contains routines for trap processing thread.
Environment:
User Mode - Win32
Revision History:
10-Feb-1997 DonRyan
Rewrote to implement SNMPv2 support.
--*/
//////////////////... |
#include "nuimod.h"
/**
* Debug function; it just prints out the imported config file structure.
*
* @param event_description The structure that holds the configuration.
*/
static void print_ptr(event_description_s *event_description) {
DEBUG_PRINT(("print_ptr\n"));
unsigned int i;
unsigned int j;
printf... |
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <errno.h>
#include "midimonster.h"
#include "config.h"
#include "backend.h"
static enum {
none,
backend_cfg,
instance_cfg,
map
} parser_state = none;
typedef enum {
map_ltr,
map_rtl,
map_bidir
} map_type;
static backend* current_backend = NUL... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2010-2015 Intel Corporation
*/
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <stdint.h>
#include <argp.h>
#include <rte_common.h>
#include <rte_launch.h>
#include <rte_errno.h>
#include <rte_ether.h>
#include <rte_mempool.h>
#include <rt... |
#include "duktape.h"
#pragma push_macro("DUK_INVALID_INDEX")
#undef DUK_INVALID_INDEX
const duk_idx_t DUK_INVALID_INDEX;
#pragma pop_macro("DUK_INVALID_INDEX")
#pragma push_macro("DUK_VARARGS")
#undef DUK_VARARGS
const duk_int_t DUK_VARARGS;
#pragma pop_macro("DUK_VARARGS")
#pragma push_macro("duk_create_heap_defaul... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.