text stringlengths 3.12k 18.7k |
|---|
/*
* FreeRTOS V202111.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 ... |
/*
sample-memhier.c - example code for a memory hierarchy
Copyright (C) 1998-2004 Virtutech AB, All Rights Reserved
This program is a component ("Component") of Virtutech Simics and is
being distributed under Section 1(a)(iv) of the Virtutech Simics
Software License Agreement (the "Agreement"). You should ... |
/**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1987 <NAME>
**********/
#include "spice.h"
#include <stdio.h>
#include "jfetdefs.h"
#include "cktdefs.h"
#include "fteconst.h"
#include "iferrmsg.h"
#include "noisedef.h"
#include "util.h"
#include "suffix.h"
/*
* JFETn... |
/*
* Copyright (c) 2019, Strifus
* All rights reserved.
*/
/*
* This file is licensed according to the BSD 3-clause license as follows:
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of sourc... |
/*
* Copyright (c) 2018 Linaro Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <device.h>
#include <gpio.h>
#include <i2c.h>
#include <kernel.h>
#include <misc/byteorder.h>
#include <misc/util.h>
#include <sensor.h>
#include <misc/__assert.h>
#include <logging/log.h>
#include "ccs811.h"
#define LOG_LEVE... |
/*
* Copyright (c) 2007 <NAME> <<EMAIL>>
* Copyright (c) 2007, 2010 Intel Corporation
* <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 restriction, includ... |
/******************************************************************************
NAME: dspddr
SYNOPSIS: dspddr [-b band] [-f <filename>] <SARfile>
DESCRIPTION:
Dspddr displays all the information in the DDR file. By default,
dspddr will output to the screen all information unless overridden by
the... |
/* Record and playback with re-sampling example.
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 implie... |
/*
* Copyright (c) 2022, StackFoundry LLC
* Copyright (c) 2017, <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 2015 Nouveau project
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish... |
/*-
* 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 Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
* contributed to Berkeley.
*
* Redistribution and use in source and bi... |
/*
* Copyright 2018-2022 Redis Labs Ltd. and Contributors
*
* This file is available under the Redis Labs Source Available License Agreement
*/
#include "resultset_formatters.h"
#include "RG.h"
#include "../../util/arr.h"
#include "../../datatypes/datatypes.h"
// Forward declarations.
static void _ResultSet_Compa... |
/* ECOFF support on MIPS machines.
coff/ecoff.h must be included before this file.
Copyright (C) 1999-2016 Free Software Foundation, Inc.
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 Founda... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifdef FREEBL_NO_DEPEND
#include "stubs.h"
#endif
#include "prerr.h"
#include "secerr.h"
#include "prtypes.h"
#... |
/*
* iucvtty - Application that provides a full-screen terminal for iucvconn
*
* Core application
*
* Copyright IBM Corp. 2008, 2017
*
* s390-tools is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#include <errno.h>
#include <fcntl.h>
... |
/*
!
! (c) 2019 Guide Star Engineering, LLC
! This Software was developed for the US Nuclear Regulatory Commission (US NRC)
! under contract "Multi-Dimensional Physics Implementation into Fuel Analysis under
! Steady-state and Transients (FAST)", contract # NRC-HQ-60-17-C-0007
!
*/
#include ... |
/*
* Copyright (C) 2012 <NAME> ( http://www.micode.net/ )
*
* 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 a... |
//**********************************************************************;
// Copyright (c) 2015-2018, 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:
//
// 1. Redistributions... |
/*
* Public Domain poly1305 from <NAME>
* poly1305-donna-unrolled.c from https://github.com/floodyberry/poly1305-donna
*/
/* $OpenBSD: poly1305.c,v 1.3 2013/12/19 22:57:13 djm Exp $ */
#include <libwebsockets.h>
#include "lws-ssh.h"
#define mul32x32_64(a,b) ((uint64_t)(a) * (b))
#define U8TO32_LE(p) \
(((uint3... |
/*------------------------------------------------------------------------
*
* geqo_eval.c
* Routines to evaluate query trees
*
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL$
*
*-----------------... |
#include "pappl-private.h"
// #include "printer-support.c"
# define PAPPL_SCAN_INPUT_SOURCE_ADF 0x01
# define PAPPL_SCAN_INPUT_SOURCE_PLATEN 0x04
# define PAPPL_SCAN_COLOR_MODE_AUTO 0x01
# define PAPPL_SCAN_COLOR_MODE_CMYK_8 0x800
//
// Local functions...
//
static ipp_t *make_attrs_scan(pappl_system_t *system, ... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <GL/gl.h>
#include <GL/glx.h>
#include <GL/glxext.h>
#include <X11/Xatom.h>
#include <X11/extensions/Xrender.h>
#include <X11/Xutil.h>
#include <X11/XKBlib.h>
typedef int (*event_cb_t)(XEvent *event);
event_cb_t g_event_callback =... |
/* ###################################################################
** THIS COMPONENT MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : KB1.c
** Project : Proyecto2
** Processor : MC9S08QE128CLK
** Component : KBI
** Version : Component 01.096, Driver 01.25, CPU ... |
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
*
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distr... |
//
// transcode.c
// FFmpeg-test
//
// Created by AdrianQaQ on 2019/1/4.
// Copyright © 2019 adrian. All rights reserved.
//
#include "transcode.h"
int64_t dst_ch_layout = AV_CH_LAYOUT_MONO;
int dst_rate = 16000;
enum AVSampleFormat dst_sample_fmt = AV_SAMPLE_FMT_S16;
static void decode(AVCodecContext *dec_ctx, ... |
/**
* Copyright (C) Mellanox Technologies Ltd. 2021. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
#include "config.h"
#include "tl_ucp.h"
#include "allreduce.h"
#include "core/ucc_progress_queue.h"
#include "tl_ucp_sendrecv.h"
#include "coll_patterns/recursive_knomial.h"
#include "utils/ucc_math.h"
#in... |
/**
* \file
* \brief General Numa functions
*
*/
/*
* Copyright (c) 2014, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetstr. 6, CH-8092 Zurich. A... |
/* ../netlib/slarz.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... |
/*
* Export Nextview database as "TAB-separated" text file
*
* Copyright (C) 1999-2011, 2020-2021 <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
* published by the Free Software Foundation. You find a copy o... |
/*
Copyright (C) 2008 <NAME>
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "util.h"
#define XC_MGGA_C_M06_L 233 /* M06-L correlation functional f... |
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* sprdmpF25.c
*
* Code generation for function 'sprdmpF25'
*
*/
/* Include files */
#include "sp... |
/* Copyright (c) 2010 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distr... |
/* Written by <NAME> */
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include "game/level.h"
#define STBI_ONLY_PNG
#include "stb/stb_image.h"
/* Temporary output file name */
#define TMP_OUTPUT_FORMAT "%s.data"
/* ld command format for sprintf */
#define LD_FO... |
/*
* FreeOTP
*
* Authors: <NAME> <<EMAIL>>
*
* Copyright (C) 2014 <NAME>, Red Hat
*
* 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... |
/*
foidl_list.c
Library support for List
Copyright <NAME>
All Rights Reserved
*/
/*
Using first and rest (1 and many) vs. first and list (many and 1)
Regardless, first and rest are linked by first
push - Insert a new first
take original first and set it to rest
insert new first with link to old rest
pop -... |
/* $NetBSD: boot.c,v 1.9 2003/07/24 19:25:46 ws Exp $ */
/*
* Copyright (C) 1995, 1997 <NAME>
* Copyright (c) 1995 <NAME>
*
* 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... |
/*
# This file is based on pxauto of the PiXtend(R) Project.
#
# 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 3 of the License, or
# (at your option) any later version.
#
# This ... |
/*
* This is the latest version of hackbench.c, that tests scheduler and
* unix-socket (or pipe) performance.
*
* Usage: hackbench [-pipe] <num groups> [process|thread] [loops]
*
* Build it with:
* gcc -g -Wall -O2 -o hackbench hackbench.c -lpthread
*
* Downloaded from http://people.redhat.com/mingo/cfs-sche... |
#include <stdbool.h>
#include <stdint.h>
#include "ruby.h"
#include "ruby/encoding.h"
#include "ruby/re.h"
#include "./phonemes.h"
#include "./next_phoneme_length.h"
#include "./phonetic_cost.h"
// #define DEBUG
#ifdef DEBUG
#define debug(M, ...) if (verbose) printf(M, ##__VA_ARGS__)
#else
#define debug(M, ...)
#endi... |
#include "common.h"
#include <ccd/vec3.h>
#include <ccd/quat.h>
#include "support.h"
static void svtCyl(ccd_cyl_t *c, FILE *out, const char *color, const char *name)
{
ccd_vec3_t v[32];
ccd_quat_t rot;
ccd_vec3_t axis, vpos, vpos2;
ccd_real_t angle, x, y;
unsigned int i;
ccdVec3Set(&axis, 0., ... |
#include "pbc.h"
#include "map.h"
#include "context.h"
#include "pattern.h"
#include "proto.h"
#include "alloc.h"
#include "bootstrap.h"
#include "stringpool.h"
#include "array.h"
#include "descriptor.pbc.h"
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
//#include <stdint.h>
/*
// Descriptor
// google... |
/**************************************************************************
* Parts copyright (c) 2001, 2002 by Punch Telematix. All rights reserved. *
* Parts copyright (c) 2004, 2005, 2006, 2007, 2008 by <NAME>, /k/ *
* Embedded Java Solutions. All rights reserved. *
* ... |
/*
* Copyright 2022 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/licens... |
/* SWGINUTIL.C
- Package of small utility programs to go with the SWGINIT program
*/
#include <curses.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <jpidef.h>
#include "debug.h"
#include "dem.h"
#include "swginutil.h"
/* -=- -=- -=- -=... |
/*
12 Player Pong Clone
by
Slinga
A to join\leave game
Up, Down, Left, Right to move
P1 Start to pause\unpause ball
P1 Left\Right Triggers to slowdown\speedup game
*/
#include "sgl.h" // Required for basic sgl functions
struct ball
{
char shape[2]; // The shape of t... |
/*
* @brief Vitual communication port example
*
* @note
* Copyright(C) NXP Semiconductors, 2013
* All rights reserved.
*
* @par
* Software that is described herein is for illustrative purposes only
* which provides customers with programming information regarding the
* LPC products. This software i... |
/* tested platform: windows10 + clang */
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <conio.h>
#include <Windows.h>
#define MAX_ROW 15
#define MAX_COL 20
#define DEFAULT_WIDTH 10
#define DEFAULT_HEIGHT 10
#define LOWER 2
#define UPPER 3
#define SYM "*"
#define PAUSE 500
HANDLE handle;
enum st... |
#include "showall.h"
#include <SDL2/SDL.h>
#include <math.h>
#include <stdbool.h>
#include <string.h>
#include "camera.h"
#include "ellipsoid.h"
#include "interval.h"
#include "linalg.h"
#include "log.h"
#include "max.h"
#include "misc.h"
#include "rect3.h"
// fitting too much stuff into an integer
typedef unsigned sh... |
/**
* This file is part of Chippy.
*
* (c) <NAME> <<EMAIL>>
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*/
#include "chippy.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define NNN(opcode) (opcode & 0x0FFF)
#de... |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/sysmacros.h>
#include <assert.h>
#include "diskStats.h"
#include "utils.h"
void diskStatSetup(diskStatType *d) {
if (!d) return;
memset(d, 0, sizeof(diskStatType));
}
void dis... |
/*
* (C) Copyright 2000-2004
* <NAME>, DENX Software Engineering, <EMAIL>.
* <NAME>, Kieback & Peter GmbH & Co KG, <EMAIL>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General ... |
/*
* Yet another demo.
* Timing accuracy depends on the target platform and on the clock()
* implementation. If clock() is not available a (bad) surrogate could
* be sleep(1) or csleep(95) or a delay loop.
*
* Build examples
* zcc +zx -oclock -lndos -create-app -lm -llib3d -DDETAILED clock.c
* zcc +z... |
/*
* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the
* disclaimer below) provided that the following conditions are met:
*
* * Redistributions of source ... |
/* This software and supporting documentation are distributed by
* Institut Federatif de Recherche 49
* CEA/NeuroSpin, Batiment 145,
* 91191 Gif-sur-Yvette cedex
* France
*
* This software is governed by the CeCILL-B license under
* French law and abiding by the rules of distribution of free soft... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright (C) 2018 Institute of Computing Technology, CAS
* Author : <NAME> (email : <EMAIL>)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* The ke... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c)... |
/*
Copyright 2012 <NAME>
Copyright 2014 <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 later version.
This program is distributed in ... |
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "inc/hw_uart.h"
#include "inc/hw_nvic.h"
#include "inc/hw_ints.h"
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "driverlib/pin_map.h"
#include "driverlib/interrupt.h"
#include "driverlib/gpio.h"
#include "driverlib... |
#include "STM32F746I2C1_MPU6050.h"
#include "mpu6050_filter.h"
struct _sensor sensor;
double b_IIR[IIR_ORDER+1] ={0.0008f, 0.0032f, 0.0048f, 0.0032f, 0.0008f}; //系数b
double a_IIR[IIR_ORDER+1] ={1.0000f, -3.0176f, 3.5072f, -1.8476f, 0.3708f};//系数a
double InPut_IIR[3][IIR_ORDER+1] = {0};
double OutPut_IIR[3][IIR_ORDER+... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <arpa/inet.h>
#include <unistd.h>
/* Configuration */
#define SERVER_ADDRESS "127.0.0.1"
#define TEST_BUFFER_LEN 16
#define SERVER_PORT 5555
/* TAP defines */
#define OR1K_TAP_INST_DEBUG 0x8
/* ADV_DEBUG defines */
#define DB... |
#include "ads1015.h"
// The general idea is that the ALERT/RDY pin asserts whenever a conversion
// result is ready, and after storing the result the channel is switched to the
// next and ADS1015 is restarted for the new conversion. If no channels are
// enabled, the interrupt on ALERT/RDY pin is masked.
//
// Channel... |
// SPDX-License-Identifier: GPL-2.0
//
// MP8867/MP8869 regulator driver
//
// Copyright (C) 2020 Synaptics Incorporated
//
// Author: <NAME> <<EMAIL>>
#include <linux/gpio/consumer.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/regmap.h>
#include <linux/regulator/driv... |
/* 13may13abu
* (c) Software Lab. <NAME>
*/
#include "pico.h"
/*** Soundex Algorithm ***/
static int SnxTab[] = {
'0', '1', '2', '3', '4', '5', '6', '7', // 48
'8', '9', 0, 0, 0, 0, 0, 0,
0, 0, 'F', 'S', 'T', 0, 'F', 'S', // 64
0, 0, 'S', 'S', 'L', 'N', 'N', 0,
'F', 'S', 'R'... |
/* $Id: shabalgen.c 116 2009-03-12 19:38:57Z tp $ */
/*
* This program generates part of the code in shabal_opt.c. It is
* configured at compilation time by setting the SHABAL_PARAM_P and
* SHABAL_PARAM_R. If non-default values are set for those macros, then
* the same values MUST be used when compiling the resulti... |
#include <stdlib.h>
#include <string.h>
#include "day_one_face.h"
#include "watch.h"
static uint32_t _day_one_face_juliandaynum(uint16_t year, uint16_t month, uint16_t day) {
// from here: https://en.wikipedia.org/wiki/Julian_day#Julian_day_number_calculation
return (1461 * (year + 4800 + (month - 14) / 12)) /... |
/* Vala string utility functions*/
#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <gee/arraylist.h>
#include <gee/collection.h>
#define TYPE_STRING_HELPER (string_helper_get_type ())
#define STRING_HELPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STRING_HELPER, String... |
#ifdef __linux__
# ifndef _GNU_SOURCE
# define _GNU_SOURCE
# endif
#endif
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <pwd.h>
#include <limits.h>
#ifdef __APPLE__
# include <mach-o/dyld... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Chunk I/O
* =========
* Copyright 2018 <NAME> <<EMAIL>>
*
* 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 Lice... |
// Copyright 2009-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
/* This is a small example tutorial how to use OSPRay in an application.
*
* On Linux build it in the build_directory with
* gcc -std=c99 ../apps/ospTutorial/ospTutorial.c \
* -I ../ospray/include -L . -lospray -Wl,-rpath,. -o ... |
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/sysinfo.h>
#include <string.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "mpi.h"
#include <unistd.h>
#include <stdint.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <utime.h>
#include <getopt.h>
#include "mfu.h"
/* All the o... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<openssl/hmac.h>
//#define debug
char toHex(int x)
/*
转化一个数(0-15)到其十六进制数
@param x 待转化数
@return 十六进制数
*/
{
if(x>=16 || x<0)return (char)0;
if(x<=9)return (char)(x+48);
else return (char)(x+87);
}
int HexToNum(char *s, int len)
/*
转化十六进制到数字
@param s 待转... |
/**
* These functions handle overall operation of the dribbler, including PWM selection,
* torque limiting, and thermal modelling.
*/
#include "io/dribbler.h"
#include <stdio.h>
#include "control/control.h"
#include "io/adc.h"
#include "io/hall.h"
#include "io/motor.h"
#include "io/receive.h"
#include "physics/phy... |
/*
$Id$
*======================================================================
*
* DISCLAIMER
*
* This material was prepared as an account of work sponsored by an
* agency of the United States Government. Neither the United States
* Government nor the United States Department of Energy, nor Battelle,
* nor a... |
/******************************************************************************
** This material was prepared as an account of work sponsored by an agency **
** of the United States Government. Neither the United States Government **
** nor the United States Department of Energy, nor Battelle, nor any of **
... |
// Copyright: see LICENSE.txt
#include <elf.h>
#include <fcntl.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
#include "addrstack.h"
#include "codelist.h"
#... |
//#! gcc -g -DDEMO_RESAMPLER -DDIAGFILT $this -o cheby1.exe && cheby1.exe
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "common.h"
#include "cheby1.h"
// returns an array big enough to be passed into cheby1 for the B,A arguments.
// the only thing you need to know is that ch... |
#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 "config-parser.h"
/* Tiny structure used for tracking current parsing position and probably other
* parser related data (if any, currently none).
*/
struct parse_context {
char *cur;
size_t line;
};
/* predeclarations */
static int parse_children(struct config_format_entry *te, int ind... |
#include <stdint.h>
#include <immintrin.h>
#include "params.h"
#include "keccak4x/KeccakP-1600-times4-SnP.h"
#include "fips202x4.h"
#include "fips202.h"
#define NROUNDS 24
#define ROL(a, offset) ((a << offset) ^ (a >> (64-offset)))
static uint64_t load64(const unsigned char *x) {
unsigned int i;
uint64_t r = 0;
... |
/*
Copyright 2015 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... |
#define _GNU_SOURCE
#include <arpa/inet.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <linux/if.h>
#include <linux/if_tun.h>
#include <fcntl.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define EXIT_OK 0
#define EXIT_... |
/*
ZEsarUX ZX Second-Emulator And Released for UniX
Copyright (C) 2013 <NAME>
This file is part of ZEsarUX.
ZEsarUX 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 th... |
/*
* Copyright (C) 2004 <NAME> <<EMAIL>>
* Copyright (C) 2008,2010 <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 (at you... |
/*
*
* Downloaded from public site: http://www.cl.cam.ac.uk/teaching/1011/P31/lib/
* Date: April 9, 2010
* Author: unknown. Contacted Instructor of class with no answer.
*
*/
#include "global-conf.h"
#include "ds1302.h"
#include <util/delay_basic.h>
#include <util/delay.h>
/* support for DS130... |
/*
*
* Copyright (c) 2020 Project CHIP Authors
* 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... |
/* See COPYING file for copyright and license details. */
#include "scanner-dump.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <float.h>
#include "parse_args.h"
#include "scanner-common.h"
#include "nproc.h"
extern gboolean verbose;
static gboolean pkLevels = FALSE;
static double interval = 1... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "StanderedTypes.h"
#include "STACK_\LBTY.h"
#include "STACK_\STACK_int.h"
// make an object
struct Line LineClass = {
.keywords = {
{.index =0,.name = "auto",.dataType = 1},
{.index =1,.name = "double",.dataType = 1},
{.index =2,.name = "in... |
/*
* Copyright (c) <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 distri... |
/* $OpenBSD: uha_isa.c,v 1.12 2014/09/14 14:17:25 jsg Exp $ */
/* $NetBSD: uha_isa.c,v 1.5 1996/10/21 22:41:21 thorpej Exp $ */
/*
* Copyright (c) 1994, 1996 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followin... |
/*
* \file curslib.c
* \brief curses/terminfo display management
*
* \author <NAME>
* \date 27 Jul 92
*
* This file provides an interface to the unix curses library. All
* display functions should go through this file. This file replaces
* tclib.c, conio.c and termio.c in the original sparrow distribution.
... |
#include "../easytlv.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
#define etlv_printf printf
#define etlv_print_hex print_hex
// Example TLV data, encoding two 32 bit numbers:
const uint8_t testDataShort[] = {
0x02, 0x04, 0x00, 0x00, 0x00, 0x2A, // Number 42
0x02, 0x04, 0x00, 0x00, 0x01, 0x0... |
// SPDX-License-Identifier: GPL-2.0
#define _GNU_SOURCE
#include <arpa/inet.h>
#include <error.h>
#include <errno.h>
#include <limits.h>
#include <linux/errqueue.h>
#include <linux/if_packet.h>
#include <linux/socket.h>
#include <linux/sockios.h>
#include <net/ethernet.h>
#include <net/if.h>
#include <netinet/ip.h>
#... |
/*
* Copyright (c) 2013 Google, Inc
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <errno.h>
#include <linux/input.h>
#include <SDL/SDL.h>
#include <sound.h>
#include <asm/state.h>
static struct sdl_info {
SDL_Surface *screen;
int width;
int height;
int depth;
int pitch;
uint frequency;
uint audio_pos;
... |
/*
* Copyright 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 restriction, including without limitation the
* rights to use, copy, modify, merge, publis... |
/*
Copyright (C) 2014, The University of Texas at Austin
This file is part of libflame and is available under the 3-Clause
BSD license, which can be found in the LICENSE file at the top-level
directory, or at http://opensource.org/licenses/BSD-3-Clause
*/
#include "FLAME.h"
#include "test_libflame.h... |
/*
* 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 the ALPBench Benchmark Suite Version 1.0
*
* Copyright (c) 2005 The Board of Trustees of the University of Illinois
*
* All rights reserved.
*
* ALPBench is a derivative of several codes, and restricted by licenses
* for those codes, as indicated in the source files and the ALPB... |
#include "include.h"
#include "arm_arch.h"
#include "mac_phy_bypass_pub.h"
#include "mac_phy_bypass.h"
#include "drv_model_pub.h"
#include "uart_pub.h"
UINT32 reg_134 = 0x00;
UINT32 reg_135 = 0xc4;
UINT32 reg_138 = 0x00;
UINT32 reg_139 = 0x10;
UINT32 reg_140 = 0x00;
UINT32 reg_129 = 0x00;
UINT32 reg_132 = 0x80;
UINT... |
void
loadxrdb()
{
Display *display;
char * resm;
XrmDatabase xrdb;
char *type;
XrmValue value;
if (disabled(Xresources))
return;
display = XOpenDisplay(NULL);
if (display != NULL) {
resm = XResourceManagerString(display);
if (resm != NULL) {
xrdb = XrmGetStringDatabase(resm);
if (xrdb != NULL) ... |
/*
* ISC License
*
* Copyright (C) 1984-2018 by
* <NAME>
* <NAME>
* <NAME>
* Delft University of Technology
*
* 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 appea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.