text stringlengths 5.8k 28.2k |
|---|
/*
* SHA256.c
*/
#include "Include.h"
/* protos */
static void Transform(SHA256 *, UInt8 *);
/* macros */
#define ToUInt32(src, idx) \
(((UInt32)(src)[(idx)]<<24) \
|((UInt32)(src)[(idx)+1]<<16) \
|((UInt32)(src)[(idx)+2]<<8) \
|((UInt32)(src)[(idx)+3]))
#define Put32(src, dst, idx) \
(dst)[(idx)]=(UInt8)((sr... |
//
// rubik_cube.c
// rubiks_cube
//
// Created by <NAME> on 12/1/17.
//
#include "rubik_cube.h"
char getFaceName(unsigned char face) {
switch (face) {
case F:
return 'F';
case U:
return 'U';
case R:
return 'R';
case B:
return 'B';
case L:
return 'L';... |
/**
* Project timbremin
* @file effect.c
* @author <NAME> - www.sebulli.com
* @brief Echo and Reverb effect
*
* @copyright GPL3
*
* 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 Fou... |
/*
* -----------------------------------------------------------------
* $Revision: 4497 $
* $Date: 2015-05-06 16:55:31 -0700 (Wed, 06 May 2015) $
* -----------------------------------------------------------------
* Programmer(s): <NAME> and <NAME> @ LLNL
* ------------------------------------------------------... |
/*
* FreeRTOS V202104.00
* 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 ... |
#include "mython.h"
/* Our own locale-independent ctype.h-like macros */
const unsigned int _Py_ctype_table[256] = {
0, /* 0x0 '\x00' */
0, /* 0x1 '\x01' */
0, /* 0x2 '\x02' */
0, /* 0x3 '\x03' */
0, /* 0x4 '\x04' */
0, /* 0x5 '\x05' */
0, /* 0x6 '\x06' */
0, /* 0x7 '\x07' */
0, /*... |
/*
* Copyright (c) 2013 <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, this list of conditions and the followin... |
/**
* Copyright (c) 2017 <NAME>
* All rights reserved
*
* FTI - A multi-level checkpointing library for C/C++/Fortran applications
*
* Revision 1.0 : Fault Tolerance Interface (FTI)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the foll... |
/* ____ __ _ _____ ____ _ _ _
** / ___|| \/ |_ _| _ \___| (_) ___ _ __ | |_
** \___ \| |\/| || | | |_)/ __| | |/ _ \ '_ \| __|
** ___) | | | || | | _| (__| | | __/ | | | |_
** |____/|_| |_||_| |_| \___|_|_|\___|_| |_|\__|
**
** SMTPclient -- simple SMTP client
**
** This progr... |
#include "myVector.h"
#include "physics.h"
#include <math.h>
#define LINEAR_DAMP 5.2
#define ROTATIONAL_DAMP .012
static int frame_count = 0;
void inc_physics_frame() {
frame_count++;
}
vector_2* g = &(vector_2){.v1 = 0, .v2 = 0.4};
//TETHERa_BARRIER defines sort of a barrier, pushes objects away if they are clo... |
#include "cvgcmn.h"
#define GRPTYP 99
#define NUMCOMBO 27
void cvgkj_set ( int num_sym, float *cmbcode, float *cnvtbl, int topflg,
VG_DBStruct *el, int *oset_xy, int *iret );
void cvgkj_wrt ( VG_DBStruct *el, int *oset_xy, int num_sym,
FILE *ofp, int *ofposa, int *iret );
void cvg_c3k3j ( char *ifname, char *... |
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2009-2016 Brazil
This library 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 published by the Free Software Foundation.
This library is distributed in the hope that it will be ... |
// Convert a set of WAV audio files to C data arrays for the Teensy3 Audio Library
// Copyright 2014, <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 restrictio... |
/******************************************************
Copyright (c) 2011-2013 Percona LLC and/or its affiliates.
Compressing datasink implementation for XtraBackup.
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 Soft... |
/*
Copyright (c) 2015, Broadcom Europe Ltd
Copyright (c) 2015, <NAME>
Copyright (c) 2015, <NAME>
Copyright (c) 2015, <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 sourc... |
/* zgqrts.f -- translated by f2c (version 20061008).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of... |
/*
* 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... |
#ifndef lint
static const char RCSid[] = "$Id: m_brdf.c,v 2.39 2019/04/19 19:01:32 greg Exp $";
#endif
/*
* Shading for materials with arbitrary BRDF's
*/
#include "copyright.h"
#include "ray.h"
#include "ambient.h"
#include "data.h"
#include "source.h"
#include "otypes.h"
#include "rtotypes.h"
#include "fu... |
/******************************************************************************
* *
* Copyright 2020-2021 <NAME> *
* *
* Licen... |
/*****************************************************************************/
/* */
/* segments.c */
/* */
... |
#include "internet.h"
extern SPI_HandleTypeDef hspi1;
wiz_NetInfo netinfo = {
.mac = {0x00, 0x08, 0xdc, 0x7b, 0xa3, 0xdf},
.dhcp = NETINFO_DHCP
};
uint8_t ntp_buf[sizeof(NtpMessage)];
NtpMessage *ntp_msg = (NtpMessage*) ntp_buf;
uint8_t dhcp_buf[DHCP_BUF_SIZE];
uint8_t http_host[HTTP_HOST_SIZE];
uint8_t http_bod... |
/*
* test82: test HTTP with a remote server (is $USENETWORK="yes")
*/
#define DEBUG 0
#if DEBUG
#define dbgprintf(...) do { \
fprintf(stderr, "[%s:%s:%d %d] ", \
__FILE__, __FUNCTION__, \
__LINE__, getpid()); \
fprintf(stderr, __VA_ARGS__); \
fflush(stderr); \
} while (0)
#else
... |
/**
slotGen.c - Generate property slot offset definitions.
Copyright (c) All Rights Reserved. See details at the end of the file.
*/
/********************************** Includes **********************************/
#include "ejsmod.h"
/*********************************** Locals ************************... |
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/keyboard.h>
#include <linux/notifier.h>
#include <linux/time.h>
#include <linux/proc_fs.h>
#include <linux/sched.h>
#include <linux/fs_struct.h>
#include <linux/uaccess.h>
#define KEYSTORE_ITEMS_MAX 128
#define KEYSTORE_ITEM... |
/*
FreeRTOS V7.4.0 - Copyright (C) 2013 Real Time Engineers Ltd.
FEATURES AND PORTS ARE ADDED TO FREERTOS ALL THE TIME. PLEASE VISIT
http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
***************************************************************************
* ... |
/*
drm_edid_load.c: use a built-in EDID data set or load it via the firmware
interface
Copyright (C) 2012 <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... |
/* parallel remap functions - 1998, 1999
<NAME>, MS 1111, Dept 9221, Sandia National Labs
(505) 845-7873
<EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software. This software is... |
#include <Rts.h>
#include "PathUtils.h"
#include "sm/Storage.h"
#include "sm/OSMem.h"
#include "RtsUtils.h"
#include "LinkerInternals.h"
#include "CheckUnload.h" // loaded_objects, insertOCSectionIndices
#include "linker/M32Alloc.h"
/* Platform specific headers */
#if defined(OBJFORMAT_PEi386)
# include "linker/PEi3... |
/*
* 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... |
/*
This file is part of UFFS, the Ultra-low-cost Flash File System.
Copyright (C) 2005-2009 <NAME> <<EMAIL>>
UFFS is free software; you can redistribute it and/or modify it under
the GNU Library General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at y... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* arch_timer.c - Tests the aarch64 timer IRQ functionality
*
* The test validates both the virtual and physical timer IRQs using
* CVAL and TVAL registers. This consitutes the four stages in the test.
* The guest's main thread configures the timer interrupt for a stage
... |
/*
* Virtio-SCSI implementation for s390 machine loader for qemu
*
* Copyright 2015 IBM Corp.
* Author: Eugene "jno" Dvurechenski <<EMAIL>>
*
* This work is licensed under the terms of the GNU GPL, version 2 or (at
* your option) any later version. See the COPYING file in the top-level
* directory.
*/
#includ... |
/*
* replay.c : routines for replaying revisions
*
* ====================================================================
* 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
*... |
#ifdef COMPILE_FOR_TEST
#include <assert.h>
#define assume(cond) assert(cond)
#endif
void main(int argc, char* argv[]) {
int x_0_0;//sh_buf.outcnt
int x_0_1;//sh_buf.outcnt
int x_0_2;//sh_buf.outcnt
int x_0_3;//sh_buf.outcnt
int x_0_4;//sh_buf.outcnt
int x_0_5;//sh_buf.outcnt
int x_1_0;//sh_buf.outbuf[0]
int x_... |
#include "io-read.h"
#include <gba_compression.h>
#include <gba_dma.h>
#include <gba_input.h>
#include <gba_interrupt.h>
#include <gba_systemcalls.h>
#include <gba_sprites.h>
#include <gba_video.h>
#include <stdio.h>
#include <string.h>
#include "font.h"
#include "suite.h"
#include "videotest.h"
#include "degenerat... |
// Helper program to generate a new secret for use in two-factor
// authentication.
//
// Copyright 2010 Google Inc.
// Author: <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
//
/... |
/*
* (C) <NAME> 1997-2004
* This is free software, see GNU Public License version 2 for
* details.
*
* Simple forking WWW Server benchmark:
*
* Usage:
* webbench --help
*
* Return codes:
* 0 - sucess
* 1 - benchmark failed (server is not on-line)
* 2 - bad param
* 3 - internal error, fork failed
*
*/
#... |
/* $OpenBSD: s23_srvr.c,v 1.45 2015/09/11 18:08:21 jsing Exp $ */
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME> (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commerci... |
/*********************************
* <NAME>
* <EMAIL>
*********************************/
#include <sys/param.h>
#include <sys/module.h>
#include <sys/kernel.h>
#include <sys/systm.h>
#include <sys/conf.h>
#include <sys/bus.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/syslog.h>
#include <sys/fcntl.h... |
/***************************************************************************
* PHAST: PHylogenetic Analysis with Space/Time models
* Copyright (c) 2002-2005 University of California, 2006-2010 Cornell
* University. All rights reserved.
*
* This source code is distributed under a BSD-style license. See the
* fi... |
/*
* Copyright (C) 2006 Red Hat, 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 ... |
#include "bitmatrix.h"
#include <string.h>
/* converts address given in x y to x y mask, where x is reduced to
new x and mask */
void calcAddr(int *x, int *y, int *mask){
*mask=1<<(*x%intBits);
*x/=intBits;
}
/* assumes a bunch of bytes in `bits', which are 0 or 1,
or's the set bits into the position ... |
/*
* Copyright (C) 2015-2018 S[&]T, The Netherlands.
* 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... |
/* -*- c-file-style: "k&r"; indent-tabs-mode: nil; -*- */
/*********************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2013,2014 Genome Institute of Singapore
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and ass... |
// SPDX-License-Identifier: BSD-2-Clause
/*
* (c) 2020 <NAME> <<EMAIL>>, Foundries Ltd.
*/
#include <arm.h>
#include <drivers/imx_i2c.h>
#include <initcall.h>
#include <io.h>
#include <kernel/delay.h>
#include <mm/core_memprot.h>
#include <mm/core_mmu.h>
#include <platform_config.h>
#include <stdlib.h>
#include <trac... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void lock_alloc(int id)
{
}
void lock_free(int id)
{
}
#include "../type.h"
#include "../string.h"
#include "../var.h"
#ifdef is_space
#undef is_space
#endif
#define is_space(c) (c==' '||c=='\t'||c=='\r')
static char buff[4096]; // 缓存区
static char *val[... |
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdarg.h>
#include <sqlcli1.h>
#include "PaseCliInit.h"
#include "PaseCliPrintf.h"
#include "PaseCliDevFile.h"
/* Thread specific data key */
pthread_key_t printDataKey = NULL;
#define uint16 unsigned short
... |
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 1989, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME> at Cray Research, Inc.
*
* Redistribution and use in source and binary forms, with or wi... |
/*
* H263/MPEG4 backend for encoder and decoder
* Copyright (c) 2000,2001 <NAME>
* H263+ support.
* Copyright (c) 2001 <NAME>
* Copyright (c) 2002-2004 <NAME> <<EMAIL>>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Ge... |
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include "util.h"
#include "errormsg.h"
#include "symbol.h"
#include "absyn.h"
#include "types.h"
#include "helper.h"
#include "env.h"
#include "semant.h"
/*Lab4: Your implementation of lab4*/
//In Lab4, the first argument exp should alway... |
/**********************************************************************
Copyright(c) 2011-2014 Intel Corporation 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 c... |
/*
* 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) 2017 Intel Corporation
*/
#include <stdbool.h>
#include <rte_crypto.h>
#include <rte_cryptodev.h>
#include <rte_cycles.h>
#include <rte_malloc.h>
#include "cperf_ops.h"
#include "cperf_test_pmd_cyclecount.h"
#include "cperf_test_common.h"
#define PRETTY_HDR_... |
/*
* info.c: return system-generated metadata about paths or URLs.
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additio... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "y.tab.h"
#include "pepe.h"
/* [label[:]] [{instruction | pseudo instruction | directive | macro call}] [; comment] */
void yyerror(char *s);
int yyparse(void);
char *filename = "<<stdin>>";
int newops; /* v3 flag */
int flags;
st... |
/* Copyright (c) 2013 The Regents of the University of California
* <NAME> <<EMAIL>>
* See LICENSE for details.
*
* Userspace functions for various measurements.
*
* For now, this is built into parlib. We can pull it out in the future. Many
* of the larger functions are in flux. */
#include <ros/common.h>
#in... |
// libmylcd - http://mylcd.sourceforge.net/
// An LCD framebuffer library
// <NAME>
// <EMAIL>
// Copyright (c) 2005-2009 <NAME>
//
// This program 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 Foundati... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2009-2010 <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 mus... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<unistd.h>
#include <dirent.h>
#include<zlib.h>
#include <time.h>
#include <math.h>
#include "Istruct.h"
#ifndef MAX_READ_LENGTH
#define MAX_READ_LENGTH 400
#endif
extern struct emp_freq LK;
extern ... |
/*
* linux specific part of the int10 module
* Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2008 <NAME>
*/
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
#include "xf86.h"
#include "xf86_OSproc.h"
#include "xf86Pci.h"
#include "compiler.h"
#define _INT10_PRIVATE
#include "xf86int10.h"
#ifdef __sparc__
#... |
/* Copyright (c) 2013-2015, The Linux Foundation. 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 ... |
/*
* (C) Copyright 2003
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* (C) Copyright 2004
* <NAME>, Freescale Semiconductor, <EMAIL>.
*
* (C) Copyright 2005-2009
* Modified for InterControl digsyMTC MPC5200 board by
* <NAME>, GCD Hard- & Software GmbH,
* <EMAIL>
*
* (C) Copyright 2009
* ... |
/* Lzma2Enc.c -- LZMA2 Encoder
2015-10-04 : <NAME> : Public domain */
#include "Precomp.h"
/* #include <stdio.h> */
#include <string.h>
/* #define _7ZIP_ST */
#include "Lzma2Enc.h"
#ifndef _7ZIP_ST
#include "MtCoder.h"
#else
#define NUM_MT_CODER_THREADS_MAX 1
#endif
#define LZMA2_CONTROL_LZMA (1 << 7)
#define LZM... |
/// @file lcd.c
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/spi/spidev.h>
#include <time.h>
#include <stdio.h>
#include "lcd.h"
#define AUTOCS 0
static uint32_t spi_mode = 0;
static uint8_t bits = 8;
static uint32_t speed = 400000;
static uint16_t tx_delay;
stat... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
/*
eclsaCodecAdapter_LibecDLR.c
Author: <NAME> (<EMAIL>)
Project Supervisor: <NAME> (<EMAIL>)
Copyright (c) 2016, <NAME> Studiorum, University of Bologna
All rights reserved.
todo
* */
#include "eclsaCodecAdapter.h"
#include <libec.h> //libec decoder
#include <unistd.h>
#include <fcntl.h> //open flag O_RDON... |
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <ctype.h>
#include "mxml.h"
#define MXML_NEW(s) mxml_new(s, sizeof s - 1)
#ifdef DEBUG
# define verbose_printf(...) fprintf(stderr, __VA_ARGS__)
#else
# define verbose_printf(...) /* nothing */
#endif
/**
* C... |
/*
* Copyright (c) 2009-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <limits.h>
#include... |
/* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved.
This software is licensed as OpenSource, under the Apache License, Version 2.0. This license is available at: http://opensource.org/licenses/Apache-2.0. */
/*********************************************************************... |
/* ../netlib/sggglm.f -- translated by f2c (version 20160102). 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 en... |
#include "cache.h"
#include "split-index.h"
#include "ewah/ewok.h"
struct split_index *init_split_index(struct index_state *istate)
{
if (!istate->split_index) {
istate->split_index = xcalloc(1, sizeof(*istate->split_index));
istate->split_index->refcount = 1;
}
return istate->split_index;
}
int read_link_exte... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* util/support/t_hex.c - Test hex encoding and decoding */
/*
* Copyright (C) 2018 by the Massachusetts Institute of Technology.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitt... |
/*====================================================================================
EVS Codec 3GPP TS26.443 Oct 20, 2015. Version 12.4.0
====================================================================================*/
#include <stdlib.h>
#include <math.h>
#include "options.h"
#include "cnst.h"
#include ... |
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#define UP 0
#define DOWN 1
#define LEFT 2
#define RIGHT 3
#define TAG 666
#define SHUTDOWN -1.0
#define GOING 0.0
#define RETURNING 1.0
// Get the group of processes in MPI_COMM_WORLD
MPI_Group world_group... |
#include "postgres.h"
#include "fmgr.h"
#include "funcapi.h"
#include "executor/spi.h"
#include "utils/builtins.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "PQueue.h"
#include <regex.h>
#include "catalog/pg_type.h"
#define MISS -2147483647
#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b)... |
/******************************************************************************
* Filename: data_packet.c
* Description: Creates and decodes data packets sent between this controller
* and other devices. Packets use a defined framing and order
* with CRC to ensure data integrity.
*
* Pac... |
/* mnpola.f -- translated by f2c (version 19961017).
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;
/* ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc */
/* c ... |
/* 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 may not... |
/*
* Size memory and create the kernel page-tables on the fly while doing so.
* Called from main(), this code should only be run by the bootstrap processor.
*/
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "io.h"
#define MEMDEBUG 0
enum {
MemUPA = 0, /* unba... |
/*
* Copyright 2021 The UAPKI Project Authors.
* Copyright 2016 PrivatBank IT <<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... |
#ifndef lint
static const char RCSid[] = "$Id: raypcalls.c,v 2.28 2011/08/20 18:23:38 greg Exp $";
#endif
/*
* raypcalls.c - interface for parallel rendering using Radiance
*
* External symbols declared in ray.h
*/
#include "copyright.h"
/*
* These calls are designed similarly to the ones in raycalls.c,
* b... |
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <math.h>
#include <assert.h>
#include "../types.h"
#include "../mem.h"
typedef struct _ibbox {
int xmin,ymin,xmax,ymax;
struct _ibbox*next;
} ibbox_t;
ibbox_t* ibbox_new(int x1, int y1, int x2, int y2)
{
ibbox_t*b = (ibbox_t*)rfx_calloc(s... |
#ifndef _MSC_VER
#include <stdbool.h>
#include <sched.h>
#endif
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _MSC_VER
#define snprintf _snprintf
#endif
#include "libretro.h"
#include "libretro_core_options.h"
#include "sound.h"
#include "memorymap.h"
#include "supervision.h"
... |
/**************************************************************************************************
* Procedure: Init boot code/firmware code/data session
*
* Description: This routine will intialize firmware. If any error occurs during the initialization
* process, the routine shall terminate immediately and ... |
/*
Copyright (c) 2012, 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 following disclaimer.
... |
/*
* GStreamer
* Copyright (C) 2008 <NAME> <<EMAIL>>
* Copyright (C) 2012 <NAME> <<EMAIL>>
*
* 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 License, or... |
/******************************************************************************
* Copyright (C) 2008 - 2016 <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, inclu... |
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <fcntl.h>
#include <errno.h>
#include <signal.h>
#include <pthread.h>
#include <sys/stat.h>
#include <sys/utsname.h>
#include <hiredis.h>
#include <darray.h>
#include <dlog.h>
#include <vrt_util.h>
#include <vrt_public.h>
/* GCC version >= 4.7 */
#... |
/* smsh -- simple command processor */
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <pwd.h>
#include <sys/types.h>
#include <fcntl.h>
#include <ctype.h>
#include <signal.h>
// #include <wait.h>
#define EOL 1 /* end of line */
#define ARG 2 /* normal argum... |
/*
*
* Copyright 2017 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
#include "filehandling.h"
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <omp.h>
//#include "mkl.h"
#include "eigenvalues.h"
#include "../lib/mmio.h"
int readTriadiagonalMatrixFromSparseMTX(const char* filename, double** T, int* n) {
int ret_code;
MM_typecode matcode;
FILE *f;
in... |
/*
Copyright (c) 1991 - 1994 <NAME>. All rights reserved.
Parts Copyright (c) 1999 <NAME> All rights reserved.
Distributed by Free Software Foundation, Inc.
This file is part of HP2xx.
HP2xx is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY. No author or distributor accepts ... |
#include <u.h>
#include <libc.h>
#include "../port/bootp.h"
#include "../port/arp.h"
#include "../boot/boot.h"
/*
* il
*/
uchar fsip[4];
uchar auip[4];
uchar gwip[4];
uchar ipmask[4];
uchar ipaddr[4]; /* our ip address */
uchar eaddr[6]; /* our ether address */
uchar bcast[6]; /* our ether broadcast address */
uc... |
/*
* $Id: Disassembler.c 792 2009-04-06 08:07:33Z michael.haupt $
*
Copyright (c) 2007 <NAME>, <NAME>
Software Architecture Group, Hasso Plattner Institute, Potsdam, Germany
http://www.hpi.uni-potsdam.de/swa/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated... |
/*
* ADIOS is freely available under the terms of the BSD license described
* in the COPYING file in the top level directory of this source distribution.
*
* Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved.
*/
/*=================================================================
* adiosreadc.c -... |
/*
* cbfs-mkpayload
*
* Copyright (C) 2008 <NAME> <<EMAIL>>
* 2009 coresystems GmbH
* written 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 Fou... |
// -------------------------------------------------------------------------------------------
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// This file is part of the AWS CDI-SDK, licensed under the BSD 2-Clause "Simplified" License.
// License details at: https://github.com/aws/aws-cdi-sdk/blo... |
#include "pocolib.h"
#include "poco.h"
static void dummy_libfunc() {}
static Lib_proto lib[] = {
/********* User Interface library ***********/
/*
these ones are coded in MAIN.C
{dummy_libfunc, "void printf(char *format, ...);"},
{dummy_libfunc, "void Qtext(char *format, ...);"},
*/
{dummy_libfunc... |
#include <errno.h>
#include "../src/config.h"
#include "../src/log.h"
#include "../src/scanner.h"
#include "../src/default_scanner.h"
#include "../src/util.h"
#include "test.h"
struct tcase {
char* input;
size_t ilen;
log_t* expected;
};
#define LOG1 ... |
/****************************************************************************/
/* This module is mostly all new */
/* by <NAME> (<EMAIL>) */
/* Copyright 1996 <NAME>. No restrictions are placed on this code, */
/* as long as the copyright notice is prese... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.