text stringlengths 5.8k 28.2k |
|---|
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#define TRACE
enum { MOVE=1, MEM=2, PLUS=3, NAME=4, CONST=6 };
#define STATE_TYPE void*
typedef struct tree {
int op;
struct tree *kids[2];
STATE_TYPE state_label;
} *NODEPTR_TYPE;
#define OP_LABEL(p) ((p)->op)
#define LEFT_CHILD(p) ((p)->kids[0])
#define... |
#include "postgres.h"
#include "access/hash.h"
#include "catalog/pg_type.h"
#include "funcapi.h"
#include "miscadmin.h"
#include "storage/ipc.h"
#include "storage/spin.h"
#include "tcop/utility.h"
#include "utils/builtins.h"
#include "utils/hsearch.h"
#include "utils/guc.h"
#include "utils/syscache.h"
#incl... |
#define _GNU_SOURCE
#include <assert.h>
#include <features.h>
#include <proton/connection.h>
#include <proton/delivery.h>
#include <proton/link.h>
#include <proton/listener.h>
#include <proton/message.h>
#include <proton/netaddr.h>
#include <proton/proactor.h>
#include <proton/session.h>
#include <proton/transport.h>
#... |
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2008 <NAME> <<EMAIL>>
* Copyright (C) 2009-2010 <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <stdlib.h>
#include <stri... |
/*************************************************************************\
* Copyright (c) 2014 Brookhaven Science Assoc. as operator of Brookhaven
* National Laboratory.
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
uint8_t bq76940_init(void)
{
uint8_t error = 0;
// make sure the bq is booted up--->set TS1 to 3.3V and back to VSS
// maybe set temp-mode for internal or external temp here
// enable ADC
error |= registerWrite(SYS_CTRL1, ADC_EN);
// check if ADC is active
if(!(registerRead(SYS_CTRL1) & ADC_EN)) { return ERROR_A... |
/*-
* Copyright (c) 2003-2007 <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 conditi... |
/*-------------------------------------------------------------------------
*
* gistvacuum.c
* interface routines for the postgres GiST index access method.
*
*
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* I... |
/*****************************************************************
* This copyrighted source code is freely distributed
* under the terms of the GNU General Public License. See
* the files COPYRIGHT and LICENSE for details.
*****************************************************************/
/* msf.c
* SR... |
/*
* permutor.c
*
* Created on: Sep 20, 2013
* Author: laarman
*/
#include <hre/config.h>
#include <popt.h>
#include <stdlib.h>
#include <time.h>
#include <hre/unix.h>
#include <pins-lib/pins2pins-ltl.h>
#include <pins-lib/por/pins2pins-por.h>
#include <pins2lts-mc/algorithm/algorithm.h>
#include <pins2lt... |
#include "sympow.h"
#define DEBUG (FALSE || GLOBAL_DEBUG)
void special_value(int p,QD s,int sp)
{QD t,u,rp,ip,C; int k,rpp=0,ipp=0;
QD_copy(wmax,REAL_PERIOD,rp); QD_copy(wmax,IMAG_PERIOD,ip);
QD_copy(wmax,COND[sp],C);
if (VERBOSE>=2)
{printf("rp: "); QD_output(wmax,16*wmax,rp);
printf("ip: "); QD_output(wmax,16*... |
/**
* Copyright (C) 2018 by 김동원, All rights reserved.
*
* Personal Project
*
* File name : 김동원_개별프로젝트.c
*
* Summery of this lab:
* 1. get data of csv file
* 2. csv file looks like 'stock's number, date, price'
* 3. assign file's data to ROW_DATA *row_data
* 4. combine data of same stoc... |
// Copyright (c) 2012 The Trustees of University of Illinois. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ddtbench.h"
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <assert.h>
#include <stdio.h>
#include <... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*-
* Copyright (c) 2012 <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 list of co... |
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <libraw1394/raw1394.h>
#include <libdv/dv.h>
#include <AR/config.h>
#include <AR/ar.h>
#include <AR/video.h>
#define VIDEO_MODE_PAL 0
#define VIDEO_MODE_NTSC 1
#define DEFAULT_VIDEO_MODE VIDEO_MODE_NTSC
#define ARV_BUF_... |
/* FreeRTOS includes. */
//#include "FreeRTOS.h"
//#include "task.h"
//#include "queue.h"
//#include "semphr.h"
#include "stm32f0xx.h"
#include "system_stm32f0xx.h"
#include "stm32f0xx_dbgmcu.h"
#include "stm32f0xx_gpio.h"
#include "stm32f0xx_usart.h"
#include "types.h"
#include <coreId.h>
#include "osal_type.h"
#incl... |
#include "copyright.h"
/*============================================================================*/
/*! \file hb3.c
* \brief Problem generator for 2D MRI simulations using the shearing sheet
* based on "A powerful local shear instability in weakly magnetized disks.
*
* PURPOSE: Problem generator for 2D MRI s... |
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef __GLIBC__
#include <sys/sysmacros.h>
#endif /* __GLIBC__ */
#include <unistd.h>
#include <errno.h>
#include "match_engine.h"
#include "b_util.h"
#include "b_file.h"
#include "b_path.h"
#include "b_string.h"
#include "b_header.h"... |
/*
* libwebsockets - small server side websockets and web server implementation
*
* Copyright (C) 2010 - 2019 <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 without... |
/* vim: set tabstop=8 shiftwidth=4 softtabstop=4 expandtab smarttab colorcolumn=80: */
/*
* Copyright 2016 Red Hat, 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://... |
/*****************************************************************************/
#define this_is "FDBinary v.3 beta (test version of 21 Feb 2010)"
/*****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <gsl/g... |
/******************************************************************************
pagekitec.c - A high-performance PageKite connector in C.
Usage: pagekitec [options] LPORT PROTO NAME.pagekite.me PPORT SECRET ...
*******************************************************************************
This file is Copyright 201... |
#include <jni.h>
#include <android/log.h>
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include <sys/time.h>
#include <GLES2/gl2.h>
#include "debug.h"
#include "native_main.h"
#include "engine.h"
#include "matrix.h"
#include "shaders.h"
#include "gamearea.h"
#include "foe_flipper.h"
#include "foe_fire.h"... |
/* Copyright 2012 The Regents of the University of California */
/* See COPYING for information about copying and redistribution.*/
/** \file nl_calipers.c
* Efficient summarization of measured activites.
*/
static const volatile char rcsid[] = "$Id$";
#include <assert.h>
#include <float.h>
#include <math.h>
#incl... |
/*
* nsiproxy.sys ipv4 and ipv6 modules
*
* Copyright 2003, 2006, 2011 <NAME>
* Copyright 2021 <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.1 of th... |
/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy o... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include "auth.h"
#include "class_binder.h"
#include "http_message.h"
#include "io.h"
#include <aws/auth/credentials.h>
#include <aws/auth/signable.h>
#include <aws/auth/signing.h>
#include <aws/auth... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "helpers.h"
#include "shared.h"
#include "adb.h"
#include "delay_us.h"
GPIO_TypeDef* adb_psw_port;
uint16_t adb_psw_pin;
GPIO_TypeDef* adb_data_port;
uint16_t adb_data_pin;
uint16_t adb_kb_reg2 = 0xffff; // all key released, all LED off
uint8_t adb_mo... |
/*
* Copyright (C) <NAME>
* Copyright (C) Rap, Inc.
*/
#include <rap_config.h>
#include <rap_core.h>
#include <rap_event.h>
#if (RAP_TEST_BUILD_DEVPOLL)
/* Solaris declarations */
#ifndef POLLREMOVE
#define POLLREMOVE 0x0800
#endif
#define DP_POLL 0xD001
#define DP_ISPOLLED 0xD002
struct dvpoll {
... |
/*
* Lib(X)SVF - A library for implementing SVF and XSVF JTAG players
*
* Copyright (C) 2009 RIEGL Research ForschungsGmbH
* Copyright (C) 2009 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that t... |
/*
Audio File Library
Copyright (C) 1998-2000, <NAME> <<EMAIL>>
Copyright (C) 2000-2001, Silicon Graphics, Inc.
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 the ... |
/*
* Tech support by zhaoshunyao
* Email: <EMAIL>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdarg.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/epoll.h>
#include <sys/types.h>
#include <sys/stat.h>
#include... |
/*
wave2mfcc
Convert an audio stream into mel-freq cepstral coefficients
(from adc2mfcc of many many many credits)
HISTORY
14 August 1996 <NAME> (<EMAIL>)
Using front-end processing developed for the live system by
<NAME> (<EMAIL>) and <NAME> (<EMAIL>)
instead of the batch-style proce... |
#include <string.h>
#include <gListp.h>
#define LEAF_MAX_DISTANCE 40
#define LEAF_MAX_SKIP 10
typedef struct SLEAF{
char available;
int support;
int center;
int from;
int to;
int length;
int *position;
struct SLEAF *previous;
struct SLEAF *next;
}LEAF;
int getSupport(float **matrix,int width,int height,int ... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h> // Gauss operator
#include <time.h>
// Functions
double floor(double x); // Gauss operator
double r2()
{return (double)rand() / (double)RAND_MAX ;} // random number between 0, 1
void message_error(char error_text[]);
double *d_vector(long size); //vector crea... |
/*
** ATOP - System & Process Monitor
**
** The program 'atop' offers the possibility to view the activity of
** the system on system-level as well as process-level.
**
** This source-file contains functions to read the process-administration
** of every running process from kernel-space and extract the required
** ... |
#include "task_lib.h"
#define BUFLEN 32768
#define MAX_ADDRS 100
#define MAX_TCP_MEM 2147483648 // 2GB at most outstanding
#define MAX_OUTSTANDING 209715 // Writes cannot be ahead of reads by more than 2MB
struct loadgen {
int64_t tfd;
int buflen;
uint64_t received;
uint64_t delivered;
intptr_t ti;
int ... |
/* ************************************************************************
* File: limits.c Part of CircleMUD *
* Usage: limits & gain funcs for HMV, exp, hunger/thirst, idle time *
* *
* All rights re... |
/*********************************************************************
*
* (C) Copyright Broadcom Corporation 2013-2017
*
* 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
*
* htt... |
/*
* (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... |
/*******************************************************************************
open_xc.c - description
------------------
begin : 05.08.2019
last modify : 08.02.2019
copyright : (C) 2019 by MHS-Elektronik GmbH & Co. KG... |
#include <stdlib.h>
#include "library/nuklear_glfw.h"
#include "wolfed.h"
#include "../../shared/stdint.h"
//==================================================================================================================================
#define NUK state.nuklear
#define WALL_TYPE(y,x) state.map->wallGrid[y][x]... |
#include "pp_decl_clobber_table.h"
#include "utils/fnv_hash.h"
#include "utils/error.h"
#include "utils/zero.h"
#include "resolver.h"
#include "utils/debug_utils.h"
#include "thread_context.h"
ast_body* TOMBSTONE = (ast_body*)&NULL_BYTES;
int ppdct_init(pp_decl_clobber_table* t, resolver* r)
{
int res = freelist_in... |
/******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "types.h"
#include "rmd160.h"
#include "bigdeal.h"
#include "mp.h"
#include "binomial.h"
#include "output.h"
#include "os.h"
#include "collect.h"
static char rcsid[] = "$Header: /home/sater/bridge/bigdeal/RCS/main.c,v 1.26 2000/09/08 05:... |
#include <strings.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include "truco.h"
void embaralhar(carta baralho[40]){
/* Esta função atribui os nomes e valores de cada carta
do baralho de tr... |
/* mpn_mod_1_1p (ap, n, b, cps)
Divide (ap,,n) by b. Return the single-limb remainder.
Contributed to the GNU project by <NAME> and <NAME>.
Based on a suggestion by <NAME>.
THE FUNCTIONS IN THIS FILE ARE INTERNAL WITH MUTABLE INTERFACES. IT IS ONLY
SAFE TO REACH THEM THROUGH DOCUMENTED INTERFACES. I... |
/**
SFTP - portions of http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13
**/
#include "log.h"
#include "ssh.h"
#include "fs.h"
#include "win.h"
#define SFTP_VERSION 3
#define SFTP_PITA_VERSION 3
#define SFTP_REAL_VERSION "6"
#define SFTP_MAX_SIZE 35000 /* fixme should be < max_ssh_payload */
#define SSH_FX... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main goal of this project is using OV7670( without FIFO)
* using STM32F070RB and it consumes very less place in the SRAM. Every peripheral clock spe... |
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~MS PWE NODE~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*
*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
* File: cint_qos_mspw_vpws.... |
/* $OpenBSD: lapic.c,v 1.5 2004/06/28 02:00:20 deraadt Exp $ */
/* $NetBSD: lapic.c,v 1.1.2.8 2000/02/23 06:10:50 sommerfeld Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by RedBack Networks Inc.
... |
/* -*- C -*-
*
* Copyright 2010 Sandia Corporation. Under the terms of Contract
* DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government
* retains certain rights in this software.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public Licen... |
/*
** EPITECH PROJECT, 2017
** flags
** File description:
** flags
*/
#include <getopt.h>
#include <stdlib.h>
#include "stacktrace.h"
#include "functions.h"
#include "structs.h"
#include "my.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdbool.h>
void disp_en_help(char *prog_name)
{
print... |
#define R_NO_REMAP
#include <R.h>
#include <Rinternals.h>
#include "wk-v1.h"
#include <memory.h>
#define HANDLE_OR_RETURN(expr) \
result = expr; \
if (result != WK_CONTINUE) return result
#define HANDLE_CONTINUE_OR_BREAK(expr) ... |
/* prompt.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__1 = 1;
/* $Procedure PROMPT ( Prompt a user for a string ) */
/* Subroutine */ int prompt_(char *dspms... |
/*
* Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it woul... |
/*
* 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... |
/* A simple event-driven programming library. Originally I wrote this code
* for the Jim's event-loop (Jim is a Tcl interpreter) but later translated
* it in form of a library for easy reuse.
*
* Copyright (c) 2006-2010, <NAME> <<EMAIL>irez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in s... |
#include "ini.h"
#include <xcb/xcb.h>
#include <xcb/xkb.h>
#include <cairo.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <err.h>
#include <wordexp.h>
/*
* This file stores all setings and options,
* as well as functions to read them from
* configuration file.
*
* For explanation on fla... |
//////////////////////////////////////////////////////////////////////////////////////////////
//
// USER DRIVER ROUTINES DECLARATION (PROCESSOR DEPENDENT)
//
// (c) Copyright 2018-2019, <NAME>, Selangor, MALAYSIA
// All Rights Reserved
//
/////////////////////////////////////////////////////////////////... |
/* $Id: chilight.c,v 1.41 2001/07/15 15:03:25 ncvs Exp $ */
/*
* Copyright (c) 1995-2001 <NAME>. All rights reserved.
* Copyright (c) 2001 <NAME> <<EMAIL>>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condi... |
/* iddp_rid.f -- translated by f2c (version 20100827).
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 ... |
#include "simulate.h"
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <math.h>
#include <time.h>
#include <stdio.h>
#include <wordexp.h>
#include <inttypes.h>
#include <assert.h>
#include "three_algebra.h"
#include "object.h"
#include "pio.h"
#include "io.h"
#include "system.h"
#include "utilities.... |
/*************************************************************
* File Name: cve-2015-5165.c
*
* Created on: 2019-09-05 07:19:52
* Author: raycp
*
* Last Modified: 2019-09-17 07:29:51
* Description: exp for cve-2015-5165, info leak
************************************************************/
#include <assert.... |
/*
Sjeng - a chess variants playing program
Copyright (C) 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 ... |
// SPDX-License-Identifier: GPL-2.0
/* Texas Instruments ICSSG Ethernet Driver
*
* Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
*
*/
#include <common.h>
#include <asm/io.h>
#include <asm/processor.h>
#include <clk.h>
#include <dm.h>
#include <dm/lists.h>
#include <dm/device.h>
#include <d... |
/*
* @Author: lzt
* @Date: 2022-1-15 17:34
* @LastEditTime: 2022-1-15 17:34
* @LastEditors: lzt
* @Description: As a nginx module, in order to encrypt the parameters of the cookie to improve the security of the backend server.
* @FilePath: /nginx-cookie-encrypt-module/cookie-encrypt-module.c
*/
// location xxx... |
/*
* Copyright(C) 2014 <NAME>. All Rights Reserved.
*
* This file is part of the MicroJs
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, o... |
/*
* Copyright (c) Regents of The University of Michigan
* See COPYING.
*/
#include <config.h>
#include <arpa/inet.h>
#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#inclu... |
/* proj2.c
* autor: <NAME>, FIT
* prelozene: gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)
* popis: Riesenie synchronizacie pre priklad Santa Claus Problem
* zdroj: Little Book of Semaphores
*/
#include "proj2.h"
args_t read_arguments(int argc, char **argv){
if (argc != 5){
fprintf(stderr, "Error: read_arg... |
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYIN... |
//Bibliotecas utilizadas
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <jpeglib.h>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
// Se definen constantes para el pipe
#define READ 0
#define WRITE 1
// Constantes para definir la cantidad de filas y columna... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <string.h>
#include <stdint.h>
#include <pthread.h>
#include <linux/kvm.h>
#include "shared.h"
/* CR0 bits */
#define CR0_PE 1u
#define CR0_MP (1U << 1)
#define CR0_EM... |
/*
*
* Copyright 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... |
/*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2017-2019 <NAME>
Copyright (C) 2020-2021 <NAME> and Rubicon Communications, LLC(Netgate)
This file is part of CLIXON.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You... |
/* display.c Larn is copyrighted 1986 by <NAME>. */
/* $FreeBSD: src/games/larn/display.c,v 1.4 1999/11/16 02:57:21 billf Exp $ */
/* $DragonFly: src/games/larn/display.c,v 1.3 2006/08/26 17:05:05 pavalos Exp $ */
#include "header.h"
#define makecode(_a,_b,_c) (((_a)<<16) + ((_b)<<8) + (_c))
static void bot_hpx(void)... |
/**
*@file ocpp_process.c
*@author <NAME>
*@co-author
*@version 1.4
*@date 20 August 2019
*@brief
*
*/
#include "ocpp_helper.h"
/**
* This Frame is most crucial part for sending OCPP packet frame from CP to CMS, the CMS does not understand packet format apart ... |
/*
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Copyright 2020, UT-Battelle, LLC.
*
* LLNL-CODE-741539
* All rights reserved.
*
* This is the license for UnifyFS.
* For details, see https://github.com/LLNL/UnifyFS.
* Please rea... |
/*
* Copyright (c) 2017 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all
* copies.
*
* THE SOFTWARE IS PROVI... |
/* THIS PROGRAM READS A SWEEP FILE */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc/malloc.h>
#include <ctype.h>
#include "read_dorade.h"
/**************************************************/
void sweepread_(char swp_fname[],struct vold_info *vptr,
struct radd_info *rptr,s... |
/* ----------------------------------------------------------------------------
* ATMEL Microcontroller Software Support
* ----------------------------------------------------------------------------
* Copyright (c) 2009, Atmel Corporation
*
* All rights reserved.
*
* Redistribution and use in sou... |
// Copyright 2020 <NAME>
// SPDX-License-Identifier: Apache-2.0
#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include "client/api/v1/get_balance.h"
#include "client/api/v1/get_node_info.h"
#include "client/api/v1/get_output.h"
#include "client/api/v1/get_outputs_from_address.h"
#include "client/api/v1... |
#include "gru_layer.h"
#include "connected_layer.h"
#include "utils.h"
#include "cuda.h"
#include "blas.h"
#include "gemm.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static void increment_layer(layer *l, int steps) {
int num = l->outputs * l->batch * steps;
l->output += num;
l->... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/arch/device.h"
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/device/lib/dif/dif_kmac.h"
#include "sw/d... |
/*
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
* Copyright (C) 2007-2013 Sourcefire, Inc.
*
* Authors: <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* publish... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2015, <NAME> <<EMAIL>>
*/
#include <common.h>
#include <cpu_func.h>
#include <mmc.h>
#include <asm/io.h>
#include <asm/ioapic.h>
#include <asm/irq.h>
#include <asm/mrccache.h>
#include <asm/mtrr.h>
#include <asm/pci.h>
#include <asm/post.h>
#include <asm/arch/d... |
/*
* Copyright (C) 1999-2011, 2016 Free Software Foundation, Inc.
* This file is part of the GNU LIBICONV Library.
*
* The GNU LIBICONV 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; eit... |
/********************************************************************
* *
* THIS FILE IS PART OF THE libopusfile SOFTWARE CODEC SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
* GOVERNED BY A BSD-STYLE SOURCE LICENS... |
// modified by <NAME> for memory2memory decompression and removing encoding
// Modified by <NAME> to restore encoding
/**************************************************************
LZARI.C -- A Data Compression Program
(tab = 4 spaces)
***************************************************************
4/7/1989 <NAME>... |
/* vi:set ts=4 sw=4 expandtab:
*
* Copyright 2016, <NAME> (http://github.com/cleishm)
*
* 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.... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... |
/***********************************************************************
Copyright (c) 2006-2010, Skype Limited. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, (subject to the limitations in the disclaimer below)
are permitted provided that the following con... |
/* $NetBSD: header.h,v 1.11.2.1 1997/10/25 01:42:45 thorpej Exp $ */
/* header.h Larn is copyrighted 1986 by <NAME>. */
#include <sys/types.h>
#define MAXLEVEL 11
/* max # levels in the dungeon */
#define MAXVLEVEL 3
/* max # of levels in the temple of the luran */
#define MAXX 67
#define MAXY 17
#define SCOR... |
/* T U B E . C
* BRL-CAD
*
* Copyright (c) 1986-2022 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 pu... |
/*
* FreeRTOS MQTT V2.3.1
* Copyright (C) 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... |
/*
* 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... |
// Copyright (c) 2016 <NAME>
#include <util/delay.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <stdlib.h>
#include <avr/wdt.h>
#include "USI_I2C_Master.h"
#include "Buffalo.h"
// switch states coming from the port expander
uint8_t sw1, sw2;
// desired DAC state
uint8... |
/* $OpenBSD: uslcom.c,v 1.17 2007/11/24 10:52:12 jsg Exp $ */
/*
* Copyright (c) 2006 <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 copi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.