text stringlengths 5.8k 28.2k |
|---|
/* T-MATS -- Turbine_TMATS.c
* % *************************************************************************
* % written by <NAME> based on work by <NAME> and <NAME>
* % NASA Glenn Research Center, Cleveland, OH
* % February 15th, 2013
* %
* % This file models the Turbine Element for T-MATS simulation
* % ******... |
// Based on code by Dr. <NAME>
#include <assert.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#define MIN(X, Y) (((X) < (Y)) ? (X) : (Y))
#define MAX(X, Y) (((X) > (Y)) ? (X) : (Y))
#define ISCOMPL(A, B) ((A+B == 1) || (A+B == 5))
// Number of seq printed in the ... |
/*
* 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... |
/* Low level interface for debugging HPUX/DCE threads for GDB, the GNU
debugger.
Copyright 1996, 1998, 1999, 2000, 2001, 2004 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 Li... |
#if 0 /* Enable fopen64(). */
#ifndef _FILE_OFFSET_BITS
#define _FILE_OFFSET_BITS 64
#endif
#ifndef _LARGEFILE64_SOURCE
#define _LARGEFILE64_SOURCE
#endif
#endif
#define MINIDRAW_IMPLEMENTATION
#include "../minidraw.h"
#include "../tests/minidraw_testcommon.c"
#if defined(__clang__)
#pragma GCC diagnostic push
... |
/*
* MIT License
*
* Copyright (c) 2019 <NAME>
* 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
... |
/* txCdsPredict - Somewhat simple-minded ORF predictor using a weighting scheme.. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "memalloc.h"
#include "localmem.h"
#include "cdsEvidence.h"
#include "dnautil.h"
#include "dnaseq.h"
#include "bed.h"
#include "fa.h"
#include "r... |
/*
* (C) Copyright 2010,2011
* <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 Foundation; either vers... |
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│
│vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│
╞══════════════════════════════════════════════════════════════════════════════╡
│ Copyright 2020 <NAME> │
│ ... |
/*-
* Copyright (c) 2008 <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 a... |
/*
* Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2011 The University of Tennessee and The University
* of Tennessee Resea... |
/*
* $Id: basic.c,v 1.37 2000/06/04 22:38:00 lees Exp lees $
*/
#include <string.h>
#include <signal.h>
#include <setjmp.h>
#include <stdio.h>
#include <readline/history.h>
#include <readline/readline.h>
#include "basic.h"
extern void listline(char *var, statement *stmt, byte showline);
jmp_buf mark;
int numargs... |
/*
Copyright (C) 1997, <NAME>
*/
#include"4_vector.h"
#include<math.h>
#include"phys_val.h"
#include "interface.h"
#include"subproc.h"
#include<ctype.h>
#include"kinaux.h"
#include "syst.h"
#include "rw_sess.h"
#include "comp.h"
#include "VandP.h"
double calcPhysVal(char key,char * lv,double*V)
{
double p1,p2,p3,... |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
#ifndef lint
static const char RCSid[] = "$Id: srcdraw.c,v 2.21 2020/05/14 20:58:03 greg Exp $";
#endif
/*
* Draw small sources into image in case we missed them.
*
* External symbols declared in ray.h
*/
#include "copyright.h"
#include "ray.h"
#include "view.h"
#include "otypes.h"
#include "otspecial.h"
#in... |
/*
* Copyright (C) <NAME>
* Copyright (C) Rap, Inc.
*/
#include <rap_config.h>
#include <rap_core.h>
#include <rap_http.h>
typedef struct {
rap_uint_t max_cached;
rap_uint_t requests;
rap_msec_t timeout;
rap_queue_t ... |
#include "lm.h"
#include "matd.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <float.h>
// see http://research.microsoft.com/en-us/um/people/zhang/INRIA/Publis/Tutorial-Estim/node24.html
static inline double lm_loss_tukey(double x, double c, double* w) {
double c2 = c*c;
if (fabs(x) <= c) ... |
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include "renard_phy_s2lp_hal.h"
#include "renard_phy_s2lp_config.h"
#include "renard_phy_s2lp.h"
#include "s2lp_registers.h"
#include "fifo_symbols.h"
/*
* Private, low-level SPI read / write functions
* renard_phy_s2lp_cmd: Write command to S2-LP (data... |
/*
* Copyright 2018 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, m... |
#include "tm_mapping.h"
#include "tm_mt.h"
#include "tm_kpartitioning.h"
#include <stdlib.h>
#include <stdio.h>
#define USE_KL_KPART 0
#if USE_KL_KPART
#include "k-partitioning.h"
#endif /* USE_KL_KPART */
#define KL_KPART_GREEDY_TRIALS 0
static int verbose_level = ERROR;
#define MAX_TRIALS 10
#define USE_KL_STRATE... |
/******************************************************************************
* Copyright (C) 2017 Broadcom. The term "Broadcom" refers to Broadcom Limited
* and/or its subsidiaries.
*
* This program is the proprietary software of Broadcom and/or its licensors,
* and may only be used, duplicated, modified or... |
/*
i2c engine
Copyright (C) 2016 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
*/
/* On entry:
* I2C_IDX - Numeric I2C controller index
* I2C1_TX_DMA_NUM,
* I2C2_TX_DMA_NUM - The DMA controller number bou... |
#include "camera.h"
#include "gfx.h"
#include "player.h"
#include "bitmapfont.h"
#include "tilemap.h"
#include <assert.h>
#include <math.h>
#include <SDL.h>
#include <SDL_image.h>
//#############################################################################
// Private functions.
//#################################... |
// This is a first line comment
// This is a second line comment
// This is a third line comment
/* This is a block comment */
/*
This is a block comment 1
*/
/*
This is a block comment 2
*/
/*
This is a block comment 3
*/
int puts(char*);
int printf(char*, int);
void exit(int);
void ExpectEq(int actual, i... |
/* dlopen.c--Unix dlopen() dynamic loader interface
* <NAME>
* <NAME>
*/
/*
* Copyright (c) 1998-2016 Carnegie Mellon University. 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.... |
/*
*The MIT License (MIT)
*Copyright (c) 2016 <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,... |
/* A set of utility functions that are common between elements
* based upon GstAdaptiveDemux
*
* Copyright (c) <2015> YouView TV Ltd
*
* 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 Foundati... |
/* See LICENSE file for copyright and license details. */
static unsigned int borderpx = 3; /* border pixel of windows */
static unsigned int snap = 20; /* snap pixel */
/* bar */
static int showbar = 1; /* 0 means no bar */
static int topbar = 1; /* 0 means bottom bar */
static const int user... |
/*
Copyright (c) 2019 <NAME> <EMAIL>
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 in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR
DISCLAIMS ALL WARRANTIE... |
#include "map.h"
#include "ent.h"
#include "grow.h"
#include "json.h"
#include "json-util.h"
#include "load-texture.h"
#include "loader.h"
#include "logger.h"
#include "string.h"
#include "util.h"
#include "xalloc.h"
#include <errno.h>
#include <tgmath.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#inc... |
//@ #include "nat.gh"
#include "threading_with_obspaces.h"
#include "channels.h"
#include <stdlib.h>
//@ #include "../call_perms.gh"
struct info {
channel channel;
//@ int space;
//@ int termScope;
//@ level level;
//@ int creditObject;
//@ int nextToSend;
//@ int nextToReceive... |
//
// Owner: <NAME>
// Email: <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 applicable law or agree... |
/*
CF3
Copyright (c) 2015 ishiura-lab.
Released under the MIT license.
https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md
*/
#include<stdio.h>
#include<stdint.h>
#include<stdlib.h>
#include"test1.h"
volatile int32_t x180 = INT32_MAX;
int64_t t0 = INT64_MAX;
int64_t x651 = INT64_MIN;
static volatile uint16_t ... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include <unistd.h>
#include <time.h>
typedef unsigned int dns_rr_ttl;
typedef unsigned short dns_rr_type;
typedef unsigned short dns_rr_class;
typ... |
/*
FreeRTOS V8.2.2 - Copyright (C) 2015 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the terms of... |
/* Abstraction of GNU v3 abi.
Contributed by <NAME> <<EMAIL>>
Copyright 2001, 2002, 2003, 2005 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 ... |
/*
* Mach Operating System
* Copyright (c) 1994 <NAME>
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative work... |
/*
*
* self_smpl_multi.c - multi-thread self-sampling program
*
* Copyright (c) 2008 <NAME>
* Contributed by <NAME> <<EMAIL>>
* Modified 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"), t... |
// <NAME>
// 10/24/01 edited 2/24/04 for COP 3502 Lecture
// Linked List Example
// Edited on 6/1/07 to include an example from Recitation Sheet #3 for COP 3502
// Edited on 2/3/09 to include two recursive functions: delete and reverse.
#include <stdio.h>
// Struct used to form a linked list of integers.
struct ll ... |
/* packet-dtp.c
* Routines for the disassembly for Cisco Dynamic Trunk Protocol
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* DTP support added by <NAME> <<EMAIL>>
*
* Additional information comes from Yersinia (http://www.yersinia.net/)
* by <NAME> and <NAME>
*
... |
// Copyright (c) 2020 matsujirushi
// Released under the MIT license
// https://github.com/matsujirushi/uart-to-azureiot/blob/master/LICENSE.txt
#include <errno.h>
#include <signal.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <assert.h>
#include <getop... |
/*-
* Copyright (c) 2007 <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 condition... |
/*
* IIDC1394 grab interface (uses libdc1394 and libraw1394)
* Copyright (c) 2004 <NAME>
* Copyright (c) 2008 <NAME>
* Copyright (c) 2011 <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 a... |
/*************************************************************************
* eigens.c -
*
* $Id: eigens.c,v 1.5 2000/10/09 09:00:32 greg Exp $
*
* Copyright INRIA
*
* AUTHOR:
* <NAME> (<EMAIL>)
*
* CREATION DATE:
* Thu Sep 7 11:04:44 MET DST 2000
*
*
* DESCRIPTION
*
* Compute '_ComputeEigensOfSymetri... |
#include "generate_svg.h"
float max (float a, float b)
{
return a > b ? a : b;
}
void drawArrowHead (FILE * fo, float x, float y, arrDir dir)
{
// Draw arrow head based on its direction
switch (dir) {
case LEFT:
fprintf(fo, ARROW_HEAD, x + ARROW_WIDTH / 8, y,
... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
#ifdef GSL_FOUND
#include <gsl/gsl_integration.h>
#endif
#include "core_allvars.h"
#include "core_init.h"
#include "core_mymalloc.h"
#include "core_cool_fu... |
/**
* Copyright (C) Mellanox Technologies Ltd. 2020-2021. ALL RIGHTS RESERVED.
* Copyright (C) Advanced Micro Devices, Inc. 2022. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
#include "mc_rocm.h"
#include "utils/ucc_malloc.h"
#include "utils/arch/cpu.h"
#include <hip/hip_runtime.h>
#include <hsa/hsa.h... |
// MIT License
//
// Copyright (c) 2019-2021 <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, modif... |
#include "netmon.h"
#include "errors.h"
#include "ui.h"
#include "packet.h"
#include "rate.h"
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <linux/if_packet.h>
#include <net/ethernet.h>
#include <time.h>
//... |
/************************** DISCLAIMER ********************************/
/* */
/* This file was generated on 04/18/19 00:03:13 by */
/* ADIC version /* */
/* ADIC ... |
// ----------------------------------------------------------------------
//
// ▐ ▄ ▪ ▐ ▄ ▄ •▄ ▄▄▄· .▄▄ · ▪
// •█▌▐███ •█▌▐██▌▄▌▪▐█ ▀█ ▐█ ▀. ██
// ▐█▐▐▌▐█·▐█▐▐▌▐▀▀▄·▄█▀▀█ ▄▀▀▀█▄▐█·
// ██▐█▌▐█▌██▐█▌▐█.█▌▐█ ▪▐▌▐█▄▪▐█▐█▌
// ▀▀ █▪▀▀▀▀▀ █▪·▀ ▀ ▀ ▀ ▀▀▀▀ ▀▀▀
//
// -------------------------... |
/*****************************************************************************\
** **
** FILE: channel.c **
** AUTHORS: Alexios **
**... |
/*++
/* NAME
/* smtp_trouble 3
/* SUMMARY
/* error handler policies
/* SYNOPSIS
/* #include "smtp.h"
/*
/* int smtp_sess_fail(state)
/* SMTP_STATE *state;
/*
/* int smtp_site_fail(state, mta_name, resp, format, ...)
/* SMTP_STATE *state;
/* const char *mta_name;
/* SMTP_RESP *resp;
/* const char *format;
/*
/* int smtp... |
/* slowcat, Copyright (c) 2000-2013 <NAME> <<EMAIL>>
*
* Usage: slowcat [ --verbose ]
* [ --debug ]
* [ --bps bits-per-second ]
* [ --burst seconds ]
* [ --range from-byte [ to-byte ] ]
* [ --icy-interval bytes ]
* [ --id3... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* Copyright (c) 2022 STMicr... |
/* $XConsortium: funcode.c,v 1.6 94/04/17 20:39:19 rws Exp $ */
/**** module funcode.c ****/
/******************************************************************************
Copyright (c) 1993, 1994 X Consortium
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associa... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Atheros PHY drivers
*
* Copyright 2011, 2013 Freescale Semiconductor, Inc.
* author <NAME>
* Copyright (c) 2019 <NAME> <<EMAIL>>
*/
#include <common.h>
#include <phy.h>
#include <dm/device_compat.h>
#include <linux/bitfield.h>
#include <linux/bitops.h>
#include <dt-bindin... |
/*
* Copyright (C) 2012-2017 <EMAIL>
* This software is distributed under the terms of the MIT license.
* See the included LICENSE file for further information.
*/
/*
* TrueVision TARGA reader. Supports 8-32 bpp raw and RLE encoded image data.
*/
#include <stdlib.h>
#include <stdio.h>
#include <memory.h>
#incl... |
#include "generation.h"
// TODO - Handle string
chunk *computeInstruction(ANTLR3_BASE_TREE *node);
chunk *computeExpr(ANTLR3_BASE_TREE *node);
chunk *computeIf(ANTLR3_BASE_TREE *node);
chunk *computeWhile(ANTLR3_BASE_TREE *node);
chunk *computeFor(ANTLR3_BASE_TREE *node);
chunk *computeLet(ANTLR3_BASE_TREE *node);
ch... |
/*
* =============================================================================
* HSA Runtime Conformance Release License
* =============================================================================
* The University of Illinois/NCSA
* Open Source License (NCSA)
*
* Copyright (c) 2014, Advanced Micro Devi... |
/**********************************************************************
Each of the companies; Qualcomm, and Lucent (hereinafter
referred to individually as "Source" or collectively as "Sources") do
hereby state:
To the extent to which the Source(s) may legally and freely do so, the
Source(s), upon submission of a ... |
/*
This source code is taken directly from examples in the book
Windows System Programming, Edition 4 by Johnson (<NAME>
Session 6, Chapter 10. ThreeStage.c
Several required additional header and source files from the
book examples have been included inline to simplify building.
The only modification to... |
#include "required.h"
#include "helpers.h"
#include "bridge.h"
#include "module.h"
static ngx_http_output_header_filter_pt ngx_http_next_header_filter;
static ngx_http_output_body_filter_pt ngx_http_next_body_filter;
// Module commands list
static ngx_command_t ngx_http_imgproc_commands[] = {
{
ngx_string("imgpr... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdbool.h>
#include <libgen.h>
#include <sys/select.h>
#include "util.h"
#include "send_packet.h"
#include "protocol.h"
#define HELP_MSG "Usage: ./client <hostname> <port> <filename> <drop-percentage>\n"\
... |
#include "drally.h"
extern byte ___243d38h[];
extern byte ___196dd0h[];
extern byte ___243334h[];
extern byte ___196dd4h[];
extern byte ___1f2488h[];
extern byte ___243ce8h[];
extern byte ___1de580h[];
extern byte ___243d28h[];
extern byte ___243d58h[];
int rand_watcom106(void);
void race___5209ch(void){
... |
/* mbed Microcontroller Library
* Copyright (c) 2019 ARM Limited
* SPDX-License-Identifier: Apache-2.0
*
* 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/li... |
#include "common.h"
#define TDSODBC_BCP
#include <odbcss.h>
#include <assert.h>
#ifdef UNICODE
typedef SQLWCHAR bcp_init_char_t;
#else
typedef char bcp_init_char_t;
#endif
struct prefixed_int {
ODBCINT64 prefix;
int value;
};
struct prefixed_str {
ODBCINT64 prefix;
char value[64];
};
/*
* Static data for insert... |
#include <string.h>
#include "pspgl_internal.h"
#include "pspgl_buffers.h"
unsigned __pspgl_gl_sizeof(GLenum type)
{
switch(type) {
case GL_BYTE:
case GL_UNSIGNED_BYTE:
return sizeof(GLubyte);
case GL_SHORT:
case GL_UNSIGNED_SHORT:
return sizeof(GLushort);
case GL_UNSIGNED_INT:
return sizeof(GLuint);
... |
// Copyright 2015 The Weave Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/device.h"
#include "src/access_control_request.h"
#include "src/auth_request.h"
#include "src/ble_advertising.h"
#include "src/command.h"
#inc... |
// Copyright (c) 2022 <NAME>
// SPDX-License-Identifier: MIT
//
// Markab Forth System REPL
//
// The `#define _XOPEN_SOURCE 500` is to enable XOPEN (kinda like POSIX?)
// features for signal handling, because I kept segfaulting and having to reset
// my terminal to get my shell prompt working again. For background, re... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include "array.h"
#include "linalg.h"
#include "lib_clinalg.h"
#include "lib_funcs.h"
#include "c3_interface.h"
double otlcircuit(const double * x, void * args)
{
assert (args == NULL );
// 6 dimensions
// A... |
/*
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... |
/******************************************************************************
* Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved.
* gala-gopher licensed under the Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mu... |
/* Copyright (c) 2015-2017 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "str.h"
#include "test-common.h"
#include "mail-storage-private.h"
#include "mail-search-build.h"
#include "mail-search-parser.h"
#include "mail-search.h"
struct {
const char *input;
const char *output;
} tests[] ... |
/* Copyright (c) 2014-2015, The Linux Foundation. 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 o... |
/* HTTP File Server Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio... |
/*
* This code implements the MD5 message-digest algorithm.
* The algorithm is due to <NAME>. This code was
* written by <NAME> in 1993, no copyright is claimed.
* This code is in the public domain; do with it what you wish.
*
* Equivalent code is available from RSA Data Security, Inc.
* This code has been teste... |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// CRYPTO library project. Version 2.1
//
// module: des3.h
// $Revision: 25 $
// $Date: 2013-03-12 17:34:27 +0400 (Tue, 12 Mar 2013) $
// description:
// Cryptographic services provider library.
// ... |
/******************************************************************************
* Copyright (C) 2010 - 2020 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
/****************************************************************... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <assert.h>
#include "kd.h"
#include "tipsydefs.h"
void kdTimeFoF(KDFOF kd,int *puSecond,int *puMicro)
{
struct rusage ru;
getrusage(0,&ru);
*puMicro = ru.ru_utime.tv_usec - kd->uMicro;
*puSecond = ru... |
#include "sithMap.h"
#include "World/sithThing.h"
#include "Engine/sithAdjoin.h"
#include "Engine/sith.h"
#include "Engine/rdroid.h"
#include "Primitives/rdPrimit2.h"
#include "Primitives/rdPrimit3.h"
#include "Engine/rdClip.h"
#include "World/sithSector.h"
#include "jk.h"
#include <math.h>
#include <float.h>
int si... |
#include <openhl/sha/sha3.h>
#define SHA3_KECCAK_WIDTH 200 // the width of the keccak function
#define SHA3_KECCAK_ROUNDS 24 // the number of rounds of the keccak function
static const uint64_t RC[SHA3_KECCAK_ROUNDS] =
{
0x0000000000000001, 0x0000000000008082, 0x800000000000808A, 0x8000000080008000,
0x0000000000... |
//
// ffn.c -- fix file names
//
//
// 2003/08/13 finally collected together all my various program peices
// 2017/01/23 created, rewrite from perl (fnp) to C (ffn)
// 2018/01/13 first release
// 2018/03/26 changed verbose to show files that do not need name changes
// 2020/03/06 fixed null char to n... |
#include "gru_layer.h"
#include "connected_layer.h"
#include "utils.h"
#include "cuda.h"
#include "blas.h"
#include "gemm.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static void increment_layer(layer *l, int steps)
{
int num = l->outputs*l->batch*steps;
l->output += num;
... |
/**********************************************************
* Copyright 2008-2009 VMware, Inc. 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
* restrict... |
#include "include.h"
#include "structure.h"
#include "function.h"
#include "getpar.h"
#define TAP_PERC 0.05
int size_float = sizeof(float);
int size_int = sizeof(int);
void borch_ampf(float *,float *,int,float *,float *,float *,float *,float *,float *,float *,float *,float *);
void cb2008_ampf(float *,float *,int,fl... |
/* $NetBSD: ncr.c,v 1.35 2001/04/25 17:53:26 bouyer Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>, <NAME>, <NAME>, and <NAME>.
*
* Redistribution and use in source and binary forms, wit... |
/*
* Copyright 2012 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, m... |
#include <stdarg.h>
#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <errno.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <resolv.h>
#include <arpa/inet.h>
#include <... |
/*
* Copyright (c) 1999-2000 Image Power, Inc. and the University of
* British Columbia.
* Copyright (c) 2001-2003 <NAME>.
* All rights reserved.
*/
/* __START_OF_JASPER_LICENSE__
*
* JasPer License Version 2.0
*
* Copyright (c) 2001-2006 <NAME>
* Copyright (c) 1999-2000 Image Power, Inc.
* Copyright (c... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
/*
* Copyright (c) 2002-2015 Balabit
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* 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... |
/* Following program prints file contents and file attributes. similar to the cat command.
Authors : <NAME> and <NAME>.
usage : type make to compile the program and then to execute type the command as below.
command : ./cat <filesystem> <directory Path>
example : ./cat fsy /hello/hi.txt
*/
#include <stdio.h>... |
/*
* Copyright (c) 2012, The Android Open Source Project
* 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, ... |
/* Copyright (c) 2019-2021, <NAME>. All rights reserved */
#include "feature.h"
/* Make linting always work for this
* file (force choosing the right renderer
* structure variant in window-x11.h)*/
#undef USE_X11SHM
#define USE_X11SHM 1
#include "config.h"
#include "font.h"
#include "mouse.h"
#include "window-x11... |
/*
Copyright (C) 1997-2001 Id Software, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in th... |
/*
* Copyright 2020 Makani Technologies LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
/*
dripfs.c
Copyright Menotdan 2018-2019
A garbage FS written by Menotdan
MIT License
*/
#include <fs/dripfs.h>
dripfs_boot_sect_t *boot_sect;
uint32_t dfs_table_scan(uint32_t first_sector, uint8_t dev, uint8_t controller) {
/* Code to set drive */
//uint8_t driveSelected = 1;
if (dev =... |
/* packet-gmr1_common.c
*
* Routines for GMR-1 dissection in wireshark (common stuff).
* Copyright (c) 2011 <NAME> <<EMAIL>>
*
* References:
* [1] ETSI TS 101 376-4-8 V1.3.1 - GMR-1 04.008
* [2] ETSI TS 101 376-4-8 V2.2.1 - GMPRS-1 04.008
* [3] ETSI TS 101 376-4-8 V3.1.1 - GMR-1 3G 44.008
* [4] ETSI TS 100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.