text stringlengths 5.8k 28.2k |
|---|
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
/*---------------------------------------------------------------------------... |
/*
* Copyright (c) 2016-2018 <NAME> (<EMAIL>)
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/licenses/MIT)
*/
#include <pksav/gen2/save.h>
#include <stdio.h>
#include <string.h>
#include <wchar.h>
#define PKSAV_GS_CHECKSUM1 0x2D69
#define PKSAV_... |
/******************************************************************************
*
* File: gridbathy.c
*
* Created: 04/08/2000
*
* Author: <NAME>
* CSIRO Marine Research
* NERSC
*
* Purpose: For a given scattered data calculates (interpolate... |
/*-
* Copyright (c) 2016 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
#include <stdio.h>
#include <stdlib.h> // needed for exit()
#include <stdbool.h> // needed for is1butf8(), etc.
#include <ctype.h> // needed for toupper()
/***************************************************************
* unsigned int toupperu(unsigned int)
* This function takes as its argument an unsigned four-byt... |
/*
* hdmi_rx.c
*
* Created on: Nov 8, 2017
* Author: <NAME>
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include "i2c.h"
#include "hdmi_rx.h"
#define HDMI_RX_DEVICE_ID (0)
#define HDMI_RX_NCONFIGS (1)
#define HDMI_RX_HDMI_I2C_ADDR (0x48U)
#define HDMI_RX_CEC_I... |
#include <u.h>
#include <libc.h>
#include <libg.h>
#include "system.h"
#include "stdio.h"
#include "defines.h"
#include "object.h"
#include "dict.h"
#include "njerq.h"
#include "font.h"
#include "map.h"
#define FONTS 1
#define MAXCH 100 /*max height/width of char bitmap*/
/*
extern struct fonttab SStbl, Rtbl, CWtbl, B... |
/*
Copyright (c) 2019 <EMAIL>
RV-LINK is licensed under the Mulan PSL v1.
You can use this software according to the terms and conditions of the Mulan PSL v1.
You may obtain a copy of Mulan PSL v1 at:
http://license.coscl.org.cn/MulanPSL
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,... |
/*
* Various utilities for command line tools
* Copyright (c) 2000-2003 <NAME>
*
* 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 o... |
/*
* Copyright 1998 by <NAME> <<EMAIL>>
* Copyright 2007 Red Hat, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software")
* to deal in the software without restriction, including without limitation
* on the right... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2020 <NAME> <<EMAIL>>
*/
#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <lcd.h>
#include <log.h>
#include <panel.h>
#include <video.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm/utils.h>
#include ... |
#include<libtransistor/loader_config.h>
#include<libtransistor/util.h>
#include<libtransistor/svc.h>
#include<libtransistor/err.h>
#include<libtransistor/ipc/sm.h>
#include<libtransistor/ipc/bsd.h>
#include<libtransistor/fd.h>
#include<sys/socket.h>
#include<assert.h>
#include<stdio.h>
#include<string.h>
#include<setj... |
/***************************************************************************
* Copyright (C) 2008 by <NAME> *
* Copyright (C) 2008 by <NAME> *
* Copyright (C) 2009 by <NAME> *
* ... |
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL_opengl.h>
#include <GLES2/gl2.h>
#include <GL/glfw.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <emscripten.h>
#define CANVAS_WIDTH 800
#define CANVAS_HEIGHT 600
#define FLOAT32_BYTE_SIZE 4
#define STRIDE FLOAT32_BYTE_SIZE*4
#de... |
/*
Differential evolution MCMC stepper.
*/
#define _GNU_SOURCE // sincos isn't standard?
#include <math.h>
#include <stdlib.h>
#include <stdio.h> // for debugging
// Random library with a separate generator for each thread of
// an OpenMP threaded program. Assumes max 64 threads. If OpenMP is
// not available, th... |
/*
* audio resampling
* Copyright (c) 2004-2012 <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,... |
#include "ws.h"
#ifndef _MSC_VER
#include <fcntl.h>
#endif
#define SHA1_HASH_SIZE 20
static struct globals_s globals;
#ifndef WSS_STANDALONE
void init_ssl(void)
{
// SSL_library_init();
}
void deinit_ssl(void)
{
return;
}
#else
static void pthreads_thread_id(CRYPTO_THREADID *id);
static void pthreads_locking_cal... |
/* convert GIB to SGF - aeb, 2017-01-17 */
/*
* Note: I do not have a spec of GIB, just a handful of examples.
* This is a very incomplete attempt.
* Send examples of games not handled to <EMAIL> .
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "errexit.h"
static int starts_with(char *buf,... |
/* <@LICENSE>
* Copyright 2004 Apache Software Foundation
*
* 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... |
/*
* Copyright (c) 2016-2017 <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... |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: MIT-0
*
* 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... |
/**
******************************************************************************
* @file Touch_Panel/main.c
* @author MCD Application Team
* @version V1.0.1
* @date 11-November-2013
* @brief This example describes how to configure and use the touch panel
* mounted on STM32F429I... |
/*
Copyright (c) 2015, Plume Design Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the... |
/******************************************************************************
* *
* glm_util.c *
* *
... |
#pragma once
#ifdef ATS_MODERN_OPENGL
#include "dep/glad/glad.h"
#endif
// ====================================================== API =================================================== //
typedef struct platform_t platform_t;
extern platform_t platform;
extern void platform_init(const char* title, int width, int... |
/* MolcasBasis.c */
/**********************************************************************************************************
Copyright (c) 2002-2013 <NAME>. All rights reserved
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the Gabed... |
//*******************************************************************
//Author: <NAME>
//Description: Silicon Verification for CISv2
//
//Board: Single-Socket Board
//Chips: PREv21E -> SNTv5 -> MRRv11A -> PMUv12 (CISv2)
//
// Behavior upon GOC/EP IRQ:
//
// REG0
// [23:16] [15:8] [7:0] Description
// --------------... |
/* permcheck - checks and reports on access permissions via fts(3). only
* unix permissions are considered; exotic ACLs or other curiosities
* (apparmor, selinux) are not checked
*
* see also parsepath(1) for a different (and older) take on this task
*
* a better approach in most cases is to specify and enforce s... |
/*
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
* Copyright (C) 2007-2013 Sourcefire, Inc.
*
* Authors: <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
* publish... |
/*
* CC_sf.c
*
* Code generation for model "CC_sf".
*
* Model version : 1.109
* Simulink Coder version : 8.9 (R2015b) 13-Aug-2015
* C source code generated on : Tue May 26 21:06:25 2020
*
* Target selection: rtwsfcn.tlc
* Note: GRT includes extra infrastructure and instrumentation for prototyping... |
/********************************************************************
* BenchIT - Performance Measurement for Scientific Applications
* Contact: <EMAIL>
*
* $Id: kernel_main.c 1 2009-09-11 12:26:19Z william $
* $URL: svn+ssh://<EMAIL>@r<EMAIL>-dres<EMAIL>.de/svn-base/benchit-root/BenchITv6/kernel/io/write/C/PThrea... |
/*
* Copyright (C) 2011 <NAME> <<EMAIL>>
*
* This is licensed under the Apache License, Version 2.0. See file COPYING.
*/
#define _GNU_SOURCE /* for TEMP_FAILURE_RETRY */
#include "limits.h"
#include "util.h"
#include "worker.h"
#include <errno.h>
#include <semaphore.h>
#include <stdint.h>
#include <stdio.h>
#i... |
/*
* Phoenix-RTOS
*
* USB Mass Storage class driver
*
* Copyright 2021 Phoenix Systems
* Author: <NAME>
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include <arpa/inet.h>
#include <errno.h>
#include <limits.h>
#include <sys/list.h>
#include <sys/msg.h>
#include <sys/minmax.h>
#include <sys/type... |
#include "30010_io.h"
/****************************/
/*** USB Serial Functions ***/
/****************************/
void uart_putc(uint8_t c) {
USART_SendData(USART2, (uint8_t)c);
while(USART_GetFlagStatus(USART2, USART_FLAG_TXE) == RESET){}
}
uint8_t uart_getc() {
while(USART_GetFlagStatus(USART2, USART_... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include "structN.h"
#include "zlib.h"
#include "dpx.h"
#define EXTERN extern
#include "coderN.h"
#include "miscN.h"
#include "ioN.h"
#include "pstatN.h"
#include "basic.h"
#define INVALID_AGP_EXIST ... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifdef _MSC_VER /* identifies this as a Microsoft compiler */
#define _USE_MATH_DEFINES /* added RX2011 */
#endif
#include <math.h>
#include "mathUtil.h"
#define MIN(A,B) ( (A)<(B)?(A):(B) )
#define MAX(A,B) ( (A)>(B)?(A):(B) )
/* #define CHECK_FREE(A) {... |
/*
* Ett tre-dimensionellt rymd spel
*
* Copyright (c) 2016 by <NAME>
*
* This code is licensed under the MIT license
* (https://opensource.org/licenses/MIT)
*/
// För att ladda modell-filer
#include <assimp/cimport.h>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
// För att ladda bilder
#define... |
/* $OpenBSD: db_machdep.c,v 1.12 2002/05/18 09:49:17 art Exp $ */
/* $NetBSD: db_machdep.c,v 1.17 1999/06/20 00:58:23 ragge Exp $ */
/*
* Mach Operating System
* Copyright (c) 1991,1990 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* ... |
/*
* SHA1 hash implementation and interface functions
* Copyright (c) 2003-2005, <NAME> <<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
* published by the Free Software Foundation.
*
* Alternatively, this soft... |
/*
Copyright (c) 2008-2013
<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, publish, dist... |
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <fs/ext2.h>
#include <drivers/disk.h>
#include <lib/libc.h>
#include <lib/blib.h>
#include <lib/print.h>
#include <mm/pmm.h>
/* Inode types */
#define S_IFIFO 0x1000
#define S_IFCHR 0x2000
#define S_IFDIR 0x4000
#define S_IFBLK 0x6000
#define S_... |
/**************************************************************************************************
* \file HW_MAG.c
* \brief Magnetometer (lis2mdl) functions
*
* \par Copyright Notice
* Copyright 2021 charity: water
*
* Licensed under the Apache License, Version 2.0 (the "License");
* ... |
/* Includes ----------------------------------------------------------*/
#include <avr/io.h> // AVR device-specific IO definitions
#include <avr/interrupt.h> // Interrupts standard C library for AVR-GCC
#include "timer.h" // Timer library for AVR-GCC
#include "lcd.h" // <NAME>'s LCD library... |
/*
* fireworks.c
* written by <NAME>
* use however you want
*/
#include "SDL.h"
#include "SDL_opengles.h"
#include "common.h"
#include <math.h>
#include <time.h>
#define MILLESECONDS_PER_FRAME 16 /* about 60 frames per second */
#define ACCEL 0.0001f /* acceleration due to gravity, units in pixels... |
#include <u.h>
#include <sys/time.h>
#include <libc.h>
#include <ip.h>
#include <bio.h>
#include <ndb.h>
#include "dns.h"
enum
{
Maxdest= 24, /* maximum destinations for a request message */
Maxtrans= 3 /* maximum transmissions to a server */
};
static int netquery(DN*, int, RR*, Request*, int);
static RR* dnresolv... |
#include "ftfp.h"
#include "internal.h"
#include <math.h>
#include <stdint.h>
int8_t fix_is_neg(fixed op1) {
return FIX_IS_NEG(op1);
}
int8_t fix_is_nan(fixed op1) {
return FIX_IS_NAN(op1);
}
int8_t fix_is_inf_pos(fixed op1) {
return FIX_IS_INF_POS(op1);
}
int8_t fix_is_inf_neg(fixed op1) {
return FIX_IS_INF_... |
#ifdef _WIN32
#define NOMINMAX
#include <windows.h>
#elif defined __linux__
#define _GNU_SOURCE
#include <sched.h>
#elif defined __FreeBSD__
#include <sys/param.h>
#include <sys/cpuset.h>
#elif defined __APPLE__
#define UNUSED(x) (void)(x)
#endif
#include <stdlib.h>
#include <stdint.h>
#include <string.h... |
/*
* Copyright (c) 2013, Google Inc. All rights reserved.
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
#include <dev/timer/arm_generic.h>
#include <arch/ops.h>
#include <assert.h>
#include <lk/init.h>
#includ... |
/*
* Copyright (c) 2021 Mellanox Technologies. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "oshmem_config.h"
#include "opal/util/show_help.h"
#include "opal/util/timings.h"
#include "oshmem/proc/proc.h"
#include "oshmem/runtime/runtime.h"
#include "ompi/mca/... |
/* OpenBSD: qsort.c v1.18 2017/05/30 14:54:09 */
/* OpenBSD: heapsort.c v1.11 2017/05/20 12:48:56 */
/*-
* Copyright (c) 1991, 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted prov... |
/*
* Ogg muxer
* Copyright (c) 2007 <NAME> <baptiste dot coudurier at free dot fr>
*
* 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... |
/*
Copyright (c) 2021 <NAME>. See the COPYRIGHT
file at the top-level directory of this distribution.
Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
<LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
option. T... |
/* For crypt */
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/time.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/signal.h>
#includ... |
#include <string.h>
#include <stdio.h>
#include "xfer.h"
#define XM_SOH 0x01
#define XM_STX 0x02
#define XM_EOT 0x04
#define XM_ACK 0x06
#define XM_NAK 0x15
#define XM_CAN 0x18
#define XM_PAD 0x1a
#define XM_C 0x43
static unsigned short crctab[] = {
0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6,... |
/**
******************************************************************************
* Copyright (c) 2019 - ~, SCUT-RobotLab Development Team
* @file Attitude_Calculation.c
* @author YDX <EMAIL>
* @brief Code for bmx055 attitude calculation.
* @date 2019-11-21
* @version 1.0
* @par Change Log:
... |
/*
ScreenPreferenceState.c
AUTHORS:
All<EMAIL> awi
<EMAIL> mk
PLATFORMS:
All.
HISTORY:
2/28/04 awi Created.
5/30/05 mk New preference setting screenSkipSyncTests: If set to TRUE, self-test and calibration will be as
... |
/**# USB MIDI implementation
**
**/
#include <avr/interrupt.h>
#include <util/delay.h>
#include "usb.h"
#include "usb_midi.h"
#include "d12.h"
#include "midi_link_desc.h"
void usb_midi_uart_putc(uint8_t c);
/**
** Conversion table from "real" midi to USB MIDI.
**
** First parameter is the "real"... |
/*
Copyright 2010-2013 SourceGear, LLC
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 writing, softwar... |
/*
* Copyright (c) 2015 Sandia National Laboratories. All rights reserved.
* Copyright (c) 2015 <NAME>. All rights reserved.
* Copyright (c) 2015 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2017 IBM Corpora... |
/* $NetBSD: dc21285reg.h,v 1.1 2001/06/09 10:29:12 chris Exp $ */
/*
* Copyright (c) 1997,1998 <NAME>.
* Copyright (c) 1997,1998 Causality Limited
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ... |
// SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB
/* Copyright (c) 2015 - 2021 Intel Corporation */
#include "osdep.h"
#include "status.h"
#include "hmc.h"
#include "defs.h"
#include "type.h"
#include "protos.h"
#include "pble.h"
static enum irdma_status_code
add_pble_prm(struct irdma_hmc_pble_rsrc *pble_rsrc);
/**... |
/*
** Copyright 2007-2018 RTE
** Author: <NAME>
**
** This file is part of Sirius_Solver.
** This program and the accompanying materials are made available under the
** terms of the Eclipse Public License 2.0 which is available at
** http://www.eclipse.org/legal/epl-2.0.
**
** This Source Code may also be made availabl... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/*
This is the core graphics library for all our displays, providing a common
set of graphics primitives (points, lines, circles, etc.). It needs to be
paired with a hardware-specific library for each display device we carry
(to handle the lower-level functions).
Adafruit invests time and resources providing this op... |
/**********************************************************************
* Copyright (c) 2020 Aergo Foundation *
* Distributed under the MIT software license, see the accompanying *
* file COPYING or http://www.opensource.org/licenses/mit-license.php.*
*******************************... |
/* -------------------------------------------------------
tetris_ega.c
YetAnotherTetrisGame
Bricks - Breakout Game fuer STM32F030 mit 128x128 TFT
SPI Display
MCU : STM32F030
Takt : 48 MHz
27.02.2020 <NAME>
Hinweis: Mit dem Startbilds... |
/*
* nghttp2 - HTTP/2.0 C Library
*
* Copyright (c) 2013 <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... |
/*Daala video codec
Copyright (c) 2006-2013 Daala project contributors. 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
l... |
/*
* Copyright (c) 2013 <NAME>.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*/
#include <errno.h>
#include <assert.h>
#include <string.h>
#include <caml/mlvalues.h>
#include <caml/memory.h>
#include <caml/alloc.h>
#include <caml/custom.h>
#include <caml/ca... |
/* FFBMP - Fast n' Filthy BMP
* https://github.com/molkoback/ffbmp
*
* v1.0.2 - 2018-06-08
*
* The library supports the following BMP variants:
* 1. Uncompressed 32 BPP (alpha values are ignored)
* 2. Uncompressed 24 BPP
* 3. Uncompressed 8 BPP (indexed color)
*
*
* Copyright (c) 2007 <NAME> <<EMAIL>>
*... |
/* menu_text.c - Basic text menu implementation. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2003,2004,2005,2006,2007,2008,2009 Free Software Foundation, Inc.
*
* GRUB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by... |
/*
* Copyright(c) 2019 Netflix, Inc.
* SPDX - License - Identifier: BSD - 2 - Clause - Patent
*/
// SUMMARY
// Contains the Decode Block related functions
/**************************************
* Includes
**************************************/
#include "EbDefinitions.h"
#include "EbSvtAv1Dec.h"
#include "EbDe... |
/*
* Copyright (C) 2011 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 required by applicable law or... |
/* Copyright (c) 2021 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disc... |
/*
* Copyright (C) 2002 by the Massachusetts Institute of Technology.
* All rights reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility of any person or organization contemplating
* export to o... |
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
#in... |
/*---------------------------------------------------------------
* Programmer(s): <NAME> @ SMU
*---------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-2021, Lawrence Livermore National Security
* and Southern Methodist University.
* All rights reserved.
*... |
#pragma once
#define NVAPI_INTERNAL
#include "nvapi.h"
NvAPI_Status nvapi_dll_init();
typedef struct {
NvU32 version;
NvU8 valid;
NvU8 count;
struct
{
NvU32 pstate; // Assumption
NvU32 unknown1[2];
NvU32 min_power;
NvU32 unknown2[2];
NvU32 def_power;
NvU32 unknown3[2];
NvU32 max_power;
NvU32 u... |
/* R_data.c */
#include "doomdef.h"
#include "r_local.h"
#include "p_local.h"
boolean spr_rotations;
int firstflat, lastflat, numflats;
int numtextures;
texture_t *textures;
spritedef_t sprites[NUMSPRITES];
spriteframe_t* spriteframes;
VINT *flattranslation; /* for global animation */
VINT *texturetransla... |
#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 <SDKDDKVer.h>
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif // WIN32_LEAN_AND_MEAN
#ifndef NOMINMAX
#define NOMINMAX
#endif // NOMINMAX
#ifndef STRICT
#define STRICT // for WNDPROC. ref: Remarks in
// https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-ca... |
/*
* Copyright 2020 u-blox 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 or agreed to in w... |
/*
* Copyright (c) 2015 Genome Research Ltd.
* Author(s): <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 must retain the above copyright notice,
* this l... |
/*
* 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 ... |
/* Copyright (c) 2012-2014, The Linux Foundation. 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 version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... |
/*
* Copyright 2005-2019 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
* virtue of its status as an int... |
/*
* Banner Grab Copyright 2013 Regents of the University of Michigan
*
* 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
*/
#include <sys/sock... |
#include "rw.h"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "linalg.h"
#include "scs.h"
#include "scs_matrix.h"
#include "util.h"
/* writes/reads problem data to/from filename */
/* This is a VERY naive implementation, doesn't care about portability etc */
static void write_scs_cone(const Sc... |
#ifdef EEmapFEE_USE
// used to emulate Endcap FEE TP math
struct EEfeeTPmap {
int JP;
const char* name;
int lenCh, cha0L, cha0H;
};
// this is mapping of 90 Endcap TP to ADC channels, utilized by constructor of EEfeeTP class.
struct EEfeeTPmap eeTPmap[90]={
/* syntax: EEfeeTP(crate, TPname, lenCh, chL, [chH... |
/*
Copyright (c) 2011 <NAME> <<EMAIL>>
Copyright (c) 2012 <NAME> <<EMAIL>>
Copyright (c) 2011-2012 Center for Bioinformatics, University of Hamburg
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice a... |
/*
* @file
*
* @date Dec 19, 2012
* @author: <NAME>
*/
//http://linuxconsole.sourceforge.net/fbdev/HOWTO/3.html
//http://www.faqs.org/faqs/pc-hardware-faq/supervga-programming/
//http://wiki.osdev.org/VGA_Hardware#The_CRT_Controller
//http://www.osdever.net/FreeVGA/vga/crtcreg.htm
//CIRRUS_LOGIC_GD_5446
#inclu... |
/*
* LIF2.cpp
*
* Created on: Aug 4, 2008
* Author: dcoates
*/
// ---------------------------------------------------
// Common leaky integrate-and-fire layer routines
// ---------------------------------------------------
#include "../include/pv_common.h"
#include "../utils/pv_random.h"
#include "PVLayer... |
#include "tybo_compression.h"
typedef signed char s8_t;
typedef signed short s16_t;
typedef signed int s32_t;
typedef unsigned char u8_t;
typedef unsigned short u16_t;
typedef unsigned int u32_t;
u8_t copy_offset_lut[0xc0] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //0x00
0x01, 0x01, 0x01, 0x0... |
/*----------------------------------------------------------------------------
* File: Location_GPS_class.c
*
* Class: GPS (GPS)
* Component: Location
*
* your copyright statement can go here (from te_copyright.body)
*--------------------------------------------------------------------------*/
... |
#include "global.h"
#include "commands.h"
#include "util.h"
#include "file_util.h"
#include "db_graph.h"
#include "graphs_load.h"
#include "gpath_checks.h"
#include "build_graph.h"
#include "seqout.h"
#include "seq_reader.h"
const char uniqkmers_usage[] =
"usage: "CMD" uniqkmers [options] <N>\n"
"\n"
" Generate <N> r... |
/* vim: set filetype=c : */
/* vim: set noet tw=80 ts=8 sw=8 cinoptions=+4,(0,t0: */
/*
* Copyright 2017, <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 must retain th... |
/*----------------------------------*/
/* IZP */
/* Projekt 2 */
/* <NAME> */
/* <EMAIL> */
/*----------------------------------*/
/**
* Kostra programu pro 3. projekt IZP 2017/18
*
* Jednoducha shlukova analyza
* Unweighted pair-group av... |
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mesh.h"
static void face_normals(mesh *m);
static void vertex_normals(mesh *m);
static void vertex_bbox(mesh *m);
enum Field {
X,Y,Z,
NX,NY,NZ,
RED,GREEN,BLUE,
IGNORED
};
static const char *... |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2011-2017 - <NAME>
* Copyright (C) 2014-2017 - <NAME>
* Copyright (C) 2016-2019 - <NAME>
* Copyright (C) 2019-2020 - <NAME>
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License a... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
//#include <cem.h>
#include <mpi.h>
#include <gsl/gsl_linalg.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_vector.h>
void randperm(int*, int);
void load_double_mat(double*, int, int, int, char*);
void load_int_mat(int*, int, int, int, char*);
void load_double... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.