text stringlengths 5.8k 28.2k |
|---|
/*=============================================================================
This file has been adapted from the implementation
(available at, Public Domain https://github.com/KULeuven-COSIC/SABER)
of "Saber: Module-LWR based key exchange, CPA-secure encryption and CCA-secure KEM"
by : <NAME>, <NAME>, <NAME>, and <N... |
//---- LGPL --------------------------------------------------------------------
//
// Copyright (C) <NAME>, 2011-2016.
//
// 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.
... |
/**
* Copyright (c) 2016, <NAME>, <NAME>
*
* 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.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DI... |
/******************** (C) COPYRIGHT 2013 **************************************
* File Name : p1_PC_handler.c
* Author : deh
* Date First Issued : 03/24/2013
* Board : Olimex board (USART2)
* Description : Handler comm with PC
**************************************************... |
#include "morus.h"
void print_state(state state) {
printf("--------------------------------------------\n");
printf(" S0 | S1 | S3 | S3 | S4 \n");
printf("%08x %08x %08x %08x %08x\n", state[0][3], state[1][3], state[2][3], state[3][3], state[4][3]);
printf("%08x %08x %08x %08x %08x\n", stat... |
#include "kernel/kernel.h"
#include "kernel/clock.h"
#include <sys/types.h>
#include <machine/cpu.h>
#include <minix/board.h>
#include <minix/mmio.h>
#include <assert.h>
#include <io.h>
#include <stdlib.h>
#include <stdio.h>
#include "arch_proto.h"
#include "bsp_timer.h"
#include "omap_timer_registers.h"
#include "omap... |
/*
* Copyright (c) 2021 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... |
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <time.h>
#include <unistd.h>
#define E_FACTOR_FIXED_POINT 4096
#define E_FACTOR_MIN ((uint32_t) (1.3f * E_FACTOR_FIXED_POINT))
struct Flashcard {
uint32_t e_factor;
ui... |
//Roll no :20CS60R60
//Name : <NAME>
//A4
//Compilation command for server : gcc server.c -o server
//Running command for server : ./server PORT
#include<stdio.h> //for performing input and output
#include<stdlib.h> //for general functions
#include<string.h> //for strlen ,strcmp, strc... |
/*
* Author: <NAME>
* Date: 2018-06-07
* Proyecto Final Protocolos de Comunicacion en sistemas embebidos
* Logueo de errores en el proyecto final Procesador de audio digital para radios online y radios FM.
*/
/*==================[inclusions]=============================================*/
//#include "rtc... |
/* GStreamer
* Copyright (C) 1999,2000 <NAME> <<EMAIL>>
* 2000,2005 <NAME> <<EMAIL>>
*
* gstosssrc.c:
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* v... |
/* wikiTrack - handle the wikiTrack section. */
/* Copyright (C) 2013 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "hash.h"
#include "linefile.h"
#include "dystring.h"
#include "spDb.h"
#include "web.h"
#include "hgCo... |
/**
*
* \section COPYRIGHT
*
* Copyright 2013-2015 Software Radio Systems Limited
*
* \section LICENSE
*
* This file is part of the srsLTE library.
*
* srsLTE is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Soft... |
/*
* Copyright (C) 2021 <NAME>
*
* This file is part of "fansi - ANSI Control Sequence Aware String Functions"
*
* 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... |
/* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... |
/*
* Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
*/
/*
* lib/krb5/krb/gc_via_tgt.c
*
* Copyright 1990,1991 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from ... |
// libmylcd - http://mylcd.sourceforge.net/
// An LCD framebuffer library
// <NAME>
// <EMAIL>
// Copyright (c) 2005-2009 <NAME>
//
// This program 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... |
/**
* @file cmds_management.c
* @copyright 2022 Silicon Laboratories Inc.
*/
#include <serialappl.h>
#include <cmds_management.h>
#include <ZW_application_transport_interface.h>
#include <utils.h>
#include <MfgTokens.h>
#include <serialapi_file.h>
#include <ZAF_Common_interface.h>
#include <ZAF_types.h>
#include <s... |
/* FCE Ultra - NES/Famicom Emulator
*
* Copyright notice for this file:
* Copyright (C) 2006 CaH4e3
*
* 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 Licen... |
/**
*
* @file pcunmqr_blgtrd.c
*
* PLASMA auxiliary routines
* PLASMA is a software package provided by Univ. of Tennessee,
* Univ. of California Berkeley and Univ. of Colorado Denver
*
* @version 2.6.0
* @author <NAME>
* @date 2011-05-15
* @generated c Tue Jan 7 11:45:13 2014
*
**/
#include <lapacke.h... |
/*****************************************************************
Original script by <NAME> 2012-10-23.
Modified by <NAME> 2013-11-11. Added Time and 3BV.
Modified during 2019-02 by <NAME>. Added ELSE statements so Mode and Marks
always print (so same number of lines in output), changed Version code to work wit... |
// Copyright 2017 Raphael 'kena' Poss
//
// 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... |
/*
Copyright (c) 1991-1999 <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, publi... |
/*-
* Copyright (c) 2013 <NAME>
*
* 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 following disclai... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) 2019 ST... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <math.h>
#include <string.h>
#include <pthread.h>
#ifdef SYSLAB_CACHE
# include "memcached-orig.h"
#else
# include "memcached.h"
#endif
#include "dablooms.h"
#include "sbuf.h"
#include "statistics.h"
#include "statistics_proto.h"
#include "murmur3_has... |
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
/*
** stub main for testing Ficl
** Id: //depot/gamejones/ficl/main.c#2
*/
/*... |
/* lab5-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... |
const float dot_radius = 0.05;
//const dot_radius = 20;
const float dot_radius_pow = dot_radius * dot_radius;
const float dot_diameter = dot_radius * 2.0;
const float dot_diameter_pow = dot_diameter * dot_diameter;
#define NUM_DOTS 1000
const int num_dots = NUM_DOTS;
float dots_array[NUM_DOTS * 2 + 1];// * 4];
floa... |
#include <stdio.h>
#include "ucos_ii.h"
#include "nuclei_sdk_soc.h"
#include "os_cpu_port.h"
//#define ENABLE_KERNEL_DEBUG
#ifdef ENABLE_KERNEL_DEBUG
#define UCOSII_PORT_DEBUG(...) printf(__VA_ARGS__)
#else
#define UCOSII_PORT_DEBUG(...)
#endif
#ifndef configASSERT
#define configASSERT( x )
... |
/* $NetBSD: kern_exit.c,v 1.65 1999/03/24 05:51:22 mrg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME> of the Numerical Aerospace Simulation Facility,
* NASA Ames Research Center.
*
* Re... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
/* =====================================================================
Copyright © 2016, Avnet (R)
www.avnet.com
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.... |
/*********************************************************************
* _ _ _
* _ __ | |_ _ | | __ _ | |__ ___
* | '__|| __|(_)| | / _` || '_ \ / __|
* | | | |_ _ | || (_| || |_) |\__ \
* |_| \__|(_)|_| \__,_||_.__/ |___/
*
* www.rt-labs.com
* Copyright 2018 rt-labs AB, Sweden.
... |
/*!
* \file mantissa.c
*
* \brief SPX module decode-side utility functions.
*
* Part of the Spectral Extension Module.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "debug.h"
#include "ac3dec.h"
#define DITHSCALE FRACT(0.707106781) /*!< Mantissa dither scale factor */
#define Q(x) (qua... |
/*
# <<BEGIN-copyright>>
# Copyright 2019, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: MIT
# <<END-copyright>>
*/
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <nf... |
#include "includes\Main.h"
/** Function to row-reduce matrix using Gauss-Jordan elimination */
void reduceMatrix(struct _matrix *m, struct _matrix *i) {
/** Create matrix to use for reference to verify matrix is reduced */
struct _matrix *reference = createIdentityMatrix();
/** Data structure for progress check ... |
/*-
* Copyright (c) 2012-2014 <NAME>
* All rights reserved.
*
* This software was developed by SRI International and the University of
* Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
* ("CTSRD"), as part of the DARPA CRASH research programme.
*
* Redistribution and use in source and... |
/*
*/
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h> /* C99 boolean types */
#include <signal.h> /* signal handling */
#include <errno.h> /* provides global variable errno */
#include <string.h> /* basic string functions */
#include <ctype.h>
#inclu... |
/* GDM - The Gnome Display Manager
* Copyright (C) 1998, 1999, 2000 <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, or
* (at your option... |
//
// (w)ritten by <NAME> 2006, mailto:<EMAIL>
//
#include "gettypeinfo.h"
#include <stdio.h>
//
void GetMoreInformation(HDEVINFO hDevInfo, SP_DEVINFO_DATA spDevInfoData)
{
GUID guid = {0};
wchar_t szName[128] = {0};
DWORD dwAddr;
if (SetupDiGetDeviceRegistryProperty(hDe... |
/*
* C wrapper for Perple_X v6.6.8
* - Perple_X by <NAME> (see http://www.perplex.ethz.ch/)
* - This wrapper by <NAME> (<EMAIL>)
*/
/* Changes:
* - 2018-03-15: Changes in parameters to accomodate changes in ppx-6.8.1 (Julien Cornet)
* Change in common block cxt15: K19 replaced k5 in the declaration
* - 201... |
#include "api_hal_gpio.h"
#include "stdint.h"
#include "stdbool.h"
#include "api_debug.h"
#include "api_os.h"
#include "api_hal_pm.h"
#include "api_os.h"
#include "api_event.h"
#include "time.h"
#include "api_sys.h"
#include "hal_iomux.h"
#include "api_event.h"
#include "api_sms.h"
#include "api_hal_uart.h"
#include "a... |
//=======================================================================
// Project Polyphony
//
// File:
// pl_matrix4.c
//
// Abstract:
// matrix4 class implementation
//
// Created:
// 22 July 2008
//
// Copyright (c) 2008 <NAME>, All rights reserved.
//
//==================================================... |
/* DO NOT EDIT THIS FILE */
/* PRODUCED AUTOMATICALLY BY MakeErrInc and GetMsgCat */
/* MPI_SUCCESS */
static char *(kind0[])={"No Error","",(char *)0};
/* MPI_ERR_BUFFER */
static char *(kind1[]) = {
"Invalid buffer pointer",
"",
"Cannot attach buffer when a buffer already exists",
"",
"Insufficent sp... |
/*
Copyright 2018 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writi... |
#include "fss.h"
#include "floram_util.h"
#include "ackutil.h"
#include <omp.h>
struct fss_offline {
size_t size;
size_t blockmultiple;
size_t startlevel;
size_t endlevel;
void * Z;
bool * advicebits_l;
bool * advicebits_r;
void * level_data;
void * level_bits;
void * keyL;
void * keyR;
uint32_t readycount... |
#include <stdio.h>
#include <string.h>
#include <malloc.h>
int read16(unsigned char * buf) {
return (buf[0]<<8)|buf[1];
}
void write16(int in, unsigned char * buf) {
buf[0]=in>>8;
buf[1]=in&0xff;
}
int read32(unsigned char * buf) {
return (buf[0]<<24)|(buf[1]<<16)|(buf[2]<<8)|buf[3];
}
typedef struct ... |
/******************************************************************************
* @section DESCRIPTION
*
* This subroutine controls the model core, it solves both the energy and water
* balance models, as well as frozen soils.
******************************************************************************/
#include <vi... |
/**
Copyright (C) 2003, 2004 <NAME>, <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,
modi... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <assert.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <errno.h>
#include <time.h>
#include <poll.h>
#include <string.h>
#include <unistd.h>
// <NAME> #a&a suggested the shift register
// approach.
// build a minute long shift register.
//... |
/*
Copyright (C) 2006-2007 <NAME>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed i... |
/*
* Course Code 350
*
* A Multithreaded Tiny HTTP Server
* Demonstrating Thread Pool Management
* Following the Thread Pool Management
* Outline from Unix Network Programming Vol 1
* by <NAME>.
*
* Project accomplished by: <NAME>
* Reg No. 2000 330 096
* Sec... |
/* SPDX-License-Identifier: BSD-3-Clause */
#include <stdio.h>
#include <stdbool.h>
#include <time.h>
#include <uci.h>
#include <uci_blob.h>
#include <target.h>
#include "ovsdb.h"
#include "ovsdb_update.h"
#include "ovsdb_sync.h"
#include "ovsdb_table.h"
#include "ovsdb_cache.h"
#include "nl80211.h"
#include "radi... |
#include "alloc.h"
#include <memory.h>
#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
#include <stdio.h>
#define ALLOC_DATA(node) ((void*)((char*)(node) + sizeof(alloc_node)))
#define ADJUST_OFFSET(ptr, offset) ((void*)((char*)(ptr) + (offset)))
// TODO: make this a balanced tree
typedef struc... |
/*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
t30util.c
Abstract:
Utilities for t30
Author:
<NAME> (RafaelL) 2-Feb-1996
Revision History:
--*/
#define USE_DEBUG_CONTEXT DEBUG_CONTEXT_T30_MAIN
#include "prep.h"
#include "glbproto.h"
#include "t30gl.h"
... |
/*
*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
/* cint */
/* extern int _bcm_common_rx_cos_max_len_set(int unit, int cos, int max_q_len); */
int cos_limit... |
/*
* Copyright (c) 2004-2006 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... |
#ifdef __clang__
// Disabling these warnings is for libraries only.
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdouble-promotion"
#pragma clang diagnostic ignored "-Wstrict-prototypes"
#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion"
#pragma clang diagnostic ignored "-Wdeprecated... |
/*
* Copyright (C) 2007 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... |
/* read and set the time zone field in the nvram
NOTE: at this time no checking is done on the time zone
information. You type it we store it.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sysface.h"
long zone_off;
typedef struct tz
{
long offset;
char *name;
char *text;
} TZ;
ex... |
#include <string.h>
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <uv.h>
#include "nvim/ascii.h"
#include "nvim/lib/kvec.h"
#include "nvim/log.h"
#include "nvim/event/loop.h"
#include "nvim/event/libuv_process.h"
#include "nvim/event/rstream.h"
#include "nvim/os/shell.h"
#include "nvim/os/sign... |
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#undef EXTERN
#define EXTERN
#include "gg.h"
#include "opt.h"
void
compile(Node *fn)
{
Plist *pl;
Node nod1;
Prog *ptxt;
int32 lno;
Type *t;
Iter save;
... |
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2016 Intel Corporation. All rights reserved.
//
// Author: <NAME> <<EMAIL>>
#include <sof/audio/buffer.h>
#include <sof/common.h>
#include <sof/debug/panic.h>
#include <sof/drivers/ipc.h>
#include <sof/lib/alloc.h>
#include <sof/lib/cache.h>
#include <sof/lib... |
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE 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 app... |
//
/* RRP SINGLE CORE Schedule Generator (Magic7)
* Author:: <NAME>, <NAME>
* Copyright 2019-2020 - RTLAB UNIVERSITY OF HOUSTON */
// Created by <NAME> Paluri on 2019-07-22.
// ---------------------------------------------
// Last upadted on September 12, 2021
// ----------------------------------------------------... |
/********************************************************************/
/* Dcon.c - daemon updates the channel relays once a minute unless */
/* the user requests an immediate update */
/********************************************************************/
#include <sys/sem.h>
#include <sys/ipc.h>
#include <sys/t... |
/*
* Copyright <NAME> & others (see README.md)
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
typedef struct {
ngx_http_complex_value_t *realm;
ngx_http_complex_value_t socket;
} ngx_http_auth_saslauthd_loc_conf_t;
static ngx_int_t ngx_http_auth_saslauthd_handler(ngx_http_requ... |
/*
* USB Hanwang tablet support
*
* Copyright (c) 2010 <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, or
* (at your option)... |
/* $Id: minihttptestserver.c,v 1.10 2012/05/01 16:24:36 nanard Exp $ */
/* Project : miniUPnP
* Author : <NAME>
* Copyright (c) 2011 <NAME>
* This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution.
* */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#inc... |
/*
* 6303 assembler.
*
* Tables
*
* TODO: Add aliased branches etc for 6803
* Add 6303 specific instructions (AIM etc)
*/
#include "as.h"
SYM sym[] = {
{ 0, "a", TBR, A },
{ 0, "b", TBR, B },
{ 0, "d", TWR, D },
{ 0, "x", TWR, X },
{ 0, "defb", TDEFB, XXXX },
{ 0, "defw", TDEFW, XXXX }... |
/*
*******************************************************************************
*
* Copyright (C) 1999-2008, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
* file name: store.c
* encoding: US... |
/* G - X X X . C
* BRL-CAD
*
* Copyright (c) 1993-2014 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as p... |
/*
* Copyright (c) 2013 <NAME>, the University of Tokyo, All rights reserved.
*
* Permission of redistribution and use in source and binary forms,
* with or without modification, are granted, free of charge, to any person
* obtaining the copy of this software under the following conditions:
*
* 1. Any copi... |
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stddef.h>
#include <stdarg.h>
#include <stdint.h>
#include <inttypes.h>
#include <cdb2api.h>
#include <arpa/inet.h>
#include "strbuf.h"
int sync(cdb2_hndl_tp *from, int64_t maxfrom, cdb2_hndl_tp *to, int64_t maxto);
void consume... |
//------------------------------------------------------------------------------
// mrt-emsc.c
// Multiple-render-target sample for HTML5, this requires WebGL2.
//------------------------------------------------------------------------------
#include <stddef.h> /* offsetof */
#include <GLES3/gl3.h>
#define HANDMA... |
/*-
* Copyright (c) 2001-2003
* Fraunhofer Institute for Open Communication Systems (FhG Fokus).
* 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... |
/*
* File : blah_job_registry_scan_by_subject.c
*
* Author : <NAME> ($Author: mezzadri $)
* e-mail : "<EMAIL>"
*
* Revision history :
* 5-May-2009 Original release
*
* Description:
* Executable to look up for entries in the BLAH job registry
* that match a given proxy subject, and print th... |
/**********************************************************************************************
*
* Streaming singe channel ADPCM core for the ES8712 chip
* Chip is branded by Excellent Systems, probably OEM'd.
*
* Samples are currently looped, but whether they should and how, is unknown.
* Interface to the c... |
/* vim: tabstop=4 shiftwidth=4 noexpandtab
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2016-2018 <NAME>
*
* VirtualBox Guest Additions driver
*/
#include <kernel/system.h>
#include <kernel/fs.h>
#include <kernel/pr... |
/* $Id: float32.c,v 1.11 2007/09/19 11:49:46 toad32767 Exp $ */
/*-
* Copyright (c) 2005, 2006, 2007 <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, inc... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2017 DENX Software Engineering
* <NAME>, DENX Software Engineering, <EMAIL>
*/
#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/iomux.h>
#include <asm/arch/mx6-pins.h>
#includ... |
/*
elf.h - various ELF informations collected from libelf
Copyright (C) 1995 - 1998 <NAME>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option)... |
/* SHA-256 and SHA-512 implementation based on code by <NAME>
* <<EMAIL>> under a BSD-style license. See below.
*/
/*
* FIPS 180-2 SHA-224/256/384/512 implementation
* Last update: 02/02/2007
* Issue date: 04/30/2005
*
* Copyright (C) 2005, 2007 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and... |
/*
* MIT License
*
* Copyright (c) 2020-2021 Wudi <<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... |
/* The MIT License (MIT)
*
* Copyright (c) 2017 Monetra Technologies, LLC.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the righ... |
/*
* Copyright (C) 2015 University of Chicago.
* See COPYRIGHT notice in top-level directory.
*
*/
/*
* The test program generates some synthetic traffic patterns for the model-net network models.
* currently it only support the dragonfly network model uniform random and nearest neighbor traffic patterns.
*/
#inc... |
/*
* Copyright (c) 2003 by the XFree86 Project, 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 restriction, including
* without limitation on ... |
#include "test-tool.h"
#include "cache.h"
#include "json-writer.h"
static const char *expect_obj1 = "{\"a\":\"abc\",\"b\":42,\"c\":true}";
static const char *expect_obj2 = "{\"a\":-1,\"b\":2147483647,\"c\":0}";
static const char *expect_obj3 = "{\"a\":0,\"b\":4294967295,\"c\":9223372036854775807}";
static const char *... |
#include <unistd.h>
#include <strings.h>
#include "asf_convert_gui.h"
#include "ceos_thumbnail.h"
#include "asf.h"
static GtkTreePath *
thumbnail_path (GtkWidget *widget, GdkEventMotion *event)
{
GtkTreePath *path=NULL;
gboolean row_exists = gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (widget),
... |
/*
punycode.c from RFC 3492
http://www.nicemice.net/idn/
<NAME>
http://www.nicemice.net/amc/
This is ANSI C code (C89) implementing Punycode (RFC 3492).
*/
#include "punycode.h"
/******************/
/* Implementation */
#include <string.h>
/*** Bootstring parameters for Punycode ***/
enum { base = 36, tmin = 1, ... |
// Test harness for kirk engine
// From: http://code.google.com/p/kirk-engine/source/browse/trunk/test_harness/main.c
#include <common.h>
#include <pspkernel.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//#include "../libkirk/kirk_engine.h"
#include "kirk_engine.h"
unsigned char sample_kirk1_ecdsa[... |
/*
* Copyright (C) 2013 Red Hat
* Author: <NAME> <<EMAIL>>
*
* 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.
*
* This program is distributed in the hope that it will be useful,... |
//-----------------------------------------------------------------------------
// surfqual.c
//
// Project: EPA SWMM5
// Version: 5.1
// Date: 03/19/15 (Build 5.1.008)
// Author: <NAME>
//
// Subcatchment water quality functions.
//
// Build 5.1.008:
// - Pollutant surface buildup and washoff ... |
/*
* parse and load elf binaries
*
* 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.
*
* This library is distributed in the hope that it will be useful... |
/*
I declare that the attached assignment is wholly my own work in accordance with
Seneca Academic Policy. No
part of this assignment has been copied manually or electronically from any other
source (including web
sites) or distributed to other students
Name: Student ID:
*/
#include <stdio.h>
#include <tim... |
#include <kernel/console.h>
#include <kernel/interrupts.h>
#include <kernel/irq.h>
#include <kernel/keyboard.h>
#include <arch.h>
#include <assert.h>
#include <string.h>
#include <types.h>
extern void irq_keyboard();
#define NO 0
#define SHIFT (1<<0)
#define CTL (1<<1)
#define ALT (1<<2)
#define CAPSLOCK (1<<3)... |
/*
* Copyright (c) 2006-2007 <NAME>
* Copyright (c) 2017 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ld80.h"
//#define overlapping_common(x) (!uncommon(x))
#define A_FIND 0
#define A_ENTER 1
#define BNAME (item->v.special.B_name)
#define AVALUE (item->v.special.A_value)
#define ATYPE (item->v.special.A_t)
struct segment *segv;
static stru... |
#include "all.h"
#ifdef TEST_PMOV
#undef assert
#define assert(x) assert_test(#x, x)
#endif
typedef struct RMap RMap;
struct RMap {
int t[Tmp0];
int r[Tmp0];
BSet b[1];
int n;
};
static bits regu; /* registers used */
static Tmp *tmp; /* function temporaries */
static Mem *mem; /* function me... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.