text stringlengths 5.8k 28.2k |
|---|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// BK driver loader project. Version 2.
//
// module: install.c
// description:
// BK helper library. BK installation routines.
#include "..\bkgen\main.h"
#include "..\aplib.h"
#include "install.h"... |
/*
Random.c
quasi- and pseudo-random-number generation
last modified 12 Feb 10 th
*/
static void (*GetRandom)(real *x);
static void (*SkipRandom)(cnumber n);
typedef unsigned int state_t;
struct {
state_t level, seed;
} SUFFIX(cubarandom);
/*
PART 1: Sobol quasi-random-number generator
adapted from ACM T... |
/* Copyright 2010,2014 IPB, Universite de Bordeaux, INRIA & CNRS
**
** This file is part of the Scotch software package for static mapping,
** graph partitioning and sparse matrix ordering.
**
** This software is governed by the CeCILL-C license under French law
** and abiding by the rules of distribution of free softw... |
/* $Header$ */
/* Purpose: Multi-argument utilities */
/* Copyright (C) 2016--present <NAME>
This file is part of NCO, the netCDF Operators. NCO is free software.
You may redistribute and/or modify NCO under the terms of the
3-Clause BSD License with exceptions described in the LICENSE file
Original ... |
/*
* (C) Copyright <NAME> 2000-2002
*
* 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 distr... |
#define _GNU_SOURCE
#include <alloca.h>
#include <fcntl.h>
#include <linux/loop.h>
#include <linux/sched.h>
#include <mntent.h>
#include <sched.h>
#include <signal.h>
#include <stdbool.h>
#include <sys/mman.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <syscall.h... |
/*! \file */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#include <sys/time.h>
#include <assert.h>
//! Modulo function, works with negative numbers
int _mod(int a, int b)
{
if (a >= 0 || a % b == 0) return a % b;
else return a % b + b;
}
... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/* surfpt.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__2 = 2;
static integer c__3 = 3;
static doublereal c_b19 = 1.;
/* $Procedure SURFPT ( Surface poin... |
/*
* lsm303c.c
*
* Created on: 6 июн. 2019 г.
* Author: sereshotes
*/
#include "lsm303c.h"
// ===========================================
// Common macro
// ===========================================
#define LSM303C_SET_BITS(reg_data, bitname, data) \
((reg_data & ~(bitname##_MSK)) | \
... |
/* $Id$ */
/*--------------------------------------------------------------------*/
/*; Copyright (C) 2008 */
/*; Associated Universities, Inc. Washington DC, USA. */
/*; */
/*; This program... |
/* Copyright (c) 1992, Free Software Foundation, Inc. All rights reserved.
Copyright (c) 1985 Sun Microsystems, Inc. Copyright (c) 1980 The Regents
of the University of California. Copyright (c) 1976 Board of Trustees of
the University of Illinois. All rights reserved.
Redistribution and use in source a... |
#include <sys/types.h>
#include <ares.h>
#include <arpa/inet.h>
#include <arpa/nameser.h>
#include <errno.h>
#include <netinet/in.h>
#include <resolv.h>
#include <stdlib.h>
#include <string.h>
#include "json_to_dns.h"
#include "logging.h"
#include "nxjson/nxjson.h"
// Writes a string out, pascal style. limited to 63... |
/******************************************************************************
* Copyright © 2014-2017 The SuperNET Developers. *
* *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
... |
/* $Id$ */
/* Regular Associations for XML
arx grammar:
arx = grammars route*
grammars = "grammars" "{" type2string+ "}"
type2string = type "=" literal
type = nmtoken
route = match|nomatch|valid|invalid
match = "=~" regexp "=>" type
nomatch = "!~" regexp "=>" type
valid = "valid" "{" rng "}" "=>" type
invalid = "!v... |
/*
! @file test_poly_unstructured.c
! @version 0.1
!
! @section DESCRIPTION
! Test program for pcgns library
! -- created to test cgp_poly_section_write (and cg_section_general_write)
! -- created to test cgp_poly_element_write_data
! -- based on a test file of David.Gutzwiller from Numeca
!
! @section USAGE
! Launch w... |
/* $NetBSD: fpu.c,v 1.38 2011/08/11 18:36:14 cherry Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc. All
* rights reserved.
*
* This code is derived from software developed for The NetBSD Foundation
* by <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modification... |
typedef struct Etherhdr Etherhdr;
typedef struct Fragq Fragq;
typedef struct Ilcb Ilcb;
typedef struct Ilhdr Ilhdr;
typedef ulong Ipaddr;
typedef struct Ipconv Ipconv;
typedef struct Ipfrag Ipfrag;
typedef struct Ipifc Ipifc;
typedef struct Ipdevice Ipdevice;
typedef ushort Port;
typedef struct Reseq Reseq;
typedef s... |
/* Copyright 2013 Ravenbrook Limited <http://www.ravenbrook.com/>.
* 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
... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
/*
* 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 Apache Licens... |
/**
* \file interface-coalesce.c
* \author written by <NAME> <EMAIL> (C) 2013
* \date 2013
*/
/*
=head1 NAME
dabba-interface-coalesce - Manage network interface coalesce settings
=head1 SYNOPSIS
dabba interface coalesce <action> [<arguments>...] [--help]
=head1 DESCRIPTION
Give the user the possibility to m... |
/* cc -O2 -Wall recv-sensors.c -o recv-sensors -lbluetooth */
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/socket.h>
#include <signal.h>
#include <time.h>
#include <errno.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/hci_lib.h>
sta... |
#include<stdio.h>
#include <unistd.h>
#include<stdlib.h>
#include<errno.h>
#include<string.h>
#include<sys/socket.h>
#include <netinet/if_ether.h>
#include <netinet/ip.h>
#include <linux/udp.h>
#include <net/if.h>
#include <linux/sockios.h>
#include <linux/filter.h>
#include <linux/if_packet.h>
#include <sys/ioctl.h>
... |
/* ***************************************************
testpattern: lxbi264 + librtmp example
<NAME> 2021
Generates a test pattern, encodes it with x264,
casts it to RTMP url
*************************************************** */
// push packets to stream
#include <librtmp/rtmp.h>
#include <librtmp/log.h>
// other ... |
/*
* Copyright (c) 2012, 2013 Samsung Electronics Co., Ltd.
* Copyright (c) 2019 Collabora 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/LICEN... |
/*!
*****************************************************************************
@file: Electrocardiograph.c
@author: $Author: nxu2 $
@brief: ECG Measurment.
@version: $Revision: 766 $
@date: $Date: 2017-08-21 14:09:35 +0100 (Mon, 21 Aug 2017) $
---------------------------------------------------------... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//#include <err_code.h>
#include "cl_utils.h"
#ifdef __cplusplus
#include <cstdio>
#endif
#if defined(__APPLE__) || defined(__MACOSX)
#include <OpenCL/opencl.h>
#else
//#include <CL/cl.h>
#endif
#ifdef _OPENMP
#include <omp.h>
#else
#include <sys/time.h>
#e... |
/* advcom.c - a compiler for adventure games */
/*
Copyright (c) 1993, by <NAME>
All rights reserved
*/
#include <stdlib.h>
#include <string.h>
#include "advcom.h"
#include "advdbs.h"
/* symbol tables */
SYMBOL *symbols;
SYMBOL *exfunctions;
ARGUMENT *arguments;
ARGUMENT *temporaries;
/* adventure id information *... |
/* ===========================================================================
* Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005
*
* Use of this software is controlled by the terms and conditions found in
* the license agreement under which this software has been supplied.
* ==============... |
/*
* 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 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it... |
/* GStreamer
* Copyright (C) 1999,2000 <NAME> <<EMAIL>>
* 2005 <NAME> <<EMAIL>>
*
* gstaudiosink.c: simple audio sink base class
*
* 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 S... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <time.h>
#include <sys/stat.h>
#include <unistd.h>
#include <limits.h>
#include <dirent.h>
#include <sys/types.h>
#include <fcntl.h>
#include <ar.h>
// Defined in ar.h
// Not redefining
/* Archive files start with the ARMAG ident... |
#include <stdio.h>
#include "sdkconfig.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "esp_event.h"
#include "driver/i2c.h"
#include "esp32/rom/ets_sys.h"
#include "hd_44780.h"
#include "i2c_utils.h"
#include "print_utils.h"
#include "ultrasonic.h"
static const char *TAG ... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include"../headers/algo.h"
#include"../headers/boite.h"
#include"../headers/objets.h"
#define ANSI_COLOR_RED "\x1b[31m"
#define ANSI_COLOR_GREEN "\x1b[32m"
#define ANSI_COLOR_YELLOW "\x1b[33m"
#define ANSI_COLOR_BLUE "\x1b[34m"
#define ANSI_COLOR_RESET ... |
#include "deciphon_model/protein_profile.h"
#include "deciphon_model/metadata.h"
#include "deciphon_model/profile.h"
#include "deciphon_model/profile_typeid.h"
#include "deciphon_model/protein_model.h"
#include "deciphon_model/protein_profile.h"
#include "imm/imm.h"
#include "lite_pack/file/file.h"
#include "lite_pack/... |
#include "includes.h"
static const unsigned char BitReverseTable256[] =
{
0x00, 0x80, 0x40, 0xC0, 0x20, 0xA0, 0x60, 0xE0, 0x10, 0x90, 0x50, 0xD0, 0x30, 0xB0, 0x70, 0xF0,
0x08, 0x88, 0x48, 0xC8, 0x28, 0xA8, 0x68, 0xE8, 0x18, 0x98, 0x58, 0xD8, 0x38, 0xB8, 0x78, 0xF8,
0x04, 0x84, 0x44, 0xC4, 0x24, 0xA4, 0x64, 0xE4,... |
/*------------------------------------------------------------------------------
*
*
* Copyright (c) 2016-Present Pivotal Software, Inc
*
*------------------------------------------------------------------------------
*/
#include <stdlib.h>
#include <string.h>
#include "common/comm_channel.h"
#include "common/c... |
/* Handles parsing the Options provided to the user.
Copyright (C) 1989 Free Software Foundation, Inc.
written by <NAME> (<EMAIL>)
This file is part of GNU GPERF.
GNU GPERF 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 Softw... |
/* @(#)common.c 1.18 11/07/97 */
/*======================================================================
*
* IDA data exchange protocols, routines common to client and server.
*
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* Copyright (c) 1997 Regents of the University of California.
*... |
/*
* $Id: object_shapekey.c 40351 2011-09-19 12:26:20Z mont29 $
*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 Licens... |
/*
M3 -- Meka Robotics Real-Time Control System
Copyright (c) 2010 Meka Robotics
Author: <EMAIL> (<NAME>)
M3 is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <pwd.h>
#include <grp.h>
#include <time.h>
#include <sys/types.h>
#include <kvm.h>
#include <sys/param.h>
#include <sys/sysctl.h>
#include <sys/user.h>
#include <sys/time.h>
#ifdef __NetBSD__
# include <sys/lw... |
#include<stdio.h>
#include<stdlib.h>
#include"base.h"
#include"play.h"
#include"cave.h"
#include"overhead.h"
#include"insect.h"
#include"allegro5/allegro.h"
#include"allegro5/allegro_acodec.h"
#include"allegro5/allegro_image.h"
#include"allegro5/allegro_native_dialog.h"
void
intro_game(Game *game,int scr_width,int scr... |
#pragma once
int cutscene_list_length = 486;
const char *cutscene_list[] = {
"ah_1_ext_t6",
"ah_1_int",
"ah_1_mcs_1",
"ah_2_ext_alt",
"ah_2_ext_p4",
"ah_3a_explosion",
"ah_3a_ext",
"ah_3a_int",
"ah_3a_mcs_3",
"ah_3a_mcs_6",
"ah_3b_ext",
"ah_3b_int",
"ah_3b_mcs_1",
"ah_3b_mcs_2",
"ah_3b_m... |
#include "cpu6502.h"
#include <assert.h>
#include <stdio.h>
#define PUSH(value) mem_write(0x100 + regs.s--, (value))
#define POP() mem_read(0x100 + ++regs.s)
#define READ16(addr) ( mem_read(addr) + (mem_read((addr) + 1) << 8) )
#define READ16_WRAP(addr) ( mem_read(addr) + (mem_read((addr) + 1 & 255) << 8) )
#define... |
/*******************************************************************************
* LEVCAN: Light Electric Vehicle CAN protocol [LC]
* Copyright (C) 2020 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"... |
/*
* File: dev_boost_opstates.c
* Author: M91406
* Created on October 9, 2020, 9:16 AM
*/
#include <xc.h> // include processor files - each processor file is guarded.
#include <stdint.h> // include standard integer data types
#include <stdbool.h> // include standard boolean data types
#include "dev_boost_pco... |
/* Copyright (c) 2015, 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 fol... |
/**
* \file main.c
* \brief Aplicação principal.
* \details Apllicação da lavadora.
*
* \author <NAME>
* \author <NAME>
*
* \date 25/06/2018
* \copyright GNU Public License
*/
#include <asf.h>
#include <stdio.h>
#include <stdlib.h>
// #include <conf_spinctrl.h>
// #include <conf_sysfont.h>
... |
/*
* 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 ... |
/*********************************************************************
Homework 5
CS 110: Computer Architecture, Spring 2021
ShanghaiTech University
* Last Modified: 03/28/2021
* Copyright Notice: This file is dervived from work of Brad Conte at
https://github.com/B-Con/crypto-algorithms/
*******************... |
#include "htmll.h"
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define SVDEF static inline
#define SV_IMPLEMENTATION
#include <sv.h>
#include "system_util.h"
#include "util.h"
#include "tmp_buf.h"
static void read_file_into_buffer(Cstr file_... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <SFML/Graphics.h>
#include <SFML/Audio.h>
#include <math.h>
#include <time.h>
#include "midi_parser.h"
#include "header.h"
#if defined _WIN32 || defined __WIN32 || defined __WIN32__
#include <windows.h>
#include <signal.h>
char *strsignal(int signum)... |
#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... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Driver for BCM6328 GPIO unit (pinctrl + GPIO)
*
* Copyright (C) 2021 <NAME> <<EMAIL>>
* Copyright (C) 2016 <NAME> <<EMAIL>>
*/
#include <linux/bits.h>
#include <linux/gpio/driver.h>
#include <linux/kernel.h>
#include <linux/of.h>
#include <linux/pinctrl/pinmux.h>
#include... |
#include "rexle.h"
#include <gfx/lib/gfx.h>
#include <gfx/lib/view.h>
#include <gfx/lib/shapes.h>
#include <gfx/lib/rect.h>
#include <stdint.h>
#include <std/std.h>
#include <std/math.h>
#include <std/sincostan.h>
#include <std/array_m.h>
#include <kernel/multitasking/tasks/task.h>
#include <kernel/util/kbman/kbman.h>
... |
/* chainScore - score chains. */
/* Copyright (C) 2006 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "dystring.h"
#include "dnaseq.h"
#include "nib.h"
#includ... |
/*
* The Shadow Simulator
* See LICENSE for licensing information
*/
#include "torflow.h"
struct _TorFlowAuthority {
gchar* id;
TorFlowConfig* config;
TorFlowEventManager* manager;
TorFlowDatabase* database;
TorFlowTorCtlClient* torctl;
TorFlowFileListener* listener;
GQueue* slices;
... |
//
// Copyright (c) 2017, <NAME>
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
//
#include <stdio.h>
#include <assert.h>
#include "MMUit.h"
// MARK: - MMU emulation
// LEVEL 0 -> LEVEL 1 -> LEVEL 2.1... |
#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) 2015 Intel Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which a... |
/*
* $Id: blf_glyph.c 40358 2011-09-19 14:09:13Z blendix $
*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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... |
/* Based on code from <https://git.zx2c4.com/seedrng/about/>. */
#include <linux/random.h>
#include <sys/random.h>
#include <sys/ioctl.h>
#include <sys/file.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <poll.h>
#include <unistd.h>
#include <time.h>
#include <errno.h>
#include <endian.h>
... |
/* GStreamer
* Copyright (C) <2008> <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 your option) any later version.
*
... |
#include <stdio.h>
#include <stdlib.h>
#include "linmath.h"
#include <string.h>
#include <stdint.h>
#include <math.h>
#define PTS 32
#define MAX_CHECKS 40000
#define MIN_HITS_FOR_VALID 10
FLT hmd_points[PTS*3];
FLT hmd_norms[PTS*3];
FLT hmd_point_angles[PTS*2];
int hmd_point_counts[PTS*2];
int best_hmd_target = 0;
in... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <limits.h>
#include "heap.h"
#define INF (INT_MAX-500)
int n_ver;
typedef heap_node node;
typedef vtx_node* keyType;
typedef struct edge{
int head_vertex, cost;
struct edge *next;
} edge;
typedef struct vertex{
int pi;
... |
#include "cryptoc.h"
static const unsigned int ip[] = {
58, 50, 42, 34, 26, 18, 10, 2,
60, 52, 44, 36, 28, 20, 12, 4,
62, 54, 46, 38, 30, 22, 14, 6,
64, 56, 48, 40, 32, 24, 16, 8,
57, 49, 41, 33, 25, 17, 9, 1,
59, 51, 43, 35, 27, 19, 11, 3,
61, 53, 45, 37, 29, 21, 13, 5,
63, 55, 47, 39... |
/*
* Phoenix-RTOS
*
* Operating system kernel
*
* TTY abstraction layer
*
* Copyright 2018 Phoenix Systems
* Author: <NAME>
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include "libtty.h"
#include "libtty_disc.h"
#include "fifo.h"
#include <sys/ioctl.h>
#include <sys/threads.h>
#include <term... |
/*
* 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 ... |
/* config.h. Generated by configure. */
/* config.in. Generated from configure.ac by autoheader. */
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
systems. This function is required for `alloca.c' support on those systems.
*/
/* #undef CRAY_STACKSEG_END */
/* Define to 1 if using ... |
/**********************************************************************
cs1713p4Driver.c
Purpose:
This program reads book information and a command file. It
processes the commands against the book information.
This is the driver code for the routines written by the students.
Command Parameters:
p4 -b... |
/*
* design and implementation of different types of digital filters
*
* Copyright (C) 2001 <NAME> <EMAIL>
*
* 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;... |
/*
* statusbar.c - Status bar code.
*
* Written by
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publis... |
/**
* Copyright 2020 Huawei Technologies 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 applicable law... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <png.h>
//#define DEBUG
#define BLOCK_INC (64)
#define NOISE_THRESHOLD (20)
#define SMALL_TABLE_THRESHOLD (8)
// board pixel bits usage:
const unsigned char TRY_DIR = 1; // current trying h or v direction: 0.h, 1.v
const unsigned char TRY_STEP = ... |
/*********************************************************************
* openNetVM
* https://sdnfv.github.io
*
* BSD LICENSE
*
* Copyright(c)
* 2015-2019 George Washington University
* 2015-2019 University of California Riverside
* All rights reserve... |
/*
* pgp-armor.c
* PGP ascii-armor.
*
* Copyright (c) 2005 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
... |
/*
* Written in 2013 by <NAME> <<EMAIL>>
*
* To the extent possible under law, the author(s) have dedicated
* all copyright and related and neighboring rights to this software
* to the public domain worldwide.
*
* This software is distributed without any warranty.
*
* You should have received a copy of the C... |
// Copyright 2020 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "iree/task/worker.h"
#include <stdbool.h>
#include <string.h>
#include "iree/base/inte... |
/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferab... |
/**************************************************************************
*
* Copyright 2018 Advanced Micro Devices, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in ... |
/*
The MIT License (MIT)
Copyright (c) 2015 <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, mer... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* o... |
#include "cpu_dec/op_dec.h"
static int OpDecode1(uint16 code[OP_DECODE_MAX], OpDecodedCodeType *decoded_code);
static int OpDecode2(uint16 code[OP_DECODE_MAX], OpDecodedCodeType *decoded_code);
static int OpDecode3(uint16 code[OP_DECODE_MAX], OpDecodedCodeType *decoded_code);
static int OpDecode4(uint16 code[OP_DECODE... |
/*
* mhash.c
*
* Copyright (c) 2008, Ueda Laboratory LMNtal Group <<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 reta... |
/*===============================================================================================
Granular Synthesis example.
Copyright (c), Firelight Technologies Pty, Ltd 2004-2011.
This example shows how you can play a string of sounds together without gaps, using the setDelay
command.
The basic operation is:
... |
/* Copyright 2004,2007-2011,2014,2015 IPB, Universite de Bordeaux, INRIA & CNRS
**
** This file is part of the Scotch software package for static mapping,
** graph partitioning and sparse matrix ordering.
**
** This software is governed by the CeCILL-C license under French law
** and abiding by the rules of distributio... |
/*
Image Processing App
Requires VGA driver configuration
*/
#include <stdio.h>
#include <xio.h>
#include "xbasic_types.h"
#include "xstatus.h"
#include "xparameters.h"
#include <xparameters.h>
#include "image_lib.h"
#include <hthread.h>
#include "hetero_lib.h"
#include <xcache_l.h>
#include <vga/vga.h>
#i... |
/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.0.0
* svn version: exported
* Options: --check-global -s 376
* Seed: 376
*/
#include "random_runtime.h"
long __undefined;
/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
int32_t g_2 = 2L;
int16_t g_18 = 0L;
int8_... |
/*
* Copyright (c) 2018 Renesas Electronics Corporation
* Released under the MIT license
* http://opensource.org/licenses/mit-license.php
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include... |
// SPDX-License-Identifier: GPL-2.0+
/*
* clock_ti814x.c
*
* Clocks for TI814X based boards
*
* Copyright (C) 2013, Texas Instruments, Incorporated
*/
#include <common.h>
#include <asm/arch/cpu.h>
#include <asm/arch/clock.h>
#include <asm/arch/hardware.h>
#include <asm/io.h>
/* PRCM */
#define PRCM_MOD_EN 0x2
... |
/* spks18.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__1 = 1;
/* $Procedure SPKS18 ( S/P Kernel, subset, type 18 ) */
/* Subroutine */ int spks18_(integer *h... |
/* 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 ... |
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "gd.h"
/* Used only when debugging GIF compression code */
/* #define DEBUGGING_ENVARS */
#ifdef DEBUGGING_ENVARS
static int verbose_set = 0;
static int verbose;
#define VERBOSE (verbose_set?verbose:set_verbose())
static int set_v... |
#include <formats/cdfs.h>
#include <retro_miscellaneous.h>
#include <compat/strl.h>
#include <file/file_path.h>
#include <string/stdstring.h>
#ifdef HAVE_CHD
#include <streams/chd_stream.h>
#endif
static void cdfs_determine_sector_size(cdfs_track_t* track)
{
uint8_t buffer[32];
const int toc_sector = 16;
/... |
#include "mendex.h"
#include <kpathsea/tex-file.h>
#include "exvar.h"
#include "kp.h"
FILE *fp;
static char icu_attr_str[STYBUFSIZE];
static void convline(char *buff1, int start, char *buff2);
static int scompare(char *buff1, const char *buff2);
static int getparam(char *buff, const char *paraname, char *param);
s... |
/*
* The Shadow Simulator
* See LICENSE for licensing information
*/
#include "shadow.h"
#include <sys/time.h>
#include <sys/resource.h>
typedef struct {
/* the program name. */
gchar* name;
/* the path to the executable */
gchar* path;
/* the start symbol for the program */
gchar* startSymbol;
... |
/////////////////////////////////////////////
// //
// Copyright (C) 2019-2019 <NAME> //
// https://sites.google.com/site/awertyb //
// //
// See details of license at "LICENSE" //
// //
/... |
/* HYBRJMEX - A MATLAB MEX Interface to HBYRJ + HYBRD
* Released Under the BSD 3-Clause License:
* http://www.i2c2.aut.ac.nz/Wiki/OPTI/index.php/DL/License
*
* Copyright (C) <NAME> 2013
* www.i2c2.aut.ac.nz
*/
#include "mex.h"
#include <time.h>
#include "opti_util.h"
#ifdef LINK_MKL
#include "mkl.h"
#endif... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.