text stringlengths 5.8k 28.2k |
|---|
/*
* (C) Copyright 2009 Freescale Semiconductor, Inc.
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm/io.h>
#include <asm/gpio.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/iomux-mx51.h>
#include <linux/errno.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/crm_regs.h>
#inclu... |
/* mz_strm_split.c -- Stream for split files
part of the MiniZip project
Copyright (C) 2010-2020 <NAME>
https://github.com/nmoinvaz/minizip
This program is distributed under the terms of the same license as zlib.
See the accompanying LICENSE file for the full text of the license.
*/
#include "mz.h"... |
#include <string.h>
#include <stdlib.h>
#include "hdf5.h"
#include "flash_reader.h"
/* if mem_type is 0, use the one returned by H5Dget_type */
int FR_slurp_HDF5(hid_t handle, hid_t mem_type, char *name, void *target){
hid_t dataset, dataset_type;
herr_t status;
int auto_type = 0;
if (!mem_type)
auto_ty... |
/******* d_congrad2.c - conjugate gradient for SU3/fermions ****/
/* MIMD version 7 */
/* <NAME> */
/* if "LU" is defined use the LU preconditioned fermion matrix, where
the fermion spinors live on even sites only. In other words, if
Dslash_oe is the dslash operator with its source on even sites and
its resu... |
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#include <math.h>
#include <pthread.h>
#include <string.h>
#include <network.h>
#include <protocol.h>
#include <common_math.h>
#include "main.h"
#include "nbody.h"
#include "player.h"
extern Player *player;
extern int... |
/*
* Copyright (c) 2007 - 2019 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... |
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "runtime.h"
#include "arch_GOARCH.h"
#include "stack.h"
#include "malloc.h"
// Code related to defer, panic and recover.
uint32 runtime·panicking;
st... |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... |
//
// compiler_test.c
// gravity
//
// Created by <NAME> on 24/03/16.
// Copyright © 2016 CreoLabs. All rights reserved.
//
#include "gravity_compiler.h"
#include "gravity_optionals.h"
#include "gravity_utils.h"
#include "gravity_core.h"
#include "gravity_vm.h"
#define DEFAULT_OUTPUT "gravity.g"
typedef struct {... |
/*
* 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... |
/*
* 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) 2009-2021, Google LLC
* 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 ... |
//////////////////////////////////////////////////////////////////////
//
// lsystems_v4.c
// <NAME>
//
//////////////////////////////////////////////////////////////////////
//
// Based on documentation in https://en.wikipedia.org/wiki/L-system and
// http://paulbourke.net/fractals/lsys/
#include <stdio.h>
#include <... |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein is
* confidential and proprietary to MediaTek Inc. and/or its licensors. Without
* the prior written permission of MediaTek inc. and/or ... |
/**
* @file
* @brief Defines the procedures to make operations with
* the BA413 hash function
* @copyright Copyright (c) 2016-2020 Silex Insight. All Rights reserved
*/
#include "sx_hash.h"
#include <string.h>
#include <stddef.h>
#include "cryptolib_def.h"
#include "cryptodma_internal.h"
#include "sx_me... |
/* copyright 2013 <NAME> and contributors (see LICENSE for licensing information) */
#include "option_parser.h"
#include <glib.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "x11/x.h"
#include "dunst.h"
#include "log.h"
#include "utils.h"
#include "sett... |
// Copyright 2020 Espressif Systems (Shanghai) Co. Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appli... |
#include <stdint.h>
#include <elf.h>
#include <armv7-arm.h>
#include <sections/data.h>
#include <string.h>
#include <assert.h>
#define INSTRUCTION_SIZE 9*4
#define DATA_SIZE 16
#define CODE_BASE_ADDR 0x10000
#define DATA_BASE_ADDR 0x20000
enum program_elements {
element_elf_header,
element_text_phdr,
element_da... |
/*
Copyright 2013 <NAME> <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope th... |
/*******************************************************************************
**
*Copyright (c) 2014 PMC-Sierra, Inc. All rights reserved.
*
*Redistribution and use in source and binary forms, with or without modification, are permitted provided
*that the following conditions are met:
*1. Redistributions of sour... |
/*
* game.c
*
* Created on: Dec 11, 2018
* Author: nds
*/
#include "game.h"
int player_x;
int player_y;
int screen_x;
int screen_y;
int flying;
int sell_mode, buy_mode;
bool gameOver;
int mineral_count = 0;
int fuel_price;
int drill_price;
Mineral *mineralMap;
dir orientation;
u16 *player_horizontal, ... |
/* R O T . C
* BRL-CAD
*
* Copyright (c) 1986-2019 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 pub... |
/* Copyright (c) 2017, ARM Limited
* All rights reserved
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file
*
* ODP Chained Buffer
*/
/* Helper functions to define a chained buffer interface since
* current ODP code does not have a working implementation.
*/
#include <odp/api/chained_buffer.h>
#i... |
/// DENG: dynamic engine - small but powerful 3D game engine
/// licence: Apache, see LICENCE file
/// file: tex_loader.c - das image loader source file
/// author: <NAME>
#define __TEX_LOADER_C
#include <data/tex_loader.h>
static FILE *__file;
/// Image headers initialisation
void __das_InitBMPImageHeaders (
_... |
/*
* vr_dpdk_offloads.c -- dpdk callbacks for datapath flow offloads management
*
* Copyright 2018 Mellanox Technologies, Ltd
*/
#include "vr_dpdk_offloads.h"
#include "vr_vxlan.h"
#include <rte_flow.h>
int
dpdk_offload_flow_destroy(struct vr_offload_flow *oflow)
{
struct vr_dpdk_ethdev *ethdev = (struct vr_dp... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2014 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
*
* 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 ... |
#include "unpifiplus.h"
#include "config.h"
#include "ifi.h"
#include "packet.h"
#include <assert.h>
#include <pthread.h>
#include "client_thread.h"
#include "rtt_mod.h"
#include <math.h>
#include <setjmp.h>
/* Globals */
pthread_mutex_t buf_mutex = PTHREAD_MUTEX_INITIALIZER;
static rtt_info_t rttinfo;
static sigjmp_b... |
/*
Copyright (c) 2005 dogbert <<EMAIL>>, <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 conditi... |
#include "xmlrpc_config.h"
#define _XOPEN_SOURCE 600 /* Make sure strdup() is in <string.h> */
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include <stdio.h>
#if MSVCRT
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
#endif
#include "bool.h"
#include "malloc... |
/*
* Copyright 2016-2022 <NAME> <<EMAIL>>.
* Copyright 2015 <NAME>
* <https://www.linkedin.com/in/vladimirromanov>, Yota Lab.
*
* This file is part of libmdbx.
*
* ReOpenMDBX is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by
* ... |
#include "mltaln.h"
#define DEBUG 0
#define IODEBUG 0
#define SCOREOUT 1
double corethr;
int coreext;
void arguments( int argc, char *argv[] )
{
int c;
fftkeika = 1;
constraint = 0;
nblosum = 62;
fmodel = 0;
calledByXced = 0;
devide = 0;
use_fft = 0;
fftscore = 1;
fftRepeatStop = 0;
fftNoAnchStop = 0;... |
// SPDX-License-Identifier: GPL-2.0
//
// TSE-850 audio - ASoC driver for the Axentia TSE-850 with a PCM5142 codec
//
// Copyright (C) 2016 Axentia Technologies AB
//
// Author: <NAME> <<EMAIL>>
//
// loop1 relays
// IN1 +---o +------------+ o---+ OUT1
// \ /
// +... |
/* $Id: blast_tune.c 500404 2016-05-04 14:59:01Z camacho $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work... |
/*
1 1/23/99 10:09p Ceco
1 12/11/98 3:43p Ceco
4 11/15/98 3:07p Ceco
3 11/12/98 8:14p Ceco
BUGFIX: AllocateVirginPage() can be used to allocate empty pages, but
it assumed that it is always called to allocate the first block in the
page.
2 11/03/98 8:28p Ceco
1 11/03/98 8:27p Ceco
... |
#include <stdio.h>
//Unsigned 32-bit data type
#ifndef ubit32_t
#define ubit32_t unsigned int
#endif
//NOTE: Change unsigned int to whatever 32-bit
//data type which is unsigned (only if needed)
//Change all the data types to whatever needed
//Unsigned 16-bit data type
#ifndef ubit16_t
#define ubit16_t un... |
/*
* Licensed to the .NET Foundation under one or more agreements.
* The .NET Foundation licenses this file to you under the MIT license.
*/
#include <config.h>
#include <mono/metadata/abi-details.h>
#include <mono/metadata/mono-debug.h>
#include "interp/interp.h"
#include "ir-emit.h"
#include "mini.h"
#include "... |
/*
* Copyright (c) 2006 <NAME>
*/
#include "cache.h"
#include "archive.h"
#include "streaming.h"
#include "utf8.h"
#include "userdiff.h"
#include "xdiff-interface.h"
static int zip_date;
static int zip_time;
static unsigned char *zip_dir;
static unsigned int zip_dir_size;
static unsigned int zip_offset;
static uns... |
/* @source est2genome application
**
** <NAME>'s est_genome ported into EMBOSS.
** See also nucleus/embest.c
**
** @author Copyright (C) <NAME>, Sanger Centre
** @author Copyright (C) <NAME>, Sanger Centre
** @@
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of the GNU ... |
/* This file contains:
doDQI
OpenBpixTab
ReadBpixTab
CloseBpixTab
DQINormal
*/
# include <stdio.h>
# include <string.h>
#include "hstcal.h"
# include "xtables.h"
# include "hstio.h"
# include "acs.h"
# include "acsinfo.h"
# include "hstcalerr.h"
# include "acsdq.h"
typedef struct {
IRAFPointer tp; /* pointe... |
/********************************************************************
* File : init_sym.c
* Author : <NAME> Copyright (C) 1994-2019
* 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:/... |
/*
* Program to prepend an AMSDOS header to a file so that it can be
* Transferred onto a .DSK image using standard tools
*
* <NAME> - 29/8/2003
*
* Header information taken from cpcfs by <NAME>
* (http://perso.wanadoo.fr/thierry.jouin/Amstrad/cpcfs.htm)
*
* The cassette format and wav handling code comes f... |
#define _XOPEN_SOURCE 501
#include <sys/stat.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#include <fcntl.h>
#include <unistd.h>
#include "frankentar.h"
#include "frankentar/read.h"
#include "frankentar/util.h"
#include "frankentar/write.h"
... |
/*
* This file is part of the OpenSupaplex distribution (https://github.com/sergiou87/open-supaplex).
* Copyright (c) 2020 <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, version 3.
*
*... |
/**************************************************************************
* *
* SPRINT: Simple Parallel R INTerface *
* Copyright ? 2008,2009 The University of Edinburgh *
* ... |
#include <msp430fr5994.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
// Enable both ECB and CBC mode. Note this can be done before including aes.h or
// at compile-time. E.g. with GCC by using the -D flag: gcc -c aes.c -DCBC=0
// -DECB=1
#define CBC 1
#define ECB 1
#include "aes.h"
static void test_e... |
/*
Copyright 2011,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 version 2 of the License, or
(at your option) any later version.
This program is distributed in the hop... |
/****************************************************************************
* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4 -*-
*
* start.c
* Implements functions used by the main loop
*
* Ezeedo
* A todo.txt app for the GNOME desktop
*
* Copyright (c) 2014 - Y20K.org
* Licensed unde... |
// This file is part of Deark.
// Copyright (C) 2019 <NAME>
// See the file COPYING for terms of use.
// SAUCE
// Special module that reads SAUCE metadata for other modules to use,
// and handles files with SAUCE records if they aren't otherwise handled.
// SAUCE = Standard Architecture for Universal Comment Extension... |
/*
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <record.h>
#include <stdint.h>
#... |
/*
* Copyright (c) 2006 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
#include <stdlib.h>
#include "ayym.h"
// tables
int noizes[0x20000]; // here iz noize values [generated at start]
unsigned char envforms[16][33]={
/* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 */
{15,14,13,12,11,10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0... |
// ncPODDriver.h
// Version 0.1.0.0 of the ncPOD Driver.
// Wed 2006-10-04
// Copyright OEMTech
// Version 0.1.0.0 has minimal functionality defined.
// Support for the SD card will be provided in a later version.
#define STATMODERUN 0
#define STATMODEPROBE 1
#define STATMODEDEBUG 2
enum usbCommandEnum
{
USBP... |
/** <!--
*
* Copyright (C) 2014 OpenVCX <EMAIL>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
... |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define if the compiler is building for multiple architectures of Apple
platforms at once. */
/* #undef AA_APPLE_UNIVERSAL_BUILD */
/* Define to the number of bits in type 'ptrdiff_t'. */
/*... |
#include <u.h>
#include <libc.h>
#include <ctype.h>
#include <bio.h>
#include <flate.h>
#include <draw.h>
#include "imagefile.h"
int debug;
enum
{
IDATSIZE = 1000000,
/* filtering algorithms */
FilterNone = 0, /* new[x][y] = buf[x][y] */
FilterSub = 1, /* new[x][y] = buf[x][y] + new[x-1][y] */
FilterUp = 2, /*... |
/* Extended Module Player
* Copyright (C) 1996-2021 <NAME> and <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to... |
#include "pcfg_dcm.h"
#include "wind_pk.h"
#include "esteps.h"
#include "map3d.h"
#include "windmisc.h" /* for debugging */
#include "pckt_prt.h"
#include <string.h> /* for memcpy() */
#include <stdio.h>
uchar default_pcfg_data[]= {
0x03,0x0f,0x6c,0x00,0xb9,0xe0,0x8e,0xe1,0xe7,0xe1,0xf0,0xe1,0x0c,0xe2,0x68,... |
/* Copyright (C) 2015, 2016 mod_auth_gssapi contributors - See COPYING for (C) terms */
#include "mod_auth_gssapi.h"
struct name_attr {
gss_buffer_desc name;
int authenticated;
int complete;
gss_buffer_desc value;
gss_buffer_desc display_value;
const char *env_name;
int number;
int mor... |
/*
* nlfer.c
*
* Code generation for function 'nlfer'
*
*/
/* Include files */
#include "rt_nonfinite.h"
#include "yaapt.h"
#include "nlfer.h"
#include "yaapt_emxutil.h"
#include "eml_int_forloop_overflow_check.h"
#include "mean.h"
#include "isequal.h"
#include "Myspecgram.h"
#include "yaapt_data.h"
#include "bla... |
/******************************************************************************/
/* Copyright (c) 2012 Montage Tech - All Rights Reserved */
/******************************************************************************/
// std headers
#include "string.h"
// sys headers
#include "sys_types.h"
#in... |
/*
* Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use thi... |
/*
* MIPS MSA optimizations for libjpeg-turbo
*
* Copyright (C) 2016-2017, Imagination Technologies.
* All rights reserved.
* Authors: <NAME> (<EMAIL>)
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the ... |
//=======================================================================
// Project Polyphony
//
// File:
// pplib.c
//
// Abstract:
// Graphics library implementation
//
// Created:
// 22 July 2008
//
// Copyright (c) 2008 <NAME>, All rights reserved.
//
//====================================================... |
/* $OpenBSD: sig_machdep.c,v 1.2 2004/02/16 15:40:00 miod Exp $ */
/* $NetBSD: sig_machdep.c,v 1.22 2003/10/08 00:28:41 thorpej Exp $ */
/*
* Copyright (c) 1994-1998 <NAME>.
* Copyright (c) 1994 Brini.
* All rights reserved.
*
* This code is derived from software written for Brini by <NAME>
*
* Redistribution a... |
/*
* dwire-gdb: A GDB server for AVR 8 bit microcontrollers, using debugWire
* protocol through USB-to-TTL adapters.
* Copyright (C) 2019 <NAME> <<EMAIL>>
*
* This program can be distributed under the terms of the BSD License.
* See the file LICENSE.
*/
#include <errno.h>
#include <stdbool.h>
#includ... |
/**
* Copyright (C) Mellanox Technologies Ltd. 2001-2015. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
#include "ucp_ep.h"
#include "ucp_worker.h"
#include "ucp_ep.inl"
#include "ucp_request.inl"
#include <ucp/wireup/stub_ep.h>
#include <ucp/wireup/wireup.h>
#include <ucp/tag/eager.h>
#include <ucs/debug/... |
#include <math.h>
#include <stdbool.h>
#include "msdfgl.h"
#include "msdfgl_serializer.h"
enum Color {
BLACK = 0,
RED = 1,
GREEN = 2,
YELLOW = 3,
BLUE = 4,
MAGENTA = 5,
CYAN = 6,
WHITE = 7
};
typedef struct vec2 {
GLfloat x;
GLfloat y;
} vec2;
static inline vec2 mix(const vec... |
/*
* sha.c - NIST Secure Hash Algorithm, FIPS PUB 180 and 180.1.
* The algorithm is by spook(s) unknown at the U.S. National Security Agency.
*
* Written 2 September 1992, <NAME>.
* This implementation placed in the public domain.
*
* Modified 1 June 1993, <NAME>.
* Modified for the new SHS based on Peter Gutma... |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include "aos/hal/gpio.h"
#include "aos/hal/spi.h"
#include "hal_iomux_haas1000.h"
#include "hal_lcd.h"
// user define area
#define ILI9341_HEIGHT 240
#define ILI9341_WIDTH 320
#define ILI9341_DC_PIN 4
#define ILI9341_RESET_PIN 0
// S... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "firmware.h"
#include "irq_test_lib.h"
#define ERR_CODE_WRONG_ORDER 2
#define ERR_CODE_WRONG_NUM 3
#define OUTPORT 0x10000000
#define RND_STALL_REG_10 0x16000028 // irq_mode
#define RND_STALL_REG_11 0x1600002C // irq_min_cycles
#define... |
/* -----------------------------------------------------------------------------
* libmpxtn by stkchp
* -----------------------------------------------------------------------------
*
* The MIT License
*
* Copyright (c) 2017 stkchp
*
* Permission is hereby granted, free of charge, to any person obtaining a cop... |
/*
* radtst_extmemory.c
*
* Created on: 17.01.2020
*/
#include <chip.h>
#include <stdio.h>
#include "radiation_test.h"
#include "radtst_memory.h"
#include "radtst_extmemory.h"
#include "../../globals.h"
#include "../mem/mram.h"
#include "../mem/eeprom.h"
#include "../mem/flash.h"
#define RADTST_MRAM_TARGET_PAG... |
/* Copyright 1998 <NAME>.
*
* $Id$
*
* Larceny run-time system -- large object space.
*
* A large object is a Scheme object that is allocated in a dedicated set
* of pages. Large objects have a pre-header consisting of the four words
* before the normal object header. The header contains a size field, a
* po... |
/* Copyright ©2006-2010 <NAME> <<EMAIL> G<EMAIL>>
* See LICENSE file for license details.
*/
#include <assert.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "ixp_local.h"
typedef void* IxpFileIdU;
static char
Eno... |
/*
* Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... |
/* /
* This file is part of the Hawker container engine developed by
* the HExSA Lab at Illinois Institute of Technology.
*
* Copyright (c) 2018, <NAME> <<EMAIL>>
*
* All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*
* This is free software. You are permitted to use,
* redistribute, and modify it as speci... |
/*
* chan_data_can1.c
*
* Created on: 2020年1月3日
* Author: Fox
*/
#include "channel/chan_data_can1.h"
#include "misc.h"
#include "stm32f10x_gpio.h"
#include "stm32f10x_can.h"
#include "stm32f10x_rcc.h"
Send_Rec_Data_Structure CAN1_Receive;
Send_Rec_Data_Structure CAN1_Send;
//多通道CAN接收缓冲区
Send_Rec_Data_Stru... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
/* Copyright (C)2004 Landmark Graphics Corporation
* Copyright (C)2005 Sun Microsystems, Inc.
*
* This library is free software and may be redistributed and/or modified under
* the terms of the wxWindows Library License, Version 3.1 or (at your option)
* any later version. The full license is in the LICENSE.txt f... |
/*
===========================================================================
IPTraf
An IP Network Statistics Utility
Written by <NAME> <<EMAIL>>
Copyright (c) <NAME> 1997-2002
Version 2.6.2
Main Module
---------------------------------------------------------------------------
This software is open-source; you can ... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <errno.h>
struct cmdInfo {
char* command;
char* args[513]; // Includes the command
bool isIgnored; // True for comments and blank lines... |
/*++
Copyright (c) 1995 Microsoft Corporation
Module Name:
ripproc.c
Abstract:
RIP processing functions
Author:
<NAME> 09/01/1995
Revision History:
--*/
#include "precomp.h"
#pragma hdrstop
VOID
RipRequest(PWORK_ITEM wip);
VOID
RipResponse(PWORK_ITEM wip... |
/* GIO - GLib Input, Output and Streaming Library
*
* Copyright (C) 2014 <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 the License, or (at your o... |
/*
* Copyright © 2014 Advanced Micro Devices, 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,
* modi... |
#include "lcd_fmc.h"
/**********************************************************
* lcd 复位控制信号
*
*/
void LCD_Reset(void)
{
HAL_GPIO_WritePin(LCD_RST,(GPIO_PinState)1);
osDelay(2);
HAL_GPIO_WritePin(LCD_RST,(GPIO_PinState)0);
osDelay(2);
HAL_GPIO_WritePin(LCD_RST,(GPIO_PinState)1);
}
/* *********************... |
/*
* Player - One Hell of a Robot Server
* Copyright (C) 2003
* <NAME>
* <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* ... |
#include "sound.h"
#include "../paging.h"
#include "../lib.h"
#include "../file_sys.h"
#include "../i8259.h"
/* Global Section */
volatile uint32_t total_samples; /* the remained unload date */
volatile uint32_t chunk_off; /* index to-loaded data from the start */
// volatile uint8_t play_music = 0;
dentry_t music_... |
/*
* Subtitles converter to SSA/ASS in order to allow special formatting
*
* This file is part of MPlayer.
*
* MPlayer 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... |
/* $OpenBSD: mkioconf.c,v 1.28 2008/03/24 21:35:03 maja Exp $ */
/* $NetBSD: mkioconf.c,v 1.41 1996/11/11 14:18:49 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This software was developed by the Computer Systems Engineering group
* at Lawr... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* *
* ... |
#include"stdio.h"
#include"math.h"
#include"stdlib.h"
#define MESHX 100
#define MESHY 50
#define deltat (0.005)
#define deltax (1.0)
#define deltay (1.0)
#define deltax2 (deltax*deltax)
#define deltay2 (deltay*deltay)
#define D (1.0)
#define M (1.0)
#define omega (1.0)
#define gamma (1.0) /*Surface energy*/
#... |
/*
Pi1MHz 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 3 of the License, or
(at your option) any later version.
Pi1MHz is distributed in the hope that it will be useful,
... |
/*
* 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... |
/*
* 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... |
/* Copyright 2016, <NAME>.
* All rights reserved.
*
* This file is part sAPI library for microcontrollers.
*
* 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 retai... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "types.h"
#include "operatorUtility.h"
#include "functions.h"
err_ret eye(struct matrix const *const a, struct matrix **out) {
err_ret err = 0;
if(a->dim != 1) {
return e_invalid_expr;
} else if(a->elements[0] < 1) {
return... |
/**************************************************************/
/* ********************************************************** */
/* * * */
/* * DFG2TPTP * */
/* * ... |
/*
* @DEC_COPYRIGHT@
*/
/*
* HISTORY
* $Log: sc_errors.c,v $
* Revision 1.1.7.2 1996/12/03 00:08:25 Hans_Graves
* Added SvErrorEndOfSequence error.
* [1996/12/03 00:07:32 Hans_Graves]
*
* Revision 1.1.5.2 1996/01/02 18:30:45 Bjorn_Engberg
* Got rid of compiler warnings: Added include files for NT.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.