text stringlengths 5.8k 28.2k |
|---|
/*
* AV1 Annex B demuxer
* Copyright (c) 2019 <NAME> <<EMAIL>>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, o... |
/*! \file rm_tcam_init.c
*
* Low Level Functions for TCAM resource manager init.
* This file contains low level functions to initialize the
* TCAMs software structure.
*/
/*
* Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to
* Broadcom Limited and/or its subsidiaries.
*
* Broadcom Swit... |
/*
* Copyright (c) 2012 Smith Micro Software, Inc.
* Copyright (c) 2012 <NAME> <<EMAIL>>
*
* This driver is based on and reuse most of cdc_ncm, which is
* Copyright (C) ST-Ericsson 2010-2012
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2018 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
... |
/* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work" under the
* terms of the United States Copyright Act. It was... |
#include "httppil.h"
#include "httpapi.h"
#define MAX_SESSIONS 2
#define PRE_ALLOC_UNIT 16
#define LOOP_VIDEO "vodloop.mp4"
typedef struct _PL_ENTRY {
struct _PL_ENTRY *next;
void* data;
} PL_ENTRY;
typedef enum {
ACT_NOTHING=0,
ACT_SKIP,
} VOD_CLIENT_ACTIONS;
typedef int (*PL_ENUM_CALLBACK)(PL... |
/*
* R : A Computer Language for Statistical Data Analysis
* Copyright (C) 1998--2017 The R Core Team
* Copyright (C) 1995, 1996 <NAME> and <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 Sof... |
#include <petsc.h>
#include "poissonfunctions.h"
PetscErrorCode Poisson1DFunctionLocal(DMDALocalInfo *info, double *au,
double *aF, PoissonCtx *user) {
PetscErrorCode ierr;
int i;
double xmax[1], xmin[1], h, x, ue, uw;
ierr = DMDAGetBoundingBox(info->da... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/*
* Copyright © 2001, 2007 Red Hat, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice ... |
/*
Copyright (c) 1991-1999 <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, publ... |
#include <defs.h>
#include <thumips.h>
#include <stdio.h>
#include <string.h>
#include <mmu.h>
#include <memlayout.h>
#include <pmm.h>
#include <buddy_pmm.h>
#include <sync.h>
#include <error.h>
// virtual address of physicall page array
struct Page *pages;
// amount of physical memory (in pages)
size_t npage = 0;
... |
/* gfOut - stuff to manage output for genoFind system -
* currently supports psl, axt, blast, and wu-blast.
*
* Copyright 2001-2003 <NAME>. All rights reserved. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "dystring.h"
#include "dnautil.h"
#include "axt.h"
#include "maf.h"
#include "tra... |
// Copyright (c) <NAME> - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#include "../common/mmo.h"
#include "../common/strlib.h"
#include "../common/showmsg.h"
#include "../common/socket.h"
#include "../common/utils.h"
#include "../common/sql.h"
#include "char.h"
#include "inter.h"
#i... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2007-2009 coresystems GmbH
*
* 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 2 of
* the License.
*
* This prog... |
#include "dogos.h"
struct SHEETCTL SHEETS;
void init_shtctl(struct SHEETCTL *ss, struct BOOTINFO *binfo) {
ss->vram = binfo->vram;
ss->vxs = binfo->scrnx;
ss->vys = binfo->scrny;
ss->vmap = (unsigned char *)malloc_4k(ss->vxs * ss->vys);
// 初始化背景图层
ss->sheet[0].flags = 1;
ss->sheet[0].vx0... |
/*
* Copyright (c) 2002 Silicon Graphics, Inc.
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it would be usefu... |
/*
Paper display for MQTT
Receives messages over DBUS from sniffer
*/
#define G_LOG_USE_STRUCTURED 1
#include <stdlib.h> //exit()
#include <signal.h> //signal()
#include "EPD_2in13_V2.h"
#include <glib.h>
#include <gio/gio.h>
#include <stdbool.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/t... |
#include<math.h>
#include"micromegas.h"
#include"micromegas_aux.h"
#define SQR(x) (x)*(x)
// Routines to derive dilepton and dijet constraints on a new Z boson from LHC searches
static int Zprime_dilepton(double MZp, char * Zpname, txtList L)
{
// ATLAS Z' limits with 3.2 fb-1 at sqrt(s) = 13 TeV
// T... |
/* Pango
* Copyright (C) 1999 Red Hat Software
*
* testfonts.c:
* Copyright (C) 2001 <NAME>
*
* 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, ... |
#include "../../media-io/audio-resampler.h"
#include "../../util/circlebuf.h"
#include "../../util/platform.h"
#include "../../util/darray.h"
#include "../../util/util_uint64.h"
#include "../../obs-internal.h"
#include "wasapi-output.h"
#define ACTUALLY_DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
/*! \file bcma_bcmltcmd_pt.c
*
* Physical table access command in CLI.
*/
/*
* Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to
* Broadcom Limited and/or its subsidiaries.
*
* Broadcom Switch Software License
*
* This license governs the use of the accompanying Broadcom software. Your... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* 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 requ... |
#include<stdio.h>
/************************************************************************
File name: SM3.c
Version: SM3_V1.1
Date: Sep 18,2016
Description: to calculate a hash message from a given message
Function List:
1.SM3_256 //calls SM3_init, SM3_process and SM3_done to calculate hash value
2.SM3_init //... |
#include "world-cup.h"
/* General Functions: --------------------------------------------------------------------------------------------- */
float getTime() {
#ifdef _WIN32
clock_t start = clock();
return (float)start / CLOCKS_PER_SEC;
#else
struct tms tempo;
clock_t tempotic;... |
/**
* Interface for LCD driver
*/
#pragma once
#include <kernel.h>
#include <t_syslog.h>
/**
* Bitmap structure. The pixels are packed in the format of ST7586's DDRAM.
*/
typedef struct {
int32_t width;
int32_t height;
void* pixels;
} bitmap_t;
#define BITMAP_LINE_LENGTH(width) (((width)+2)/3)
#define BITM... |
/*
* json_api_filter.c
*
* Copyright 2021 chehw <<EMAIL>>
*
* The MIT License (MIT)
*
* 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 limi... |
/*
CF3
Copyright (c) 2015 ishiura-lab.
Released under the MIT license.
https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md
*/
#include<stdio.h>
#include<stdint.h>
#include<stdlib.h>
#include"test1.h"
int8_t x174 = 1;
volatile int8_t x240 = 3;
static int16_t x267 = -1;
volatile int32_t t3 = 1;
static int32_t x... |
/*
* Copyright (c) 2011, Texas Instruments Incorporated
* 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... |
#include "measurements.h"
//#ifndef _PARANOIA_
//#define _PARANOIA_ 1
//#endif
void pt ( double * angles, double * hx, double * hy, double * hz, double * ox, double * oy, double * oz, int n) {
int i;
double p0[3], p1[3], p2[3], p3[3];
double g0[3], g1[3], g2[3], g3[3];
for (i=0;i<(n-1);i++) {
p0[0]=hx[i];... |
/**************************************************************************/
/* */
/* OCaml */
/* */
/* ... |
/**
* Copyright (C) 2018, <NAME>
**/
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <error.h>
#include <pservlet.h>
#include <proto.h>
#include <pstd/type.h>
#include <pstd/scope.h>
#include <pstd/types/blob.h>
/**
* @brief The actual data structure for a blob model
**/
... |
/* sonydscf1.c
*
* Copyright (C) <NAME> <<EMAIL>>
* Copyright (C) 2002 <NAME> <<EMAIL>>
*
* Based on the chotplay CLI interface from Ken-ichi Hayashi 1996,1997
*
* 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 b... |
/*
* EIT table parser and generator
* Copyright (C) 2010-2011 Unix Solutions Ltd.
*
* Released under MIT license.
* See LICENSE-MIT.txt for license terms.
*/
#include <stdio.h>
#include <unistd.h>
#include <netdb.h>
#include <stdlib.h>
#include <string.h>
#include "tsfuncs.h"
struct ts_eit *ts_eit_alloc() {
st... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define dword __UINT32_TYPE__
#define byte __UINT8_TYPE__
typedef struct
{
char magic[4];
dword size, flags, height, width, pitch, depth, mipmaps, reserved1[11],
pf_size, pf_flags;
char pf_fourcc[4];
dword pf_bitcount, pf_rmask, pf_gmas... |
/*
* Copyright (c) 2022, <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
#include "benchmark.h"
static int reader_num = 0;
static const char *reader_names[64];
static int reader_name_max = 0;
static reader_measure_func reader_funcs[64];
static int writer_num = 0;
static const char *writer_names[64];
static int writer_name_max = 0;
static writer_measure_func writer_funcs[64];
static int s... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
/**
* @file feedback.c
*
*/
#include <math.h>
#include <rc/led.h>
#include <rc/math/filter.h>
#include <rc/math/kalman.h>
#include <rc/math/other.h>
#include <rc/math/quaternion.h>
#include <rc/mpu.h>
#include <rc/servo.h>
#include <rc/start_stop.h>
#include <rc/time.h>
#include <stdio.h>
#include <feedback.h>
#in... |
/********************************************************************************
* Copyright (c) 2012, <NAME> *
* All rights reserved. *
* ... |
/*****************************************************************************/
/* */
/* Automated Timed Asynchronous Circuit Synthesis (ATACS) */
/* */
... |
/* -*- Mode: C; c-file-style: "python" -*- */
#include <Python.h>
#include <locale.h>
/* ascii character tests (as opposed to locale tests) */
#define ISSPACE(c) ((c) == ' ' || (c) == '\f' || (c) == '\n' || \
(c) == '\r' || (c) == '\t' || (c) == '\v')
#define ISDIGIT(c) ((c) >= '0' && (c) <= '9... |
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... |
/*
* File : ymodem.c
* COPYRIGHT (C) 2012, Shanghai Real-Thread Technology Co., Ltd
*
* Change Logs:
* Date Author Notes
* 2013-04-14 Grissiom initial implementation
*/
#include <rthw.h>
#include "ymodem.h"
static const rt_uint16_t ccitt_table[256] = {
0x0000, 0x1021, 0x2042, 0... |
#include <llvm-statepoint-tablegen.h>
#include "gc.h"
#include "object.h"
#include "rts.h"
#include <time.h>
extern void *get_stackmap();
#define GC_FLAVOUR_ZERO 1
#define GC_FLAVOUR_BDW 2
#define GC_FLAVOUR_STATEPOINT 3
extern uint32_t rapid_gc_flavour;
// Define selected BDW GC functions, so we don't need BDW's... |
/*
* NVIDIA Tegra SPI controller (T114 and later)
*
* Copyright (c) 2010-2013 NVIDIA Corporation
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, ... |
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <unistd.h>
uint8_t hi(uint8_t in) {
return (in >> 4);
}
uint8_t lo(uint8_t in) {
return (in & 0xf);
}
int randomize_state = 0;
int print_ram = 0;
#define NUM_REGS_PER_RAM 4
#define RAM_REG_WIDTH 16 //... |
//
// $Id$
//
//
// Copyright (c) 2001-2020, <NAME>
// Copyright (c) 2011-2016, Sphinx Technologies Inc
// All rights reserved
//
//
// Sphinx UDF helpers implementation
//
#include "sphinxudf.h"
#include <memory.h>
#include <stdlib.h>
#define SPH_UDF_MAX_FIELD_FACTORS 256
#define SPH_UDF_MAX_TERM_FACTORS 2048
#de... |
/*
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
* Copyright (C) 2011-2013 Sourcefire, Inc.
*
* Authors: aCaB <<EMAIL>>
*
* 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
* ... |
/*
* Legal Notice
*
* This document and associated source code (the "Work") is a part of a
* benchmark specification maintained by the TPC.
*
* The TPC reserves all right, title, and interest to the Work as provided
* under U.S. and international laws, including without limitation all patent
* and trademark rig... |
/* Library which manipulates firewall rules. Version 0.2. */
/* (C)1998 Paul ``Rusty'' Russell - Placed under the GNU GPL (See
COPYING for details). */
/* 0.2: Accounting rules now return target label of "" not "-", so they
* can be fed right back in, as expected. */
#include <assert.h>
#include <string.h>
#in... |
#include <pebble.h>
#include "gameover.h"
static struct {
GBitmap *background;
GBitmap *tab_closed;
GBitmap *tab_open;
GBitmap *tab_open_selected;
} boxImgs;
GBitmap *diceImgs[6];
static struct {
Window *window;
Layer *box;
Layer *dice;
Layer *overlay;
Layer *scoreboard;
Layer *gameover;
} ui;
static GFon... |
/*
* SPDX-FileCopyrightText: 2013-2021 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "sdkconfig.h"
#include "string.h"
#include "esp_attr.h"
#include "esp_err.h"
#include "esp_types.h"
#include "esp_log.h"
#include "spiram_psram.h"
#include "esp32s3/rom/spi_flash.h"
#incl... |
/******************************************************************************
*
* (C)Copyright 1998,1999 SysKonnect,
* a business unit of Schneider & Koch & Co. Datensysteme GmbH.
*
* See the file "skfddi.c" for further information.
*
* This program is free software; you can redistribute it and/or modify
* it... |
/******************************************************************************
* Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR ... |
/**
* Calculates and prints a bunch of statistics over a graph.
*
* Author: <NAME> <<EMAIL>>
*/
#include <time.h>
#include <math.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <argp.h>
#include "graph/graph.h"
#include "util/startup.h"
#include "i... |
/*
* Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
* Copyright 2017 Ribose Inc. All Rights Reserved.
* Ported from Ribose contributions from Botan.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
... |
/*************************************************************************/
/* */
/* Source code for use with Cubist Release 2.02 */
/* -------------------------------------------- */
/* Copyright RuleQuest Research 2005 */
/* */
/* This code is provided "as is" without warranty of any ki... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/io.h>
#include <string.h>
#include "config.h"
#include "arduino_serial.h"
/*
* Technical overview:
*
* The only DB-25 pins required for a succesful communication are 2 to 7, 13,
* 15, 25 (or any other ground pin 18-25)
*
* The Viper GC doe... |
/*
Copyright (c) 2012, Broadcom Europe Ltd
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 and t... |
/*
* Builtin "git diff"
*
* Copyright (c) 2006 <NAME>
*/
#include "cache.h"
#include "color.h"
#include "commit.h"
#include "blob.h"
#include "tag.h"
#include "diff.h"
#include "diffcore.h"
#include "revision.h"
#include "log-tree.h"
#include "builtin.h"
#include "submodule.h"
#include "sha1-array.h"
struct blobin... |
/* SPDX-License-Identifier: GPL-2.0
* Copyright (c) 2017 <NAME>, Red Hat Inc.
*/
static const char *__doc__ = " XDP RX-queue info extract example\n\n"
"Monitor how many packets per sec (pps) are received\n"
"per NIC RX queue index and which CPU processed the packet\n"
;
#include <errno.h>
#include <signal.h>
#inc... |
/* Capstone Disassembly Engine */
/* BPF Backend by david942j <<EMAIL>>, 2019 */
#include <string.h>
#include "BPFConstants.h"
#include "BPFMapping.h"
#include "../../utils.h"
#ifndef CAPSTONE_DIET
static const name_map group_name_maps[] = {
{ BPF_GRP_INVALID, NULL },
{ BPF_GRP_LOAD, "load" },
{ BPF_GRP_STORE, "... |
/**
* \file score.c
* \brief <NAME> - Score Handling
*
* This module contains the main logic of the add-on.
*/
#include <phostpdk.h>
#include <stdlib.h>
#include "score.h"
#include "message.h"
#include "language.h"
#include "utildata.h"
#include "util.h"
/*
* Buiding
*/
enum Result {
Success,
... |
/********************************************************
Authors:
<NAME>, <EMAIL>
<NAME> (DTNfog project supervisor), <EMAIL>
License:
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... |
/*-
* Copyright (c) 2006 IronPort Systems
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
/*
* Copyright (c) 2020 Tencent Cloud. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/MIT
* Unless required by applicable law or agreed to in ... |
/*
* @file app_fault_monitor.c
* Author: M91406
* @brief Fault monitor application layer source file
* Revision history:
*/
#include <stddef.h>
#include "config/hal.h"
#include "config/apps.h"
/**
* @var struct FAULT_OBJECT_s fltobj_BoostUVLO
* @ingroup app-layer-fault-monitor-properties-public
* @bri... |
/******************************************************************************
* Copyright (c) <NAME> <<EMAIL>>
* All rights reserved.
*
* sfb.h - Simple Framebuffer Library interface
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
/******************************************************************************
Copyright (C) 2013 by <NAME> <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2... |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* If true, will attempt to download and build netcdf-fortran. */
/* #undef BUILD_FORTRAN */
/* d... |
/*
* tsh - A tiny shell program with job control
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <errno.h>
#define MAXLINE 1024 /* maximum line size */
#define MAXARGS 128 ... |
/* dumb-output.c
* $Id: dumb-output.c,v 1.2 2002/03/26 22:52:31 feedle Exp $
*
* Copyright 1997,1998 <NAME> <<EMAIL>>.
* Any use permitted provided this notice stays intact.
*/
#include "dumb_frotz.h"
f_setup_t f_setup;
static bool show_line_numbers = FALSE;
static bool show_line_types = -1;
static bool show_pi... |
/*
$RCSfile$
Copyright (C) 1996-1997 Id Software, 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 Foundation; either version 2
of the License, or (at your option) any later version.
This program i... |
/*
* Copyright (C) Huawei Technologies Co., Ltd. 2012-2015. All rights reserved.
* <EMAIL>
*
* If distributed as part of the Linux kernel, the following license terms
* apply:
*
* * This program is free software; you can redistribute it and/or modify
* * it under the terms of the GNU General Public Lice... |
#include "piccolo.h"
#include <stdint.h>
SBOX_BYTE SBOX[] ={0x0e, 0x04, 0x0b, 0x02,0x03, 0x08, 0x00, 0x09,0x01, 0x0a, 0x07, 0x0f,0x06, 0x0c, 0x05, 0x0d};
/* GF[2^4] multiplication by 2 */
GF16_MUL_BYTE GF16_MUL2[] = {0x00, 0x02, 0x04, 0x06, 0x08, 0x0a, 0x0c, 0x0e,0x03, 0x01, 0x07, 0x05, 0x0b, 0x09, 0x0f, 0x0d};
/*... |
#include "Platform/stdControl.h"
#include "Engine/sithControl.h"
#include "Win95/Window.h"
#include "stdPlatform.h"
#include "jk.h"
const char *stdControl_aAxisNames[16] =
{
"AXIS_JOY1_X",
"AXIS_JOY1_Y",
"AXIS_JOY1_Z",
"AXIS_JOY1_R",
"AXIS_JOY1_U",
"AXIS_JOY1_V",
"AXIS_JOY2_X",
"AXIS_... |
#define GLEW_STATIC
#include <GL/glew.h>
#include <SDL2/SDL.h>
#include <math.h> // cosf, sinf
#include <stdio.h> // printf
#include <string.h> // memset
#include <assert.h>
#include "main.h"
#include "image.h"
#include "shaders.h"
#include "audio.h"
#include "mesh_obj.h"
#include "transform.h"
const ... |
#include <assert.h>
#include <unistd.h>
#include <signal.h>
#include <string.h>
#include <stdlib.h>
#include <pcap.h>
#include "ber_processor.h"
//#include <CoreFoundation/CoreFoundation.h>
#include <sys/time.h>
//Global variables
//Lookup table of numbers of ones in binary representations of each 8-bit value
const u... |
/*
* User Mode Init manager - For TI shared transport
*
* 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.
*
*... |
/**
@section LICENSE
Copyright (c) 2013-2016, Regents of the University of California
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 no... |
/* Copyright (c) 2007-2012 Massachusetts Institute of Technology
*
* 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, ... |
/*
* Test clipping for Present and Surface-to-Screen blits.
*
* This example requires SVGA Screen Object and SVGA3D support.
*/
#include "svga.h"
#include "svga3d.h"
#include "svga3dutil.h"
#include "matrix.h"
#include "math.h"
#include "gmr.h"
#include "screen.h"
#include "intr.h"
#include "screendraw.h"
#include... |
/*
* Tencent is pleased to support the open source community by making TBase available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
*
* TBase is licensed under the BSD 3-Clause License, except for the third-party component listed below.
*
* A copy of the BSD 3-Clause Li... |
/*
* Ancient UNIX File Systems for MacFUSE
* <NAME>
* http://osxbook.com
*/
#include "ancientfs_ar.h"
#include "unixfs_common.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
DECL_UNIXFS("UNIX ar",... |
/**** BSIM3v3.2.4, Released by Xuemei Xi 12/21/2001 ****/
/**********
* Copyright 2001 Regents of the University of California. All rights reserved.
* File: b3noi.c of BSIM3v3.2.4
* Author: 1995 <NAME> and <NAME>.
* Author: 1997-1999 <NAME>.
* Author: 2001 <NAME>
* Modified by <NAME>, 10/05, 12/21, 2001.
* Modi... |
/**
操作步骤:
1. 打开设备文件。 int fd=open(”/dev/video0″,O_RDWR);
2. 取得设备的capability,看看设备具有什么功能,比如是否具有视频输入,或者音频输入输出等。VIDIOC_QUERYCAP,struct v4l2_capability
3. 选择视频输入,一个视频设备可以有多个视频输入。VIDIOC_S_INPUT,struct v4l2_input
4. 设置视频的制式和帧格式,制式包括PAL,NTSC,帧的格式个包括宽度和高度等。
VIDIOC_S_STD,VIDIOC_S_FMT,struct v4l2_std_id,struct v4l2_format ... |
// Copyright 2007,2008,2010 <NAME> <<EMAIL>>
// Licensed under the terms of the GNU GPL, version 2
// http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
// Modified for Kirk engine by setting single curve and internal function
// to support Kirk elliptic curve options.- July 2011
#include <string.h>
#include <st... |
/*
* This file is part of the kyuba.org Khonsu project.
* See the appropriate repository at http://git.kyuba.org/ for exact file
* modification records.
*/
/*
* Copyright (c) 2009, Kyuba Project Members
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and assoc... |
#include <pthread.h>
#include <string.h>
#include "xlog/xlog.h"
#include "discovery.h"
// install flow table
// construct LLDP packet
// parse LLDP packet
// send LLDP packet
static void port_packet_out(struct xswitch *xsw, int port, const uint8_t *pkt, int len)
{
struct action *ac;
struct msgbuf *mb;
ac = action()... |
/*
* raytrace.c
*
* Copyright (C) 1989, 1991, <NAME>
* All rights reserved.
*
* This software may be freely copied, modified, and redistributed
* provided that this copyright notice is preserved on all copies.
*
* You may not distribute this software, in whole or in part, as part of
* any commercial product w... |
/*
* 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 src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.o... |
#define S_FUNCTION_NAME acado_solver_sfun
#define S_FUNCTION_LEVEL 2
#define MDL_START
#define VARYING_BOUNDS 0
#define RESET_WHEN_NAN 1 // no reset ( = 0 ), reset with previous traj ( = 1 )
#define KKT_MIN -1
#define KKT_MAX 1e15
#include "acado_common.h"
// #include "acado_auxiliary_functions.h"
#include "si... |
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdbool.h>
#include <time.h>
#include "Hacl_K256_ECDSA.h"
#include "test_helpers.h"
#include "k256-ecdsa_vectors.h"
#define ROUNDS 16384
stat... |
/*
** $Id: lvm.c,v 1.58 1999/06/22 20:37:23 roberto Exp $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
#include <ctype.h>
#include <limits.h>
//#include <stdlib.h>
#include "sprintf.h"
#include "string.h"
#include "lauxlib.h"
#include "ldo.h"
#include "lfunc.h"
#include "lgc.h"
#include "lmem.h"
#inclu... |
/*
* drivers/media/radio/rtc6213n/radio-rtc6213n.h
*
* Driver for Richwave RTC6213N FM Tuner
*
* Copyright (c) 2013 Richwave Technology Co.Ltd
*
* 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 Fo... |
/*
* Copyright (c) 2010-2012, Freescale Semiconductor, 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:
*
* o Redistributions of source code must retain the above copyright notice, this... |
/**
******************************************************************************
* @file lib_NDEF_Vcard.c
* @author MMY Application Team
* @version V1.0.0
* @date 20-November-2013
* @brief This file help to manage NDEF file that represent Vcard.
******************************************... |
#include <float.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <omp.h>
#include "shared.h"
#define MAX_PLATFORMS 8
#define MAX_DEVICES 32
#define MAX_INFO_STRING 256
#define DATA_DIR "../data/bm1"
#define FILE_LIGAND "/ligand.in"
#define FILE_PROTEIN ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.