text stringlengths 5.8k 28.2k |
|---|
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2012 Linux Test Project, Inc.
*/
/*
* functional test for readahead() syscall
*
* This test is measuring effects of readahead syscall.
* It mmaps/reads a test file with and without prior call to readahead.
*
* The overlay part of the test is regression for... |
#include "global.h"
#include "gpath_checks.h"
#include "db_node.h"
#include "binary_seq.h"
typedef struct {
size_t col, from_col;
const char *name, *src;
} ColourSample;
static int _col_sample_cmp(const void *aa, const void *bb)
{
const ColourSample *a = (const ColourSample *)aa;
const ColourSample *b = (cons... |
/****************************************************************
* Bootloader for Atmega
* Author: <NAME> (SX)
* Code based on Bootloader from <NAME> (SN)
*************************************************************** */
// Include-Dateien
#include <avr/io.h>
//#include "iom88p_ok.h"
#include <avr/boot.h>
... |
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* _coder_SteadyState_3D_SOR_Solver_CoreC_api.c
*
* Code generation for function '_coder_SteadyState_3D_SOR_Solv... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "tiff_util.h"
//#include "../common/cpuUsage.h"
TiffParas TParas;
/* ######################## Method Declare ######################## */
/*
// ================= Out of this file. ================
// In "cpuUsage.c".
void getWholeCPUStatus(ProcStat*... |
#include<stdio.h>
#include<float.h>
#include<math.h>
#include<Windows.h>
#ifndef __BORLANDC__
#include<stdint.h>
#endif
#include "./include/borland.h"
#include "./include/matrix.h"
#include "./include/graphics.h"
#include "./include/colors.h"
#include "./include/vector.h"
static HANDLE screen;
static int divideByZ ... |
/*
* PCF8833.c
*
* Copyright (c) 2008-2010 CSIRO, Delft University of Technology.
*
* This file is part of Darjeeling.
*
* Darjeeling 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 v... |
/*********************************************************************
Example source code for using the argtable2 library to implement:
ls [-aAbBcCdDfFgGhHiklLmnNopqQrRsStuUvxX1] [--author]
[--block-size=SIZE] [--color=[WHEN]] [--format=WORD] [--full-time]
[--si] [--dereference-command-line-symlink-to-dir] [--i... |
/* *************************************************************************
DM9000A/B/BI (8-bit mode) driver for AVR CPUs
Copyright 2009 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to d... |
/*
* Copyright (c) 2017, Intel Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of c... |
/*
* Copyright 2015, 2016, International Business Machines
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*
* Copyright (C) 1985-1992 New York University
*
* This file is part of the Ada/Ed-C system. See the Ada/Ed README file for
* warranty (none) and distribution info and also the GNU General Public
* License for more details.
*/
#include "hdr.h"
#include "ada.h"
#include "adalexprots.h"
#include "pspansprots.... |
#include <getopt.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/resource.h>
#include <sys/time.h>
#include "bseq.h"
#include "minimap.h"
#include "mmpriv.h"
#define MM_VERSION "2.1-r311"
void liftrlimit()
{
#ifdef __linux__
struct rlimit r;
getrlimit(RLIMIT_AS, &r);
r.rlim_cur = r.rlim... |
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "tmdl.h"
#include "kissMangaDownload.h"
#include "kissMangaRead.h"
#include "generalMethods.h"
#include "chaptersToDownload.h"
#include "currentChapter.h"
#include "bl... |
#include "param.h"
#include "types.h"
#include "defs.h"
#include "sh4.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
#include "elf.h"
#if 0
extern char data[]; // defined by kernel.ld
pde_t *kpgdir; // for use in scheduler()
struct segdesc gdt[NSEGS];
#endif
// Set up CPU's kernel segment descriptors.... |
/*
Glidix kernel
Copyright (c) 2014-2017, <NAME>.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditi... |
/*
Copyright (C) 1995-2001 Activision, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distribu... |
#include <math.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <pthread.h>
#include <unistd.h>
#define NONINT long double
#define PREC_IN "%20Lf"
#define PREC_OUT "%.20Lf"
#ifdef DEBUG
# define DPRINTF(...) printf(__VA_ARGS__)
#else
# define DPRINTF(...)... |
/* --------------- Moved here from job.c ---------------
This file must be #included in job.c, as it accesses static functions.
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
2007, 2008, 2009, 2010 Free Software Foundation, Inc.
This file is part of GNU Make.
GNU Make is free softw... |
#include <glib.h>
#include <glib-object.h>
#include <gtksourceview/gtksourceview.h>
#include <gee/arraylist.h>
#include <gtk/gtk.h>
#include <gee/iterable.h>
#include <gee/iterator.h>
#include <stdlib.h>
#include <string.h>
#include <gee/hashmap.h>
#include <gdk/gdk.h>
#define GTK_MATE_TYPE_VIEW (gtk_mate_view_get_t... |
#include "Doom.h"
#include <IntMath.h>
#include "string.h"
#define MAX_WALL_PARTS 300
typedef struct {
int xLeft, xRight;
int scaleLeft, scaleRight;
int textureOffset, textureLength;
Word shadeLight;
} wallpart_t;
static wallpart_t wallParts[MAX_WALL_PARTS];
static int wallPartsCount;
static int te... |
#include <stdint.h>
#include <string.h>
#include "tkmk00.h"
#include "utils.h"
#define TKMK00_VERSION "0.1"
static int32_t t1, t7, t8, t9, s0, s1, s3, s4, s6, s7, v0, v1;
// 0x400 allocated on stack
static uint16_t rgba_buf[0x40]; // SP[000]-SP[07F] - buffer of 32 RGBA colors
static uint16_t buffer80_u16[0x3F];... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
#include <stdio.h>
#include <stdlib.h>
#include "m_pd.h"
static t_class *staircase_class;
/*** header definition ***/
typedef struct _stairs
{
t_float x_step_size,
x_prev_level,
x_cur_level;
t_int *x_up_hist,
*x_down_hist,
x_up_hist_id,
x_down_hist_id,
... |
/*====================================================================
* ------------------------
* | CVS File Information |
* ------------------------
*
* $RCSfile$
*
* $Author$
*
* $Date$
*
* $Revision$
*
* $Name$
*====================================================================*/
#ifndef lint
stati... |
/**
* Copyright (c) 2015 Google 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 an... |
/* store.c, picture output routines */
/* Copyright (C) 1996, MPEG Software Simulation Group. All Rights Reserved. */
/*
* Disclaimer of Warranty
*
* These software programs are available to the user without any license fee or
* royalty on an "as is" basis. The MPEG Softwa... |
/*
assoc.c
Copyright 2002-2007 Virtutech AB
The contents herein are Source Code which are a subset of Licensed
Software pursuant to the terms of the Virtutech Simics Software
License Agreement (the "Agreement"), and are being distributed under
the Agreement. You should have received a copy of the Agree... |
// main.c
//
// Test harness command-line for jRead
//
//
#define _CRT_SECURE_NO_WARNINGS // stop complaining about unsafe functions
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include "jRead.h"
//-------------------------------------------------
// Do a... |
// vmemalloc.c
// Created by 080004721, 2011. FileTrace skeleton provided by <NAME>.
#include "vmemalloc.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <sys/time.h>
#include <unistd.h>
#include "debug.h"
#include "vmemaccess.h"
unsigned long used_bm;
unsigne... |
/** \file
* \brief IupMatrix Expansion Library.
*
* See Copyright Notice in "iup.h"
*/
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include "iup.h"
#include "iupcbs.h"
#include "iupcontrols.h"
#include "iup_array.h"
#include "iup_object.h"
#include "iup_attrib.h"
#include "iup_... |
/***************************************************************************
* Copyright (C) 2006 by <NAME> *
* <EMAIL> *
* *
*******************************************************... |
#include "value.h"
#include "program.h"
typedef enum {
MOD_Displacement_0 = 0b00,
MOD_Displacement_s8 = 0b01,
MOD_Displacement_s32 = 0b10,
MOD_Register = 0b11,
} MOD;
typedef enum {
REX = 0b01000000,
REX_W = 0b01001000, // 0 = Storage size determined by CS.D; 1 = 64 Bit Storage Size
REX_R =... |
#include <gtk/gtk.h>
#include "mpsse.h"
#define STRING_TX "Write"
#define STRING_RX "Read"
#define STRING_TX_RX "Write/Read"
GtkBuilder *builder;
GtkWidget *window;
GtkWidget *fixed1;
GtkWidget *btnSend;
GtkWidget *btnClear;
GtkWidget *lblStatus;
GtkWidget *lblTxDataStatus;
GtkWidget *scrollWindow;
GtkWidget *b... |
#include <stdlib.h>
#include <string.h>
#include "utils.h"
#include "type.h"
#include "memory_map.h"
#include "uart.h"
#include "gpio.h"
#include "ps2.h"
#include "vga.h"
#define SHELL_ARGS_MAX (6)
typedef s32 (*func_0)();
typedef s32 (*func_4)(u16 arg1, u16 arg2, u16 arg3, u16 arg4);
struct shell_cmd_info {
... |
/*! \file pp-h264.c
* \author <NAME> <<EMAIL>>
* \copyright GNU General Public License v3
* \brief Post-processing to generate .mp4 files
* \details Implementation of the post-processing code (based on FFmpeg)
* needed to generate .mp4 files out of H.264 RTP frames.
*
* \ingroup postprocessing
* \ref ... |
#include <string.h>
#include <stdio.h>
#include <psxgpu.h>
#include "types.h"
#include "vm.h"
#include "util.h"
#include "gfx.h"
#include "snd.h"
#include "music.h"
#include "pad.h"
#include "res.h"
#include "tables.h"
#include "game.h"
#define VM_NUM_VARS 0x100
#define VM_STACK_DEPTH 0x40
#define VM_NUM_TASKS 0... |
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2012 The PHP Group |
+--------------... |
/*
* Copyright 2011, Marvell Semiconductor Inc.
* <NAME> <<EMAIL>>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Found... |
/*
* Copyright (C) 2010-2011 Freescale Semiconductor, Inc.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; ei... |
#include "ext4_utils.h"
#ifndef _LARGEFILE64_SOURCE
#define _LARGEFILE64_SOURCE /* See feature_test_macros(7) */
#endif
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <sys/types.h>
#include "ext4.h"
#include "libdmverity_hashgen.h"
#define VERITY_METADATA_MAGIC_NUMBER 0xb001b001
#define ERR_WR... |
/* worldpos.c -- WCS Algorithms from Classic AIPS.
Copyright (C) 1994
Associated Universities, Inc. Washington DC, USA.
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; ei... |
/**
* 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... |
/*
* Copyright (C) 2001 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is... |
/*
* (C) Copyright 2008
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm/ppc440.h>
#include <libfdt.h>
#include <fdt_support.h>
#include <i2c.h>
#include <asm/processor.h>
#include <asm/io.h>
#include <asm/mmu.h>
#include <asm/4xx_pcie.h>
#in... |
#include "doomdef.h"
#include "doomtype.h"
#define BUFFER_CHAN 2
// #define BUFFER_CHAN 1
//#define BUFFER_SIZE (BUFFER_CHAN*8192*2)
#define BUFFER_SIZE (BUFFER_CHAN*8192)
extern int soundtime; // sample PAIRS
extern int paintedtime; // sample PAIRS
extern int endtime; // sample PAIRS
//unsigned char ... |
#include "postgres.h"
#include "plpgsql.h"
#include "funcapi.h"
#include "miscadmin.h"
#include "access/tupdesc.h"
#include "storage/ipc.h"
enum
{
PLPGSQL_CHECK_ERROR,
PLPGSQL_CHECK_WARNING_OTHERS,
PLPGSQL_CHECK_WARNING_EXTRA, /* check shadowed variables */
PLPGSQL_CHECK_WARNING_PERFORMANCE, /* invisible ... |
/*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... |
/* Copyright (c) 2014, ENEA Software AB
* Copyright (c) 2014, Nokia
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <getopt.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
#include <inttypes.h>
#include "ofp.h"
#inclu... |
/*
* Copyright (c) 2013 Qualcomm Atheros, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the
* disclaimer below) provided that the following conditions are met:
*
* * Redistributions of source code ... |
/*
======================================================================
In-core kd-tree for photon map
<NAME> (<EMAIL>})
(c) Fraunhofer Institute for Solar Energy Systems,
(c) Lucerne University of Applied Sciences and Arts,
supported by the Swiss National Science Foundation (SNSF, #147053)
... |
// build commmand:
// gcc -c test_fresnel.c -O2 -std=c99 -I../LISAsim -I/opt/local/include
// gcc -o test_fresnel test_fresnel.o struct.o ../LISAsim/LISAnoise.o -lgsl -lgslcblas
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <gsl/gsl_errno.h>
#include <gsl/gsl_bspline.h>
#includ... |
/**
* @file feedback.c
*
*/
#include <stdio.h>
#include <math.h>
#include <rc/math/filter.h>
#include <rc/math/kalman.h>
#include <rc/math/quaternion.h>
#include <rc/math/other.h>
#include <rc/start_stop.h>
#include <rc/led.h>
#include <rc/mpu.h>
#include <rc/servo.h>
#include <rc/time.h>
#include <sensor_calc.h>
#... |
/* psLayout - generate cDNA alignments using SuperStitcher, PatSpace and fuzzyFinder.
* Output these in format suitable for layout (contig ordering and orienting)
* programs. */
#include "common.h"
#include "hash.h"
#include "linefile.h"
#include "obscure.h"
#include "portable.h"
#include "errabort.h"
#include "dna... |
#include "ruby.h"
#include "ruby/encoding.h"
#include <stdint.h>
#include <netinet/in.h>
#define ERL_SMALL_INT 97
#define ERL_INT 98
#define ERL_FLOAT 99
#define ERL_ATOM 100
#define ERL_SMALL_TUPLE 104
#define ERL_LARGE_TUPLE 105
#define ERL_NIL 106
#define ERL_STRING ... |
// DSWifi Project - sgIP Internet Protocol Stack Implementation
// Copyright (C) 2005-2006 <NAME> - <EMAIL> - http://www.akkit.org
/******************************************************************************
DSWifi Lib and test materials are licenced under the MIT open source licence:
Copyright (c) 2005-2006 <NAME>... |
/*
* Arm SCP/MCP Software
* Copyright (c) 2015-2020, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "system_mmap.h"
#include <mod_dmc500.h>
#include <fwk_element.h>
#include <fwk_id.h>
#include <fwk_module.h>
#include <fwk_module_idx.h>
#define COL_BITS... |
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <poll.h>
#include <signal.h>
#include <string.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
#include "../cgi/cgi.h"
#include "../config/config.h"
#include "../datastructures/hash-table/hash-table.h"
#include "../datastructures/list/list.h"
#... |
/* Generic definitions */
#define PACKAGE it.unimi.dsi.fastutil.bytes
#define VALUE_PACKAGE it.unimi.dsi.fastutil.objects
/* Assertions (useful to generate conditional code) */
#define KEY_CLASS_Byte 1
#define KEYS_PRIMITIVE 1
#define VALUE_CLASS_Object 1
#define VALUES_REFERENCE 1
/* Current type and class (and si... |
/* $NetBSD: hack.do.c,v 1.11 2011/08/06 20:29:37 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
* Amsterdam
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
/**
\file misc.c
\author <NAME>
\date 2014-03-14
\version 0.1
\brief implementation of misc routines
implementation of routines not really fitting anywhere else
*/
#include <string.h>
#include <stdlib.h>
#if !defined(_MSC_VER)
#include <unistd.h>
#include <sys/time.h>
#e... |
/* $NetBSD: hp.c,v 1.24 2000/06/04 18:04:38 ragge Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
* 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 ... |
/*************************************************************************
*
* Copyright 2020 highstreet technologies GmbH and others
*
* 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
*
* h... |
/*
* Copyright (C) 2010-2015 Alibaba Group Holding Limited
*/
#include <ngx_http_tfs.h>
#include <ngx_http_tfs_data_server_message.h>
#include <ngx_http_tfs_local_block_cache.h>
#include <ngx_http_tfs_remote_block_cache.h>
static void ngx_http_tfs_remote_block_cache_get_handler(
ngx_http_tair_key_value_t *kv... |
/*
Unix SMB/Netbios implementation.
Version 1.9.
filename handling routines
Copyright (C) <NAME> 1992-1998
Copyright (C) <NAME> 1999-200
Copyright (C) <NAME> 2000
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as pub... |
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
** Software License B, Version 1.1 (the "License"), the contents of this
** file are subject only to the provisions of the License. You may not use
** this file except in co... |
/*
* File: player/spell.c
* Purpose: Spell and prayer casting/praying
*
* Copyright (c) 1997 <NAME>, <NAME>, <NAME>
*
* This work is free software; you can redistribute it and/or modify it
* under the terms of either:
*
* a) the GNU General Public License as published by the Free Software
* Foundation, ver... |
#include <tree_sitter/parser.h>
#include <wctype.h>
enum TokenType {
BLOCK_COMMENT,
RAW_STR_PART,
RAW_STR_CONTINUING_INDICATOR,
RAW_STR_END_PART,
SEMI,
ARROW_OPERATOR,
DOT_OPERATOR,
THREE_DOT_OPERATOR,
OPEN_ENDED_RANGE_OPERATOR,
CONJUNCTION_OPERATOR,
DISJUNCTION_OPERATOR,
... |
#include "utils.h"
#include "structs.h"
#include "macros.h"
#include "concatf.h"
#include "functions.h"
#include "configParser.h"
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <s... |
/*
* AddressManager.c
*
* Created on: 9/11/2012.
* Created by: <NAME>
* Modified by:
* Copyright (c) 2012 Bitcoin Project Team
* please read https://en.bitcoin.it/wiki/Protocol_Specification
*/
#include "AddressManager.h"
#include "../../Utils/Cryptography/Crypt.h"
#include "assert.h"
AddressManager * n... |
/******************************************************************************
Copyright (C) 2011-2012 by <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 restri... |
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2002-2008 <NAME> <<EMAIL>>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License,... |
/* See the file "COPYING" for the full license governing this code. */
#include "dcp1.h"
#include "handle_args.h"
#include "treewalk.h"
#include "copy.h"
#include "cleanup.h"
#include "compare.h"
#include <getopt.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <inttypes.h>
/** Options specifi... |
/**
* @file charger_discharger.c
* @author <NAME>
* @date 7 Aug 2018
* @brief Hardware related functions source file.
* @par Institution:
* LaSEINE / CeNT. Kyushu Institute of Technology.
* @par Mail (after leaving Kyutech):
* <EMAIL>
* @par Git repository:
* https://bitbucket.org/juanjorojash/cell_charger_di... |
// Copyright [2019] [FORTH-ICS]
//
// 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 i... |
/**
* Copyright 2015 Comcast Cable Communications Management, 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 requir... |
/*
* Copyright (C) 2010 <NAME> <<EMAIL>>
*
* Partly based on the Haiku BFS driver by
* <NAME> <<EMAIL>>
*
* Also inspired by the Linux BeFS driver by
* <NAME> <<EMAIL>>, et al.
*
* This file may be redistributed under the terms of the
* GNU Lesser General Public License.
*/
#include <stdio.h>
#includ... |
/* storag.c -- Implementation File (module.c template V1.0)
Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Contributed by <NAME>.
This file is part of GNU Fortran.
GNU Fortran is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
th... |
#include <string.h>
#include <assert.h>
#include "aes.h"
static const uint8_t S_BOX[256] = {
0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5,
0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76,
0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0,
0xb7, 0xfd, 0x93, 0x26, 0x36,... |
/******************************************************************************
* *
* Copyright (C) 2006-2009 by <NAME>. *
* *
* This... |
// SPDX-License-Identifier: GPL-2.0
/*
* KVM dirty page logging performance test
*
* Based on dirty_log_test.c
*
* Copyright (C) 2018, Red Hat, Inc.
* Copyright (C) 2020, Google, Inc.
*/
#define _GNU_SOURCE /* for program_invocation_name */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <t... |
/* show.c
* <NAME>
Jgraph - A program for plotting graphs in postscript.
* $Source: /Users/plank/src/jgraph/RCS/show.c,v $
* $Revision: 8.5 $
* $Date: 2017/11/28 17:33:27 $
* $Author: plank $
<NAME>
Department of Electrical Engineering and Computer Science
University of Tennessee
Knoxville, TN 37996
<EMAIL>
C... |
/*
* Copyright (C) 2021-2022 Skycharge GmbH
* Author: <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 co... |
/* Implements the client side of the wire protocol between the output plugin
* and the client application. */
#include "protocol_client.h"
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#define check(err, call) { err = call; if (err) return err; }
#define check_handle(err, reader, call, fmt, ...) \
... |
/* mac_mgmt_msg_decoder.c
* WiMax MAC Management Message decoder
*
* Copyright (c) 2007 by Intel Corporation.
*
* Author: <NAME> <<EMAIL>>
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1999 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it unde... |
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <inttypes.h>
#include <stdbool.h>
#include "common.h"
#include <nanos6/debug.h>
#include <nanos6/cluster.h>
//#define CLASSES 80 // 80 item in coco.ppNames file
#define THRESH .6
#define HIER_THRESH .4
#define CHANNELS 3
#define IMAGE_WIDT... |
/*
* libshvio: A library for controlling SH-Mobile VIO/VEU
* Copyright (C) 2009 Renesas Technology Corp.
* Copyright (C) 2010 Renesas Electronics Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to ... |
/**
* @file dragon-ref.c
* Implementation of Dragon
* This source is provided without warranty
* or guarantee of any kind. Use at your own risk.
* @author Information Security Institute
*/
#include <assert.h>
#include "ecrypt-sync.h"
#include "ecrypt-portable.h"
#include "dragon-sboxes.c"
/**
* The DRAGON_OFFS... |
/*
* Copyright (c) 2021 <NAME>
* Licensed under the MIT License. See the LICENSE file for the full text.
*/
#include <stdint.h>
/*
* Included for memcpy & memset
*/
#include <string.h>
/*
* Included for snprintf
*/
#include <stdio.h>
#include "sm3.h"
#define SM3_GET_UINT32(b) ( \
((uint32_t)((b)[0] & 0xFF) ... |
/*s: windows/rio/wind.c */
#include <u.h>
#include <libc.h>
#include <draw.h>
#include <window.h>
#include <thread.h>
#include <cursor.h>
#include <mouse.h>
#include <keyboard.h>
#include <frame.h>
#include <fcall.h>
#include "dat.h"
#include "fns.h"
/*s: global [[topped]] */
static int topped;
/*e: global [[toppe... |
/*
Copyright 2020, The 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 notice,
this l... |
/* SPDX-License-Identifier: BSD-2 */
/*
* Copyright (c) 2018, Intel Corporation
* All rights reserved.
*/
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "log.h"
#include "mutex.h"
#include "pkcs11.h"
#include "session_ctx.h"
#include "session_table.h"
#include "token.h"
#i... |
//
// cli.c - Part of a2fomu - Copyright (c) 2020-2021 <NAME>
//
// This file is part of a2fomu which is released under the two clause BSD
// licence. See file LICENSE in the project root directory or visit the
// project at https://github.com/elecbrick/a2fomu for full license details.
#include <generated/mem.h>
#inc... |
/*
WS2812B CPU and memory efficient library
Date: 28.9.2016
Author: <NAME>
http://www.martinhubacek.cz
@hubmartin
Licence: MIT License
*/
/**
* Project: HEIA-FR / Fast parallel ws281x LED control via USB
*
* Purpose: This module sends color codes on GPIO pins to control ws281x LED strips
* ... |
/*
*
* This file is part of the ALPBench Benchmark Suite Version 1.0
*
* Copyright (c) 2005 The Board of Trustees of the University of Illinois
*
* All rights reserved.
*
* ALPBench is a derivative of several codes, and restricted by licenses
* for those codes, as indicated in the source files and the ALPB... |
#include "geminc.h"
#include "gemprm.h"
#include "Nxm.h"
#include "pgprm.h"
#include "vgstruct.h"
#include "drwids.h"
#define NUMPROB 5
#define NOPROB -1
#define MRGL 0
#define SLGT 1
#define MDT 2
#define HIGH 3
#define EXCEED5 4
typedef struct xrlineinfo
{
char closed;
int npts;
float *lat;
... |
#include <u.h>
#include <lib9.h>
#include <envvars.h>
#include <bio.h>
#include <auth.h>
#include <9P2000.h>
#include <disk.h>
#include <regexp.h>
enum {
LEN = 8*1024,
HUNKS = 128,
};
typedef struct File File;
struct File{
char *new;
char *elem;
char *old;
char *uid;
char *gid;
uint32_t mode;
};
typedef void... |
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "freertos/queue.h"
#include "st7735.h"
#include "screen.h"
#include "display.h"
#include "esp_log.h"
static const char *TAG = "SCR";
typedef struct {
uint8_t mode;
ch... |
/* real-time phase vocoder with curses interface
* Copyright (C) 2007-2013 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your... |
/*
*
* This program is modified C translation of ACM TOMS 708 erf and erfc
* functions. This translation was done by R Project
* http://svn.r-project.org/R/trunk/src/nmath/
* The original, true, correct version of ACM TOMS Algorithm 708 is
* available through ACM: http://www.acm.org/pubs/calgo or
* NETLIB: http:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.