text stringlengths 5.8k 28.2k |
|---|
#include "../include/filtragem.h"
#include "../include/estruturas.h"
#include "../include/cache.h"
// Handles each client connection
void *connectionHandler(void *c_pNewSocketFD){
// c_: about client-proxy interface (proxy is server)
int c_newSocketFD = *(int*)c_pNewSocketFD;
int c_addrLen = sizeof(struc... |
/*
* This is sunMouse.c modified for LynxOS
* Copyright 1996 by <NAME>
*
* 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 noti... |
#ifndef lint
static const char RCSid[] = "$Id: normal.c,v 2.80 2019/04/19 19:01:32 greg Exp $";
#endif
/*
* normal.c - shading function for normal materials.
*
* 8/19/85
* 12/19/85 - added stuff for metals.
* 6/26/87 - improved specular model.
* 9/28/87 - added model for translucent materials.
*... |
/*-
* Copyright (c) 2016 Yandex LLC
* Copyright (c) 2016 <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 cop... |
#include "demo.h"
#include <pthread.h>
// we provide a heads-up display throughout the demo, detailing the demos we're
// about to run, running, and just runned. the user can move this HUD with
// their mouse. it should always be on the top of the z-stack.
struct ncplane* hud = NULL;
// while the HUD is grabbed by th... |
#include "MSPd.h"
static t_class *player_class;
#include "time.h"
#include "stdlib.h"
#define MAX_CHANNELS (1)
#define DEFAULT_MAX_OVERLAP (8) // number of overlapping instances allowed
#define FORWARD 1
#define BACKWARD 2
#define ACTIVE 0
#define INACTIVE 1
#define MAX_VEC 2048
#define MAXIMUM_VECTOR (8192)
#def... |
/*
* Test Special Purpose Registers
*
* Copyright 2017 <NAME>, Red Hat Inc.
*
* This work is licensed under the terms of the GNU LGPL, version 2.
*
* The basic idea of this test is to check whether the contents of the Special
* Purpose Registers (SPRs) are preserved correctly during migration. So we
* fill in... |
/******************************************************************************
* *
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except ... |
// Options: --no-argc --no-arrays --no-bitfields --checksum --concise --no-consts --no-float --no-inline-function --max-array-dim 3 --max-array-len-per-dim 10 --max-block-depth 5 --max-block-size 4 --max-expr-complexity 2 --max-funcs 1 --max-pointer-depth 2 --no-pointers --no-structs --no-unions --no-volatiles --no-b... |
#include "cg2d.h"
void SetWorld(float xmin, float ymin, float xmax, float ymax) {
XWMax = xmax;
XWMin = xmin;
YWMax = ymax;
YWMin = ymin;
}
point * SetPoint(float x, float y, float w, int color) {
point * pnt;
pnt = (point *) malloc(sizeof(point));
pnt->x = x/w;
pnt->y = y/w;
pnt->w = w;
pnt->col... |
/*
Copyright 2005-2011 - <NAME> - All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are
permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of
conditions and the foll... |
/*
* 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... |
#include "theft_run_internal.h"
#include "theft_bloom.h"
#include "theft_rng.h"
#include "theft_call.h"
#include "theft_trial.h"
#include "theft_random.h"
#include "theft_autoshrink.h"
#include <string.h>
#include <assert.h>
#define LOG_RUN 0
enum theft_run_init_res
theft_run_init(const struct theft_run_config *cfg... |
/*
Task Implementation for Open64's OpenMP runtime library
Copyright (C) 2008-2011 University of Houston.
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
... |
/*
* libalsa output driver. This file is part of Shairport.
* Copyright (c) Muffinman, Skaman 2013
* 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
* r... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the program and library */
/* SCIP --- Solving Constraint Integer Programs */
... |
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME> (<EMAIL>) at
* Carlstedt Research & Technology.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted... |
/* ==== ML VALUE HEAP ALLOCATION ====
*
* Copyright 2013 Ravenbrook Limited <http://www.ravenbrook.com/>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributio... |
/*-
* Copyright 2005 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and t... |
/*
* 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... |
/*
* FIG : Facility for Interactive Generation of figures
* Copyright (c) 1994 <NAME>
* Parts Copyright (c) 1989-2007 by <NAME>
*
* [NEUQUANT Neural-Net quantization algorithm by <NAME>, 1994.
* See "Kohonen neural networks for optimal colour quantization"
* in "Network: Computation in Neural Systems" Vol. 5 (19... |
/*
* 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... |
/**
******************************************************************************
* @file batterymeasure.c
* @author MCD Application Team
* @brief System information functions
******************************************************************************
* @attention
*
* <h2><center>&c... |
/*
* MIT License
*
* Copyright (c) 2018 <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, cop... |
/*
* Wonderful routine to create a Z88 application
*
* z88app [binary file] [startup file] [-nt]
*
* djm 2/4/99 - A very, very quick knock up!
*
* Application ID number is generated from time()
* - if you have a better automatic algorithm let me know!
*
* djm 12/4/99
* Than... |
/*
keplerian conversion routines
some old code modified from Holman's original
added f+g functions
generalized to hyperbolic
also has some distribution function random generators
*/
/* routines:
keplerian: returns orbital elements from cartesian coords
cartesian: returns cartesian from orbital e... |
/* VipsInsert
*
* Copyright: 1990, <NAME>
*
* Author: <NAME>
* Written on: 02/08/1990
* Modified on :
* 31/8/93 JC
* - ANSIfied
* - Nicos' reformatting undone. Grr!
* 22/12/94
* - modernised
* - now does IM_CODING_LABQ too
* 22/6/95 JC
* - partialized
* 10/2/02 JC
* - adapted for im_prepare_to() stuff
... |
/******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. *
* *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
... |
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
/* #include "code.h" */
#include "cmdcode.h"
#define maxcode 1000
#define maxstack 10000
#define charItemLength 20
#define maxattrlng 30
#define maxparam 20
int debug = 1;
int pc; /* program counter */
int base; /* base p... |
char * strdup(const char *);
static char * s_share_dir = 0;
static char * s_bin_dir = 0;
static char * s_argv0 = 0;
#if defined(win32)
static char * s_bin_dir_win = 0;
/* ugly hack here... windef.h and asf_meta.h both define a BYTE symbol. */
/* since we don't use the BYTE from asf_meta.h here, we'll #define BYTE ... |
/* MACHINE GENERATED FILE, DO NOT EDIT! */
#define VMDPLUGIN molfile_vaspposcarplugin
#define STATIC_PLUGIN 1
/***************************************************************************
* RCS INFORMATION:
*
* $RCSfile: vaspposcarplugin.c,v $
* $Author: johns $ $Locker: $ $State: Exp ... |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define PRODUCTKEY_MAXLEN (20)
#define DEVICENAME_MAXLEN (32)
#define DEVICESECRET_MAXLEN (64)
#define SIGN_SOURCE_MAXLEN (200)
#define CLIENTID_MAXLEN ... |
/*
* SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <twz/debug.h>
#include <twz/meta.h>
#include <twz/name.h>
#include ... |
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/Xlocale.h>
#include <X11/cursorfont.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
/* config */
const int gap = 1;
const int titlebar_height = 14;
const int baseline_height = 4;
const char *font_name = "fixed,-*";
Display ... |
#include "ssd1306.h"
#if defined(SSD1306_USE_I2C)
void ssd1306_Reset(void) {
/* for I2C - do nothing */
}
// Send a byte to the command register
void ssd1306_WriteCommand(uint8_t byte) {
HAL_I2C_Mem_Write(&SSD1306_I2C_PORT, SSD1306_I2C_ADDR, 0x00, 1, &byte, 1, HAL_MAX_DELAY);
}
// Send data
void ssd1306_WriteData... |
/*
C implementation of R interface
*/
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "udc.h"
#include "bigWig.h"
#include "obscure.h"
#include "errCatch.h"
#include "hmmstats.h"
#include "localmem.h"
#include "bwgExtra.h"
#include "bw_query.h"
#include <string.h>
#includ... |
/*
* Southbound API mock for OOM
* Uses Finisar "eep" files to provide data
* Place an eep file in the "./module_data/<n>" to
* provide simulation data for port <n>
* Currently limited to 6 ports (implementation hack for simplicity)
*/
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>... |
/*
arnavi.c
shared library for decode/encode gps/glonass terminal ARNAVI 4/5 messages
help:
Arnavi-5:
https://docs.google.com/spreadsheets/d/15s-2ZbqOQ1bZvAtFFm9sIEuKy3jbJzxdeynp72sjoYU/edit?usp=sharing
compile:
make -B arnavi
*/
#include <stdlib.h> /* malloc */
#include <string.h> /* memset */
#... |
/* linux/arch/arm/plat-samsung/include/plat/pll.h
*
* Copyright (c) 2009-2011 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* Copyright 2008 Openmoko, Inc.
* Copyright 2008 Simtec Electronics
* <NAME> <<EMAIL>>
* http://armlinux.simtec.co.uk/
*
* Samsung PLL codes
*
* This program is free softw... |
/* Description: C source code for graphing support functions (for use with grap)
*/
/******************************************************************************
* This software is covered by the zlib/libpng license.
* The zlib/libpng license is a recognized open source license by
* the Open Source Initiative: http:/... |
/*
* (C) Copyright 2002, <NAME>.
* You may freely use this program, but: it offered strictly on an AS-IS, AT YOUR OWN
* RISK basis, there is no warranty of fitness for any purpose, and the rest of the
* usual yada-yada. Please keep this notice and the copyright in any distributions
* or modifications.
*
*... |
/**
* @file
* @brief source file containing file transfer implementation
*
* @copyright Copyright (C) 2017 Wind River Systems, Inc. All Rights Reserved.
*
* @license Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtai... |
/*
Header:
Main functionality for the battery management system (BMS) for the MKIII accumulator system.
Author:
@author <NAME>
@author <NAME>
*/
/*----- Includes -----*/
#include <stdio.h>
#include <string.h>
#include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include <avr/wdt.h>
#inclu... |
#include <sys/types.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <stdbool.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
#define MY_PORT 2222
#define BUFF... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* @brief Capture the BPWM0 Channel 0 waveform by BPWM1 Channel 2.
*
* SPDX-License-Identifier: Apache-2.0
* @copyright (C) 2016 Nuvoton Technology Corp. All rights reserved.
*
****************... |
#include <exec/resident.h>
#include <exec/errors.h>
#include <exec/memory.h>
#include <exec/lists.h>
#include <exec/alerts.h>
#include <exec/tasks.h>
#include <exec/io.h>
#include <libraries/expansion.h>
#include <devices/trackdisk.h>
#include <devices/timer.h>
#include <devices/scsidisk.h>
#include <dos/filehandler... |
/**
* alien-console: personal terminal screen
* Copyright (C) 2017 <NAME>. Released under the Revised BSD License.
*
* This module emulates the personal terminal screen of Alien Isolation. See
* img/real-main.jpg for a screenshot of the original.
*
* +-------------------------------------------------------------... |
/*
* Program: Newsrc manipulation routines
*
* Author: <NAME>
* Networks and Distributed Computing
* Computing & Communications
* University of Washington
* Administration Building, AG-44
* Seattle, WA 98195
* Internet: <EMAIL>
*
* Date: 12 September 1994
* Last Edited: 27 April 2004
*
* The IMAP ... |
// 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.
/*
*/
/* hcchtocsy.c
Use convoluted SLP 180 to decouple carbonyls during t2.
... |
/*Código realizado por <NAME> y <NAME>*/
//Librerías utilizadas
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include "Utils.h"
#include "StockMarket.h"
//Declaración Varibles Globales
int fdb;//Pipe u... |
/*
* fsm.cpp
*
* Created on: Mar 5, 2020
* Author: Ben
*/
#include "fsm.h"
#include "usart.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "user_config.h"
#include "hw_config.h"
#include "structs.h"
#include "foc.h"
#include "math_ops.h"
#include "position_sensor.h"
#include "drv8323.... |
#include "shapefil.h"
#include "geminc.h"
#include "gemprm.h"
#include "vgstruct.h"
#include "pgprm.h"
#define ERROR (-1)
/*
* Object Type codes used in main():
*/
#define OBJECTTYPE_POLYGON 3
/*
* Error codes for exit() routine:
*/
#define ERR_USAGE 1
#define ERR_TYPE 2
#define ERR_FORMAT 3
#define ERR_OBJ... |
/**
@file httpd.c
@brief functions associated http processing
*/
#include <stdio.h>
#include <string.h>
#include "socket.h"
#include "httpParser_rest.h"
/*****************************************************************************
* Public types/enumerations/variables
****************************... |
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <stdatomic.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "core/op_common.h"
#include "core/op_list.h"
#include "core/op_hashtab.h"
static const size_t _load_factor = 4; /**< Specifies max ratio of list entries
... |
/**
******************************************************************************
* File Name : main.c
* Description : Main program body
******************************************************************************
** This notice applies to any and all portions of this file
* that are not ... |
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <ngspice/sharedspice.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
// tell the functions in 'util.h' to print debug info
#define DEBUG
#include "util.h"
#include "write_rom.h"
static void
ini... |
#include <math.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
int approx();
double ply();
double partfn(double code,double T,double Ne);
double molpartfn();
double qrot(double T);
double h2opartfn(double T);
double Xi(code,T,Ne)
double code,T,Ne;
{
static double k = 8.617084e-05;
double xi,logt,logK,... |
/*****************************************************************************\
** **
** FILE: cksum.c **
** AUTHORS: Alexios **
**... |
#include <asm/segment.h>
#include <linux/bio.h>
#include <linux/device-mapper.h>
#include <linux/fs.h>
//#include <asm/uaccess.h>
#include <linux/buffer_head.h>
#include <linux/lz4.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include "lsmt.h"
#include "zfile.h"
static const size_t INFILE_BIO_POOL_SIZE = 256... |
/*******************************************************************************
* PROJECT: Bomberman
*
* AUTHORS: <NAME>, <NAME>, <NAME>, <NAME>
*
* DATE CREATED: 01/16/2019
*
* Copyright (c) 2019 <NAME> (@Astropilot). All rights reserved.
*
* Licensed under the MIT License. See LICENSE file in the project root for fu... |
/*
* ISO Media common code
* Copyright (c) 2001 <NAME>.
* Copyright (c) 2002 <NAME> <<EMAIL>>
* Copyright (c) 2006 <NAME> <<EMAIL>>
*
* 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 b... |
/*
* DiskSim Storage Subsystem Simulation Environment (Version 3.0)
* Revision Authors: <NAME>, <NAME>
* Contributors: <NAME>, <NAME>, <NAME>
*
* Copyright (c) of Carnegie Mellon University, 2001, 2002, 2003.
*
* This software is being provided by the copyright holders under the
* following license. By obtainin... |
/***********************************************************************/
/* */
/* FILE :vecttbl.c */
/* DATE :Fri, Jan 13, 2017 */
/* DESCRIPTION :Ini... |
// Copyright 2011 Google Inc. All Rights Reserved.
//
// 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... |
#include <sys/types.h>
#include <dirent.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include "util.h"
#include "proc_table.h"
/*
* proc_table_get - get proc table
*
* Read
* /proc/<pid>/stat
* /proc/<pid>/task/<tid>/stat
* and fill in proc_table.
*
* We do... |
/* Copyright (c) 2018, 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 hope... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* Copyright (c) 2021 STMicroelectro... |
#include <string.h>
#include "lcd.h"
#include "st7789.h"
#include "font.h"
// #include "common.h"
#include "sleep.h"
#include "gpiohs.h"
#include "fpioa.h"
//LCD的画笔颜色和背景色
uint16_t POINT_COLOR=0x0000; //画笔颜色
uint16_t BACK_COLOR=0xFFFF; //背景色
//管理LCD重要参数
//默认为竖屏
_lcd_dev lcddev;
//写寄存器函数
//regval:寄存器值
void LCD_WR_REG... |
#include "../inc/Dog.h"
#include "stdlib.h"
#include <GL/glx.h>
#include <GL/gl.h>
#include <GL/glut.h>
#include "math.h"
Dog CreateDog()
{
Dog dog = (Dog) malloc(sizeof(struct dog));
dog->time = 0;
dog->position = ZeroPt3D();
dog->translation = ZeroPt3D();
dog->rotation = ZeroPt3D();
dog->dire... |
/**
* BSD-2-Clause
*
* Copyright (c) 2020 Tristan
* 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 ... |
#include <stdio.h>
#include <math.h>
// fonksiyonlarin prototipleri
void BirinciCozum(); // 1. soru cozumu
void IkinciCozum(); // 2. soru cozumu
void UcuncuCozum(); // 3. soru cozumu
float DorduncuCozumDenklem(float); // 4. soru yardimci fonksiyonu
float DorduncuCozumDenklemTurevi(float); // 4. soru yardimci fo... |
// SPDX-License-Identifier: zlib-acknowledgement
/*
* 1. Working HAL build:
* - Driver files documented with usage case sections so ctags; grep -nr; cscope
* First section will be overall, however may need to substitute with subsection information
* - Specify appropriate include folders.
* - Specify appro... |
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in
* the LICENSE file in the root directory of this source tree. An
* additional grant of patent rights can be found in the PATENTS file
* in the same directory.
*
*/
#include... |
/*
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... |
// -------------------------------------------------------
//
// This program implements D-Stepping algorithm
// introduced by U.Mayers and P.Sanders.
// Graph is read from an input file created by
// RandomGraph generator by S.Pettie and V.Ramachandran.
// Finding shortest path distance for each node occurs in
// para... |
/* evilwm - minimalist window manager for X11
* Copyright (C) 1999-2021 <NAME> <<EMAIL>>
* see README for license and other details. */
// Client management: manage new client.
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <... |
/*
* This module is used as a layer of abstraction between the main logic and the
* event library. This should, theoretically, allow us to switch to another
* library with less effort.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
#include ... |
#include "snapconfig.h"
/*
These routines apply the following modifications to data as it is loaded
into SNAP
1) Apply error factors
Currently do not permit independent scaling of vector e,n,u components
Currently do not permit definition of error factors within the data file?
*** For GPS multistation dat... |
// ECE 473 Lab 3
// <NAME>
// 9.12.08
// Modified in October 2016 by <NAME> | www.nickmccomb.net
// HARDWARE SETUP:
// PORTA is connected to the segments of the LED display. and to the pushbuttons.
// PORTA.0 corresponds to segment a, PORTA.1 corresponds to segement b, etc.
// PORTB bits 4-6 go to a,b,c inputs of ... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <math.h>
double A[N][N+13];
void init_arrays()
{
int i, j;
for (i=0; i<N; i++)
for (j=0; j<N; j++)
A[i][j] = i*i+j*j;
}
double rtclock()
{
struct timezone tzp;
struct timeval tp;
int stat;
gettimeofday (&tp, &tzp);
return... |
#include "vm.h"
#include "file.h"
#include "atomic.h"
#include "pk.h"
#include <stdint.h>
#include <errno.h>
typedef struct {
uintptr_t addr;
size_t length;
file_t* file;
size_t offset;
unsigned refcnt;
int prot;
} vmr_t;
#define MAX_VMR (RISCV_PGSIZE / sizeof(vmr_t))
spinlock_t vm_lock = SPINLOCK_INIT;
s... |
#include "dropboxServer.h"
ServerInfo serverInfo;
ClientList* client_list;
ClientList* client_list_servers;
int numServers = 0;
pthread_mutex_t mutex_clientes;
pthread_mutex_t mutex_clientes_servers;
pthread_t thread_replica;
sem_t semaphore;
char addressToConnect[MAXNAME];
int portToConnect = 0;
int porta;
char a... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "gf.h"
#include "poly.h"
/*********************************************************************************************/
////////////////////////////////////POLYNOMIAL Functions///////////////////////////////////////
/*******************************... |
/* $NetBSD: iavc_pci.c,v 1.2 2003/10/03 16:38:44 pooka Exp $ */
/*
* Copyright (c) 2001-2003 Cubical Solutions Ltd.
* 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 o... |
/*
* SGPIO Driver for the LPC43xx series: debug functions.
*
* This file is part of libgreat.
*/
#include <toolchain.h>
#include <debug.h>
#include <errno.h>
#include <drivers/scu.h>
#include <drivers/sgpio.h>
#include <drivers/platform_clock.h>
// Private "imports" from sgpio.c/sgpio_isr.c.
int sgpio_slice_for... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h> // for strcmp, strlen, strcpy, strcat, ...
// Imports for Forks
#include <unistd.h>
#include <signal.h> // for kill (killing child processes)
// Imports for Shared Memory Segment
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
// ... |
/* $OpenBSD: qdreg.h,v 1.3 2003/09/26 21:43:31 miod Exp $ */
/* $NetBSD: qdreg.h,v 1.1 1998/03/21 10:02:39 ragge Exp $ */
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are per... |
/***********************************************************************/
/* */
/* FILE :intprg.c */
/* DATE :Sat, Oct 22, 2016 */
/* DESCRIPTION :Int... |
/******************************************************************************
* Bitsliced implementations of AES-128 and AES-256 (encryption-only) in C using
* the barrel-shiftrows representation.
*
* See the paper at https://eprint.iacr.org/2020/1123.pdf for more details.
*
* @author <NAME>, Nanyang Technological U... |
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright 2019 NXP
//
// Author: <NAME> <<EMAIL>>
// Author: <NAME> <<EMAIL>>
#include <sof/audio/component.h>
#include <sof/drivers/edma.h>
#include <sof/drivers/esai.h>
#include <sof/lib/alloc.h>
#include <sof/lib/dai.h>
#include <sof/lib/dma.h>
#include <ipc/dai.h>
#in... |
/* mpihelp-mul.c - MPI helper functions
* Copyright (C) 1994, 1996, 1998, 1999,
* 2000 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
* GnuPG is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Fre... |
/*
* main_sec_no_reordering.c
* Lock and unlock rhythmically between receiving threads and processing threads (one report coming, one report going).
* Created on: Nov 29, 2016
* Author: vinh
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <netdb.h>
#include <netinet/in.h>
... |
/*
* Copyright 2016 Rockchip Electronics 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 applicable... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <machine/patmos.h>
#include <machine/spm.h>
#include "common.h"
#include "tteconfig.h"
#include "mpu9250.h"
#include "servo.h"
// Demo parameters
#define HYPERPERIOD 20000000
#define NO_TASKS 3
#define SYNC_WINDOW_HALF 10000 //ns
#define ASYNC2SY... |
/*
* Copyright 2020 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "nr_axiom.h"
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include "nr_rules.h"
#include "nr_rules_private.h"
#include "util_logging.h"
#include "util_memory.h"
#include "util_reply.h"
#... |
/*
* Matrix multiplication using Cannon's Algorithm in MPI
*
* The program takes three command-line arguments: fileA, fileB, and
* fileC. The first two files contain matrix A and B as the input. The
* third file is used to store the result matrix C as the output. The
* program compute: C = A x B. The program assu... |
/* -*- c -*-
* Time-stamp: <2009-03-28 09:50:44 rsmith>
*
* stl2pov/parse.c
* Copyright © 2004--2009 <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. Redistrib... |
/*
* Copyright (c) 2012-2013 Etnaviv Project
*
* 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... |
/******************************************************************************\
*
* MODULE: PAINT.C
*
* PURPOSE: This is the module responsible for painting the SPINCUBE
* custom control. When Paint() is called we retrieve a
* pointer to a SPINCUBEINFO structure, and then u... |
/* ==== ARENA MANAGEMENT ====
*
* Copyright 2013 Ravenbrook Limited <http://www.ravenbrook.com/>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of so... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.