text stringlengths 5.8k 28.2k |
|---|
/*
* Copyright (c) 2011 Broadcom Corporation
*
* 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 AUTHO... |
/*
* The Shadow Simulator
* Copyright (c) 2010-2011, <NAME>
* See LICENSE for licensing information
*/
#include "shadow.h"
/* thread-level storage structure */
struct _Worker {
gint thread_id;
Slave* slave;
/* if single threaded, use this global event priority queue */
EventQueue* serialEventQue... |
/**@file parsediadem.c
* @brief >> Parse diadem results
* @author <NAME>
* @date 03-Aug-2009
*/
#include <utilities.h>
#include "tz_xml_utils.h"
#include "tz_geo3d_scalar_field.h"
#include "tz_string.h"
#include "tz_swc_tree.h"
#include "tz_darray.h"
#include "tz_u8array.h"
#include "tz_geo3d_utils.h"
static Geo3... |
#include "parser.h"
#include <stdlib.h>
#include "stack.h"
identifier_t identifiers[AMOUNT_TOKENS] = {
{NODE_NUMBER, TOK_NUMBER, NONE, 0, {0}},
{NODE_SYMBOL, TOK_SYMBOL, NONE, 0, {0}},
{NODE_BINARY, TOK_ADD, NONE, 1, {0x70}},
{NODE_BINARY, TOK_SUBTRACT, NONE, 1, {0x71}},
{NODE_BINARY, TOK_MULTIP... |
/************* COPYRIGHT AND CONFIDENTIALITY INFORMATION NOTICE *************
** Copyright (c) [2019] – [Technicolor Delivery Technologies, SAS] *
** All Rights Reserved *
** The source code form of this Open Source Project components *
** i... |
/*
* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, th... |
/**
* \file parser.c
* \brief Contains the definitions of the functions used to parse a sapotache file
* \author <NAME> <br>
* \date 06/03/2017
*/
/* XOPEN_SOURCE is required by strdup */
#define _XOPEN_SOURCE 500
#include <string.h>
#include "lexer.h"
#include "parser.h"
#include "token_private.h"
#include "sap... |
/*
* Copyright (c) 2021 <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 DISCL... |
#include <math.h>
#include "matrix.h" /* mx */
#include "mex.h"
/* Regularized covariance estimation, "Sparse inverse covariance estimation
* with the graphical lasso", <NAME> al., 2008
*
* Matlab interface:
* function [W P] = cglasso2(S, lambda, penDiag, zero_elements_P, zero_elements_W)
*
* INPUT
* **********... |
/* qxq.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static doublereal c_b2 = 1.;
/* $Procedure QXQ (Quaternion times quaternion) */
/* Subroutine */ int qxq_(doublereal *q1, d... |
/*
Copyright (c) 2019 <NAME>
Copyright (c) 2016 <NAME>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, ... |
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <protos/stivale.h>
#include <lib/elf.h>
#include <lib/blib.h>
#include <lib/acpi.h>
#include <lib/memmap.h>
#include <lib/config.h>
#include <lib/time.h>
#include <lib/print.h>
#include <lib/rand.h>
#include <lib/real.h>
#include <drivers/vbe.h>
#inc... |
/****************************************************************************
* FILE: mpi_heat2D.c
* OTHER FILES: draw_heat.c
* DESCRIPTIONS:
* HEAT2D Example - Parallelized C Version
* This example is based on a simplified two-dimensional heat
* equation domain decomposition. The initial temperature... |
/*
No copyright is claimed in the United States under Title 17, U.S. Code.
All Other 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 limitat... |
/*
* Copyright 1997, Regents of the University of Minnesota
*
* proto.h
*
* This file contains header files
*
* Started 10/19/95
* George
*
* $Id: proto.h 10592 2011-07-16 21:17:53Z karypis $
*
*/
/* ctrl.c */
ctrl_t *SetupCtrl(pmoptype_et optype, idx_t *options, idx_t ncon, idx_t nparts,
real_... |
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <getopt.h>
#include <unistd.h>
#include "nfp.h"
#include "httpd.h"
int sigreceived = 0;
#define NUM_EPOLL_EVT 10
/* Table of concurrent connections */
#define NUM_CONNECTIONS 1024
typedef struct {
int fd;
uint32_t addr;
} con... |
/**
******************************************************************************
* @file system_easylink_monitor.c
* @author <NAME>
* @version V1.0.0
* @date 20-May-2017
* @brief This file provide the easylink function for quick provisioning and
* first time configuration.
**********... |
/*
* menu_usb.c
*
* Written by
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* 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 ... |
#include<stdio.h>
#include<stdlib.h>
#include<errno.h>
#define INFINITY -1;
#define INC 0
int debug=0;
typedef struct node {
int c; /* color 0:white 1:grey 2:black */
int d; /* Distance */
int p; /* parent */
int id;
} node;
typedef struct QueueItem{
struct node *u;
struct QueueItem *next;
} Q... |
// Options: --no-arrays --no-pointers --no-structs --no-unions --argc --no-bitfields --checksum --comma-operators --compound-assignment --concise --consts --divs --embedded-assigns --pre-incr-operator --pre-decr-operator --post-incr-operator --post-decr-operator --unary-plus-operator --jumps --longlong --int8 --uint8... |
/* Heat controller
MIT Licensed
Copyright 2020 <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
u... |
#include <stdlib.h>
#define STB_TRUETYPE_IMPLEMENTATION
#include "stb_truetype.h"
#include "fons.h"
static unsigned int hashint(unsigned int a)
{
a += ~(a << 15);
a ^= (a >> 10);
a += (a << 3);
a ^= (a >> 6);
a += ~(a << 11);
a ^= (a >> 16);
return a;
}
static int maxi(int a, int b)... |
/*
CmdSetMenu cseg 00009056 000000B2
CmdSetMenuItem cseg 00009108 000000EB
CmdSubmitMenu cseg 000091F3 00000034
CmdEnableItem cseg 00009227 00000020
_MenuEnableAll cseg 00009247 00000032
CmdDisableItem ... |
#include "hexml.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
typedef int bool;
/////////////////////////////////////////////////////////////////////
// TYPES
static inline int end(str s) { return s.start + s.length; }
static inline str start_length(int32_t sta... |
/*
* TMC8461_eval.c
*
* Created on: 30.05.2018
* Author: LK
*/
#include "Board.h"
#include "tmc/ic/TMC8461/TMC8461.h"
/*
* 255 motors needed here to prevent errors in lower level when passing the motor number to register read/write functions.
* Its used for 64 bit access to switch between low and high re... |
/* rsa.c
*
* Copyright (C) 2006-2012 Sawtooth Consulting Ltd.
*
* This file is part of CyaSSL.
*
* CyaSSL 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... |
//
// bloopsaphone.c
// the chiptune maker for portaudio
// (with bindings for ruby)
//
// (c) 2009 why the lucky stiff
// See COPYING for the license
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <portaudio.h>
#include <unistd.h>
#include "bloopsaphone.h"
... |
/*
* Copyright 2019 International Business Machines
*
* 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 applicab... |
/* $OpenBSD: eeprom.h,v 1.13 2013/04/21 23:14:35 deraadt Exp $ */
/*
* Copyright (c) 1995 <NAME>
* All rights reserved.
* Portions Copyright (c) 1997, <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... |
//-----------------------------------------------------------------------------
// Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
// This program is free software: you can modify it and/or redistribute it
// under the terms of:
//
// (i) the Universal Permissive License v 1.0 or at your o... |
/*
* Copyright 2004-2007, Haiku, Inc. All RightsReserved.
* Copyright 2002/03, <NAME>. All rights reserved.
*
* Distributed under the terms of the MIT License.
*/
/*
Part of Open IDE bus manager
ATAPI command protocol
*/
#include "ide_internal.h"
#include <scsi_cmds.h>
#include "ide_cmds.h"
#include "ide_si... |
/*
* Copyright (c) 1999-2000 Image Power, Inc. and the University of
* British Columbia.
* Copyright (c) 2001-2002 <NAME>.
* All rights reserved.
*/
/* __START_OF_JASPER_LICENSE__
*
* JasPer Software License
*
* IMAGE POWER JPEG-2000 PUBLIC LICENSE
* ************************************
*
* GRANT:
* ... |
/*
* NVIDIA Tegra SPI controller (T114 and later)
*
* Copyright (c) 2010-2013 NVIDIA Corporation
*
* SPDX-License-Identifier: GPL-2.0
*/
#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch-tegra/clk_rst.h>
#include <spi.h>
#include "tegra_spi.h"
DECLARE_GLOBAL_... |
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* of Tennessee Resea... |
/* Copyright (c) 2012 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.
*/
/* Flash memory module for Chrome EC */
#include "clock.h"
#include "console.h"
#include "flash.h"
#include "registers.h"
#include "system.h"
... |
/*
* Copyright (c) 2013-2020 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
*/
/**
* This is a playground to transform Parameterized Task Graphs into insert_task type of
* programming model. As the PTG eng... |
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
*/
/* Qualcomm Technologies, Inc. EMAC SGMII Controller driver.
*/
#include <linux/interrupt.h>
#include <linux/iopoll.h>
#include <linux/acpi.h>
#include <linux/of_device.h>
#include "emac.h"
#include "e... |
/* sch version info */
#define _MAJOR_VERSION 10
#define _MINOR_VERSION 4
#define _MINOR_REVISION 0
#include <stdio.h>
#include <unistd.h> //sleep
#include <stdint.h> //uint_8, uint_16, uint_32, etc.
#include <ctype.h> //isalnum, tolower
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#inc... |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2009 <NAME>
Copyright (C) 2001 <NAME>
Copyright (C) 2002 <NAME> <<EMAIL>>
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... |
/*
* $Id: map.los.c,v 1.1.1.1 2005/01/11 21:18:08 kstevens Exp $
*
* Author: <NAME> <<EMAIL>>
*
* Copyright (c) 2002 <NAME>
* All rights reserved
*
*/
#include "mech.h"
#include "btmacros.h"
#include "mech.sensor.h"
#include "map.los.h"
#include "p.mech.utils.h"
#define INDEX2X(i) ((i%(losmap.xsize))+(... |
/*
*
* Copyright 2017 Samsung Electronics 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 require... |
/* TUI display locator.
Copyright (C) 1998-2019 Free Software Foundation, Inc.
Contributed by Hewlett-Packard Company.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Softwa... |
/*
Copyright (c) 2012-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, modify, merge, publish, distribute, sub... |
/******************************************************************************
* Quantitative Kit Library *
* *
* Copyright (C) 2017 <NAME> *
* ... |
#define _POSIX_C_SOURCE 200809L
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <poll.h>
#include <signal.h>
#include <spawn.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
#include "build.h"
#include "deps.h"
#include "env.... |
/*******************************************************************************/
/* Copyright (C) 1994 - 2006, Performance Dynamics Company */
/* */
/* This software is licensed as described in the file COPYING, which ... |
/*
* Copyright (C) 2015 <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 by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any ... |
/*----------------------------------------------------------------------
File : symtab.c
Contents: symbol table management
----------------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <assert.h>
#include "symtab.... |
#include "ast.h"
#include "RG.h"
#include "../util/arr.h"
// Forward declerations:
static void _AST_MapReferencedEntitiesInPath(AST *ast, const cypher_astnode_t *path,
bool force_mapping);
/* Check if a path is a named path or shortest path.
* If so, all the entities it contains should be mapped,
* othe... |
/*
* Copyright (c) 2014-2016 Yubico AB
* 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... |
/* packet-zep.c
* Dissector routines for the ZigBee Encapsulation Protocol
* By <NAME> <<EMAIL>>
* Copyright 2009 Exegin Technologies Limited
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it un... |
/* hgPhyloPlace - Upload SARS-CoV-2 sequence for placement in phylo tree. */
/* Copyright (C) 2020 The Regents of the University of California */
#include "common.h"
#include "botDelay.h"
#include "cart.h"
#include "cgiApoptosis.h"
#include "cheapcgi.h"
#include "hCommon.h"
#include "hash.h"
#include "hui.h"
#include... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
* AUTHOR : <NAME>
*/
/*
* Basic test for access(2) using F_OK, R_OK, W_OK and X_OK
*/
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <pwd.h>
#include "tst_test.h"
#define FN... |
/*
** ###################################################################
** Compilers: ARM Compiler
** Freescale C/C++ for Embedded ARM
** GNU C Compiler
** IAR ANSI C/C++ Compiler for ARM
**
** Reference manual: KV10P48M75... |
#include <stdio.h>
#include "FreeRTOS.h"
#include <signal.h>
#include <unistd.h>
#include "task.h"
#include "queue.h"
#include "semphr.h"
#define mainQUEUE_RECEIVE_TASK_PRIORITY ( tskIDLE_PRIORITY + 2 )
#define mainQUEUE_SEND_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 )
#define mainQUEUE_LENGTH ... |
//
// ip.c
//
// Internet Protocol (IP)
//
// Copyright (C) 2002 <NAME>. All rights reserved.
// Portions Copyright (C) 2001, Swedish Institute of Computer Science.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
... |
/** esptun: UDP tunnel over UART, using ESP8285 AT command set.
* Based on "simpletun" by <NAME>.
*
* Copyright (c) 2020 <NAME>
* Distributed under the MIT software license,
*/
#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
... |
#include "inc/odt.h"
#define NADDARG 320
int getuserinputs(void);
void stradd(char getstr[], char addstr[], int *last, int len1, int len2);
void mctokn(char *);
void filset(void);
void setfil(void);
char *ckwp(char *, int, char *);
int ikwp(char *, int, int);
extern int narg; extern char **varg;
extern logical odt,... |
/**************************************************************************
*
* Copyright 2018 Advanced Micro Devices, 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 ... |
/* GNU m4 -- A simple macro processor
Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2004, 2005, 2006 Free
Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation;... |
#include <stdio.h>
#include <string.h>
#include "lwipopts.h"
#include "lwip/opt.h"
#include "lwip/def.h"
#include "lwip/mem.h"
#include "lwip/pbuf.h"
#include "lwip/sys.h"
#include "lwip/stats.h"
#include "lwip/tcpip.h"
#include "netif/etharp.h"
#include "ida_lwip_virtEth_slave.h"
#include "xipipsu.h"
#include "uc... |
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<string.h>
#include<pthread.h>
#include<poll.h>
#include<sys/socket.h>
#include<sys/signal.h>
#include<errno.h>
#include<signal.h>
#include"log.h... |
/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list o... |
#include <stdio.h> //Printf, FILE, rename
#include <errno.h> //Error numbers for file handling
#include <string.h> //String handling
#include <math.h> //ceil, sqrt
#include <stdint.h> //uint32_t, uint16_t
//Platform specific headers, used for file truncation
#ifdef _WIN32
#include <windows.h>
#else
#include <unis... |
/*-
* Copyright (c) 2005-2020 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list ... |
#include <stdint.h>
#include <HID.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
// HID の modifier bit を返す
static uint8_t GetModifierBit( const HIDKeyInfo_t * pInfo ) {
if ( pInfo->Pressed && pInfo->pConst->IsModifier ) {
return 1 << ( pInfo->pConst->OrgCode - 0xe0 );
}
return 0;
}
... |
/* lib.c - Some basic library functions (printf, strlen, etc.)
* vim:ts=4 noexpandtab */
#include "lib.h"
#include "rtc.h"
#include "keyboard.h"
#include "types.h"
#define VIDEO 0xB8000 //beginning of video memory
//#define NUM_COLS 80 //Number of columns in terminal
//#define NUM_ROWS 25 //Num... |
/*
* Disktest
* Copyright (c) International Business Machines Corp., 2001
*
*
* 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 ver... |
/*
Copyright (C) 1995-2001 Activision, Inc.
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 later version.
This library is distribu... |
//Program to implement the cube attack on toy example.
#include<stdio.h>
#include<conio.h>
int polynomial(int x0, int x1, int x2, int *);
void main()
{
int v0,v1,v2,a[10],t,c[20],num,y,i,value, l,j;
int k,i0,p = 0,y1,y2,o,y3,y4,i1,i2,x1,n,x2,x3,x0,flag,y5,y6,y7,y8,xa[10],ya[10],a1,b,c1,d,n1,e,f,m,z,r,y9,y10,y11;
//pri... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
#include "mov-internal.h"
#include <assert.h>
#include <stdlib.h>
#include <errno.h>
static int mp4_read_tag(struct mov_t* mov, uint64_t bytes);
// ISO/IEC 14496-1:2010(E)
// 7.2.2 Common data structures
// Table-1 List of Class Tags for Descriptors (p31)
enum {
ISO_ObjectDescrTag = 0x01,
ISO_InitialObjectDescrTag ... |
/*
MIT License
Copyright (c) 2019 <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, copy, modify, merge, publish,... |
/* Projeto Meta 2 - Parte 2/N (Header File) ||| CG - LEI / FCTUC 2020/21 | <NAME> N.2018275530 */
/* ***** BIBLIOTECAS ***** */
#include <windows.h>
#include <stdlib.h> // geral padrao
#include <stdio.h> // standard input-output
#include <math.h> // funcoes matemati... |
/**
* @author <NAME>
* @date June 24, 2016
* @version 1.0
*/
#include "server_client_funcs.h"
clients_list *pblc_clnts_global_var;
int check_for_input_arguments(int argc, char *argv[], int *ports){
int private_port, public_port;
if(argc != 3){
fprintf(stderr, "Invalid input arguments.\nThere... |
// Copyright (c) <2012> <<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,... |
#pragma ident "@(#)__libmcr_mm_add.c 1.3 04/02/25 SMI"
/* ************************************************************ */
/*
* Copyright (c) 2002 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the... |
#include <math.h> // fabsf
#include <stdint.h>
#include <stdlib.h> // abs
#include "config.h"
#include "drv_time.h"
#include "filter.h"
#include "pid.h"
#include "util.h"
// #define RECTANGULAR_RULE_INTEGRAL // a.k.a. Midpoint Rule Integral
// #define TRAPEZOIDAL_RULE_INTEGRAL
#define SIMPSON_RULE_INTEGRAL
// aux_... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "header.h"
#define WEIGHT_CNR0 100
#define WEIGHT_CNR1 100
#define WEIGHT_CNR2 50
#define WEIGHT_CNR3 30
#define WEIGHT_CNR4 20
#define WEIGHT_CNR5 10
#define WEIGHT_CNRDEF 10
#define WEIGHT_ALWNC 3
#define WEIGHT_STONE 10
#define... |
/*
* librdkafka - The Apache Kafka C/C++ library
*
* Copyright (c) 2016 <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 ... |
#include "u.h"
#include "lib.h"
#include "dat.h"
#include "fns.h"
#include "mem.h"
#include "io.h"
/*
* To Do:
* find out why running uncached doesn't work
*/
/*
* the 6280 has I/O control space starting at 0xBE000000.
* within that space, each slot (each System Bus Chip - SBC)
* has a 64Kb (0x10000) control sp... |
/*! \file bcma_bcmpkt.c
*
* General functions for Packet I/O command Lines.
*/
/*
* Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to
* Broadcom Limited and/or its subsidiaries.
*
* Broadcom Switch Software License
*
* This license governs the use of the accompanying Broadcom software.... |
/*
Ellipse Workstation 1100 (fictitious computer) Emulator (e1100em)
Debug code (disassembler)
Copyright (c) 2020 <NAME> (hisahi)
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... |
/*********************************************************************
* classic.c : Read events from Nintendo Classic controller via
* Raspberry PI I2C connection, and replicate button presses as a
* virtual keyboard (also reads joystick movement, but not yet
* extended for key presses or mouse movement)
*... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
** This notice applies to any and all portions of this... |
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* massF6.c
*
* Code generation for function 'massF6'
*
*/
/* Include files */
#include <string.h>
#include "... |
#include "colour_xfrm.h"
#include <string.h>
#include <stdio.h>
#include <math.h>
#include "cie_xyz.h"
void print_mat(const ColourMatrix *cmat)
{
for (int i = 0; i < 9; i += 3)
printf("%8.5f %8.5f %8.5f\n", cmat->m[i], cmat->m[i+1], cmat->m[i+2]);
}
void cmat_d2f(const ColourMatrix *cmat, ColourMatrix_f *... |
#include "6510.h"
#include <stdint.h>
unsigned char data;
unsigned short effAddr;
unsigned char c64_current_song;
unsigned char SIDDriverPage;
Register reg;
uint8_t c64_sid_register[0x1f];
unsigned char instruction[3]; // vi leser maksimalt inn 3 byte
FILE* file;
// the emulator once ran on a chip with a total of 64... |
#include <string.h>
#include <ipc.h>
#include <mutex.h>
#include <thread.h>
#include <prng.h>
#include <worker.h>
#include <hashtbl.h>
size_t channel_read(fs_handle_t *c, size_t offset, size_t len, char* buf);
size_t channel_write(fs_handle_t *c, size_t offset, size_t len, const char* buf);
int channel_poll(fs_hand... |
//=======================================================================================================//
// //
// LIBRERIA DI SUPPORTO : FUNZIONI DI BASE UTILI ALLO SVILUPPO DEL PROGRAMMA ... |
/*
* Copyright © 2018 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, pub... |
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
** **
** This file forms part of the Underworld geophysics modelling application. **
** ... |
/*
(c) Copyright 2012-2013 DirectFB integrated media GmbH
(c) Copyright 2001-2013 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by <NAME> <<EMAIL>>,
<NAME> <<EMAIL>>,
<... |
/* ----------------------------------------------------------------------------
* ATMEL Microcontroller Software Support
* ----------------------------------------------------------------------------
* Copyright (c) 2017, Atmel Corporation
*
* All rights reserved.
*
* Redistribution and use in source and... |
/*
* Copyright 2018 Red Hat Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, d... |
/*=======================================================*
| built.h
| Copyright (c) 1993-95 Applied Logic Systems, Inc.
| -- Include file for b*.c files
*=======================================================*/
#define FAIL return(0)
#define SUCCEED return(1)
/*
* The following PERR_ macros cause a prol... |
/* Copyright (c) 2021 <NAME> */
/************************************************************************
SACPOLAR - SAC POLARization analysis of three-component (3-C) data
*************************************************************************
Author: <NAME>,
RISSC, University of Naples, Italy, September 2009
... |
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by dasm.rc
//
#define IDS_FILE 1
#define IDS_VIEW 2
#define IDS_HELP ... |
/*
* encode.c
*
* Created on: 2011-09-18
* Author: francis
*/
#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <math.h>
#include <assert.h>
#include <string.h>
#include <getopt.h>
#include <inttypes.h>
#include <sys/resource.h>
#include <sys/time.h>
#include <errno.h>
#i... |
#include "serveur.h"
#define LOCALHOST "127.0.0.1"
#define NB_SALONS 4
#define SUCCESS 0
#define ERROR 1
#define SERVER_PORT 1500
int main(int argc,char *argv[])
{
pthread_t thread;
Server server;
chargerSalons(&server);
int sd,newSd;
socklen_t cliLen;
struct sockaddr_in cliAddr, servA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.