text stringlengths 3.12k 18.7k |
|---|
/*
Calculating the value of pi using reduction : Parallel Implementation
Author : <NAME>.
Date : August 2016.
*/
#include<stdio.h>
#include<math.h>
#include<omp.h>
#include<time.h>
#include<string.h>
#include<stdlib.h>
// Using the MONOTONIC clock
#define CLK CLOCK_MONOTONIC
/* Function to compute the differen... |
/*
* Copyright (C) lcinx
* <EMAIL>
*/
#include <limits.h>
#include "buf/block_list.h"
void blocklist_init(struct blocklist *self, create_block_func create_func,
release_block_func release_func, void *func_arg, size_t block_size) {
assert(create_func != NULL);
assert(release_func != NULL);
a... |
#include "private.h"
const char *scs_get_lin_sys_method() {
return "sparse-indirect-scs";
}
/* Not possible to do this on the fly due to M_ii += a_i' (R_y)^-1 a_i */
/* set M = inv ( diag ( R_x + P + A' R_y^{-1} A ) ) */
static void set_preconditioner(ScsLinSysWork *p) {
scs_int i, k;
scs_float *M = p->M;
con... |
/* snpSplit - split the ContigLoc table by chrom. */
/* Copyright (C) 2013 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "chromInfo.h"
#include "dystring.h"
#include "hash.h"
#include "hdb.h"
#include "snpTmp.h"
/* t... |
/**
* \file
*
* \brief User Interface
*
* Copyright (c) 2012-2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Red... |
/*
Name: mazegen.c
Purpose: Maze generation driver program.
Author: <NAME> <http://github.com/creachadair>
Copyright (C) 1998, 2004 <NAME>, All Rights Reserved
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (... |
/*-------------------------------------------------------------------------
*
* nodeRecursiveunion.c
* routines to handle RecursiveUnion nodes.
*
* To implement UNION (without ALL), we need a hashtable that stores tuples
* already seen. The hash key is computed from the grouping columns.
*
*
* Portions Copy... |
/*s: include/net/ip.h */
#pragma src "/sys/src/libip"
#pragma lib "libip.a"
/*s: enum [[_anon_]] */
enum
{
/*s: constant [[IPaddrlen]] */
IPaddrlen= 16,
/*e: constant [[IPaddrlen]] */
/*s: constant [[IPv4addrlen]] */
IPv4addrlen= 4,
/*e: constant [[IPv4addrlen]] */
/*s: constant [[IPv4off]... |
/* Copyright (C) 2006-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by <NAME> <<EMAIL>>, 2006.
The GNU C 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... |
/**
* @file src/gen_accelerators.c
* @author <NAME>(<EMAIL>)
* @date January 2014
*
* @brief Generating accelerators for memluv evaluation.
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "../memluv.h"
#include "../gen_memluv_wrappers.h"
#include "gen_accelerators.h"
#include "gen_dfa... |
/*
The MIT License (MIT)
Copyright (c) 2017-2020 oarplayer(qingkouwei)
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, ... |
/* ============================================================================
* Freetype GL - A C OpenGL Freetype engine
* Platform: Any
* WWW: http://code.google.com/p/freetype-gl/
* ----------------------------------------------------------------------------
* Copyright 2011,2012 <NAME>. All ri... |
#include "source/neslib_asm/neslib.h"
#include "source/globals.h"
#include "source/configuration/system_constants.h"
#include "source/configuration/game_states.h"
#include "source/library/bank_helpers.h"
#include "source/menus/error.h"
#include "source/graphics/game_text.h"
#include "source/graphics/hud.h"
unsigned ch... |
/* Copyright (C) 2015 <NAME>
*
* Released under the MIT Licence, see LICENSE for details
*/
#include <pebble.h>
static Window *mainWindow = NULL;
static GBitmap *ravineImage = NULL;
static GBitmap *boulderImage = NULL;
static GBitmap *invBoulderImage = NULL;
static GBitmap *planeImage = NULL;
static GBitmap *zepp... |
/*
* AWS IoT Device SDK for Embedded C 202103.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without... |
#define _POSIX_C_SOURCE 200809L
#include <stdlib.h>
#include <limits.h>
#include <float.h>
#include "sway/config.h"
#include "log.h"
struct input_config *new_input_config(const char* identifier) {
struct input_config *input = calloc(1, sizeof(struct input_config));
if (!input) {
wlr_log(WLR_DEBUG, "Unable to alloc... |
/*
* Copyright (c) 2018 S<NAME>, Inc., http://www.sippysoft.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* n... |
/*
* ups_state.c
*
* Created on: 17 Jan 2021
* Author: jbaumann
*
* The state variable encapsulates the all-over state of the system (ATTiny and RPi
* together).
* The possible states are:
* RUNNING_STATE - 0 - the system is running normally
* UNCLEAR_STATE - 1 - the system has been rese... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
*
*/
#include <k5-int.h>
#include <kdb.h>
#include <kadm5/server_internal.h>
#include <kadm5/server_acl.h>
#include "misc.h"
#include "net-server.h"
/*
* Functio... |
/*
* PNM image format
* Copyright (c) 2002, 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 of the License, or (at y... |
/* Native-dependent code for GNU/Linux m32r.
Copyright (C) 2004-2016 Free Software Foundation, Inc.
This file is part of GDB.
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 v... |
#include "ambeval.h"
#define AREA "AMBEVAL"
#include "aneval.h"
#include "eceval.h"
#include "environment.h"
#include "error.h"
#include "list.h"
#include "mceval.h"
#include "parser.h"
#include "register.h"
#include "storage.h"
static obj is_amb_p(obj args)
{
return is_amb(car(args)) ? true_o : false_o;
}
static ... |
/*
gpiUtility.c
GameSpy Presence SDK
Dan "<NAME>" Schoenblum
Copyright 1999-2007 GameSpy Industries, Inc
<EMAIL>
***********************************************************************
Please see the GameSpy Presence SDK documentation for more information
************************************************************... |
#include "common.h"
#include "send.h"
/* global to this file */
static Reprog *rfprog;
static Reprog *fprog;
#define VMLIMIT (64*1024)
#define MSGLIMIT (128*1024*1024)
extern void
default_from(message *mp)
{
char *cp;
cp = getenv("upasname");
if(cp)
s_append(mp->sender, cp);
else
s_append(mp->sender, getlog... |
/*
cpu_map.h - CPU and pin mapping configuration file
Part of Grbl
Copyright (c) 2012-2015 <NAME>
Grbl 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 3 of the License, or
(at your o... |
/*
Exercise 6-3. Write a cross-referencer that prints a list of all words in a
document, and for each word, a list of the line numbers on which it occurs.
Remove noise words like ``the,'' ``and,'' and so on.
*/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
struct tnode {
char *word... |
/***
menurt.c- ncurses-based menu definition module
Written by <NAME>
Copyright (c) <NAME> 1997, 1998
This program is distributed WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License in the included COPYING file for
details.... |
/*
* Copyright (c) 2015 Cossack Labs Limited
*
* 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 a... |
#include <stdio.h>
#include <sys/time.h>
#include <signal.h>
#include <stdlib.h>
#include <ucontext.h>
#include <unistd.h>
#include "mythread.h"
#include "interrupt.h"
#include "queue.h"
TCB* scheduler();
void activator();
void timer_interrupt(int sig);
void add_to_queue(TCB *t, struct queue *q);
TCB* get_from_que... |
/*
Glidix Network Manager
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 ... |
/*
* $Id: ReadPnm.c 3177 2008-04-01 14:47:24Z karstenm $
*
* This file contains routines for reading portable anymap (PNM) files.
*/
/*
* Copyright 1993, 1994 University of British Columbia
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is h... |
/* snpReadFasta - seventh step in dbSNP processing.
* Hash the snpFasta contents (by chrom, and also chrMulti).
* Serially read the chrN_snpTmp tables.
* Do lookups into snpFasta hashes for class, observed, molType.
* Use UCSC chromInfo. */
/* Copyright (C) 2013 The Regents of the University of California
* See... |
#include <assert.h>
#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
#define EVALSTR(x) STR(x)
#define STR(x) #x
#define LENLEN 10
#d... |
/*
* Copyright 1996-2018 Cyberbotics 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 ... |
/*-
* Copyright (c) 2014 The FreeBSD Foundation
* All rights reserved.
*
* This software was developed by <NAME> under
* the sponsorship of the FreeBSD Foundation and
* Rubicon Communications, LLC (Netgate).
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provi... |
/* Simple program: Fill a colormap with gray and stripe it down the screen */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "SDL.h"
#ifdef TEST_VGA16 /* Define this if you want to test VGA 16-color video modes */
#define NUM_COLORS 16
#else
#define NUM_COLORS 256
#endif
/* ... |
/* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \___... |
#define _GNU_SOURCE
#include <unistd.h>
#include <pwd.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/time.h>
#include <sys/types.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <arpa/inet.h>
#inc... |
#include <pmm.h>
#include <list.h>
#include <string.h>
#include <default_pmm.h>
/* In the first fit algorithm, the allocator keeps a list of free blocks (known as the free list) and,
on receiving a request for memory, scans along the list for the first block that is large enough to
satisfy the request. If the ch... |
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "SDL.h"
#include "SDL_render.h"
#include "SDL_keyboard.h"
#include "soxr-lsr.h"
#include "global.h"
#include "mapper.h"
#include "system.h"
#include "... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <cmr/matrix.h>
#include <cmr/tu.h>
typedef enum
{
FILEFORMAT_UNDEFINED = 0, /**< Whether the file format of input/output was defined by the user. */
FILEFORMAT_MATRIX_DENSE = 1, /**< Dense matrix format. */
FILEFORMAT... |
/*
* ctrl.c generic netlink controller
*
* This program is free software; you can distribute 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.
*
* Authors: <NAME> (... |
/*
* MP3 demuxer
* Copyright (c) 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 of the License, or (at your option)... |
/* $Id$ */
/* Copyright (c) 2011-2016 <NAME> <<EMAIL>> */
/* This file is part of DeforaOS Desktop Keyboard */
/* 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 so... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <ctype.h>
#include <math.h>
/* Block */
struct block {
int valid;
int tag;
};
/* Cache */
struct cache {
int hits;
int misses;
int cachesize;
int blocksize;
struct block* blocks;
};
unsigned int htoi(const char str[]... |
/****************** arb_overlap_includes.h ******************************/
/*
* Include files for the arbitrary overlap fermion applications.
*/
/* Include files */
#include "../include/config.h" /* Keep this first */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "../include/complex.h"
#include "... |
/**
* Copyright(c) 2016-2017 rryqszq4
*
*
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include "ngx_php_thread.h"
#include "ngx_php_thread_pool.h"
static void ngx_php_thread_pool_exit_handler(void *data, ngx_log_t *log);
static void *ngx_php_thread_pool_cycle(void *data);
static void ngx_php_thread_pool_... |
#include <kernel/types.h>
#include <kernel/proc.h>
#include <kernel/dbg.h>
#include <kernel/fs.h>
#include <kernel/kmalloc.h>
#include <kernel/utility.h>
#include <kernel/error.h>
#include <kernel/symbol.h>
#include <kernel/buffers.h>
#include <kernel/device.h>
#include <kernel/timer.h>
/*
* Kernel... |
/*
*
* Copyright 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... |
#include "dds/dds.h"
#include "simplePingPongData.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
/* --- Defines --- */
/* An array of one message (aka sample in dds terms) will be used. */
#define MAX_SAMPLES 10
/* --- Globals ---*/
static sPingPongData_Msg data[MAX_SAMPLES];
void *... |
/*
* FreeRTOS Kernel V10.1.0
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, includ... |
#include <sancus/common.h>
#include <sancus/time.h>
#include <stdio.h>
#include <stdlib.h>
#if 1
#define pr_info(...) fprintf(stdout, __VA_ARGS__)
#else
#define pr_info(...) do { } while(0)
#endif
#define pr_err(...) fprintf(stderr, __VA_ARGS__)
static int test_eq__long(const char *fn, long v0, long v1, long v2)
{
... |
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <getopt.h>
#include <string.h>
#include <math.h>
#include <inttypes.h>
#include "sci_to_int64.h"
#include "ttd.h"
#include "ttd_g2_cli.h"
static const struct option ttd_g2_longopts[] = ... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2008 The University of Tennessee a... |
#define _GNU_SOURCE
#include <roaring/roaring.h>
#include "benchmark.h"
#include "numbersfromtextfiles.h"
/**
* Once you have collected all the integers, build the bitmaps.
*/
static roaring_bitmap_t **create_all_bitmaps(size_t *howmany,
uint32_t **numbers, size_t count,
... |
#include "gb.h"
/* TODO: Emulation is VERY basic and assumes the ROM correctly uses the printer's interface.
Incorrect usage is not correctly emulated, as it's not well documented, nor do I
have my own GB Printer to figure it out myself.
It also does not currently emulate communication tim... |
//
// Created by <NAME> on 10/16/19.
//
#include <cpu.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <display.h>
processor *init_cpu() {
_cpu = malloc(sizeof(processor));
if (_cpu == NULL) {
return NULL;
}
_cpu->ram = init_memory();
if (_cpu->ram... |
/*
* Copyright (c) 2011-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 ... |
/*
* GF-Complete: A Comprehensive Open Source Library for Galois Field Arithmetic
* <NAME>, <NAME>, <NAME>,
* <NAME>, <NAME>, <NAME>, <NAME>.
*
* gf_time.c
*
* Performs timing for gf arithmetic
*/
#include "config.h"
#ifdef HAVE_POSIX_MEMALIGN
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 600
#endif
#endif
#in... |
#include "config.h"
#include <stdio.h>
#include <atl.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <arpa/inet.h>
#include "evpath.h"
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#define drand48() (((double)rand())/((double)RAND_MAX))
#define lrand... |
/* This file contains:
NewTrace6 add an SpTrace record to the list
CheckTrace6 check for invalid entries in list
InterpTrace return an SpTrace, interpolated on a2center
FreeTrace6 free memory
internal:
CopyTrace copy out one SpTrace
PrintTrace print info from full SpTrace linked list (debugging)
Revision ... |
/*
* Copyright (c) 2006 The DragonFly Project. All rights reserved.
*
* This code is derived from software contributed to The DragonFly Project
* by <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ar... |
#include <assert.h>
#include <getopt.h>
#include <time.h>
#include <stdio.h>
#include <stdint.h>
// This is a test keybox. It (and device certificates derived from it
// through provisioning) will not be accepted by production systems.
static const uint32_t kKeyboxSystemId_Test = 4121;
static const uint8_t kKeybox_T... |
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/jiffies.h>
#include <linux/sunrpc/gss_krb5.h>
#include <linux/random.h>
#include <linux/pagemap.h>
#include <linux/crypto.h>
#ifdef RPC_DEBUG
# define RPCDBG_FACILITY RPCDBG_AUTH
#endif
static inline int
gss_krb5_padding(int blocksize, int length)
{
/*... |
#include "commands.h"
static int prodconsPipeId;
void runHelp() {
printf("clear: erases all visible text \n");
printf("chcolor b g r: changes characters color (previously written characters keep the original color). b, g and r are hexadecimal values for red, green and blue components\n");
printf("bgcolor b g r: ch... |
#include "eval-apply.h"
/*Temporary import of print if this breaks expression.c this is why*/
/**print()
*this function is used to print our token_list/code tree
* Parameters:
*-obj, the object pointer representing the head of the list/tree we want to print
*/
void print(object *obj);
object *make_lambda(object *p... |
/*
* This file is part of MPlayer.
*
* MPlayer is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* MPlayer is distributed in th... |
/*
* bts_smpl.c - example of Intel Branch Trace Stack sampling
*
* Copyright (c) 2009 Google, Inc
* Contributed by <NAME> <<EMAIL>>
*
* Based on:
* Copyright (c) 2003-2006 Hewlett-Packard Development Company, L.P.
* Contributed by <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any perso... |
#include "elf.h"
#include <stdint.h>
#include <kernel/boot_info.h>
#include <std/std.h>
#include <std/printf.h>
#include <std/kheap.h>
#include <kernel/util/paging/paging.h>
#include <kernel/multitasking//tasks/task.h>
#include <kernel/multitasking/tasks/task_small.h>
#include <kernel/util/paging/paging.h>
static bool... |
#include "ui.h"
#include "ui_sdk.h"
#include "tonemapping.h"
#include "cie.h"
#include "radiance.h"
#include "raytracing.h"
#include "render.h"
#include "scene.h"
static void RecomputeDisplayColors(void)
{
if (Radiance && Radiance->RecomputeDisplayColors)
Radiance->RecomputeDisplayColors();
if (RayTracing &&... |
/*
* Copyright 2019 <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, dist... |
#include "battle.h"
extern void drawImage(SDL_Surface *, int, int);
extern void delay(unsigned int );
extern SDL_Surface *getSprite(int);
extern void drawString(char *, int, int, TTF_Font *, int, int);
extern Player createPlayer(int);
extern MenuItem createMenuItem();
extern void duel(Player *, Player *);
extern void ... |
/* Copyright (c) 2004, <NAME>.
* Copyright (c) 2004-2006, <NAME>, <NAME>.
* Copyright (c) 2007-2017, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file compress_lzma.c
* \brief Compression backend for LZMA.
*
* This module should never be invoked directly. Use the compress module
*... |
/*************************************************************************
* *
* Module: BackupGenes *
* *
* To save best par... |
/*
* Copyright (c) 2014-2019 - uPmem
*/
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "term_scorer.h"
#include "allocation.h"
static term_scorer_t *term_scorer_new(term_weight_t *weight, postings_enum_t *postings_enum, leaf_sim_scorer_t *scorer);
static leaf_sim_scorer_t *le... |
#pragma once
#include <stdlib.h>
/* clang-format off */
/*****************************************************************************
* mySplineSnd() -- <NAME> / TDL
*
* PURPOSE
* Given arrays x[0..n-1], y[0..n-1] containing a tabulated function
* (ie y[i] = f(x[i]), with x[i] < x[i+1], and given the second... |
/*
Author: <NAME> (c) 1997
SAFER K-64 (Secure and Fast Encryption Routine).
See "Handbook of Applied Cryptography" by <NAME> et al 7.7.1 Section pages 266 - 269.
*/
#include <stdio.h>
#include <stdlib.h>
/* define the constant number of rounds */
#define ROUNDS 6
#define DEBUG
typedef unsigned char uchar;
... |
#include "dwm_systray.h"
#include "../def_config.h"
#include "drw.h"
#include "dwm_core.h"
#include "dwm_enum.h"
#include "util.h"
#include <X11/Xatom.h>
#include <stdio.h>
#include <stdlib.h>
/* XEMBED messages */
#define XEMBED_EMBEDDED_NOTIFY 0
#define XEMBED_WINDOW_ACTIVATE 1
#define XEMBED_WINDOW_DEACTIVATE 2
... |
/* Copyright (c) 2014 <NAME>. All rights reserved.
* License: This code is licensed under a 3-clause BSD license. See
* the file named "LICENSE" for a full copy of the license.
*/
/** @file
* @author <NAME>
*/
#include <stdlib.h>
#include <stdio.h>
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/freeg... |
/*
* Copyright (C) 2013 Glyptodon LLC
*
* 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, publi... |
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... |
/* Copyright (c) 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:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include "grb2.h"
#include "wgrib2.h"
#include "fnlist.h"
/*
* merge
*
* takes equally sized fcst averages/accumulations and merges them together
* for. 1-2 day fcst ave + 2-3 day fcst ave + 3-4 day fcst ave give 1-4... |
//PreisachCode2.c
//c extension to write images to framebuffer from Python
//for use with PreisachModelTutorial
#define DEFINEGLOBALSHERE
#include "PreisachCode2.h"
#include "globals.h"
//*****start c code*****/
//initializes the structure globals
//called by python
//refractoryTime is in seconds
//probDown is a decim... |
/*************************************************************************\
* Copyright (c) 2008 UChicago Argonne LLC, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE is distributed subj... |
#include <stdio.h>
#include <stdlib.h>
#include <xc.h>
#include <sys/attribs.h> //interrupts
#include <plib.h>
#include "OTxRx.h"
#include <proc/p32mx170f256d.h>
unsigned char urx1;
unsigned char int1_flag=0;
unsigned char int2_flag=0;
unsigned char sync=0;
unsigned char dump=0;
unsigned int spi_data1;
i... |
#include "builtin.h"
#include "cache.h"
#include "commit.h"
#include "diff.h"
#include "string-list.h"
#include "revision.h"
#include "utf8.h"
#include "mailmap.h"
#include "shortlog.h"
#include "parse-options.h"
static char const * const shortlog_usage[] = {
N_("git shortlog [-n] [-s] [-e] [-w] [rev-opts] [--] [<com... |
#include "hash_table.h"
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "prime.h"
static ht_item HT_DELETED_ITEM = {NULL, NULL};
static const int HT_PRIME_1 = 151;
static const int HT_PRIME_2 = 163;
static const int HT_INITAL_BASE_SIZE = 64;
/* INITIALIZE AND DELETE */
/* Initialization for ht_... |
/*
* TechSmith Camtasia decoder
* Copyright (c) 2004 <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 of the License, or (... |
#include "ply.h"
#include <candle.h>
#include <limits.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define MAX_WORD 4095
enum value_type {
PLY_NONE,
PLY_FLOAT, PLY_DOUBLE,
PLY_UCHAR, PLY_CHAR,
PLY_INT8, PLY_INT, PLY_UINT8, PLY_UINT, PLY_LONG, PLY_ULONG,
PLY_LIST
};
struct type_info
{
char name... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "jdsimple.h"
#define DMA_FLAG_GLOBAL DMA_ISR_GIF1_Pos
#define DMA_FLAG_COMPLETE DMA_ISR_TCIF1_Pos
#define DMA_FLAG_HALF DMA_ISR_HTIF1_Pos
#define DMA_FLAG_ERROR DMA_ISR_TEIF1_Pos
static inline bool DMA_HasFlag(DMA_TypeDef *DMAx, uint... |
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#ifdef WIN32
#include <Windows.h>
#endif
/* macros */
#define LONG_OPT_NAME_LOWER "case-insensitive"
#define LONG_OPT_NAME_COMPLEX "complex"
#define LONG_OPT_NAME_HELP "help"
#define LONG_OPT_NAME_INCLUDE "include"
#define LONG_OPT_NAME_LENGT... |
/*
* Copyright(c) 2012-2018 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
#include <linux/bio.h>
#include <linux/blkdev.h>
#include "config.h"
#include "context.h"
#include "iotrace_event.h"
/**
* @note IO classification defined by Differentiated Storage Services (DSS)
*/
enum {
DSS_UNCL... |
#include <stdio.h>
#include <stdlib.h>
#include <vicNl.h>
#include <math.h>
static char vcid[] = "$Id$";
int dist_prec(atmos_data_struct *atmos,
dist_prcp_struct *prcp,
soil_con_struct *soil_con,
veg_con_struct *veg_con,
lake_con_struct *lake_con... |
/*
* MIT License
*
* Copyright (c) 2019 <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,... |
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "fetch.h"
/* received data is buffered in memory until completion. This is obviously bad
for larger responses, however it's sensible if we don't care about larger
responses. */
#define FETCH_BUFSZ (1024 * 1000 - 1)
#define CONNECT_TIMEO_S 2... |
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include <string.h>
#include <unistd.h>
#include <sys/time.h>
#include <composer.h>
#include <mkl.h>
#include <omp.h>
#include <vec.h>
#include "nbody.h"
#include "nbody_mkl.h"
#include "nbody_composer.h"
typedef enum {
UNKNOWN = 0,
... |
/*===========================================================================*/
/* Copyright (c) 1987 - 1988, Future Soft Engineering, Inc. */
/* Houston, Texas */
/*===========================================================================... |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include "usb_host.h"
#include "usb_host_types.h"
#include "usb_host_core.h"
#include "usb_host_pipe.h"
#include "usb_host_request.h"
#include "usb_host_device.h"
#define USB_HOST_DEVICE_CONNECTED_EVENT (1 << 0)
#define USB_HOST_DEVICE_DISCONNECTED_EVENT... |
/*
* 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.