text stringlengths 7.55k 41.9k |
|---|
#pragma once
typedef struct {
uint8_t *input;
size_t input_len;
uint8_t tag_224[28];
uint8_t tag_256[32];
uint8_t tag_384[48];
uint8_t tag_512[64];
} sha2_test_vector;
static uint8_t input1[] = {
0x61U, 0x62U, 0x63U
};
static uint8_t input2[] = {
};
static uint8_t input3[] = {
0x61U, 0x62U, 0x63U, 0... |
#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... |
/*
* arch/arm/src/stm32/stm32_adc.c
*
* Copyright (C) 2011, 2013 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* ... |
/*
============================================================================
Name : readOutputFile.c
Author : Kito
Version :
Copyright :
Description : Read the output file of matrice_grad, given one of the output file
=========================================================================... |
#include "online.h"
unsigned long search_endpoint(char **endpoints, char *plainText, unsigned long mt, int pwdLength) {
unsigned long lower = 0;
unsigned long upper = mt - 1;
unsigned long step = sizeof(char) * pwdLength;
while (lower <= upper) {
unsigned long mid = 1 + (lower + (upper - lower... |
#include "config.h"
#include "xyzsh.h"
#include <string.h>
#include <stdio.h>
static unsigned int get_uobject_value(sObject* self, char* key)
{
unsigned int i = 0;
while(*key) {
i += *key;
key++;
}
return i % SUOBJECT(self).mTableSize;
}
static void resize(sObject* self)
{
const int tabl... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2015 <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... |
/* $OpenBSD: efiboot.c,v 1.13 2016/06/10 18:36:06 jcs Exp $ */
/*
* Copyright (c) 2015 <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 cop... |
/*
* PIM for Quagga
* Copyright (C) 2008 <NAME>
*
* 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 pro... |
#include <pogo.h>
#include "misc.h"
#include "iwram.h"
#include "viewer.h"
/* These macros are so that we can generate the AA&N multipliers at
* compile-time, allowing configuration control of fixed point precision.
*/
#define JPEG_AAN_0 1.0
#define JPEG_AAN_1 1.387039845
#define JPEG_AAN_2 1.306562965
... |
#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... |
/*
* 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, distribut... |
/*
* fastimg -
* Faster reading and writing of image files.
*
* This code should work on machines with any byte order.
*
* Could someone make this run real fast using multiple processors
* or how about using memory mapped files to speed it up?
*
* <NAME> - 1991
*
* Changed to return sizes.
* ... |
/*<html><pre> -<a href="qh-mem.htm"
>-------------------------------</a><a name="TOP">-</a>
mem.c
memory management routines for qhull
This is a standalone program.
To initialize memory:
qh_meminit(stderr);
qh_meminitbuffers(qh IStracing, qh_MEMalign, 7, qh_MEMbufsiz... |
/*
* 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 ... |
/*
* 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... |
/* bigBed - stuff to handle loading and display of bigBed type tracks in browser.
* Mostly just links to bed code, but handles a few things itself, like the dense
* drawing code. */
/* Copyright (C) 2014 The Regents of the University of California
* See kent/LICENSE or http://genome.ucsc.edu/license/ for licensin... |
/*
ccid.c: CCID common code
Copyright (C) 2003-2010 <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) any ... |
/*-
* Copyright 2003-2011 Netlogic Microsystems (Netlogic). 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
* no... |
# include <stdio.h>
# include <stdlib.h> /* atoi, atof */
# include <string.h>
# include <xtables.h>
# include "../stis.h"
# include "calstis6.h"
# include "../stiserr.h"
static int syntax_error (char *);
static int getArgI (char **, int, int *, int *);
static int getArgD (char **, int, int *, double *);
/*
Pro... |
#include <SDL.h>
#include <SDL_gfxPrimitives.h>
#include <SDL_ttf.h>
#include <SDL_image.h>
#include "stall_ini.h"
#include "stall_types.h"
extern global_t global;
extern TTF_Font *font[5];
extern player_ship_t *player_ship;
extern enemy_ship_t enemy_ship[MAX_ENEMIES];
extern bullet_t player_bullet[PLAYER_BULLETS];
e... |
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2018 Intel Corporation. All rights reserved.
//
// Author: <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
#include <stdarg.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <math.h>
#include <sof/lib/uuid.... |
#include "geommech.h"
#include "lagrange.h"
void print_context_lagrange(void *_ctx)
{
LagrangeContext *ctx = (LagrangeContext *) _ctx;
int32 ir, ic;
output("iel: %d\n", ctx->iel);
output("is_dx: %d\n", ctx->is_dx);
output("e_coors_max:\n");
fmf_print(ctx->e_coors_max, stdout, 1);
output("order: %d\n... |
#include "cache.h"
#include "commit.h"
#include "commit-graph.h"
#include "decorate.h"
#include "prio-queue.h"
#include "tree.h"
#include "ref-filter.h"
#include "revision.h"
#include "tag.h"
#include "commit-reach.h"
/* Remember to update object flag allocation in object.h */
#define REACHABLE (1u<<15)
#define ... |
/*
* Copyright (C) 2014 BlueKitchen GmbH
*
* 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 foll... |
/* max connections module for nginx
* Copyright 2008 Engine Yard, Inc. All rights reserved.
* Author: <NAME> (<EMAIL>)
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>
#include <ngx_http.h>
#include <ngx_http_upstream.h>
#include <assert.h>
typedef struct {
ngx_uint_t max_connections;
n... |
/**
** @file yafMeta2Pcap
*
* This program takes the pcap meta file created by YAF
* and a flow key hash and start time and creates the pcap file
* for the flow.
* Use the getFlowKeyHash program to calculate the flow key hash.
*
** ------------------------------------------------------------------------
** Copyright (C... |
/**
*
* @file
*
* PLASMA is a software package provided by:
* University of Tennessee, US,
* University of Manchester, UK.
*
* @generated from /home/luszczek/workspace/plasma/bitbucket/plasma/compute/pzhetrf_aasen.c, normal z -> c, Fri Sep 28 17:38:12 2018
*
**/
#include <math.h>
#include "plasma_async.h"... |
/*
* Test various digital filter algorithms.
* Notes:
* Filtersize is the number of input terms to the filter.
* Must be an odd number. For some implementations only
* 33 and 17 are legal values
*
* Downsample can be any positive integer, but some implementions only support
* 2 or 4
*
* Input dat... |
/**************************************************************
* Copyright (C) 2001 <NAME>, Optical Access
*
* All Rights Reserved
*
* Permission to use, copy, modify and distribute this software and its
* documentation for any purpose and without fee is hereby granted,
* provided that the... |
/*
* lws abstract display implementation for SSD1675B on SPI
*
* Copyright (C) 2019 - 2022 <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, inclu... |
/*
"Crypto implementing the SHA-512 hash algorithm"
Copyright: 2019 by <NAME>
Authors: <NAME>
License: MIT
https://github.com/robertdavidgraham/sockdoc/blob/master/src/LICENSE
Dependencies: none
Standard: FIPS 180-3
http://csrc.nist.gov/publications/fips/fips180-3/fips180-3_fina... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Author: <NAME> (<EMAIL>)
*
* IOAM tester for IPv6, see ioam6.sh for details on each test case.
*/
#include <arpa/inet.h>
#include <errno.h>
#include <limits.h>
#include <linux/const.h>
#include <linux/if_ether.h>
#include <linux/ioam6.h>
#include <linux/ipv6.h>
#include <st... |
/* ======================================================================
Userspace scan tool for the Microtek 3600 scanner
grayscale scan routine
(C) <NAME> 2001
====================================================================== */
#include "scantool.h"
/* ****************************************************... |
/* Module: mBestImage.c
Version Developer Date Change
------- --------------- ------- -----------------------
1.2 <NAME> 05Oct07 Add check for lower case "url"
1.1 <NAME> 04Oct07 Corrected handling of WCS (no corner) data
1.0 <NAME> 14Feb05 Baseline code
*/
#incl... |
/* lock.c : functions for manipulating filesystem locks.
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional informa... |
#include "sctk.h"
int null_alt_WORD(void *p){
return (TEXT_strcmp(((WORD *)p)->value, (TEXT *)"@") == 0);
}
int opt_del_WORD(void *p){
return (((WORD *)p)->opt_del);
}
/* Description of the cost structure:
0 -> Correct
0.001 -> Insertion, deletion of '@' (a NULL)
1 -> Substitution of '... |
/******************************************************************************************************
* ZhaoTianyang *
* Malloc-lab *
* Version 4.0 ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdbool.h>
#include <curl/curl.h>
#include <curl/multi.h>
#include <lua.h>
#include <lauxlib.h>
#include <pthread.h>
#include <skynet.h>
#include <skynet_handle.h>
#include <skynet_server.h>
#include <assert.h>
#define RESULT_... |
#include "huffman.h"
#include "utils.h"
#include "pngenc.h"
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
static const uint8_t bit_reverse_table_256[] =
{
0x00, 0x80, 0x40, 0xC0, 0x20, 0xA0, 0x60, 0xE0, 0x10, 0x90, 0x50, 0xD0, 0x30, 0xB0, 0x70, 0xF0,
0x08, 0x88, 0x48, 0xC8, 0x28, 0... |
/* glpnet04.c (grid-like network problem generator) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
*
* This code is a modified version of the program GRIDGEN, a grid-like
* network problem generator developed by <NAME> and <NAME>... |
/* config.h. Generated by configure. */
/* config.in. Generated from configure.ac by autoheader. */
/* Define to 1 if the compiler supports long long. */
#define CC_HAS_LONG_LONG 1
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
systems. This function is required for `alloca.c' suppor... |
#include <dc_fsm/fsm.h>
#include <dc_posix/dc_time.h>
#include <stdio.h>
#include <stdlib.h>
#include <ncurses.h>
#include <stdio.h>
#include <string.h>
#include <client.h>
#include <dc_posix/dc_poll.h>
#include <dc_posix/dc_netdb.h>
#define MAX_NUM_BEACONS 20 //number of ibeacons
#define MAX_MAJOR_MINOR 35 //This is ... |
#include <stdio.h>
#include <math.h>
#include <mex.h>
double Intdd(int i, int j, int k, \
double g00, double g01, double g02, \
double g10, double g11, double g12, \
double g20, double g21, double g22, \
double g30, double g31, double g32);
/* -------- Heart of the mex file------... |
/**
* Copyright 2022 <NAME>(<EMAIL>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
#include "light.h"
#include "node.h"
#include "spatial.h"
#include "model.h"
#include <utils/nk.h>
#include <utils/drawable.h>
#include <utils/str.h>
#include <candle.h>
#include <systems/editmode.h>
#include <systems/window.h>
#include <stdlib.h>
#include <systems/render_device.h>
#include <components/sprite.h>
#inclu... |
/*****************************************************************************
* Licensed to Qualys, Inc. (QUALYS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* QUALYS licenses this file to You under ... |
/*
* crypto.c
*
* Crypto libs from http://github.com/b1l1s/ctr
*/
#include "crypto.h"
#include "memory.h"
#include "fatfs/sdmmc/sdmmc.h"
/****************************************************************
* Crypto libs
****************************************************************/
/* original v... |
/******************************************************************************
Filename: tt2mat.c
Function: mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
Input:
Filename [string] required
ParameterString [string] optional
Index Vector ... |
// All Micro Python objects are at least this type
// It must be of pointer size
typedef machine_ptr_t mp_obj_t;
typedef machine_const_ptr_t mp_const_obj_t;
// Integers that fit in a pointer have this type
// (do we need to expose this in the public API?)
typedef machine_int_t mp_small_int_t;
// The machine floatin... |
/*
* Copyright (c) 2017, MammothDB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions ... |
#include "limbo.h"
static Inst **breaks;
static Inst **conts;
static Decl **labels;
static Node **bcscps;
static int labdep;
static Inst nocont;
static int scp;
static Node *scps[MaxScope];
static void
pushscp(Node *n)
{
if (scp >= MaxScope)
fatal("scope too deep");
scps[scp++] = n;
}
static void
popscp(void)
{... |
#include "Classic6dofKine.h"
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
#include <string.h>
#include <math.h>
#define sqrtf(X) (float)sqrt(X)
#define sinf(X) (float)sin(X)
#define cosf(X) (float)cos(X)
#define asinf(X) (float)asin(X)
#define acosf(X) (float)acos(X)
#define atanf(X) (float)a... |
#include <tice.h>
#include <graphx.h>
#include <keypadc.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fileioc.h>
#include <debug.h>
#include <math.h>
#include <compression.h>
#include "gfx/errorgfx.h"
/* globals */
#define BYTES_PE... |
//
// Created by uberdever on 06.09.2020.
//
#include "player.h"
static Weapon weapons[C_PLAYER_WEAPON_COUNT];
void player_init(Player *player)
{
player->momentum = (v2_t){};
player->hitbox_radius = C_PLAYER_HITBOX_RADIUS;
player->max_hp = C_PLAYER_MAX_HP;
player->hp = C_PLAYER_MAX_HP;
player->h... |
/*
Broadcom B43legacy wireless driver
Transmission (TX/RX) related functions.
Copyright (C) 2005 <NAME> <<EMAIL>>
Copyright (C) 2005 <NAME> <<EMAIL>>
Copyright (C) 2005, 2006 <NAME> <<EMAIL>>
Copyright (C) 2005 <NAME> <<EMAIL>>
Copyright (C) 2005 <NAME> <<EMAIL>>
Copyright (C) 2007 <NAME> <<EMAIL>>
... |
/* Copyright 2012 Google Inc. All Rights Reserved.
* Author: <EMAIL> (<NAME>)
*/
#include "sysvar.h"
static const unsigned long crc_table[256] = {
0x00000000L, 0x77073096L, 0xee0e612cL, 0x990951baL, 0x076dc419L,
0x706af48fL, 0xe963a535L, 0x9e6495a3L, 0x0edb8832L, 0x79dcb8a4L,
0xe0d5e91eL, 0x97d2d988L, 0x09b64... |
/* $XFree86: xc/programs/Xserver/mi/miexpose.c,v 3.14 2007/04/09 15:37:18 tsi Exp $ */
/***********************************************************
Copyright 1987, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without f... |
#define _POSIX_C_SOURCE 200809
#include <ctype.h>
#include <limits.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <strings.h>
#include "stringop.h"
#include "sway/input/input-manager.h"
#include "sway/input/cursor.h"
#include "sway/input/seat.h"
#include "sway/ipc-server.h"
#include "sway/outpu... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/* bitarr.c */
/**************************************************************************
Bit Vectors in C
FILENAME: bitarr.c
LANGUAGE: ANSI C
REQUIRES: "types.h" (see below for minimal contents)
AUTHOR: <NAME> <<EMAIL>>
CREATED: 22 March 1995
MODIFIED: 20 July 1996
(see http://www.cs... |
/* This file utility reports hardware info and native event availability */
/** file papi_native_avail.c
* @page papi_native_avail
* @brief papi_native_avail utility.
* @section NAME
* papi_native_avail - provides detailed information for PAPI native events.
*
* @section Synopsis
*
* @section Description
* ... |
/*
Encode CSV file into MIDI
The CSV file must be in the format generated by midicsv--while
you can add and delete events and change their contents, the
overall organisation of the file must be the same.
Designed and implemented in October of 1998 by <NAME>.
Revised and updated in February ... |
/*
* lib/nl.c Core Netlink Interface
*
* 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 version 2.1
* of the License.
*
* Copyright (c) 2003-2008 <NAME> <<EMAIL>>
*/
/**
* @defg... |
/*
*
* 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"); y... |
/*
* Linux driver for VMware's vmxnet3 ethernet NIC.
*
* Copyright (C) 2008-2009, VMware, Inc. 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 as published by the
* Free Software Foundation; version 2 of the Lice... |
/*
* FFmpegMediaMetadataRetriever: A unified interface for retrieving frame
* and meta data from an input media file.
*
* Copyright 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the ... |
/*
* MIT/X Consortium License
*
* © 2020 <NAME> <pszynk at gmail dot com>
* © 2016-2020 <NAME> <hoskeowl at gmail dot com>
* © 2013-2016 <NAME> <kuba.klinkovsky at gmail dot com>
* © 2010-2011 <NAME>
* © 2006-2008 <NAME> <garbeam at gmail dot com>
*
* Permission is hereby granted, free of charge, to an... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
/*
* Copyright (c) 2016, <EMAIL>
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <getopt.h>
#include <string.h>
#include <signal.h>
#include <sys/socket.h>
#include "ofp.h"
#include "ofp_vs.h"
#define MAX_WORKERS 32
/**
* Parsed command line application arguments
*/
typedef str... |
#include <stdio.h>
int print_hash_value = 1;
static void platform_main_begin(void)
{
}
static unsigned crc32_tab[256];
static unsigned crc32_context = 0xFFFFFFFFUL;
static void
crc32_gentab (void)
{
unsigned crc;
unsigned poly = 0xEDB88320UL;
int i, j;
for (i = 0; i < 256; i++) {
crc = i;
for (j = 8; j > 0; j--... |
/*************************************************************************
* *
* ROUTINES IN THIS FILE: *
* *
* ... |
/**
* @file obint.c
* @brief obint Method Implementation
* @author theck
*/
#include "../../include/obint.h"
#include "../../include/private/obint_private.h"
/** maximum number of decimal digits to operate on as one int64_t */
uint8_t int64_max_digits = 17;
/* PUBLIC METHODS */
obint * obint_new(int64_t num){
... |
/******************** (C) COPYRIGHT 2014 ANO Tech ********************************
* 作者 :匿名科创
* 文件名 :ctrl.c
* 描述 :飞控控制
* 官网 :www.anotc.com
* 淘宝 :anotc.taobao.com
* 技术Q群 :190169595
**********************************************************************************/
#include "ctrl.h"
#include "height_c... |
/**
* collectd - src/mysql.c
* Copyright (C) 2006-2010 <NAME>
* Copyright (C) 2008 <NAME>
* Copyright (C) 2009 <NAME>
* Copyright (C) 2009 <NAME>
* Copyright (C) 2009 <NAME>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General... |
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Display functions used in kernel selection.
*/
#include "sysincludes.h"
#include "bmpblk_font.h"
#include "gbb_access.h"
#include "gbb_head... |
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <getopt.h>
#include <string.h>
#include <libgen.h>
#include <dirent.h>
#include <time.h>
#include <stdbool.h>
#include <ctype.h>
#include "clocking.h"
#include "../drivers/bluenoc.h"
/* Bluespec's Board ID list */
typedef struct {
... |
/*
* Copyright (c) 2005 Topspin Communications. All rights reserved.
* Copyright (c) 2005 Mellanox Technologies Ltd. All rights reserved.
* Copyright (c) 2006 Cisco Systems. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under ... |
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/
#define import_spp
#define import_libc
#define import_stdio
#define import_knames
#define import_xwhen
#define import_ctype
#include <iraf.h>
#include "config.h"
#include "clmodes.h"
#include "operand.h"
#include "clmodes.h"
#include ... |
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
** This notice applies to any and all portions of this file
* that are not betwe... |
/***************************************************************************************
*
* MIDITONES_SCROLL
*
* Decode a PLAYTUNE bytestream of notes as a time-ordered scroll, sort of like a
* piano roll with non-uniform time. This is a command-line program with no GUI.
*
*
* There are two primary uses:
*
* (1) ... |
/*
* FroggerProject.c
*
* Main file
*
* Author: <NAME>.
* Heavily revised by <NAME>.
* Student ID: 42846413
*/
// Libraries
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include <stdio.h>
#include <stdlib.h>
// Project files
#include "eeprom.h"
#include "ledmatrix.h"
#include "scr... |
// blobby.c
// blob file archiver
// COMP1521 20T3 Assignment 2
// Written by <<NAME>>
#include <assert.h>
#include <dirent.h>
#include <errno.h>
#include <spawn.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include... |
/**
* rutabaga: an OpenGL widget toolkit
* Copyright (c) 2013-2018 <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 copyr... |
/**
* @memo Routines for constructing the VDSlib vertex tree.
* @name Building the vertex tree
*
* These routines provide a flexible interface for specifying the geometry
* of the original model, and for constructing the VDSlib vertex tree upon
* the vertices of that underlying high-resolution model.<p>
*
* Bu... |
/*
Copyright 1996, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in suppor... |
/* -*- C -*-
Copyright (C) 2009 <NAME> <<EMAIL>>
Copyright (C) 2010, 2012-2013, 2017 <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 3 of the License, or
(... |
/* IBM_PROLOG_BEGIN_TAG */
/*
* Copyright 2003,2016 IBM International Business Machines Corp.
*
* 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/LIC... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the program */
/* GCG --- Generic Column Generation */
... |
#include "Python.h"
#define NPY_NO_DEPRECATED_API NPY_1_14_API_VERSION
#include "numpy/arrayobject.h"
//#include "PTripepClosure.h"
#define NEAREST_INT(a) ((int) ((a) + (0.5)))
static inline int modulo(int x, int N)
{
int ret = x % N;
if (ret < 0)
ret += N;
return ret;
}
static PyObject *correlation_gra... |
/****************************************************************************
*
* Copyright (C) 2021 PX4 Development Team. 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. Redistri... |
/* Copyright (c) 2010, RWTH Aachen 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:
* * Redistributions of source code must retain the above
* copyright notice, this lis... |
/*--------------------------------------------------------------------
This source distribution is placed in the public domain by its author,
<NAME>. You may use it for any purpose, free of charge,
without having to notify anyone. I disclaim any responsibility for any
errors.
Optionally, please be nice and tell me if ... |
/*
* led line editor v2
* 6/2020 k theis
* compile with cc -o led led.c -Wall -ansi
*
* This (version 2) started out as a 30 line program for a shell I wrote.
* Commands are simple & easy to remember for fast typers. Note: I avoided
* certain C99 shortcuts to keep this ansi compliant. I use this on several
* ol... |
/*
* Copyright (c) 2014, 2015 <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... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright (c) 2006 <NAME>
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
*... |
/*
* Copyright 2016 Broadcom
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2, as
* published by the Free Software Foundation (the "GPL").
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT A... |
#include "circuit.h"
#include "math.h"
#include <stb_ds.h>
#include <assert.h>
#include <stdlib.h>
static
Id next_cp_id(Circuit *self)
{
self->next_cp_id++;
return self->next_cp_id;
}
static
Id next_wire_id(Circuit *self)
{
self->next_wire_id++;
return self->next_wire_id;
}
void destroy_action(Actio... |
/*
* Tests for PIO distributed arrays.
*
* @author <NAME>
* @date 2/21/17
*/
#include <config.h>
#include <pio.h>
#include <pio_internal.h>
#include <pio_tests.h>
#include <sys/time.h>
#ifdef USE_MPE
#include <mpe.h>
#endif /* USE_MPE */
/* The number of tasks this test should run on. */
#define TARGET_NTASKS 16
... |
/*
* play.c: movie playback
*
* Copyright 2005
* See the COPYING file for more information on licensing and use.
*
* This file contains all functions relating to playing back a movie.
*/
#include <windows.h>
#include <winsock2.h>
#include <stdio.h>
#include <fcntl.h>
#include <io.h>
#include <sys/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.