text stringlengths 5.8k 28.2k |
|---|
#include "test_items.h"
#include "test_item_isp.h"
#include "io_api.h"
//=============================================================================
// Constant Definition
//=============================================================================
//=========================================================... |
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include "chain.h"
#include "opal.pb-c.h"
#include "transaction.h"
#include "wallet.h"
uint8_t zero_hash[32] = {
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/*****************************************************************************
* dvbpsi.c: conversion from TS packets to PSI sections
*----------------------------------------------------------------------------
* Copyright (C) 2001-2010 VideoLAN
* $Id$
*
* Authors: <NAME> <<EMAIL>>
*
* This library is free sof... |
/**
* Parts of this software are based on RHash:
* https://github.com/rhash/RHash
*
* Copyright: 2010-2012 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software withou... |
#include <tas.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/epoll.h>
#include <assert.h>
#include <rdma_queue.h>
#include <rdma.h>
#include <rdma_common.h>
#include <host_nic.h>
#include <pthread.h>
#include <fastpath.h>
#include "appif.h"
/*... |
/**
* @author ttoobne
* @date 2020/6/29
*/
#include "http.h"
#include "http_request.h"
#include "http_timer.h"
#include "log.h"
#include "rio.h"
#include "utility.h"
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <sys/mman.h>
#include <sys/socket.h>... |
#include "LCD_Driver.h"
uint8_t g_line=0;
uint8_t g_x=0;
void LCD_WriteByte(uint8_t dc,uint8_t b)
{
uint8_t i;
SCE_H;
SCE_L;
if(dc) DC_H;
else DC_L;
for(i=0;i<8;i++)
{
//10101010
SCLK_L;
if(b&0x80)
DIN_H;
else DIN_L;
SCLK_H;
b=b<<1;
//delay_us(50);
}
SCLK_L;
DIN_L;
SCE_H;
//delay_us(100);
}
... |
#include "bpt.h"
// INSERTION
/* Creates a new record to hold the value
* to which a key refers.
*/
Record_t make_record(char * value) {
Record_t new_record;
strcpy(new_record.value, value);
return new_record;
}
/* Creates a new general node, which can be adapted
* to serve as either a... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2015, <NAME> <<EMAIL>>
*
* Adapted from coreboot src/arch/x86/smbios.c
*/
#include <common.h>
#include <dm.h>
#include <env.h>
#include <mapmem.h>
#include <smbios.h>
#include <sysinfo.h>
#include <tables_csum.h>
#include <version.h>
#ifdef CONFIG_CPU
#includ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct node{
char *name;
struct node *left;
struct node *left_middle;
struct node *right_middle;
struct node *right;
struct node *parent;
};
struct node *root;
struct no... |
/******************************************************************************
* Name : benchmark.c
*
* Copyright : 2009 by Imagination Technologies Limited.
* : All rights reserved. No part of this software, either
* : material or conceptual may be copied or distributed,
* ... |
/*
* HD44780 LCD Display Library
*
* MIT License
* Copyright (c) 2018, <NAME>, github.com/michal037
*/
#include <avr/io.h>
#include <avr/eeprom.h>
#include <avr/pgmspace.h>
#include <stdlib.h>
#include <util/delay.h>
#include "lcd.h"
/* Simplifying macros */
#define DDR(n) DDRQ(n)
#define DDRQ(n) (DDR##n)
#de... |
/* Type information for java.
Copyright (C) 2002 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2, or (at your option) any later
ve... |
/*-
* Copyright (c) 1992 <NAME>.
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME> of the University of California, San Diego.
*
* Redistribution and use in source and binary forms, with or w... |
/*
* Copyright (c) 2011, <NAME>
*
* 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.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL ... |
#define _POSIX_C_SOURCE 200809
#include <ctype.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <stdio.h>
#include <json.h>
#include "sway/commands.h"
#include "sway/config.h"
#include "sway/criteria.h"
#include "sway/input/input-manager.h"
#include "sway/input/seat.h"
#inclu... |
/* gcryptrnd.c - Libgcrypt Random Number Daemon
* Copyright (C) 2006 Free Software Foundation, Inc.
*
* Gcryptend 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... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2009-2011 <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include "buffalo-lib.h"
static uint32_t crc32_table[256] =
{
0x00000000, 0x04c11db7, 0x09823b6e, 0x0d43... |
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* (C) Copyright 2018
* <NAME>, Guntermann & Drunck GmbH, <EMAIL>
*/
/**
* enum ratio - Description of a core clock ratio
* @RAT_UNK: Unknown ratio
* @RAT_BYP: Bypass
* @RAT_1_TO_8: Ratio 1:8
* @RAT_1_TO_4: Ratio 1:4
* @RAT_1_TO_2: Ratio 1:2
* @RAT_1_... |
/*-
* Copyright (c) 1991 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ... |
#include "scanner.h"
#include "common.h"
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#ifndef HAVE_ASPRINTF
#include <asprintf.h>
#endif
void init_scanner(b_scanner *s, const char *source) {
s->current = source;
s->start = source;
s->line = 1;
s->interpolating_count = -1;
}
bool is_at_end(b_sc... |
/*
* Arithmetic encoder and decoder of the portable JBIG
* compression library
*
* <NAME> -- http://www.cl.cam.ac.uk/~mgk25/jbigkit/
*
* This module implements a portable standard C arithmetic encoder
* and decoder used by the JBIG lossless bi-level image compression
* algorithm as specified in Internatio... |
/* See LICENSE for copyright and license details
* srandrd - simple randr daemon
*/
#include <fcntl.h>
#include <signal.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
#include <unistd.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xrandr.... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* MIT License *
* *
* Copyright (c) 2020 Anotra ... |
/*
* Copyright (c) 2014 VMware, 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 agre... |
/*
* Copyright 2015 <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 agreed to in wr... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2009 BuS Elektronik GmbH & Co. KG
* <NAME> (<EMAIL>)
*
* (C) Copyright 2003
* Author : <NAME> (Atmel)
*/
#include <common.h>
#include <asm/io.h>
#include <asm/arch/hardware.h>
#include <asm/arch/at91_emac.h>
#include <asm/arch/clk.h>
#include <asm/arch/at91... |
/**
* \file
*
* \brief Generic Clock Controller v210 related functionality.
*
* Copyright (C) 2014 - 2017 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
#include <stdio.h>
#include <stdlib.h>
#include <linux/limits.h>
#include <netinet/in.h>
#ifdef __sun__
#include <inttypes.h>
#else
#include <stdint.h>
#endif
#include <ctype.h>
#include <errno.h>
#include <string.h>
#include "modpost.h"
/*
* Stolen form Cryptographic API.
*
* MD4 Message Digest Algorithm (RFC1320... |
/*
* Copyright 2016, 2017 International Business Machines
*
* 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 ap... |
/* yay.c
*
* A stupid text editor.
*
* Author: <NAME>
* Contact: hobbitalastair at yandex dot com
*/
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <ncurses.h>
#defi... |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 <NAME>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of t... |
/*
* Freescale eSDHC controller driver.
*
* Copyright (c) 2007, 2010, 2012 Freescale Semiconductor, Inc.
* Copyright (c) 2009 MontaVista Software, Inc.
*
* Authors: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU ... |
/*
** mouse:~ppr/src/ppad/dispatch.c
** Copyright 1995--2007, Trinity College Computing Center.
** Written by <NAME>.
**
** This file is part of PPR. You can redistribute it and modify it under the
** terms of the revised BSD licence (without the advertising clause) as
** described in the accompanying file LICENSE.txt... |
/*
* Copyright 2005-2017 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... |
/*-
* Copyright (c) 2006, <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 unmodified, 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... |
/*
* Copyright Altera Corporation (C) 2014-2015
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <errno.h>
#include <div64.h>
#include <watchdog.h>
#include <asm/arch/fpga_manager.h>
#include <asm/arch/sdram.h>
#include <asm/arch/system_manager.h>
#include <asm/io.h>
DECLARE_GLOBAL_DATA_PTR;
... |
/*
* Legal Notice
*
* This document and associated source code (the "Work") is a part of a
* benchmark specification maintained by the TPC.
*
* The TPC reserves all right, title, and interest to the Work as provided
* under U.S. and international laws, including without limitation all patent
* and trade... |
/*
* 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... |
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 1980, 1993
* The Regents of the University of California. 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. Redistributio... |
/*
* 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 the hope that it will be use... |
#pragma src "/sys/src/libcrypt"
#define NOSPOOKS
/*
* To use Brickell bigpow, uncomment the following and recompile everything:
* #define BRICKELL
*/
/************************************************************************/
/* system interface (can be overriden) */
enum
{
CRITICAL= 1,
WARNING= 0
};
void ha... |
/*
* core.c
*
* Created on: 2014-6-30
* Author: root
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <syslog.h>
#include <fcntl.h>
#include <sys/mman.h>
#include "define.h"
#include "libconfig.h"
#include "../libiec104/libiec104.h"
void when... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/apm/apm_dga.c,v 1.9 2001/01/06 21:29:11 tsi Exp $ */
/*
* file: apm_dga.c
* ported from s3virge, ported from mga
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "xf86.h"
#include "xf86_OSproc.h"
#include "xf86_ansic.h"
#include "xf86Pci.h"
#include... |
/*
* Amiga Linux/m68k Ariadne Ethernet Driver
*
* © Copyright 1995 by <NAME> (<EMAIL>)
* <NAME>
* (<EMAIL>)
*
* ----------------------------------------------------------------------------------
*
* This program is based on
*
* lance.c: An AMD LANCE ethernet driver for linux.
* Written 1993-... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Machine driver for AMD Vangogh platform using NAU8821 & CS35L41
* codecs.
*
* Copyright 2021 Advanced Micro Devices, Inc.
*/
#include <sound/soc.h>
#include <sound/soc-dapm.h>
#include <linux/module.h>
#include <linux/io.h>
#include <sound/pcm.h>
#include <sound/pcm_param... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Andestech ATCSPI200 SPI controller driver.
*
* Copyright 2017 Andes Technology, Inc.
* Author: <NAME> (<EMAIL>)
*/
#include <clk.h>
#include <common.h>
#include <malloc.h>
#include <spi.h>
#include <asm/io.h>
#include <dm.h>
DECLARE_GLOBAL_DATA_PTR;
#define MAX_TRANSFER... |
/*
Copyright: <NAME>
Dresden, Germany, 2019
<EMAIL>
*/
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdarg.h>
#include <signal.h>
#include "SSP_lib.h"
#define CHUNK 5
// global variables
bool v = false;
bool first_allocated = false;
... |
/* ===================================================
* file: crgStatistics.c
* ---------------------------------------------------
* purpose: calculate and print statistics info
* about a set of CRG ddata
* ---------------------------------------------------
* based on routines by Dr. <NAM... |
//
// Pointer.c
//
//
// Created by Slice on 23.09.12.
//
// Initial idea comes from iBoot project by OS_Ninja and Ujen
// their sources are under GNU License but I don't know what is the subject for licensing here.
// my sources are quite different while Mouse/Events interfaces comes from Tiano,
// for example Con... |
/* Linux-specific functions to retrieve OS data.
Copyright (C) 2009-2012 Free Software Foundation, Inc.
This file is part of GDB.
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; e... |
/*!
*****************************************************************************
@file: AD5940_Sequencer.c
@author: <NAME>
@brief: Basic usage of sequencer.
-----------------------------------------------------------------------------
Copyright (c) 2017-2019 Analog Devices, Inc. All Rights Reserved.
This ... |
/* 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/. */
/*
* pkix_pl_publickey.c
*
* Certificate Object Functions
*
*/
#include "pkix_pl_publickey.h"
/* --Private-C... |
/*
* benchmark_graph_algo.c
*
* Created on: December 4, 2013
* Author: aousterh
*/
#include <inttypes.h>
#include <math.h>
#include <stdio.h>
#include "algo_config.h"
#include "fp_ring.h"
#include "generate_requests.h"
#include "admissible.h"
#include "path_selection.h"
#include "platform.h"
#include "rdts... |
/*
pktopbm, adapted from "pktopx in C by <NAME>" by AJCD 1/8/90
1998-09-22: jcn <<EMAIL>>
- lots of bugfixes:
* always read x/y offset bytes (3x)
* reset bmx, bmy to defaults for each char
* fix bitmap y placement of dynamically packed char
* skip char early if no output file allocated
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <ctype.h>
//DEFINING A VERTICAL SPACE (REUSED MANY TIMES)
#define VERSPACE "\n\n\n\n"
//DEFINING COLORS
#define RED "\x1b[31m"
#define GREEN "\x1b[32m"
#define MAGENTA "\x1b[35m"
#define YELLOW "\x1b[33m"
#define BLUE "\x1b[34m"
#de... |
/* Produce a unidiff output from a diff_result. */
/*
* Copyright (c) 2020 <NAME> <<EMAIL>>
*
* 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.
*
* TH... |
/*
* U-boot - board.c First C file to be called contains init routines
*
* Copyright (c) 2005-2008 Analog Devices Inc.
*
* (C) Copyright 2000-2004
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* Licensed under the GPL-2 or later.
*/
#include <common.h>
#include <command.h>
#include <stdio_dev.h>
#include <s... |
#include "os_window.h"
#include "keyboard.h"
#include "os_alloc.h"
#include "os_x11_keys.h"
#include "log.h"
#include "util.h"
#include "video.h"
#include <X11/Xlib.h>
#include <X11/XKBlib.h>
#include <X11/Xatom.h>
#include <X11/Xutil.h>
#include <X11/extensions/XShm.h>
#include <assert.h>
#include <err.h>
#includ... |
#include "lcd.h"
#include <stdio.h>
//////////////////////////////////////////////////////////////////////////////////
//本程序只供学习使用,未经作者许可,不得用于其它任何用途
//测试硬件:单片机STM32F103RBT6,主频72M 单片机工作电压3.3V
//QDtech-TFT液晶驱动 for STM32 IO模拟
//xiao冯@ShenZhen QDtech co.,LTD
//公司网站:www.qdtech.net
//淘宝网站:http://qdtech.taobao.com
//我司提供技... |
/**
* \file
*
* \brief Virtual file system management.
*
* Copyright (c) 2013-2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are ... |
/* ///////////////////////////////////////////////////////////////////// */
/*!
\file
\brief PLUTO header file for function-like macros.
\author <NAME> (<EMAIL>)
\date June 15, 2017
*/
/* ///////////////////////////////////////////////////////////////////// */
#ifndef DEBUG
#define DEBUG FALSE
#endif
... |
/*
* Ancient UNIX File Systems for MacFUSE
* <NAME>
* http://osxbook.com
*/
#include "ancientfs_v1,2,3.h"
#include "unixfs_common.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
DECL_UNIXFS("UNIX ... |
// vim:set ts=4 sw=4 ai:
/*
* Copyright (c) 2010-2013 BitTorrent, 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
* ... |
#include "FrostParser.h"
#include "toolbox/tb_str.h"
int FrostMatchVariant(char* ini, char* section, char* prop, int variant, int def)
{
tb_ini_element element;
tb_ini_query(ini, section, prop, &element);
if (element.error != TB_INI_OK) return def;
if (strncmp(element.start, FROST_VARIANT_STR, elemen... |
#include "f2c.h"
#include "blaswrap.h"
/* Table of constant values */
static integer c__3 = 3;
static integer c__1 = 1;
static integer c__5 = 5;
static integer c__50 = 50;
static doublereal c_b52 = 1.;
static doublereal c_b55 = 0.;
/* Subroutine */ int dchkgk_(integer *nin, integer *nout)
{
/* Format strings */
... |
/*s: devmouse.c */
/*s: kernel basic includes */
#include <u.h>
#include "../port/lib.h"
#include "../port/error.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
/*e: kernel basic includes */
#include <draw.h>
#include <draw_private.h> // for BPLONG
#include <memdraw.h>
#include <cursor.h>
#include ... |
/* Nitfol - z-machine interpreter using Glk for output.
Copyright (C) 1999 <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 op... |
// Hyperspace classifier. Copyright 2001-2010 <NAME>.
//
// This file is part of the CRM114 Library.
//
// The CRM114 Library is free software: you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation, either version 3 of
// ... |
/* Dia -- an diagram creation/manipulation program
* Copyright (C) 1998 <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 ... |
/*
* XDD - a data movement and benchmarking toolkit
*
* Copyright (C) 1992-2013 I/O Performance, Inc.
* Copyright (C) 2009-2013 UT-Battelle, LLC
*
* This 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
... |
#include <pthread.h>
#include <errno.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/poll.h>
#include <poll.h>
#include <signal.h>
#include "assert.h"
#include "coroutine.h"
#include "coroutine_impl.h"
#include "coroutine_specific.h"
#include "context.h"
#include "mis... |
/*--------------------------------------------------------------------------
File : lpci2c.c
Author : <NAME> Nov. 20, 2011
Desc : I2C implementation on LPC
Copyright (c) 2011, I-SYST inc., all rights reserved
Permission to use, copy, modify, and distribute this software for any purpose
with o... |
/*
* Tests for PIO data decompositons.
*
* @author <NAME>
*/
#include <config.h>
#include <pio.h>
#include <pio_tests.h>
#include <pio_internal.h>
/* The number of tasks this test should run on. */
#define TARGET_NTASKS 4
/* The minimum number of tasks this test should run on. */
#define MIN_NTASKS 4
/* The name... |
/*******************************************************************************
* *
* DUMP MIDI FILE *
* ... |
/*-
* Copyright (c) 1988 <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
* notice, this list of conditions a... |
// ___________.__ _________ ________
// \__ ___/|__| ____ ___.__.\_ ___ \ / _____/
// | | | |/ < | |/ \ \// \ ___
// | | | | | \___ |\ \___\ \_\ \
// |____| |__|___| / ____| \______ /\______ /
// Tiny Code Gen X64 \/\/ \/ \/
//
// ... |
/*
* Copyright (c) 2013 OmniTI Computer Consulting, Inc.
* 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
... |
/*
Copyright 2015 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... |
/*
* 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... |
// ----------------------------------------------------------------------------
// ATMEL Crypto-Devices Software Support - Colorado Springs, CO -
// ----------------------------------------------------------------------------
// DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
//... |
#include "device.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <errno.h>
#include <fcntl.h>
#include <termios.h>
#include <sys/mman.h>
#include <sys/select.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/mman.h>
#i... |
// asm6805.c - copyright 1998-2007 <NAME>
#define versionName "6805 assembler"
#include "asmx.h"
enum
{
o_Inherent, // implied instructions
o_Relative, // branch instructions
o_Bit, // BCLR/BSET
o_BRelative, // BRSET/BRCLR
o_Logical, // instructions with multiple addressin... |
/************************************************************************
File name: SM2_ENC.c
Version: SM2_ENC_V1.1
Date: Sep 27,2016
Description: implementation of SM2 encryption algorithm and decryption algorithm
Function List:
2.SM2_ENC //SM2 encryption, calls SM3_KDF
3.SM2_DEC //SM2 decryption, calls SM2_KD... |
#include "mapgen.h"
#include "path.h"
#include "util.h"
#include <assert.h>
void rl_recursively_split_bsp(rl_bsp *root, rl_generator_f generator,
unsigned int min_width, unsigned int min_height, float deviation, int max_recursion)
{
if (max_recursion <= 0)
return;
assert(deviation >= 0.0 && d... |
/*maze.c
author : FroxThur
date : 26/03/2017
this file contain every functions related to the maze.
In the main function, an exemple show how to use these functions.
Two main steps are executed :
- 1 Maze creation
- 2 Solving the maze
*/
/*personal includes*/
#include "includes.h"
// Some modification... |
/*******************************************************************************
* @file panic.c
*
* @see panic.h
*
* @author <NAME>
*
* @date 16/12/2017
*
* @version 1.0
*
* @brief Panic feature of the kernel.
*
* @details Kernel panic functions. Displays the CPU registers, the faulty
* instruction, the ... |
/*
* Copyright (C) 2015 - 2021, <NAME> <<EMAIL>>
*
* 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, and the entire permission notice... |
#include <stdio.h>
#include <string.h>
#include "libusb-1.0/libusb.h"
//#include "libusb.h"
#ifdef WINDOWS
#include <windows.h>
#endif
libusb_device *get_device(libusb_device **devs, uint16_t productID, uint16_t vendorID) {
struct libusb_device_descriptor desc;
int ret;
for (int i = 0; devs[i]; i++) ... |
/*
** EPITECH PROJECT, 2020
** my_runner
** File description:
** lll JÖKER lll
*/
#include "my.h"
void window(init_t *elem)
{
elem->mode.width = 1920;
elem->mode.height = 1080;
elem->window = sfRenderWindow_create(elem->mode, "/* MY RUNNER */",
sfResize | sfClose, NULL);
sfRenderWindow_setFram... |
#include <string.h>
#include <netinet/in.h>
#include <errno.h>
#include <stdlib.h>
#include <netdb.h> // getaddrinfo
#include <stdio.h>
#include <time.h>
#include "logger.h"
#include "netutils.h"
#include "sm_actions.h"
#include "socks5mt.h"
#include "request.h"
#include "socks5_handler.h"
#include "dohParser.h"... |
/*
* Copyright (C) 2019-2021 Deutsche Telekom AG
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following... |
/*
* File: bootstrap_string.c
* Description: string support for bootstrap
* Author: <NAME>
* Copyright (c) 2013 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License... |
/********************************************************************************************
* SIDH: an efficient supersingular isogeny cryptography library
*
* Abstract: portable modular arithmetic for P182
*********************************************************************************************/
#include ... |
#include "gameplay.h"
#include "client-common.h"
#include "screenwipe.h"
#include "particles.h"
#include "text_entry_widget.h"
#define GAMEPLAY_GRID_GFX_PATH "./gfx/gameplay/grid.tga"
#define GAMEPLAY_X_GFX_PATH "./gfx/gameplay/x.tga"
#define GAMEPLAY_O_GFX_PATH ... |
static char *SccsId = "%W% %G%";
/* Copyright (c) 1987 <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
ensure its reliability. */
/* h_grey2d... |
/*
* Amazon FreeRTOS Shadow Demo V1.4.7
* Copyright (C) 2017 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 restrict... |
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <errno.h>
#include <math.h>
#include <inttypes.h>
//superblock data OFFSETS
#define INODE_SIZE 0x58
#define LOG_BLOCK_SIZE 0x18
#define BLOCK_GROUP_NR 0x5a
// Block group descriptors OFFSETS
#define BG_IN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.