text stringlengths 5.8k 28.2k |
|---|
/*
* Phoenix-RTOS
*
* USB Mass Storage host driver
*
* Copyright 2019, 2020 Phoenix Systems
* Author: <NAME>, <NAME>
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/platform.h>
#include <... |
/* <NAME> and <NAME>
* 1/13/12
* University of Washington
*/
#include <stdlib.h>
#include <time.h>
#include "hash.h"
#include "ht_macros.h"
#define HT_EXPECTED_SIZE 1000000 //arbitrary...
/* Set HT_EXPECTED_SIZE to 10 to test bucket chaining: "oops" will hash
* to same value (5) as "yek3".
*/
typedef str... |
/* $OpenBSD: vgafb_pci.c,v 1.21 2010/05/22 21:30:26 deraadt Exp $ */
/* $NetBSD: vga_pci.c,v 1.4 1996/12/05 01:39:38 cgd Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
* All rights reserved.
*
* Author: <NAME>
*
* Permission to use, copy, modify and distribute this software and
* its docume... |
#include "f2c.h"
#include "blaswrap.h"
/* Table of constant values */
static complex c_b1 = {0.f,0.f};
static complex c_b2 = {1.f,0.f};
static integer c__3 = 3;
static integer c__1 = 1;
/* Subroutine */ int claghe_(integer *n, integer *k, real *d__, complex *a,
integer *lda, integer *iseed, complex *work, integer ... |
//------------------------------------------------------------------------------
// shadows-sapp.c
// Render to an offscreen rendertarget texture, and use this texture
// for rendering shadows to the screen.
//------------------------------------------------------------------------------
#include "sokol_app.h"
#incl... |
/*-
* Copyright (c) 2008-2011 Varnish Software AS
* All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above ... |
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include <3ds.h>
#include "action.h"
#include "../resources.h"
#include "../task/uitask.h"
#include "../../core/core.h"
#include "../../core/stringutil.h"
typedef enum content_type_e {
CONTENT_CIA,
CONTENT_TICKET,
CONTENT_3DSX_SMDH
} content_type... |
#define _XOPEN_SOURCE 800
#include <ucontext.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <pthread.h>
#include <pony.h>
#include <dtrace_encore.h>
#include "encore.h"
#include "future.h"
#include "../libponyrt/actor/messageq.h"
#include "../libponyrt/sched/scheduler.h"
... |
#include "../API/Printing.h"
#include "../includes.h"
const GUI_POINT printinfo_points[6] = {
{START_X + PICON_LG_WIDTH*0 + PICON_SPACE_X*0, ICON_START_Y + PICON_HEIGHT*0 + PICON_SPACE_Y*0},
{START_X + PICON_LG_WIDTH*1 + PICON_SPACE_X*1, ICON_START_Y + PICON_HEIGHT*0 + PICON_SPACE_Y*0},
{START_X + PICON_LG_WIDTH*2 + P... |
#include <math.h>
#include "esp_err.h"
#include "esp_log.h"
#include "error.h"
#include "lcd.h"
#include "rm68090_regs.h"
#include "rm68090.h"
#include "utils.h"
static const char *TAG = "rm68090";
// Init registers adapted from https://github.com/prenticedavid/MCUFRIEND_kbv/blob/master/MCUFRIEND_kbv.cpp
static co... |
/**
* @file Json.c
* In this source, json is decoded using the following library.
* - Jansson : https://github.com/akheron/jansson
*/
#include <bolib.h>
#include <string.h>
#include <jansson.h>
#include <setjmp.h>
#include <assert.h>
#include "common/strres.h"
#include "common/Observer.h"
#include "common/Inser... |
/* Low level Unix child interface to ptrace, for GDB when running under Unix.
Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
1998, 1999, 2000, 2001, 2002, 2004
Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
... |
/*
* 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 the hope that it will be use... |
// Copyright (c) 2001-2016, Altera Corporation.
// All rights reserved.
//
// This software is available to you under a choice of one of two
// licenses. You may choose to be licensed under the terms of the GNU
// General Public License (GPL) Version 2, available from the file
// COPYING in the main directory of thi... |
/*
* (C) Copyright 2008, 2009 <NAME>,
* DENX Software Engineering, <EMAIL>.
* (C) Copyright 2009 <NAME>,
* DENX Software Engineering, <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 ... |
/****************************************************************************
Copyright Echo Digital Audio Corporation (c) 1998 - 2004
All rights reserved
www.echoaudio.com
This file is part of Echo Digital Audio's generic driver library.
Echo Digital Audio's generic driver library is free software;
... |
/*
* GIT - The information manager from hell
*
* Copyright (C) <NAME>, 2005
*/
#include "cache.h"
#include "builtin.h"
#include "parse-options.h"
#include "userdiff.h"
#include "streaming.h"
#include "tree-walk.h"
static int cat_one_file(int opt, const char *exp_type, const char *obj_name,
int unknown_type)
{
... |
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2004-2007 <NAME> <<EMAIL>>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License,... |
#include "mppl_compiler.h"
/*! @name Indent size for cross reference table */
/* @{ */
/*! Width of the Name column */
#define INDENT_SIZE_NAME 20
/*! Width of the Type column */
#define INDENT_SIZE_TYPE 45
/*! Width of the Def column */
#define INDENT_SIZE_DEF 4
/* @} */
/*! search the name pointed by n... |
/*-
* BSD LICENSE
*
* Copyright (c) Intel Corporation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyri... |
#define _GNU_SOURCE
#include <sys/types.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <time.h>
#include "server.h"
#include "connections.h"
#include "response.h"
#include "connections.h"
#include "log.h"
#include "plugin.h"
#ifdef HAV... |
/**
* MojoDDS; tools for dealing with DDS files.
*
* Please see the file LICENSE.txt in the source's root directory.
*
* This file written by <NAME>.
*/
// Specs on DDS format: http://msdn.microsoft.com/en-us/library/bb943991.aspx/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
... |
/* ----------------------------------------------------------- */
/* */
/* ___ */
/* |_| | |_/ SPEECH */
/* | | | | \ RECOGNITION ... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Driver for BCM6368 GPIO unit (pinctrl + GPIO)
*
* Copyright (C) 2021 <NAME> <<EMAIL>>
* Copyright (C) 2016 <NAME> <<EMAIL>>
*/
#include <linux/bits.h>
#include <linux/gpio/driver.h>
#include <linux/kernel.h>
#include <linux/of.h>
#include <linux/pinctrl/pinmux.h>
#include... |
#include "fft.h"
#include "gf.h"
#include "parameters.h"
#include <stdint.h>
#include <string.h>
/**
* @file fft.c
* Implementation of the additive FFT and its transpose.
* This implementation is based on the paper from Gao and Mateer: <br>
* <NAME> and <NAME>, Additive Fast Fourier Transforms over Finite Fields,
... |
/*
* Prime generation.
*/
#include <assert.h>
#include "ssh.h"
#include "mpint.h"
/*
* This prime generation algorithm is pretty much cribbed from
* OpenSSL. The algorithm is:
*
* - invent a B-bit random number and ensure the top and bottom
* bits are set (so it's definitely B-bit, and it's definitely
* ... |
/*
* File: main.c
* Author: <NAME>
*
* Writes the necessary data to the eeprom
* memory of the pic24f microcontroller
*
* If write was succesful the green led will
* be off and the red led will be on
*
* In order to preserve this memory the
* programmer configuration must be set to
* preserve the intern... |
/** \file pruio_c_wrapper.h
\brief The main header code of the C wrapper for libpruio.
This file provides the declarations of the \ref PruIo class member
functions in C syntax. It also can be used to create language bindings
for non-C languages to use libpruio in polyglot applications.
\note The includes pruio.h and ... |
// This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
// This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include "include/co... |
/*
* Copyright (c) 2015 Intel Corporation
*
* 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, p... |
/*
* Digital Pictures SGA game demuxer
*
* Copyright (C) 2021 <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 Lic... |
/** @file est_client_alt_cert.c
*
* Isara Corporation Quantum Safe EST Proprietary Software License
* Statement
*
* LICENSE AGREEMENT: The Product(s) that reference this license include
* embedded proprietary software and software “plug-ins” in source code or
* object code or both (the “Software”) and accompanyi... |
/* $OpenBSD: slist.c,v 1.7 2015/12/17 07:56:01 tb Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of ... |
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <beanstalk.h>
#include <errno.h>
#include <fcntl.h>
#define BEANSTALKLOG_VERSION "1.0.0"
/* not standard */
#define BS_STATUS_DISCONNECTED -254
typedef struct {
int bsl_socket;
ngx_str_t bsl_host;
ngx_str_t bsl_tube;
ngx_... |
#include "editor/gi.h"
#include <assert.h>
#include "glad/glad.h"
#include "GLFW/glfw3.h"
#include "lightmapper/lightmapper.h"
#include "xatlas/xatlas_wrapper.h"
#include "common/log.h"
static void _gi_set_is_running(golf_gi_t *gi, bool is_running) {
golf_mutex_lock(&gi->lock);
gi->is_running = is_running;
... |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "jse_common.h"
#include "be_module.h"
#include "module_zigbee.h"
#define JS_ZIGBEE_DELAYED_INTERNAL 50
static bone_zigbee_t zigbee;
static be_jse_symbol_t* on_message_func = NULL;
static be_jse_symbol_t* on_connect_func = NULL;
static be_jse_sy... |
/*
========================================================================
D O O M R e t r o
The classic, refined DOOM source port. For Windows PC.
========================================================================
Copyright © 1993-2012 id Software LLC, a ZeniMax Media c... |
#include "contiki.h"
#include "sys/rtimer.h"
#include "dev/leds.h"
#include "deca_device_api.h"
#include "deca_regs.h"
#include "dw1000.h"
#include "dev/ssi.h"
#include "cpu/cc2538/lpm.h"
#include "cpu/cc2538/dev/sys-ctrl.h"
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
#include "pp_one... |
/* packet-gsm_ipa.c
* Routines for packet dissection of ip.access GSM A-bis over IP
* Copyright 2009 by <NAME> <<EMAIL>>
* Copyright 2009, 2010 by <NAME> <<EMAIL>>
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* This program is free software; you can redistribute it a... |
/*
* LCD panel support for the Siemens SX1 mobile phone
*
* Current version : <EMAIL>, great help from FCA00000
*
* 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 L... |
/*
* VOTSORT -- Sort a VOTable based on a column value.
*
* Usage:
* votsort [<otps>] <votable.xml>
*
* Where
* -c,--col <N> Sort column num
* -d,--desc Sort in descending order
* -f,--fmt <format> Output format
* -o,--output <name> Output name
* -s,--string String sort
* -t,--top <N> Print top <N> r... |
/** @file main.c
*
* @brief Main program file for Reference Design 1 using FreeRTOS10
*
* @par
* Demonstrates the use of FreeRTOS, Doxygen, Git, and Tracealyzer
*
* @author
* <NAME>
* @date
* 07 SEP 2020
*/
/* Includes. */
#include "FreeRTOS.h"
#include "task.h"
#include <plib.h>
#include "CerebotM... |
/*
* 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... |
/**
* \defgroup ADC Analogue to Digital Converter Functions
*
* \brief These functions handle reading the ADCs, converting raw values to voltages, and introducing correction factors to account for inaccuracy.
*
* The chip has three ADCs.
* Some channels are available to only one or two ADCs, while other channels ... |
/*
Copyright 2012-2013 <NAME> <http://drobilla.net>
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 permission notice appear in all copies.
THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTH... |
/* linenoise.c -- guerrilla line editing library against the idea that a
* line editing lib needs to be 20,000 lines of C code.
*
* You can find the latest source code at:
*
* http://github.com/antirez/linenoise
*
* Does a number of crazy assumptions that happen to be true in 99.9999% of
* the 2010 UNIX compu... |
/**
****************************************************************************************
*
* \file canbus.c
*
* \brief Functions operating on registers of bxCAN peripharial in STM32F103C8T6 microcontroller.
*
* Mesages are received in interrupts. Received message is placed in ringbuffer.
*
* Copyright (C) ... |
/******************************************************************************
*
* Copyright(c) 2008 - 2010 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Fr... |
#include "Alexander.h"
#include "my_memory.h"
#include "my_geom.h"
#include "messages.h"
#include <math.h>
#include <stdlib.h>
ALX_wspace * ALX_wspace_alloc ( int N )
{
ALX_wspace * ws;
int dim = 4 * N; //in realta` andrebbe (N+1)^2/9 ma non ho memoria..
ws = malloc(sizeof(ALX_wspace));
if(ws == NULL)
{
... |
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved.
*
* $Id: keytab.c,v 1.28 2004/05/31 12:39:16 epeisach Exp $
* $Source: /cvs/krbdev/krb5/src/kadmin/cli/keytab.c,v $
*/
/*
* Copyright... |
/*
* Copyright (c) 2007-2013 ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
*/
#include <stdlib.h>
#i... |
#include "hfs_btree.h"
/*================ File-local functions ================*/
/*
* get_new_node()
*
* Get a buffer for a new node with out reading it from disk.
*/
static hfs_buffer get_new_node(struct hfs_btree *tree, hfs_u32 node)
{
int tmp;
hfs_buffer retval = HFS_BAD_BUFFER;
tmp = hfs_extent_map(&... |
#include "proto.h"
void load_GIF_data (struct context * context, unsigned flags, size_t limit) {
if (context -> size < 14) throw(context, PLUM_ERR_INVALID_FILE_FORMAT);
context -> image -> type = PLUM_IMAGE_GIF;
context -> image -> width = read_le16_unaligned(context -> data + 6);
context -> image -> height = ... |
/*
Shuffled Binary Search In-Place Shuffle
<NAME> (#Sakrac)
This is a reference implementation, something to dig up if I come up with a
need for a binary search.
The purpose of this implementation is to shuffle a sorted array in-place such
that binary search can be performed by starting with the first element and
on... |
/**
*
* @copyright © 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
/*-
* Copyright (c) 2011
* <NAME> <<EMAIL>>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list o... |
/* -*- mode: C -*- */
/* vim:set ts=4 sw=4 sts=4 et: */
/*
IGraph R package.
Copyright (C) 2014 <NAME> <<EMAIL>>
334 Harvard street, Cambridge, MA 02139 USA
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 ... |
/*
* Copyright (c) 2016 - 2017 Intel Corporation.
*
* Author: <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation th... |
#include "ncgr.h"
#include "nclr.h"
#include "nscr.h"
#include "color.h"
#include <stdio.h>
LPCWSTR characterFormatNames[] = { L"Invalid", L"NCGR", L"Hudson", L"Hudson 2", L"NCBR", L"Binary", NULL };
int calculateWidth(int nTiles) {
int width = 1;
for (int i = 1; i < nTiles; i++) {
if (i * i > nTiles) ... |
/*
Copyright 1999-2003,2007,2011 TiANWEi
Copyright 2004 tulipfan
Copyright 2011 maddes
This file is part of Regshot.
Regshot 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 ver... |
// Copyright 2020 Espressif Systems (Shanghai) Co. Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appli... |
#include <assert.h>
#include <Engine/IO.h>
#include <Engine/Asset.h>
#include <Render/Device.h>
#include <Render/Shader.h>
#include <Runtime/Array.h>
#include <Runtime/Json.h>
#include <System/Log.h>
#define SHMOD "Shader"
#define SHADER_META_ID "NeShader"
#define SHADER_META_VER 1
#define SSTR_VERTEX "v... |
/*
* GF-Complete: A Comprehensive Open Source Library for Galois Field Arithmetic
* <NAME>, <NAME>, <NAME>,
* <NAME>, <NAME>, <NAME>, <NAME>.
*
* gf_unit.c
*
* Performs unit testing for gf arithmetic
*/
#include <stdio.h>
#include <getopt.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include ... |
/*
fgt_model : returns the Fast Gauss Transform Aprroximation Model of a Kernel density
Usage
-------
[xc , Ak] = fgt_model(x , [w] , [sigma] , [e] , [K] , [p] );
Inputs
-------
x Source data (d x Nx)
w Weigths (1 x Nx) ( default w = ones(1 , Nx) )
sigma Noise St... |
/**
* (C) Copyright 2018-2021 Intel Corporation.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
#define D_LOGFAC DD_FAC(tests)
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <... |
/*
* This file is part of an experimental software implementation for solving the
* single-source shortest path problem in edge-weighted graphs. The algorithm
* considered for the implementation is Dijkstra's algorithm for the shortest
* path problem and it runs in linear time with respect to the size of the host
... |
#include "motif-in.h"
#include "config.h"
#include "momo-output.h"
#include "momo-html-string.h"
#include "io.h"
#include "motif-spec.h"
#include "seq-reader-from-fasta.h"
#include "ceqlogo.h"
#include "momo-algorithm.h"
#include "momo-modl.h"
#include "fisher_exact.h"
const int MAX_HTML_MATCHES = 1000;
/************... |
#ifndef lint
static const char RCSid[] = "$Id: findglare.c,v 2.15 2021/02/12 00:53:56 greg Exp $";
#endif
/*
* Find glare sources in a scene or image.
*
* <NAME> March 1991
*/
#include "glare.h"
char *rtargv[64] = {"rtrace", "-h-", "-ov", "-fff", "-ld-", "-i-", "-I-"};
int rtargc = 7;
VIEW ourview = STDVIEW; /*... |
/**
* ntfscp - Part of the Linux-NTFS project.
*
* Copyright (c) 2004-2007 <NAME>
* Copyright (c) 2005 <NAME>
* Copyright (c) 2006 <NAME>
*
* This utility will copy file to an NTFS volume.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public L... |
/******************************************************************************
* SAGE - Scalable Adaptive Graphics Environment
*
* Copyright (C) 2004 Electronic Visualization Laboratory,
* University of Illinois at Chicago
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or ... |
/*
* MIT License
*
* Copyright (c) 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, modify, merge,... |
#define thisprog "xe-norm2"
#define TITLE_STRING thisprog" v 11: 14.January.2019 [JRH]"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
/* requirements for getting process-id */
#include <sys/types.h>
#include <unistd.h>
#define MAXLINELEN 1000
/*
<TAGS>stats</TAGS>
v 11: 14.January.20... |
/*
* unclutter: remove idle cursor image from screen so that it doesnt
* obstruct the area you are looking at.
* doesn't do it if cursor is in root window or a button is down.
* polls mouse to see if is stationary, or waits for a keyup event on the
* screen. These will only arrive in windows of applications that ... |
/*
* Copyright 2018 <NAME>, <NAME>, <NAME>, <NAME>, and <NAME> (TU/e Project Robots Everywhere 2017/2018 Q3 Group 12)
*
* 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://w... |
/*
* rawSig.c - Test compatiblity of (hash+sign) ops vs. manual digest followed
* by raw sign.
*/
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <Security/cssm.h>
#include <Security/cssmapple.h>
#include "cspwrap.h"
#include "common.h"
#include "bsafeUtils.h"
#include "cspdlTesting.h"
#include ... |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2009 <NAME>
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) ... |
/*
* Kernel-based Virtual Machine driver for Linux
*
* This module enables machines with Intel VT-x extensions to run virtual
* machines without emulation or binary translation.
*
* MMU support
*
* Copyright (C) 2006 Qumranet, Inc.
*
* Authors:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This work is... |
/* $OpenBSD: io.c,v 1.35 2009/10/27 23:59:36 deraadt Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are ... |
/* lab3-server.c
* <NAME>
* CS 407
*/
#define _XOPEN_SOURCE 600
#define _POSIX_C_SOURCE 199309
#define _GNU_SOURCE
#define TIMER_SIG SIGRTMAX
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/epoll.h>
#include ... |
/*
* (C) Copyright 2005- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
* virtue of its status as an int... |
#include <string.h> /* needed for memcpy() */
#include <mex.h>
#include <math.h>
#include "matrix.h"
#include "epph.h" // This is the header file for general lp projections
#define MAXITER 100 //Maximum allowed number of iterations.
#define EPS_M 1e-15 //Machine double-point precision.
#ifndef max
#define max(a, b) ... |
#define _GNU_SOURCE
#include "CGColor.h"
#include <string.h>
#include <stdint.h>
#include <assert.h>
#include <math.h>
// all colors will have alpha set to 0xFF
// unknown is all zero
struct mulle_cstringuint32pair
{
char *name;
uint32_t value;
};
static struct mulle_cstringuint32pair
*mulle_cs... |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or its l... |
/**
*
* @file FR_math.c - c implementation file for basic fixed
* radix math routines
*
* @copy Copyright (C) <2001-2014> <<NAME>>
* @author <NAME> <deftio [at] deftio [dot] com>
* @version 1.01 <NAME>, cleaned up naming
*
* This file contains integer math settable fi... |
#include <stdio.h>
#include "al_load_PE_bmp.h"
load_PE_error load_PE_error_num;
ALLEGRO_BITMAP *load_PE_bmp(const char *filename, int ID) {
ALLEGRO_BITMAP *bmp = NULL;
ALLEGRO_FILE *PE_file;
int n, VirtualRawDiff, entries, bmp_present, ID_located, bmp_start, rsrc_located;
AL_IMAGE_DOS_H... |
/*
* Copyright (C) 2014 The Regents of the University of California.
*
* 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... |
/*
===============================================================================
Name : lpc1769.c
Author : $(author)
Version :
Copyright : $(copyright)
Description : main definition
===============================================================================
*/
#include "lpc1769.h"
#include... |
/******************************************************************************
** **
** The MIT License **
** **
... |
//Vongsprache interpreter
//Copyright (C) 2018 Arc676/<NAME> <<EMAIL>>
///Permission is hereby granted, free of charge, to any person obtaining
//a copy of this software and associated documentation files (the "Software"),
//to deal in the Software without restriction, including without limitation the
//rights to use... |
#include <Arduino.h>
#define PRINTS(...) print_s(__VA_ARGS__)
#define PRINTN(...) print_n2(__VA_ARGS__)
static boolean print_pinno(int i, char *name);
static void print_pinmux(int pin, int pmuxval);
static void decode_EIC(int pin, int pmux);
static void decode_ADC(int pin, int pmux);
static void decode_SERCOM(int pin... |
/*
*+
* Name:
* datMap
* Purpose:
* Map a primitive
* Language:
* Starlink ANSI C
* Type of Module:
* Library routine
* Invocation:
* datMap (HDSLoc *locator, const char *type_str, const char *mode_str, int ndim,
* const hdsdim dims[], void **pntr, int *status);
* Arguments:
*... |
/*
***************************************************************************
* Ralink Tech Inc.
* 4F, No. 2 Technology 5th Rd.
* Science-based Industrial Park
* Hsin-chu, Taiwan, R.O.C.
*
* (c) Copyright, Ralink Technology, Inc.
*
* This program is free software; you can redistribute it and/or modify it
*... |
//*****************************************************************************
//
//! @file main.c
//!
//! @brief NemaGFX example.
//! this example use one frame buffer demonstrate two picture trasition effect,
//! with Nema GPU support, the effect include
//! NEMA_TRANS_LINEAR_H,
//! NEMA_TRANS_CUBE_H,
//! NEMA_TRANS... |
/*
* myproxy-init
*
* Client program to delegate a credential to a myproxy-server
*/
#include "myproxy_common.h" /* all needed headers included here */
#ifndef MAXPATHLEN
#define MAXPATHLEN 4096
#endif
/* Location of default proxy */
#define MYPROXY_DEFAULT_PROXY "/tmp/myproxy-proxy"
static char usage[] = \
"\... |
/**
******************************************************************************
* File Name : main.c
* Description : Main program body
******************************************************************************
** This notice applies to any and all portions of this file
* that are not ... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 d... |
/* pckr02.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__2 = 2;
static integer c__5 = 5;
/* $Procedure PCKR02 ( PCK, read record from type 2 segment ) */
/* Su... |
#include <expressionManager.h>
#include <lib.h>
#include <stdlib.h>
static int precedenceMatrix[5][6] ={
{1,1,0,0,0,1},
{1,1,0,0,0,1},
{1,1,1,1,0,1},
{1,1,1,1,0,1},
{0,0,0,0,0,0}
};
/*Funcion para obtener la precedencia de los operadores en base a la matriz anterior */
int getPrecedence(char tope, ... |
/****************************************************************
battle.c - <NAME>
=============================================================
Copyright 1996-2018 <NAME>. All rights reserved.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and assoc... |
/* 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, merge, publish,
* dis... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.