text stringlengths 3.12k 18.7k |
|---|
/*
* Copyright (C) 2018 Oracle. All Rights Reserved.
*
* Author: <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 option... |
/*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "xmasp.h"
#include "../mem.h"
#include "../archive.h"
#include "../stage.h"
#include "../main... |
/* FUNCTION list --- --- --- --- --- --- ---
*/
//~ RaDIaT1oN (2002-04-29):
//~ lowercase file search routines for linux
/* BASE headers --- --- --- --- --- --- --- */
//#include "agi.h"
#include "../agi.h"
/* LIBRARY headers --- --- --- --- --- --- --- */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>... |
/* The file is part of Snowman decompiler. */
/* See doc/licenses.asciidoc for the licensing information. */
#pragma once
#include <nc/common/Types.h>
typedef uint32_t cpu_type_t;
typedef uint32_t cpu_subtype_t;
struct mach_header {
uint32_t magic;
cpu_type_t cputype;
cpu_subtype_t cpusubtype;
uint3... |
/*
* loader.c
*
* This file is part of the Oxford Oberon-2 compiler
* 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:
*
* 1. Redistributions of source code must... |
/*
* =============================================================================
* HSA Runtime Conformance Release License
* =============================================================================
* The University of Illinois/NCSA
* Open Source License (NCSA)
*
* Copyright (c) 2014, Advanced Micro Devi... |
/*
*********************************************************************************************************
* LPC 2378
*
* (c) Copyright 2008, <NAME>, POLAND
* All Rights Reserved
*
*
* File: lib_... |
/*******************************************************************************
@file pwm_dma.c
@brief PWM DMA
@author <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
******************************************************************************/
/***************************************************************... |
/***************************************************************************
begin : Tue Oct 5 2004
copyright : (C) 2004 - 2009 by <NAME>
email : <EMAIL>
***************************************************************************/
/*********************************... |
/* evilwm - minimalist window manager for X11
* Copyright (C) 1999-2021 <NAME> <<EMAIL>>
* see README for license and other details. */
// Display management
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#includ... |
// Meridian 59, Copyright 1994-2012 <NAME> and <NAME>.
// All rights reserved.
//
// This software is distributed under a license that is described in
// the LICENSE file that accompanies it.
//
// Meridian is a registered trademark.
/*
* moveobj.c: Move objects other than the player.
*
* We occasionally hear from the... |
/*
** Purpose: UART_TO_CI Packet Table.
**
** Notes:
** None
**
** License:
** Written by <NAME>, licensed under the copyleft GNU General
** Public License (GPL).
**
** References:
** 1. OpenSatKit Object-based Application Developer's Guide.
** 2. cFS Application Developer's Guide.
**
*/
/*
** Include Files:... |
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
#include <polybench.h>
#include "deriche.h"
/**
* This version is stamped on May 10, 2016
*
* Contact:
* <NAME> <pouchet.ohio-state.edu>
* <NAME> <tomofumi.yuki.fr>
*
* Web address: http://polybench.sourceforge.net
*/
/*deriche.c: this fil... |
/*
* GF-Complete: A Comprehensive Open Source Library for Galois Field Arithmetic
* <NAME>, <NAME>, <NAME>,
* <NAME>, <NAME>, <NAME>, <NAME>.
*
* gf_methods.c
*
* Lists supported methods (incomplete w.r.t. GROUP and COMPOSITE)
*/
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#... |
enum {
VIEWSTATE_DUNGEON, // past here you can't move
VIEWSTATE_INVENTORY, // past here no magic or attacks
VIEWSTATE_SLEEPING, // past here no time passes
VIEWSTATE_FROZEN,
VIEWSTATE_CHAMPION,
VIEWSTATE_GUI,
MAX_VIEWSTATES
};
#define GUI_NO_GUI 0x00
#define GUI_WAN... |
/*
* Copyright (c) 2008 by the people mentioned in the file AUTHORS.
*
* This software is licensed under the terms mentioned in the file LICENSE.
*/
#include "version.h"
#include "disphelper.h"
#include <stdio.h>
#include <ctype.h>
#include <unistd.h>
#include <wchar.h>
#include <tchar.h>
#include <time.h>
#incl... |
#include "usb_lib.h"
#include "usb_prop.h"
#include "usb_desc.h"
#include "usb_istr.h"
#include "hw_config.h"
#include "usb_pwr.h"
#include "usart.h"
#include "string.h"
#include "stdarg.h"
#include "stdio.h"
//////////////////////////////////////////////////////////////////////////////////
//本程序只供学习使用,未经作者许可,不得用于其它任何用... |
/*
* Terminal Tic-Tac-Toe app for linux terminals featuring an
* intelligent cpu bot. Created using the ncurses library
*
* Created by <NAME>, November 2019
*/
#include <ncurses.h>
#include "tictactoe.h"
// cpu player difficulties
#define IMPOSSIBLE 0
#define EASY 1
// Key Codes
#define KEY_q 113
#define KEY... |
/* ====================================================================
* Copyright (c) 2006 Carnegie Mellon University. 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. Redistri... |
/**
******************************************************************************
* @file PlatformMFiAuth.c
* @author <NAME>
* @version V1.0.0
* @date 08-June-2014
* @brief This header contains function called by Apple WAC code that must be
* implemented by the platform. These functions... |
/**
Copyright (C) 2005 <NAME>, <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, me... |
#include <sys/types.h>
#include <sys/wait.h>
#include <signal.h>
#include "main.h"
#include "commands.h"
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <pwd.h>
#include <inttypes.h>
#include <dirent.h>
#include <time.h>
#include <fcntl.h>
#include <sys/utsname.h>
#include <sys/s... |
/*****************************************************************************
* Copyright (c) 2009, OpenJAUS.com
* All rights reserved.
*
* This file is part of OpenJAUS. OpenJAUS is distributed under the BSD
* license. See the LICENSE file for details.
*
* Redistribution and use in source and bin... |
#include "braille_common.h"
#define MAXBRROW 4
#define MAXBRCOL 8
#define MAXBRPHASE 2 // Up, Down
#define MAXBRBANK 2 // HiBank, LoBank
#define BRPHASEUP 0
#define BRPHASEDN 1
#define BRWAITSETU 3 // msec after set/reset each dot for UP
#define BRWAITSETD 12 // msec after set/reset each dot for DOWN
#define BRWAI... |
#include <stdio.h>
#include <unistd.h>
#include <math.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include "mp3.h"
#include "armci.h"
extern int na;
extern int nz;
extern double *dmvec,*svec,*bvec,*dvec,*amat,*xvec,*axvec,*rvec,*qvec;
extern int *ridx,*ci... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/*
* Loudness normalizer based on the EBU R128 standard
*
* Copyright (c) 2014, <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 ret... |
/*
* Project Secured MQTT Publisher
* Copyright 2021 Tracmo, Inc. ("Tracmo").
* Open Source Project Licensed under MIT License.
* Please refer to https://github.com/tracmo/open-tls-iot-client
* for the license and the contributors information.
*
*/
#include <string.h>
#include <lwip/sockets.h>
#include "esp_wi... |
/****************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_>... |
/*
* Copyright (C) 2002 <NAME> <<EMAIL>>
* Copyright (C) 2003-2006 <NAME>
* Copyright (C) 2006, 2007 <NAME>
*
* 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 2 of... |
/**
* \file main.c
*
* \brief C program for MD simulation of Lennard Jones clusters.
*
* \authors <NAME> (École des Ponts - ParisTech) \n
* <NAME> (École des Ponts - ParisTech)
*
* \copyright Copyright (c) 2016-2017, <NAME>, <NAME>, and École des Ponts - ParisTech \n
* All rights reserved. ... |
/*
* BSD LICENSE
*
* Copyright(c) 2007-2017 Intel Corporation. All rights reserved.
* 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... |
/* ChickenOS - i386/interrupt.c
* Borrows from Bran and JamesM's tutorials and
* the pintos teaching os
*/
#include <common.h>
#include <kernel/interrupt.h>
#include <stdio.h>
#include <kernel/thread.h>
#include <device/console.h>
#include <kernel/memory.h>
#include <kernel/hw.h>
#include "i386_defs.h"
#include <a... |
#define _GNU_SOURCE
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <ctype.h>
#include "baos.h"
#include "huffman.h"
#include "htfc.h"
struct inner {
uint8_t *buff;
size_t len;
size_t c;
char current[500]; // XXX handle resizing
};
static void inner_init(struct inner *inner, uint8_t *buff, si... |
/* GTK - The GIMP Toolkit
* Copyright (C) 1995-1997 <NAME>, <NAME> and <NAME>
*
* 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 2 of the License, or (at your option... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "soundfunctions.h"
/*
IMPORTANT: You can only concatenate files if they have the same samplerate and same number of channels.
You must also give filenames INCLUDING the extension. (e.g. "filename.wav" cannot be passed as
"filename" It m... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: main.c
* Author: ivano
*
* Created on 20 agosto 2016, 16.25
*/
#include <stdio.h>
#include <stdlib.h>
#include <li... |
/*
* hidattack v0.1
*
* (c) <NAME> <<EMAIL>>
* http://www.mulliner.org/bluetooth/
*
* License: GPLv2
*
*/
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <malloc.h>
#include <syslog.h>
#include <signal.h>
#include <getopt.h>
#include <sys/poll.h>
... |
#include "kernel.h"
#define MAX_LENGTH 40
struct MOUSE_DEC{
unsigned char buf[3], phase;
int x,y,btn;
};
extern struct FIFO8 keyfifo;
extern struct FIFO8 mousefifo;
void enable_mouse(struct MOUSE_DEC *mdec);
int mouse_decode(struct MOUSE_DEC *mdec, unsigned char dat);
void init_keyboard(void);
void main(){
str... |
/*
* Android Event Injector
*
* Copyright (c) 2013 by <NAME> , <EMAIL>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later... |
#include "Camera.h"
#include "ExtMath.h"
#include "Game.h"
#include "Window.h"
#include "GraphicsAPI.h"
#include "Funcs.h"
#include "Gui.h"
#include "Entity.h"
Real32 Camera_AdjustHeadX(Real32 value) {
if (value >= 90.00f && value <= 90.10f) return 90.10f * MATH_DEG2RAD;
if (value >= 89.90f && value <= 90... |
/*-
* Copyright (c) 2019
* <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 above copyright
* notice, this lis... |
/*
* Copyright (c) 1988 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* net_mac.h 2.0 (2.11BSD) 1997/2/14
*/
struct socket *asoqremque();
#define ASOQREMQUE(so, n) \
KScall(asoqremque, sizeof(st... |
/*
* Copyright (c) 2016, <NAME>
*
* 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 DISCLAIM... |
#include <stdlib.h>
#include <stdio.h>
#include <setjmp.h>
#include <pthread.h>
#include <unistd.h>
#include <netinet/in.h>
#include <sys/syscall.h>
#include <sys/socket.h>
#include <sys/mman.h>
#ifndef _KERNEL
#define UNDEFKERNEL
#define _KERNEL
#endif
#include <sys/param.h>
#include <sys/proc.h>
#include <sys/ev... |
#include <sys/ioctl.h>
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>
#include "ite/itp.h"
#include "ite/itu.h"
#include "SDL/SDL.h"
#include "dbgutil.h"
// -------------------------------------------------------
// DEFines
// -------------------------------------------------------
#define IN_FILE ... |
#include "Skinny128128AVX2.h"
#include <string.h>
extern void pack_key(u256 x[32], const unsigned char *in);
const unsigned char RC[62] = {
0x01, 0x03, 0x07, 0x0F, 0x1F, 0x3E, 0x3D, 0x3B, 0x37, 0x2F,
0x1E, 0x3C, 0x39, 0x33, 0x27, 0x0E, 0x1D, 0x3A, 0x35, 0x2B,
0x16, 0x2C, 0x18, 0x30, 0x21, 0x02, 0x05, 0x0B... |
/* Copyright 2019 SiFive, Inc */
/* SPDX-License-Identifier: Apache-2.0 */
#include <stdint.h>
#include <stdio.h>
#include <stdbool.h>
#include <sys/time.h>
#include <dirent.h>
#include <string.h>
#include "common.h"
#include "conv_params.h"
#include "dense_params.h"
#include "pred_params.h"
void Conv(uint8_t img[1]... |
/*
* Copyright 2018, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the f... |
/* tagdb.c
=======
Author R.J.Barnes
*/
/*
LICENSE AND DISCLAIMER
Copyright (c) 2012 The Johns Hopkins University/Applied Physics Laboratory
This file is part of the Radar Software Toolkit (RST).
RST is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <time.h>
#include "time64.h"
#define STD_OFFSET 0
#define DST_OFFSET 1
static bool isLeapYear(int year)
{
year += 1900;
bool leapYear = !(year & 0x3);
if (year >= 2100)
{
if (year % 100... |
/*
* Library to read and write streams. Valuepair list and search. Different character encodings.
*
* Copyright (C) 2009, 2010, 2013, 2014, 2015 and 2016. <NAME>
*
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
* disclaimer in the documentat... |
#pragma once
#include <stdint.h>
#include <stdbool.h>
typedef enum
{
FRMT_RGBA = 0,
FRMT_YUV = 1,
FRMT_COLORINDEX = 2,
FRMT_IA = 3,
FRMT_I = 4,
} imageformat_t;
typedef enum
{
BPP_4 = 0,
BPP_8 = 1,
BPP_16 = 2,
BPP_32 = 3
} bpp_t;
typedef struct
{
... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright 2018 - <NAME>, <NAME> - University of Trento
*
* 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 Soft... |
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <ctype.h>
#include <time.h>
#define ALLOWED_PATH "/hello.html"
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define LEN(a) (si... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "loadgms.h"
#include "gmomcc.h"
#include "gevmcc.h"
#include "GamsNLinstr.h"
/** Writes model instance into a .gms file of given name.
*
* The function calls GAMS/ConvertD to write the instance.
*/
static
RETURN dumpinstance(
... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#include <utf8proc.h>
#include "lk_common.h"
#include "lk_tree.h"
int skip_failed_pkg = 1;
#include "unittest.h"
int tests_run = 0;
int tests_fail = 0;
struct lk_word {
struct lk_wor... |
/*
Copyright (c) 2013, Broadcom Europe Ltd
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 copyright
notice, th... |
#include "hid_report_descr_parser.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "log.h"
/*
* HID report descriptor item type (prefix bit 2,3)
*/
#define HID_ITEM_TYPE_MAIN 0
#define ... |
/*
* Copyright 2012, 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of cond... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "board.h"
#include "engine.h"
#include "joseki/base.h"
#include "move.h"
#include "playout/moggy.h"
#include "playout/light.h"
#include "montecarlo/internal.h"
#include "montecarlo/montecarlo.h"
#include "playout.h"
#include "timei... |
/*
* vmipi.c
*
* Copyright (c) 2017, NVIDIA CORPORATION, All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distribu... |
#include "f2c.h"
#include "blaswrap.h"
/* Table of constant values */
static doublereal c_b9 = 1.;
static doublereal c_b10 = 0.;
static doublereal c_b13 = -1.;
/* Subroutine */ int dget51_(integer *itype, integer *n, doublereal *a,
integer *lda, doublereal *b, integer *ldb, doublereal *u, integer *
ldu, doublerea... |
/* -----------------------------------------------------------------
* Programmer(s): <NAME> @ SMU
* -----------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-2022, Lawrence Livermore National Security
* and Southern Methodist University.
* All rights reserv... |
/* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* 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 re... |
/*
* m_police.c Parse/print policing module options.
*
* This program is free software; you can u32istribute 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.
*
* ... |
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <iron/types.h>
#include <iron/process.h>
#include <iron/time.h>
#include <iron/mem.h>
#include <iron/log.h>
#include <iron/utils.h>
#include <iron/datastream.h>
#include ... |
/* Copyright (c) <NAME>, 1997. */
/* This program is freely distributable without licensing fees
and is provided without guarantee or warrantee expressed or
implied. This program is -not- in the public domain. */
/* editgrid demonstrates how a simple 2nd order grid mesh or a more
complex 4th order grid me... |
/*!
* @copyright SmartRay GmbH (www.smartray.com)
*/
#include <string.h>
#include <stdbool.h>
#include <sr_api/sr_api.h>
#include "../util/util.h"
static uint32_t sZILCounter = 0;
int onZILData( SRSensor* aSensor
, ImageDataType aImageType
, int aHeight
,... |
/****************************************************************************
*
* Copyright 2016 Samsung Electronics All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... |
/*
* main.c
*
* Created on: 03 de Junho de 2020
* Author: <NAME>
*/
#include <string.h>
#include <stdio.h>
#include "main.h"
#include "stm32f1xx_hal_tim.h"
void SystemClock_Config(uint8_t clock_freq);
void TIMER3_Init(void);
void GPIO_Init(void);
void Error_Handler(void);
TIM_HandleTypeDe... |
/**
* Copyright (c) 2016 - 2017, Nordic Semiconductor ASA
*
* 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,... |
/*-
* Copyright (c) 2005 <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,
*... |
/* Generated by CIL v. 1.3.7 */
/* print_CIL_Input is true */
int Cur_Vertical_Sep ;
int High_Confidence ;
int Two_of_Three_Reports_Valid ;
int Own_Tracked_Alt ;
int Own_Tracked_Alt_Rate ;
int Other_Tracked_Alt ;
int Alt_Layer_Value ;
int Positive_RA_Alt_Thresh__0 ;
int Positive_RA_Alt_Thresh__1 ;
int Positiv... |
#include <odroid_system.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "rg_emulators.h"
#include "rg_favorites.h"
#include "gui.h"
#include "githash.h"
#include "main.h"
#include "gw_buttons.h"
static const uint8_t *flash_manufacturer... |
// SPDX-License-Identifier: GPL-2.0+
/*
* I2C multi-instantiate driver, pseudo driver to instantiate multiple
* i2c-clients from a single fwnode.
*
* Copyright 2018 <NAME> <<EMAIL>>
*/
#include <linux/acpi.h>
#include <linux/bits.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#in... |
#include <stdio.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <time.h>
#include <string.h>
#include <stdarg.h>
#include "darr.h"
/* MINCTEST - Minimal C Test Library - 0.2.0
* ---------> MODIFIED FOR DARR <----------
* Copyright (c) 2014-2017 <NAME>
*
* http://CodePlea.com
*
... |
#include "rbtree.h"
#include "assert.h"
#include "mem.h"
#include <stddef.h>
#include <stdio.h>
#define T RBTree_T
enum Color { black = 0, red = 1 };
enum Direction { left = 0, right = 1 };
struct RBTree_T {
const void *data;
unsigned int color : 1;
T children[2];
};
T RBTree_new(const void *data) {
... |
/* -*- c-basic-offset:4; indent-tabs-mode:nil -*- vi: set sw=4 et: */
/*
// Copyright (c) 2016, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code m... |
/*
comedi/drivers/cb_pcimdda.c
Computer Boards PCIM-DDA06-16 Comedi driver
Author: <NAME> <<EMAIL>>
COMEDI - Linux Control and Measurement Device Interface
Copyright (C) 2000 <NAME> <<EMAIL>>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU... |
/* $OpenBSD: aztech.c,v 1.4 2002/01/23 20:30:38 mickey Exp $ */
/* $RuOBSD: aztech.c,v 1.11 2001/10/20 13:23:47 pva Exp $ */
/*
* Copyright (c) 2001 <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification... |
/*
* ESPRESSIF MIT License
*
* Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
*
* Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case,
* it is free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"),... |
#include <fcntl.h>
#include <signal.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/syscall.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
#include "liburing.h"
#include "../src/syscall.h"
static uint64_t current_time_ms(void)
{
struct timespec ts;... |
/*
FreeRTOS.org V5.3.0 - Copyright (C) 2003-2009 <NAME>.
This file is part of the FreeRTOS.org distribution.
FreeRTOS.org 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 and modified by th... |
//------------------------------------------------------------------------------
//
// Name: vadd.c
//
// Purpose: Elementwise addition of two vectors (c = a + b)
//
// HISTORY: Written by <NAME>, December 2009
// Updated by <NAME> and <NAME>, October 2012
// Updated by <NAME... |
/* ====================================================================
* Copyright (c) 1996-2000 Carnegie Mellon University. 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. Red... |
/*
american fuzzy lop++ - high-performance binary-only instrumentation
-------------------------------------------------------------------
Originally written by <NAME> <<EMAIL>> and
<NAME>
TCG instrumentation and block chaining support by <NAME>
... |
// Copyright 2017 The Fuchsia 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 <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <netinet/in.h>
#include <stdbool.h>
#include <stdint.h>
#includ... |
/*
* Copyright (C) 2019-2020 Amazon.com, Inc. or its affiliates. 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 limitatio... |
#include "geminc.h"
#include "gemprm.h"
#include "vfcmn.h"
#define EOL "\n"
#define LINE_LEN 71
extern SpcInfo_t spcinfo;
void vfwwcp ( int *iret )
/************************************************************************
* vfwwcp *
* ... |
// Copywrite (c) 2019 <NAME>
#include <fcntl.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
#include <zlib.h>
#if !__APPLE__
#include <time.h>
#endif
#include "frak_args.h"
#include "frakl/fractal.h"
#include "frakl/tiff... |
/*
* Copyright (c) 1991 <NAME>
*
* Disclaimer: No guarantees of performance accompany this software,
* nor is any responsibility assumed on the part of the authors. All the
* software has been tested extensively and every effort has been made to
* insure its reliability.
*/
/*
* collage.c - combine 2 or more... |
static char opg_driver_name[] = "OPiPad Gadget HID Driver for NEOGEO mini";
#define OPG_USB_VERSION cpu_to_le16(0x110)
#define OPG_DEVICE_CLASS USB_CLASS_PER_INTERFACE
#define OPG_DEVICE_SUB_CLASS 0
#define OPG_DEVICE_PROTOCOL 0
#define OPG_VENDOR_ID 0x20bc
#define OPG_PRODUCT_ID 0x5500
#define NO_IDX_PRODUCT 1
#def... |
//
// anf_gpu.c
// sat
//
// Created by <NAME> on 04/07/2018.
//
#include <stdio.h>
#include <stdlib.h>
#include "anf_gpu.h"
#define MAX_SOURCE_SIZE (0x1000000)
/*
* Global OpenCL Variables
*/
// Device ID
cl_device_id device_id = NULL;
// Context
cl_context context = NULL;
// Command Queue
cl_command_queu... |
/**
* Copyright (c) 2014 - 2020, Nordic Semiconductor ASA
*
* 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, th... |
// SPDX-License-Identifier: GPL-2.0
/*
* handling diagnose instructions
*
* Copyright IBM Corp. 2008, 2011
*
* Author(s): <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#include <linux/kvm.h>
#include <linux/kvm_host.h>
#include <asm/pgalloc.h>
#include <asm/gmap.h>
#include <asm/virtio-ccw.h>
#include... |
/* F B - P N G . C
* BRL-CAD
*
* Copyright (c) 1998-2014 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as ... |
/**
* \file emac_cpsw.c
*
* \brief EMAC Driver APIs implementation specific to K2G.
*
* The file implements the Ethernet Driver API which are local of the EMAC driver and
* setup the CPSW sub-system.
*/
/*
* Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
*
* Redistribution a... |
//========================================================================
// GLFW 3.3 Linux - www.glfw.org
//------------------------------------------------------------------------
// Copyright (c) 2002-2006 <NAME>
// Copyright (c) 2006-2016 <NAME> <<EMAIL>>
//
// This software is provided 'as-is', without any expres... |
/*
* Copyright (c) 2017 BayLibre, SAS
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <errno.h>
#include <string.h>
#define SYS_LOG_LEVEL SYS_LOG_LEVEL_DEBUG
#include <logging/sys_log.h>
#include <zephyr.h>
#include <device.h>
#include <stdio.h>
#include <misc/util.h>
#include <i2c.h>
#include <drivers/i2c/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.