text stringlengths 3.12k 18.7k |
|---|
/* exp10.c
*
* Base 10 exponential function
* (Common antilogarithm)
*
*
*
* SYNOPSIS:
*
* double x, y, exp10();
*
* y = exp10( x );
*
*
*
* DESCRIPTION:
*
* Returns 10 raised to the x power.
*
* Range reduction is accomplished by expressing the argument
* as 10**x = 2**n 10**f, with |f| ... |
#include "filesys.h"
#include "x86_desc.h"
#include "lib.h"
//dentry_t* dentry_array;
//boot_t* boot_block;
//inode_t* inode_array;
//data_block_t* data_block_array;
//dentry_t file_dentry;
//file_descrip_t file_array[8]; // from appendix a
/*
* init_filesys
* This function fills in the dentry_t block passed in wit... |
#include <stdio.h>
#include <string.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <stdlib.h>
#include <netinet/tcp.h>
#include "jtag_common.h"
// TODO: Networking on win32 not yet supported (winsock2.h et al.)
// Default TCP port where to listen for incoming OpenOCD con... |
/****************************************************************************
http://retro.moe/unijoysticle2
Copyright 2019 <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.a... |
/********************************************************
** Authors: <NAME>, <EMAIL>
** <NAME>, <EMAIL>
** <NAME> (DTNbox project supervisor), <EMAIL>
**
** Copyright 2018 University of Bologna
** Released under GPLv3. See LICENSE.txt for details.
**
********************************... |
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2002-2013
* <NAME> <<EMAIL>>
*
* based on the files by
* <NAME>, Enterasys Networks, <EMAIL>
* and
* <NAME>, <EMAIL>
*/
#include <common.h>
#include <log.h>
#include <linux/delay.h>
#include <asm/arch/imx-regs.h>
#include <asm/gpio.h>
#include <asm/io.h>
... |
/*
* (C) Copyright 2005- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
* virtue of its status as an int... |
// -*-Mode: C++;-*- // technically C99
// * BeginRiceCopyright *****************************************************
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research and development of
// HPCT... |
/* Copyright Joyent, Inc. and other Node contributors. 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
* righ... |
/***********************************************************************
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... |
/* Simple program: draw as many random objects on the screen as possible */
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "common.h"
#define SWAP(typ,a,b) do{typ t=a;a=b;b=t;}while(0)
#define NUM_OBJECTS 100
static CommonState *state;
static int num_objects;
static SDL_bool cycle_color;
static... |
#include <stdio.h>
#include <string.h>
#include <prjParams.h>
#include <prjCommon.h>
#include <hal/adc.h>
#include <hal/lcd.h>
#include <hal/motor.h>
#include <hal/servo.h>
#include <hal/buzzer.h>
#include <hal/zigbee.h>
#include <hal/power.h>
#include <guidanceSystem.h>
#include <fileSystem.h>
#include <... |
/*
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 <stdbool.h>
#include <stdio.h>
#include <string.h>
#include "common.h"
#include "scanner.h"
bool test2()
{
bool passed = true;
int err_value;
token_type rec_types[120];
char *rec_values[120];
int rec_lines[120];
token_type exp_types[] = {TOKEN_KEYWORD, TOKEN_STRING, TOKEN_KEYWORD, T... |
//------------------------------------------------------------------------------
// blend-emsc.c
// Test blend factor combinations.
//------------------------------------------------------------------------------
#define GL_GLEXT_PROTOTYPES
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#define HANDMADE_MATH_IMPLEM... |
/*
* Copyright 2004-2009 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/gpl-li... |
/*
* Copyright 2009-2016 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at:
*
* http://aws.amazon.com/apache2.0/
*
* or in the ... |
#include <unistd.h>
#include <assert.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sched.h>
#include "../cacheutils.h"
size_t array[5*1024];
size_t hit_histogram[600];
size_t miss_histogram[600];
uint8_t eviction[64*1024*1024];
uint8_t* eviction_ptr;
int pagemap = -1;
ui... |
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2015 Savoir-faire Linux Inc.
*
* Derived from MX51EVK code by
* Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/io.h>
#include <asm/gpio.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/iomux-mx51.h>
#include <env.h>
#include <linux/... |
/*----------------------------------------------------------------------------*/
/* Xymon webpage generator tool. */
/* */
/* Copyright (C) 2004-2011 <NAME> <<EMAIL>> */
/* ... |
/*!
\file main.c
\brief SHT3x Temp/Hum sensor example for the IAR RISC-V GD32V Eval board
\version 20200709
*/
/*
Copyright (c) 2020, IAR Systems AB.
See LICENSE.md for detailed license information.
*/
#include <stdio.h>
#include "iar-risc-v-gd32v-eval.h"
#include "systick.h"
#include "sht3x.h"
#... |
#include "fix32.h"
/* Subtraction and addition with overflow detection.
* The versions without overflow detection are inlined in the header.
*/
#ifndef FIXMATH_NO_OVERFLOW
fix32_t fix32_add(fix32_t a, fix32_t b)
{
// Use unsigned integers because overflow with signed integers is
// an undefined operatio... |
// Generated by HLC 4.2.1 (HL v4)
#define HLC_BOOT
#include <hlc.h>
#include <h3d/prim/Primitive.h>
#include <h3d/col/Bounds.h>
extern String s$not_implemented_for_;
String Std_string(vdynamic*);
String String___add__(String,String);
vdynamic* haxe_Exception_thrown(vdynamic*);
#include <h3d/Engine.h>
extern String s$n... |
/*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#include <assert.h>
#include "git2/clone.h"
#include "git2/remote.h"
#include "git2/revparse.h"
#includ... |
/* gcc -O3 -lm -lSDL filename.c
*/
#include <SDL/SDL.h>
#include <SDL/SDL_main.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#define PI_OVER_180 (0.01745329252)
#define DEG_TO_RAD(d) ((d)*PI_OVER_180)
#define OUT_WIDTH 800
#define OUT_HEIGHT 6... |
#include <stdio.h>
#include <stdlib.h>
#include "F80Field.h"
/*
Makes a new field element, given its coeficients
*/
f80FELT newF80FELT(f16FELT c0, f16FELT c1, f16FELT c2, f16FELT c3 , f16FELT c4) {
f80FELT new;
new.coef[0] = c0;
new.coef[1] = c1;
new.coef[2] = c2;
new.coef[3] = c3;
new.coef[4] = c4;
return ne... |
// Copyright 2010-2012 RethinkDB, all rights reserved.
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <netinet/ip.h>
#include <limits.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <netd... |
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 <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 ... |
/*
* Copyright (C) 2011 Samsung Electronics Co.Ltd
* Authors: <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* optio... |
/**
*
* @file testing_cher2k.c
*
* PLASMA testing routines
* PLASMA is a software package provided by Univ. of Tennessee,
* Univ. of California Berkeley and Univ. of Colorado Denver
*
* @version 2.6.0
* @author <NAME>
* @date 2010-11-15
* @generated c Tue Jan 7 11:45:19 2014
*
**/
#include <stdlib.h>
#... |
/*
This version of driver follows the sleep/wakeup paradigm introduced in $5.6 Process Synchronization.
*/
#include "types.h"
#include "display.h"
#include "string.h"
#include "pl050.h"
//#include "pl011.h"
#include "versatilepb.h"
#include "debug.h"
// defined in ts.S
// synchoronize methods for the upp... |
// SPDX-License-Identifier: GPL-2.0+
/*
* NVIDIA Tegra20 GPIO handling.
* (C) Copyright 2010-2012,2015
* NVIDIA Corporation <www.nvidia.com>
*/
/*
* Based on (mostly copied from) kw_gpio.c based Linux 2.6 kernel driver.
* <NAME> (<EMAIL>)
*/
#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <e... |
/*
* Copyright (c) 2020 roleo.
*
* 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, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY... |
/*
* misc.c
*
* This is a collection of several routines from gzip-1.0.3
* adapted for Linux.
*
* malloc by <NAME> 1993 and <NAME> 1994
* puts by <NAME> 1993, better puts by <NAME> 1995
* High loaded stuff by <NAME> & <NAME>, Feb. 1996
*/
#include <linux/screen_info.h>
#include <asm/io.h>
#include <asm/page... |
/* brushlib - The MyPaint Brush Library
* Copyright (C) 2012 <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 ... |
/* cpu.h x86 cpu-description header-file */
/* (c) in 2005-2006 by <NAME> */
#define LITTLEENDIAN 1
#define BIGENDIAN 0
#define VASM_CPU_X86 1
#define MNEMOHTABSIZE 0x8000
/* maximum number of operands in one mnemonic */
#define MAX_OPERANDS 3
/* maximum number of mnemonic-qualifiers per mnemonic */
#define MAX_QUAL... |
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2001-2006 Free Software Foundation Europe e.V.
Copyright (C) 2011-2012 Planets Communications B.V.
Copyright (C) 2013-2013 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of... |
/******************************************************************************
* @file main.c
* @brief
* Demonstrate how to implement a composite device.(VCOM and HID Transfer)
* It supports one virtual COM port and transfers data between USB device and PC through USB HID interface.
*... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2014-2018 Broadcom
* All rights reserved.
*/
#include <rte_malloc.h>
#include "bnxt.h"
#include "bnxt_cpr.h"
#include "bnxt_hwrm.h"
#include "bnxt_ring.h"
#include "hsi_struct_def_dpdk.h"
/*
* Async event handling
*/
void bnxt_handle_async_event(struct bnx... |
/*
* IFF (.iff) file demuxer
* Copyright (c) 2008 <NAME> <<EMAIL>>
* Copyright (c) 2010 <NAME> <<EMAIL>>
* Copyright (c) 2010 <NAME> <<EMAIL>>
*
* This file is part of Libav.
*
* Libav is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as pu... |
/*-
* Public Domain 2014-2017 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary,... |
// Copyright 2019 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 applic... |
/**
* \file
* \brief Buffer cache daemon.
*/
/*
* Copyright (c) 2011, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Sy... |
/*
* generic mmc spi driver
*
* Copyright (C) 2010 <NAME> <<EMAIL>>
* Licensed under the GPL-2 or later.
*/
#include <common.h>
#include <errno.h>
#include <malloc.h>
#include <part.h>
#include <mmc.h>
#include <spi.h>
#include <crc.h>
#include <linux/crc7.h>
#include <asm/byteorder.h>
/* MMC/SD in SPI mode repor... |
/*
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech
Description: Target board general functions implementation
License: Revised B... |
/*
* Author: <NAME>
* Copyright (c) 2017, Private Octopus, Inc.
* All rights reserved.
*
* Permission to use, copy, modify, and 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.
*
* THIS SOFTWARE ... |
/*
* File Name: outputQuery.c
* Purpose: This file contains three routines which handle the output
* of the index queries. The first routine initializes the
* the output by saving the output FILE ptr which is needed
* by the output buffer for displ... |
/*
* OpenSplice DDS
*
* This software and documentation are Copyright 2006 to TO_YEAR PrismTech
* Limited, its affiliated companies and licensors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... |
/*
* MikroSDK - MikroE Software Development Kit
* Copyright© 2020 MikroElektronika d.o.o.
*
* 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... |
/* $NetBSD: pciide_opti_reg.h,v 1.2 2000/06/07 20:42:53 scw Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modi... |
#include <stdbool.h>
#include <time.h>
#include <sys/time.h>
#include "graph.h"
void substring(char s[], char sub[], int p, int l) {
int c = 0;
while (c < l) {
sub[c] = s[p + c - 1];
c ++;
}
sub[c] = '\0';
}
int ask_command(char airport1 [], char airport2 []){
char command[128];
char * on... |
/*
* 43BSD_FILE.C - 4.3BSD compatibility file syscalls
*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
* (c) UNIX System Laboratories, Inc.
* All or some portions of this file are derived from material licensed
* to the University of California by American Telep... |
/*
* 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 Apache Licens... |
/* -*- C -*- */
/*
* Copyright (c) 2012-2020 Seagate Technology LLC and/or its Affiliates
*
* 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... |
#include "types.h"
// === [ Overlay ID d ] ===
// address: 0x801310B0
// size: 0x19000
extern unsigned char map_buf[102400];
// address: 0x8014A0B0
// size: 0x54
extern unsigned short *imgbuf[21];
// address: 0x8014A104
// size: 0x640
extern struct POLY_FT4 br[10][2][2];
// address: 0x8014A744
// size: 0x640
exter... |
/*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. 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.... |
#include "../imports.h"
#include "library/STM32F10x_StdPeriph_Driver/inc/misc.h"
#include "DS213HwDriver.h"
#define max(a,b) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a > _b ? _a : _b; })
#define min(a,b) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a < _b... |
#include "sample_app_events.h"
#include "sample_app_version.h"
#include "sample_app.h"
SAMPLE_APP_Data_t SAMPLE_APP_Data;
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * **/
/* SAMPLE_APP_Main() -- Application entry point and main process loop */
/* ... |
#include "phase.h"
// The table below contains information about the available tokens. The order
// of the table corresponds to the order of the token enumeration.
#define ENTRY( text, flags ) \
{ text, ARRAY_SIZE( text ) - 1, flags }
#define BLANK ""
static struct token_info g_table[] = {
// 0
ENTRY( BLANK, ... |
/******************************************************************************
*
* Copyright (C) 2014 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://ww... |
/* How to manipulate linked lists. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define INDEX_LEN 9
#define YEAR_LEN 4
#define PATH_LEN 30
typedef struct book {
char author[40];
char title[30];
short year;
struct book *next;
} book_t;
void enter_string(char *buffer, const int max_siz... |
/* integration/tests.c
*
* Copyright (C) 1996, 1997, 1998, 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... |
#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include "vector.h"
#include "headers.h"
#include "string.h"
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include "message_buffer.h"
char output_path[] = "scheduler.log";
void action_log(FILE *file, PCB *... |
/** AGENDA EM LIMGUAGUEM C
*
* Agenda feita para obtenção de nota parcial na mateira de 'Algoritmos e Estrutura de Dados'.
*
* @autor <NAME>
* Aluno do 3° periodo do curso de Bacharel em Ciências da Computação na Faculdade Pitágoras
*
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <conio... |
/*
* 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... |
/* Copyright 2003-2005 <NAME> - 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 to use,
* ... |
/**************************************************************************//**
* @file main.c
* @version V0.10
* @brief
* Demonstrate USCI_SPI data transfer with PDMA.
* USCI_SPI0 will be configured as Master mode.
* Both TX PDMA function and RX PDMA function will be enabled.
... |
#include <bitcoin/block.h>
#include <bitcoin/chainparams.h>
#include <ccan/cast/cast.h>
#include <ccan/crypto/sha256/sha256.h>
#include <ccan/mem/mem.h>
#include <common/bech32.h>
#include <common/bech32_util.h>
#include <common/bolt12.h>
#include <common/bolt12_merkle.h>
#include <common/features.h>
#include <secp256k... |
///////////////////////////////////////////////////////////////////////////
/// SAIMscannerV3_desc.h ////
//// ////
//// Device / configuration descriptors FOR USB 4 channel controller ////
//// bas... |
/*
* Copyright (c) 2014-2015 Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of condition... |
/*
* PlayerViewer
* Copyright (C) <NAME> 2002
*
* 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.
*
* Thi... |
/*
* Copyright 2012 Red Hat 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, modify, merge, publish, d... |
/*-------------------------------------------------------------------------
*
* evtcache.c
* Special-purpose cache for event trigger data.
*
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* sr... |
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
* Copyright (c) 2007 The Trustees of Indiana University.
* All rights reserved.
* Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2011-2013 Los Alamos National Security, LLC. All
* ri... |
/*
* 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... |
/* Remote debugging interface for ABug Rom monitor for GDB, the GNU debugger.
Copyright 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
Written by <NAME> of Cygnus Support
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the t... |
/* $Id: probe.c,v 1.1.1.4 2003/10/14 08:08:31 sparq Exp $
* Parallel port device probing code
*
* Authors: <NAME>, <EMAIL>
* <NAME> <<EMAIL>>
*/
#include <linux/parport.h>
#include <linux/ctype.h>
#include <asm/uaccess.h>
static struct {
char *token;
char *descr;
} classes[] = {
{ "", ... |
/* TA-LIB Copyright (c) 1999-2008, <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 co... |
//
// control.c
// SqueezeButtonPi
//
// The actual control code
// - Configure buttons and rotary encoders
// - Send commands when buttons and rotary encoders are used
//
// Created by <NAME> on 02.02.17.
//
//
// Copyright (c) 2017, <NAME>, PenguinLovesMusic.com
// All rights reserved.
//
// Redistribution a... |
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <pthread.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <unistd.h>
#include <ctype.h>
#include <sys/time.h>
#include "server.h"
#include "leaderboard.h"
#include "protocol.h"
#include "board.h"
... |
#include <board.h>
#include <sensors/sensors.h>
#include <errno.h>
#include <gpio.h>
#include <scheduler.h>
#include <semaphore.h>
#include <spi.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <vfs.h>
#include <bsec/inc/bsec_datatypes.h>
/*******************************************************... |
#include <graphx.h>
#include <stdio.h>
#include <stdint.h>
#include <keypadc.h>
#include "items.h"
#include "text.h"
#include "savegame.h"
#include "data.h"
#include "misc.h"
#include "stats.h"
#include "map.h"
#include "menu.h"
void HealHp(uint8_t index, uint16_t amount);
void HealStatus(uint8_t index, uint8_t type)... |
// Вариант 1
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <locale.h>
typedef int bool;
#define true 1
#define false 0
struct boot_block {
unsigned char bootstrap[3];
unsigned char manufacturer[8];
unsigned short n_bytes_per_block;
unsigned char n_blocks_per_a... |
/*-
* Copyright (c) 2010 <NAME>
* Copyright (c) 1998, 2010 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... |
/*
* Blacklist Copyright 2013 Regents of the University of Michigan
*
* 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
*/
#include "blacklist.h"... |
/*
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "driver/gptimer.h"
#include "driver/pulse_cnt.h"
#include "driver/mcpwm.h"
#include... |
/***********************************************************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products.
* No other uses are authorized. This software is owned by Renesas Elect... |
/*
* Copyright (c) 1986 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#include "param.h"
#include "systm.h"
#include "signalvar.h"
#include "user.h"
#include "proc.h"
#include "buf.h"
#include "map... |
/* zmlri.f -- translated by f2c (version 20190311).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of ... |
/*
* 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,
* distribute, sublicense, and/or s... |
// SPDX-License-Identifier: GPL-2.0+
/*
* efi_selftest_pos
*
* Copyright (c) 2018 <NAME> <<EMAIL>>
*
* Test the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.
*
* The following services are tested:
* OutputString, TestString, SetAttribute.
*/
#include <efi_selftest.h>
#include <linux/libfdt.h>
static const struct efi_syst... |
/*
TwoCats C API header file
Written in 2014 by <NAME> <<EMAIL>>
To the extent possible under law, the author(s) have dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.
You should have receiv... |
#include <stdlib.h>
/*
* This is a rather simple malloc implementation (written by foliagecanine)
* It is not particularly efficient with small allocations, but handles large ones fairly well.
*
* When an allocation is made, it attempts to make a new allocation in the remaining unused space.
* If there is not eno... |
#include <ccp4io_adaptbx/printf_wrappers.h>
/*
ccp4_program.c: Utilies to set and fetch program information.
Copyright (C) 2001 CCLRC, <NAME>
This library is free software: you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
version 3, modified in... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <unistd.h>
#define PORT 4244
#define SLOT_NUM 10
struct proxy_link;
struct proxy_link {
struct proxy_link *next;
uint16_t id;
char num;
char ... |
#include <string.h>
#include "mixer.h"
#include "esp_log.h"
#include "util.h"
#include "eq_iir_filter.h"
#include "audio_mem.h"
#include "math.h"
static const char *TAG = "mixer";
typedef struct mixer_t {
size_t max_sample;
uint8_t **inbuf;
uint8_t *outbuf;
float *gain_ratios;
mixer_profile profil... |
#include "private.h"
static uint8_t bp = 0xCC;
static void track_coverage(code_tracer_t *code_tracer, uint64_t cur_loc, uint64_t va)
{
cur_loc = (cur_loc >> 4) ^ (cur_loc << 8);
cur_loc &= CODE_TRACER_MAP_SIZE - 1;
addr_t coverage_point = cur_loc ^ code_tracer->prev_loc;
code_tracer->map[coverage_poi... |
#include <string.h>
#include "u2f-vdev.h"
#include "crypto.h"
#include "raw.h"
#include "../log.h"
/* Params len */
#define U2F_CHA_PARAM_SIZE 32
#define U2F_APP_PARAM_SIZE 32
/**
** \brief Registration parameter
*/
struct registration_params
{
/** SHA-256 client data */
uint8_t challenge_param[U2F_CHA_PARA... |
/* Microsoft COFF object file format */
#include <time.h>
#include <stdint.h>
#ifdef _MSC_VER
#pragma pack(push,1)
#elif defined(__DMC__)
#pragma ZTC align 1
#endif
/***********************************************/
struct BIGOBJ_HEADER
{
uint16_t Sig1; // IMAGE_FILE_MACHINE_UNKNOWN
uint16_t ... |
/*
mediastreamer2 library - modular sound and video processing and streaming
Copyright (C) 2012 Belledonne Communications, Grenoble, France
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 ver... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.