text stringlengths 3.12k 18.7k |
|---|
/* ooTester - generate test case for ooGreedy. */
#include "common.h"
#include "portable.h"
#include "dnautil.h"
#include "dnaseq.h"
#include "fa.h"
struct dnaSeq *randomSeq(int size)
/* Make up a random sequence of given size. */
{
struct dnaSeq *seq;
DNA *dna;
int i;
int base;
dnaUtilOpen();
AllocVar(seq);
seq->... |
/*
* Copyright (c) 2021 Nuvoton Technology Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT nuvoton_npcx_ps2_ctrl
/**
* @file
* @brief Nuvoton NPCX PS/2 module (controller) driver
*
* This file contains the driver of PS/2 module (controller) which provides a
* hardware accelerato... |
#include "SysPhysicalMemory/phys_mem.h"
#include "SysReg/registry.h"
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdqueue.h>
#include <string.h>
#include <types.h>
// Compute the space needed for three levels of bitmaps, 1GiB, 2MiB, 4KiB and
// allocate them
// For the higher levels, 1GiB an... |
/* -*- Mode: c; c-basic-offset: 2 -*-
*
* raptor_serialize_rdfxml.c - N-Triples serializer
*
* Copyright (C) 2004-2008, <NAME> http://purl.org/net/dajobe/
* Copyright (C) 2004-2005, University of Bristol, UK http://www.bristol.ac.uk/
*
* This package is Free Software and part of Redland http://librdf.org/
*
*... |
/*
No copyright is claimed in the United States under Title 17, U.S. Code.
All Other Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitat... |
/** @file pcs_struct_PRTL.c
* @brief Implementation of the PRTL structure
*
* Created by <NAME> on 03/12/2016.
* Copyright © 2016 <NAME>. All rights reserved.
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
#include <inttypes.h>
#include "pcs_vect_bin.h"
#include "pcs_struct_PRTL.... |
/* $OpenBSD: fsort.c,v 1.21 2009/10/27 23:59:43 deraadt Exp $ */
/*-
* Copyright (c) 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* mod... |
// compile with:
// gcc -Wall -Wextra -std=c11 .\rod_math_test.c -o rod_math_test.exe
#include "stdio.h"
#include "stdlib.h"
#include "stdint.h"
#include "time.h"
/*
* estimate sqrt based on leading digit position
* need to deal with values up to 3*0x80*80 = 49152 = 0xC000
*
* python code to generate best guess:... |
/*++
Copyright (c) 1989 Microsoft Corporation
Module Name:
csc_bmpd.c
Abstract:
This module implements the utility functions of bitmaps associated
with CSC files specifically for the db application. CSC_BMP_U is
an opaque structure. Must use the functions here to
create/modify/de... |
#include "mtypes.h"
#include "macros.h"
#include "intel_context.h"
#include "intel_batchbuffer.h"
#include "intel_mipmap_tree.h"
#include "intel_tex.h"
#define FILE_DEBUG_FLAG DEBUG_TEXTURE
/**
* Compute which mipmap levels that really need to be sent to the hardware.
* This depends on the base image size, GL_TEXT... |
/* File subpix.c
* June 21, 2006
* By <NAME>, Harvard-Smithsonian Center for Astrophysics
* Send bug reports to <EMAIL>
Copyright (C) 2006
Smithsonian Astrophysical Observatory, Cambridge, MA USA
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General... |
/*
* Copyright 2005,
*
* mlkkm.c
*
* This file contains the top level routines for the multilevel kernel k-means algorithm
*
*
* Started 12/2004
* <NAME>
*
* $Id: kmetis.c,v 1.1 1998/11/27 17:59:15 karypis Exp $
*
*/
#include <metis.h>
//#include <driver.h>
//#include "../spectralLib/driver.h"
extern i... |
typedef struct _Ecore_DirectFB_Key_Symbols Ecore_DirectFB_Key_Symbols;
struct _Ecore_DirectFB_Key_Symbols
{
char *string;
char *name;
unsigned int id;
};
static const Ecore_DirectFB_Key_Symbols _ecore_directfb_key_symbols[] = {
{"\010", "BackSpace",DIKS_BACKSPACE},
{"\011", "Tab", DIKS_TAB},
{"\015", "Return", D... |
/*
* 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
*/
#i... |
/*
* @brief LPC540XX SPI master driver
*
* @note
* Copyright(C) NXP Semiconductors, 2014
* All rights reserved.
*
* @par
* Software that is described herein is for illustrative purposes only
* which provides customers with programming information regarding the
* LPC products. This software is supplied "AS IS... |
#include "scaling.h"
#if EMBEDDED != 1
// Set values lower than threshold SCALING_REG to 1
void limit_scaling(c_float *D, c_int n) {
c_int i;
for (i = 0; i < n; i++) {
D[i] = D[i] < MIN_SCALING ? 1.0 : D[i];
D[i] = D[i] > MAX_SCALING ? MAX_SCALING : D[i];
}
}
/**
* Compute infinite norm of the colum... |
/*
* Copyright (C) 2015 <NAME>
* 2016 INRIA
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup net_gnrc_lwmac
* @{
*
* @file
* @brief Implementati... |
/*
* 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 this list
* of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce t... |
/* Netlink plugin for IFUP/IFDN and GW events
*
* Copyright (C) 2009-2011 <NAME> <<EMAIL>>
* Copyright (C) 2009-2015 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this... |
/*
* Copyright (c) 2015, 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 h... |
/*
LAVC Boilerplate
A boilerplate program for doing stuff with libavcodec and FFTW.
Uses libao for audio output: configure that in ~/.libao
(c)2015 <NAME>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <errno.h>
#include <SDL2/SDL.h>
#include <SDL2/... |
/* Copyright (c) 2012-2020, The University of Oxford. See LICENSE file. */
#define OSKAR_DFTW_M2M_ARGS(FP, FP2)\
const int num_in,\
const FP wavenumber,\
GLOBAL_IN(FP2, weights_in),\
GLOBAL_IN(FP, x_in),\
GLOBAL_IN(FP, y_in),\
GLOBAL_IN(FP, z_in),\
... |
#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>
/* EXT2 Filesystem States */
#define EXT2_FS_ERRORS 2
#define EXT2_S_MAGIC 0xEF53
/* Superblock Fields */
struct ext2_superblock {
uint32_t s_... |
/* input.c
Copyright (C) 2002, 2003, 2008 <NAME>
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the Lic... |
/*
kmod, the new module loader (replaces kerneld)
<NAME>
Reorganized not to be a daemon by <NAME>, with guidance
from <NAME>.
Modified to avoid chroot and file sharing problems.
<NAME>
Limit the concurrent number of kmod modprobes to catch loops from
"modprobe needs a service that is in a module".
<NAME> <<... |
/**
* Script to compute benchmarks for Tandem protocols
*
* The script takes as input the difficulty level k for the cut-and-choose
* parts of the protocol. A reasonable value for k in practice is k=20. In
* the paper we evaluate up to k=64 which gives almost 128 bits of security.
*
* The results are printed to ... |
/*
* SPDX-FileCopyrightText: 2019-2021 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <sys/param.h>
#include "sdkconfig.h"
#include "soc/soc_caps.h"
#include "hal/adc_hal_common.h"
#include "hal/adc_ll.h"
#include "hal/assert.h"
/*------------------------------------------... |
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include <string.h>
#include "skein.h"
#include "threefish.h"
void print_bytes(uint8_t *bytes, uint16_t byteslen)
{
int i;
for (i=0; i<byteslen; i++) {
printf("%02x", bytes[i]);
}
}
void print_words(uint64_t *words, uint16_t wordslen)
{
int i;
for (i... |
/*
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... |
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2017 Intel Corporation. All rights reserved.
*
*
* 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
... |
#include <stdio.h>
#include <stdlib.h>
#include "sddapi.h"
/*
Rule representation:
rules is an array of 3-tuples
if rules[i][0] == -1:
rule(i) is of the form X->x
rules[i][1] = X
rules[i][2] = x
else
rule(i) is of the form X->AB
rules[i][0] = X
rules[i][1] = A
rules[i][2] = B
PUT ALL NON... |
/*
opensl_io.c:
Android OpenSL input/output module
Copyright (c) 2012, <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
no... |
/*
* This config file is for the Olympus m:robe MR-100
*/
/* For Rolo and boot loader */
#define MODEL_NUMBER 23
#define MODEL_NAME "Olympus m:robe MR-100"
/* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48... |
/* -------------------------------------------------------------------------------
Copyright (C) 1999-2007 id Software, Inc. and contributors.
For a list of contributors, see the accompanying CONTRIBUTORS file.
This file is part of GtkRadiant.
GtkRadiant is free software; you can redistribute it and/or m... |
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <GLES2/gl2.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <bcm_host.h>
typedef struct
{
EGLDisplay display;
EGLSurface surface;
EGLContext context;
EGLConfig config;
EGL_DISPMANX... |
#define DB_WAV_OUT 0 /* write output to wav file for debugging */
#include <stdio.h>
#include <stdlib.h> /* malloc() */
#include <unistd.h> /* sleep() */
#include <stdbool.h> /* true, false */
#include <string.h> /* memset() */
#include <ctype.h> /* lolower() */
#include <math.h> /* sin() */
#include <s... |
#include "regex-data.h"
#include <stdio.h>
#include <stdlib.h>
#include "regex-string.h"
REGEX *regexNew(){
REGEX *reg = malloc(sizeof(REGEX));
if(!reg){
printf("Error: Memory not enough.\n");
return 0;
}
reg->type = TYPE_NIL;
reg->begintimes = reg->endtimes = 1;
reg->next = 0;
return r... |
/* ppStats - collect stats on paired plasmid alignments. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "portable.h"
#include "psl.h"
#include "pPair.h"
void usage()
/* Explain usage and exit. */
{
errAbort(
"ppStats - collect stats on paired plasmid alignments\n"
"usage:\n"
" ppStats... |
//
// listing file output for spin2cpp
//
// Copyright 2012-2021 Total Spectrum Software Inc.
// see the file COPYING for conditions of redistribution
//
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include "spinc.h"
#include "becommon.h"
int gl_list_options = 0;
static uint32_t cogPc;
static uint32_t h... |
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <time.h>
#include <sys/types.h>
#include <unistd.h>
#include "tae.h"
#include "sbox.h"
#include "params.h"
#include "helper.h"
#define V(x) (v16qu){x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x}
#define shift_left(x) ((x) << (... |
/*
Copyright (c) 2009-2010 <NAME> <<EMAIL>>
Copyright (c) 2009-2010 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 and this permission notice appear ... |
/*
* cmeFileManager.c
* UITS_Tool
*
* Created by <NAME> on 10/16/11.
* Copyright 2009 Universal Music Group. All rights reserved.
*
* This file based on uitsPayloadManager, with modifications to conform to CME spec.
* From CME Spec:
*
* The Unique Identifier Technology Solution (UITS) is an industry-ba... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* lib/crypto/krb/aead.c */
/*
* Copyright 2008 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.
*... |
#include "textRenderer.h"
void textRenderingSystemsInit(unsigned int batchShader, unsigned int simpleShader)
{
//Save shaders for later use
batchTextShader = batchShader;
simpleTextShader = simpleShader;
//Get character set and create textures out of it
if(textCollectorInit())
log_error("S... |
#include <stdarg.h>
#include <string.h>
#include "libretro.h"
#include "gb_emu.h"
#define MAX_OSD_MSG_LEN 200
#define OSD_MSG_DURATION 360
#define MAX_LOG_MSG_LEN 200
/// Minimum level of log messages displayed on the screen
#define OSD_LOG_LEVEL LOG_INFO
/// Reports status to the user with additional message
#de... |
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
// Default values of options used in the code
#define DEFAULT_CORESIZE_1 6
#define DEFAULT_CORESIZE_2 3
#define DEFAULT_CORESIZE_3 2
#define DEFAULT_CORESIZE_4 2
#define DEFAULT_MIN_CORE 1
#define DEFAU... |
#include "useful.h"
int descpipe[2];
int tirage_pid;
int dad_pid;
int mutex_id;
int mutex;
int sem_id;//espace mémoire libre?
int sem;
int sm_id;
VOL * sm_ptr;
int quit_count = 0;
void dad_signal_handler(int sig)
{
sleep(1);
//^c
if(sig==SIGINT){
printf("\033[1;31mÉcrivain\033[0m || SIGINT \n");
close(des... |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 2003 <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, or (at your option) any l... |
/*
Implementation by the Keccak Team, namely, <NAME>, <NAME>,
<NAME>, <NAME> and <NAME>,
hereby denoted as "the implementer".
For more information, feedback or questions, please refer to our website:
https://keccak.team/
To the extent possible under law, the implementer has waived all copyright
and related or neighbo... |
/*
* Author: <NAME>
* Email: <EMAIL>
* Website: viniciusarruda.github.io
* Professor: <NAME>
* Subject: Computer Graphics
* Assignment: Implementation of a gameplay.
*
*/
// mudar o nome desse arquivo .. pq da o display no minimap tbm...
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <s... |
/*
* Alithia Engine
* Copyright (C) 2009 <NAME>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose... |
/*
* 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 ... |
/*
* Copyright 2016 <NAME>
*
* 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... |
/* SPIM S20 MIPS simulator.
Utilities for displaying machine contents.
Copyright (c) 1990-2010, <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 ... |
/**
* VOTPARSE.H -- Public procedure declarations for the VOTable interface.
*
* @file votParse.h
* @author <NAME> and <NAME>
* @date 8/03/09
*
* @brief Public procedure declarations for the VOTable interface.
*/
/**
* VOTable element types
*/
#define NUM_ELEMENTS 25
#define TY_R... |
#include "part.h"
#include <string.h>
#include "log.h"
#define PART_BLOCK_SIGNATURE ((uint32_t)0x1ABE11ED)
#define EMPTY 0xffffffff
#define MAX_PARTS(t) (((t)->size - FIXED_PART_TABLE_SIZE) / sizeof(part_dsc_t))
#define BLOCK_CLOSED(b) ((b) == NULL || (b)->table == NULL || (b)->parts == NULL)
int part_erase_block... |
/* lkdebug.c
*
* Copyright 2015 <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... |
#include "environment.h"
#include "evaluation.h"
#include "mpc.h"
/* Construct a pointer to a new integer lval */
lval* lval_num_int(long x) {
lval* v = malloc(sizeof(lval));
v->type = LVAL_NUM_INT;
v->data.num_int = x;
return v;
}
/* Construct a pointer to a new double lval */
lval* lval_num_dec(double x) {
... |
/*
* Template: prop-cons.c by <NAME>
*
* Title : Wifier
*
* Short : A low energy WIFI scanner solution using pthreads
*
* Long : Scan every t seconds for Wifi networks and add them
* into a file with its timestamps.
*
* Author : <NAME>.
*
* Date : 1/10/2017 (update)
*
*/
//<NAME>
//Include l... |
#include <stdio.h>
#include <string.h>
#include "fdc.h"
struct DiskHW {
const int id;
void(*reset)(struct DiskIF*);
int(*in)(struct DiskIF*,int,int*,int);
int(*out)(struct DiskIF*,int,int,int);
void(*sync)(struct DiskIF*,int);
};
int fdcFlag = 0;
// dummy (none)
void dumReset(DiskIF* dif) {}
int dumIn(DiskIF*... |
/*
american fuzzy lop - LLVM instrumentation bootstrap
---------------------------------------------------
Written by <NAME> <<EMAIL>> and
<NAME> <<EMAIL>>
LLVM integration design comes from Laszlo Szekeres.
Copyright 2015, 2016 Google Inc. All rights reserved.
Licensed under the Apa... |
/*
Copyright (c) 2009 <NAME> and <NAME>, University of Geneva
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 ... |
#include "xmfract.h"
#include "fractype.h"
#include "macros.h"
#include "helpdefs.h"
#include "mpmath.h"
#include "globals.h"
#include "prototyp.h"
#ifndef NO_IDENT
#ident "$Id: misc_menu.c,v 1.400 1995/06/20 15:39:23 darryl Exp $"
#endif
/* static functions */
static void info_about_current_image_cb
(Widget w, Xt... |
/*----------------------------------------------------------------
* conns.c - conn handling routines for libnet
*----------------------------------------------------------------
* libnet is (c) Copyright <NAME> and <NAME> 1997-1998
*
* Please look in `docs' for details, documentation and
* distribution condit... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h> // to init rand()
#include "MNIST_learning.h"
#include "MNIST_loading.h"
#define ENABLE_SHIFTING 1
#define PIXELS_SHIFT 5
static void shift_MNIST_Inputs(Inputs *MNIST_inputs)
{
if (!ENABLE_SHIFTING)
return;
srand(time(NULL));
Numbe... |
/* This file contains a simple exception handler. Exceptions in user
* processes are converted to signals. Exceptions in a kernel task cause
* a panic.
*/
#include "kernel/kernel.h"
#include "arch_proto.h"
#include <signal.h>
#include <string.h>
#include <assert.h>
#include "kernel/proc.h"
#include "kernel/proto.h... |
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <usb.h>
#define OCEAN_OPTICS 0x2457
#define USB2000PLUS 0x101E
/* Docs say that the first 18 pixels (0--17) are optically black, and the following 2 (18, 19) are unusable.
However, it seems more that the f... |
/* apss.c: AP MANUAL ALLOC STRESS TEST
*
* $Id$
* Copyright (c) 2001-2020 Ravenbrook Limited. See end of file for license.
* Portions copyright (C) 2002 Global Graphics Software.
*/
#include "mpscmvff.h"
#include "mpscmvt.h"
#include "mpslib.h"
#include "mpsacl.h"
#include "mpsavm.h"
#include "testlib.h"
#incl... |
/*
* i386 CPUID helper functions
*
* Copyright (c) 2003 <NAME>
* Copyright (c) 2017 Google Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the Lic... |
/**************************************************************************
* Copyright (c) 2001 by <NAME>. All rights reserved. *
* *
* Redistribution and use in source and binary forms, with or without *
* modification, are permi... |
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
//#include "freertos/queue.h"
#include "esp_spi_flash.h"
#include "driver/gpio.h"
#include "driver/i2c.h"
#include "driver/spi.h"
#include "mqtt_client.h"
//#include "os.h"
#include "dht.h"
#include "ds18b20.h"
#include "driver/adc.h"
#include "driver/hw_time... |
/*
* CUnit - A Unit testing framework library for 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, or (at... |
/* nto-tdep.c - general QNX Neutrino target functionality.
Copyright (C) 2003, 2004, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
Contributed by QNX Software Systems Ltd.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the term... |
/**
* \file criteria_matches.c
* \brief Determine if this criteria is met by the provided filter terms.
* \author Copyright (c) 2002-2014 <NAME> and the Premake project
*/
#include "premake.h"
#include <stdlib.h>
#include <string.h>
struct Word {
const char* word;
const char* prefix;
int matchesFiles;
int... |
/*
Copyright (C) 1994-2016 Lawrence Livermore National Security, LLC.
LLNL-CODE-425250.
All rights reserved.
This file is part of Silo. For details, see silo.llnl.gov.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* R... |
/* Copyright 2020-2021 koshinoya
*
* 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 distribute... |
#include "Lighting.h"
#include "Block.h"
#include "Funcs.h"
#include "MapRenderer.h"
#include "Platform.h"
#include "World.h"
#include "Logger.h"
#include "Event.h"
#include "Game.h"
static int width, height, length, oneY;
static PackedCol shadow, shadowZSide, shadowXSide, shadowYBottom;
static PackedCol O... |
#include "scrot.h"
#define _GNU_SOURCE
typedef struct{
int x,y,w,h;
}rect_t;
//const char* PERSONAL_PERL5LIB = "/usr/lib/perl5";
Screen* scr;
void setpos(const XButtonEvent*, rect_t*);
inline void block(fd_set* fdset, int* xfd, int* fdsize);
//inline void change_cursor(const Cursor* to, const Cursor* from);
inline... |
/*potato-c parser*/
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#include "warning.h"
#include "parser.h"
#include "macro.h"
#include "strfunc.h"
#include "file.h"
#define __VER_MAJOR__ 0
#define __VER_MINOR__ 1
#define __VER_BUILD__ 7
#if !defin... |
/*----------------------------------------------------------------------------*/
/* */
/* quad_golden.c */
/* ... |
#include "quadsense.h"
#include "alphasense.h"
#include "bme280.h"
#include "ltc2497.h"
#include "openairboard.h"
#include "stdio.h"
static bool alpha_initialized = false;
static bool bme0_initialized = false;
static bool bme1_initialized = false;
static BME280_Struct bme0;
static BME280_Struct bme1;
static struct ... |
/*
* SSL server demonstration program
*
* Based on XySSL: Copyright (C) 2006-2008 <NAME>
*
* Copyright (C) 2009 <NAME> <polarssl_maintainer at polarssl dot org>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
#include <string.h>
#include <strings.h>
#define NAMELEN 132
#define JLEN 32
typedef struct tuv_node_struct {
char name[NAMELEN];
int ndx;
int dup;
struct tuv_node_struct *next;
} tuv_node;
typedef st... |
/*############################################################################*/
/* Keygen - To solve the Kringlecon 2019 'elfscrow' challenge */
/* */
/* Useage: keygen name_of_encrypted.pdf.enc save_as.pdf ... |
/*
* Copyright (C) 1997 Massachusetts Institute of Technology
*
* This software is being provided by the copyright holders under the
* following license. By obtaining, using and/or copying this software,
* you agree that you have read, understood, and will comply with the
* following terms and conditions:
*
*... |
/*
* Copyright (c) 1996-2001 <NAME>.
* See README file for details.
*
*
*
* Integration for hazard rate estimation. The functions in this
* file are used to evaluate
* sum int_0^{Ti} W_i(t,x) A()A()' exp( P() ) dt
* for hazard rate models.
*
* These routines assume the weight function is sup... |
/*
* Copyright (c) 2021, <NAME>
*
* Licensed under the terms of the MIT license.
* Copy of the license at https://opensource.org/licenses/MIT
*/
#include "bls12_381.h"
#include <assert.h>
#include <string.h>
#include <blst.h>
#include "util.h"
static_assert(sizeof(blst_scalar) == ecc_bls12_381_SCALARSIZE, "");
s... |
#include "helpers.h"
#include <math.h>
// Convert image to grayscale
void grayscale(int height, int width, RGBTRIPLE image[height][width])
{
// printf("height: %i width: %i\n", height, width);
int avg;
for (int i = 0; i < height; i++)
{
for (int x = 0; x < width; x++)
{
avg ... |
/* gaskell2plt.c
*
* Write out unique vertices of Gaskell ICQ shape model, starting at the
* center of the bottom face of the Gaskell Cube-Cartesian System (CCS),
* then spiraling around that center out to the edges of the cube bottom
* face, then around and up the cube side faces, then in to the center of
* the ... |
#include "sam3s/chip.h"
#include "sam3s/core_cm3.h"
#include "tactile.h"
#include "pins.h"
uint16_t g_tactile_last_scan[TACTILE_NUM_TAXELS];
uint16_t g_tactile_current_scan[TACTILE_NUM_TAXELS];
void tactile_init()
{
PMC_EnablePeripheral(ID_SPI);
PIO_Configure(&pin_cs_adc, 1);
PIO_Configure(&pin_spi_sck, 1);
P... |
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include <string.h>
struct Celula {
char tipopersona;
struct Celula *esq;
struct Celula *dir;
};
struct Pilha {
struct Celula *topo;
};
typedef struct Pilha duracell;
struct Pessoa {
int inscricao;
char nome[30];
char sexo;
char telefone[15];
dura... |
/*
* XDD - a data movement and benchmarking toolkit
*
* Copyright (C) 1992-2013 I/O Performance, Inc.
* Copyright (C) 2009-2013 UT-Battelle, LLC
*
* This 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
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <syslog.h>
#include "hashtable.h"
#include "misc.h"
//number of probes to perform
#define LOOKUP_ATTEMPTS 5
//how large to grow the table each time it is
//automatically resized. As a percentage of its
//current size.
#define GROWTH... |
/* Copyright (C) 2007-2016 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
* Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY... |
// Simple logging that allows concurrent FS system calls.
//
// A log transaction contains the updates of multiple FS system
// calls. The logging system only commits when there are
// no FS system calls active. Thus there is never
// any reasoning required about whether a commit might
// write an uncommitted system ca... |
/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Stub implementations of utility functions which call their linux-specific
* equivalents.
*/
#include <assert.h>
#include <stdint.h>
#defin... |
/*
* Device geometry helpers for hdparm and friends.
* Copyright (c) <NAME> 2008
*
* You may use/distribute this freely, under the terms of either
* (your choice) the GNU General Public License version 2,
* or a BSD style license.
*/
#define _FILE_OFFSET_BITS 64
#include <stdlib.h>
#include <unistd.h>
#include <... |
/* Zgv v5.1 - GIF, JPEG and PBM/PGM/PPM viewer, for VGA PCs running Linux.
* Copyright (C) 1993-2000 <NAME>. See README for license details.
*
* readpnm.c - PBM/PGM/PPM loader.
* PBM/PGM are loaded as 8-bit, PPM as 24-bit.
* if 8-bit display, PPM is dithered.
* xv 3:3:2 thumbna... |
/*
* This file is part of the uv_hal distribution (www.usevolt.fi).
* Copyright (c) 2017 <NAME>.
*
*
* MIT License
*
* Copyright (c) 2019 usevolt
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... |
/**
******************************************************************************
* @file main.c
* @author MCD Application Team
* @brief BLE application with BLE core
*
@verbatim
==============================================================================
##### IMPORTANT NOTE #####... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.