text stringlengths 5.8k 28.2k |
|---|
#define MSP430_REG_PC 0 //Program Counter
#define MSP430_REG_SP 1 //Stack Pointer
#define MSP430_REG_SR 2 //Status Register
#define MSP430_REG_CG 3 //Constant Generator (0)
#define MSP430_REG_CG1 2
#define MSP430_REG_CG2 3
#define MSP430_SRM_C 0x0001 //Carry
#define MSP430_SRM_Z 0x0002 //Zero
#define ... |
/*
* sun6i_gmac.c: Allwinnertech Gigabit Ethernet u-boot driver
* Copyright © 2006-2012, AllWinner Technology. Co., Ltd.
* All Rights Resvered
* Author: shuge <<EMAIL>>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public L... |
/*
* Copyright (c) 2012-2016 The Khronos Group Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and/or associated documentation files (the
* "Materials"), to deal in the Materials without restriction, including
* without limitation the rights to use, copy, ... |
#if HAVE_CFITSIO
#include <fitsio.h>
#include "jsfitsio.h"
#include <ctype.h>
#define FT_CARDLEN 80
#elif HAVE_FUNTOOLS
#include <funtoolsP.h>
#endif
#include <png.h>
#include <errno.h>
#include <xutil.h>
#include <swap.h>
#if HAVE_GETOPT_H
#include <getopt.h>
#else
extern char *optarg;
extern int optind;
#endif
#de... |
/* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferab... |
/*
https://www.geeksforgeeks.org/comments-in-c-c/
This assignment is building on the shop program which I developed in the video series. You are tasked to add some
additional functionality:
Functionality
The shop CSV should hold the initial cash value for the shop.
Read in customer orders from a CSV file.
– That fi... |
#include "main.h"
int main()
{
// Initial
FILE* pFile = NULL;
char* filePath = "C:\\test.exe";
char* buffer;
int nFileLength = 0;
int imageLength = 0;
// Get file length
pFile = fopen(filePath, "rb");
fseek(pFile, 0, SEEK_END);
nFileLength = ftell(pFile);
rewind(pFile);
// Get image length & malloc memo... |
/*-------------------------------------------------------------------------
*
* undorecord.c
* encode and decode undo records
*
* Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* src/backend/access/undo/undorecord.... |
/*
* Compilar con gcc -fPIC -shared algebra.c colision.c -o c_colision
*/
//#define DEBUG_MSG
#include <math.h>
#include "algebra.h"
#include "colision.h"
struct Tren * malloc_tren(long nP)
{
struct Tren * T = malloc(sizeof(struct Tren));
T->x0 = newarray(ARRAY_SIZE);
T->x1 = newarray(ARRAY_SIZE);... |
/* Copyright (C) 2007-2012 B.A.T.M.A.N. contributors:
*
* <NAME>, <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
* License as published by the Free Software Foundation.
*
* This program is distributed in the hope that i... |
/*
* Contacts Service
*
* Copyright (c) 2010 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
*
* Contact: <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
#include "bg_saga.h"
#define DEFAULT_FORCEPOWERS "5-1-000000000000000000"
//#define FORCEJUMP_INSTANTMETHOD 1
#ifdef _XBOX // No bot has more than 150 bytes of chat right now
#define MAX_CHAT_BUFFER_SIZE 256
#else
#define MAX_CHAT_BUFFER_SIZE 8192
#endif
#define MAX_CHAT_LINE_SIZE 128
#define TABLE_BRANCH_DISTANCE... |
#include "os.h"
#include <libsec.h>
enum{
Blockwords= SalsaBsize/sizeof(uint32_t)
};
/* little-endian data order */
#define GET4(p) ((((((p)[3]<<8) | (p)[2])<<8) | (p)[1])<<8 | (p)[0])
#define PUT4(p, v) (((p)[0]=v), (v>>=8), ((p)[1]=v), (v>>=8), ((p)[2]=v), (v>>=8), ((p)[3]=v))
#define ROTATE(v,c) (t = v, (uint32_... |
/*
* 2014 (c) <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 DISCLAIMS ALL WARRANTIES
WITH REGARD TO... |
/* X3F_OUTPUT_DNG.C
*
* Library for writing the image as DNG.
*
* Copyright 2015 - <NAME> <NAME>
* BSD-style - see doc/copyright.txt
*
*/
#include "x3f_output_dng.h"
#include "x3f_process.h"
#include "x3f_dngtags.h"
#include "x3f_matrix.h"
#include "x3f_meta.h"
#include "x3f_image.h"
#include "x3f_spatial_gain.... |
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <pthread.h>
#include "obvdb.h"
#include "mhtbl.h"
#include "utils.h"
int compare(const void* a, const void* b) {
return ((*((uint32_t*)a) > *((uint32_t*)b)) - (*((uint32_t*)a) < *((uint32_t*)b)));
}
uint32_t mhtbl_compare(uint32_t rows, uint32_t* m... |
/*
* Mesa 3-D graphics library
*
* Copyright (C) 2013 LunarG, 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 ... |
typedef enum {
LOG_LVL_DEBUG,
LOG_LVL_INFO,
LOG_LVL_WARN,
LOG_LVL_ERROR,
} log_level_t;
derr_t logger_add_fileptr(log_level_t level, FILE* f);
derr_t logger_add_filename(log_level_t level, const char* f);
void logger_clear_outputs(void);
void log_flush(void);
void auto_log_flush(bool val);
// this ALWA... |
#include <stdlib.h>
#define BIGNUM_NEGATIVE 1
#define BIGNUM_POSITIVE 0
typedef struct bigdigit bigdigit;
typedef struct bignum bignum;
struct bigdigit {
char value;
bigdigit* next;
};
struct bignum {
char sign; // 0 => +, 1 => -
bigdigit* first;
int refs;
};
/**
* Init un bignum (positif, san... |
/* SmoothWall install program.
*
* This program is distributed under the terms of the GNU General Public
* Licence. See the file COPYING for details.
*
* (c) <NAME>, 2001
*
* filename: main.c
* Contains main entry point, and misc functions. */
#include <unistd.h>
#include "install.h"
#define CDROM_INSTALL 0
... |
#include <stdio.h>
#include <stdint.h>
#include <limits.h>
#include <ctype.h>
#include "guessfsb.h"
#include "error_stuff.h"
#include "util.h"
// FMOD fsb key guessing
// based on guessfsb 0.4
enum {FSB_TYPES = 2};
const int header_sizes[FSB_TYPES] = {0x18, 0x30};
const uint8_t fsb_magics[FSB_TYPES][4] = {"FSB3", "F... |
/* $Id: xemacps.c,v 1.1.2.3 2011/05/17 12:00:33 anirudh Exp $ */
/******************************************************************************
*
* (c) Copyright 2010 Xilinx, Inc. All rights reserved.
*
* This file contains confidential and proprietary information of Xilinx, Inc.
* and is protected under U.S. and inte... |
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "GUI.h"
#include "../ft8/decode_ft8.h"
#include "../peripheral_util/st7789-library-for-pico/st7789.h"
#include "../peripheral_util/st7789-library-for-pico/gfx.h"
#include "hardware/spi.h"
#include "../peripheral_util/... |
/*
* Copyright (c) 2011, National Survey and Cadastre, Denmark
* (<NAME>), <EMAIL>
*
* 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 S... |
/* $NetBSD: disksubr.c,v 1.8 2002/03/13 13:12:29 simonb Exp $ */
/*
* Copyright (c) 2001 <NAME>
* Copyright (c) 2001 <NAME>
* Copyright (c) 2000 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditio... |
// Name : <NAME>
// ID : 504941113
// Email : <EMAIL>
#include "SortedList.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <unistd.h>
#include <signal.h>
#define BILLION 1000000000L
struct ThreadInfo {
int index;
};
int num_threads = 1;
int num... |
#include "lib/draw.h"
void draw_start_screen(SDL_Renderer** ren, Levels* level, const int win_width, const int win_height, const int time, const int create_new){
SDL_Rect rect;
// Background
rect.x = 0; rect.y = 0;
rect.w = win_width; rect.h = win_height;
SDL_SetRenderDrawColor(*ren, 25, 25, 25, 2... |
/********************************************************************
*
* Copyright (c) 2007, Institute of Embedded Systems at
* Zurich University of Applied Sciences
* (http://ines.zhaw.ch)
*
* All rights reserved.
*
*
* Redistribution and use in source and binar... |
/*****************************************************************
**
** runtime/objects.c
**
** Implementation of objects.h - everything to do with runtime
** objects.
**
***************
** September **
*****************************************************************/
// ====================================... |
#include "../teocpu-vm.h"
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#define SIZE_SYMBOL (64 + (16 * 4))
void errmsg(s)
{
puts(s);
exit(-1);
}
typedef struct {
char name[64];
uint32_t attribute[16];
} symbol_t;
char *teocpu_assembly[] = {
"0nop",
"1lr",
... |
/* m2term.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__0 = 0;
/* $Procedure M2TERM (Find possible terminators of variable template) */
/* Subroutine */ ... |
/* display.c: Routines for printing the Spectrum screen
Copyright (c) 1999-2001 <NAME> and <NAME>
$Id: display.c,v 1.14 2001/10/03 22:37:00 pak21 Exp $
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 Soft... |
/* FUNCTION list --- --- --- --- --- --- ---
*/
/*
I haven't found an ideal solution for converting 8 bit indexed surfaces to 32bit textures. However one thing that I
decided was that I don't want to call SDL_ConvertSurfaceFormat or SDL_CreateTextureFromSurface per frame.
I ended up creating two surfaces, the 8 bit... |
#include "l.h"
void
span(void)
{
Prog *p, *q;
long v, c, idat;
int m, n, mf, mt;
Optab *o;
xdefine("etext", STEXT, 0L);
idat = INITDAT;
m = 0; /* set */
start:
if(debug['v'])
Bprint(&bso, "%5.2f span\n", cputime());
c = INITTEXT;
for(p = firstp; p != P; p = p->link) {
o = &optab[p->as];
p->pc = c;
... |
/*
* 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... |
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
/* ... |
/* **************************************************************** *
* *
* Aprx -- 2nd generation APRS I-gate and digi with *
* minimal requirement of esoteric facilities or *
* libraries of any kind beyond... |
/*
Copyright (c) 2013. The YARA Authors. 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 followi... |
/* args.c - Command line argument parsing.
*
* Copyright 2006 <NAME> <<EMAIL>>
*/
// NOTE: If option parsing segfaults, switch on TOYBOX_DEBUG in menuconfig to
// add syntax checks to option string parsing which aren't needed in the final
// code (since get_opt string is hardwired and should be correct when you shi... |
// Basic Linker
// Copyright (c) 2021-2 <NAME>
// Consolidate segmented program into groups.
#include <stdlib.h>
#include <assert.h>
#include "consolidate.h"
static void build_group(SEGMENTED* prog, SEGNO first_segment, SEGMENT* first_seg, int verbose);
static void set_stack(SEGMENTED* prog, SEGNO, const SEGMENT*, in... |
/*
loadconfig.c
read config file, fill structures with initial parameters
ATTENTION: becouse log_thread starting after loading configuration, all log messages written to SYSLOG
Use
cat /var/log/syslog | grep glonassd
for see logs
*/
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <errno.h> /... |
/* convrt.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__27 = 27;
static integer c__5 = 5;
static integer c__3 = 3;
static integer c__9 = 9;
/* $Procedure ... |
/*
VES1820 - Single Chip Cable Channel Receiver driver module
Copyright (C) 1999 Convergence Integrated Media GmbH <<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; eith... |
/*-
* Copyright (c) 2000 <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 a... |
/* <NAME> `gentilkiwi`
http://blog.gentilkiwi.com
<EMAIL>
Licence : https://creativecommons.org/licenses/by/4.0/
*/
#include "mimilove.h"
int wmain(int argc, wchar_t *argv[])
{
DWORD pid;
HANDLE hProcess;
PKULL_M_MEMORY_HANDLE hMemory;
OSVERSIONINFO osInfo;
kprintf(L"\n"
L" .#####. " MIMI... |
#include "f2c.h"
#include "blaswrap.h"
/* Table of constant values */
static integer c__2 = 2;
static integer c__1 = 1;
/* Subroutine */ int ctgsy2_(char *trans, integer *ijob, integer *m, integer *
n, complex *a, integer *lda, complex *b, integer *ldb, complex *c__,
integer *ldc, complex *d__, integer *ldd, comp... |
#include "rmd128.h"
#define ROL(x, n) (((x) << (n)) | ((x) >> (32-(n))))
#define F(x, y, z) ((x) ^ (y) ^ (z))
#define G(x, y, z) (((x) & (y)) | (~(x) & (z)))
#define H(x, y, z) (((x) | ~(y)) ^ (z))
#define I(x, y, z) (((x) & (z)) | ((y) & ~(z)))
/* the eight basic operations FF() through III() */
#define FF(a, b, c,... |
/*
* Copyright (c) 2018, 2019 <NAME> <<EMAIL>>
* Copyright (c) 2015 <NAME> <<EMAIL>>
* Copyright (c) 1997 <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 noti... |
#define _POSIX_C_SOURCE 200809L
#include "jobType.h"
#include <signal.h>
/**
* spit.c
*
* the main() for ./spit, Stu's powerful I/O tester
*
*/
#include <stdlib.h>
#include <string.h>
#include "positions.h"
#include "utils.h"
#include "diskStats.h"
#include "spitfuzz.h"
#define DEFAULTTIME 10
int verbose = ... |
/* sqUnixEvdevKeyMouse.c
* Connect libevdev events into Squeak Mouse and Keyboard Events
*
* Author: <EMAIL>
* Last Updated: August 2020
*/
/*
* Copyright (C) 2020 <NAME>
* All Rights Reserved.
*
* This file is part of OpenSmalltalk / Unix Squeak.
*
* Permission is hereby granted, free of charge, to any... |
#pragma once
#include <immintrin.h> // AVX
// adapted from http://jrfonseca.blogspot.com.es/2008/09/fast-sse2-pow-tables-or-polynomials.html
#define EXP4_POLY_DEGREE 5
#define EXP8_POLY_DEGREE 5
#define LOG4_POLY_DEGREE 5
#define LOG8_POLY_DEGREE 5
// exp2
#define M128_POLY0(x, c0) _mm_set1_ps(c0)
#d... |
/* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2018 INRIA.
*
* 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
*
*... |
/**
******************************************************************************
* File Name : hvac_ctl.c
* Description : This file provides code for the control and monitor
* of LGAC unit via the reverse engineered IR remote codes
**************************************... |
/*
* H.26L/H.264/AVC/JVT/14496-10/... encoder/decoder
* Copyright (c) 2003 <NAME> <<EMAIL>>
*
* This file is part of Libav.
*
* Libav 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
* ve... |
/*****************************************************************************\
** export_kml.c **
** KML export code **
\*****************************************************************************/
... |
/* -----------------------------------------------------------------------------
* Programmer(s): <NAME> @ LLNL
* -----------------------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-2022, Lawrence Livermore National Security
* and Southern Methodist Univers... |
/*
* razor.c
*
* Created: 12/09/2012 16:56:36
* Author: <NAME>
*/
#include "razor.h"
#include "razor_math.h"
#include "common.h"
#include <math.h>
#ifndef _MSC_VER
// If compiling on VisualStudio, compiler is C++ so booleans are implemented.
// Else, in AtmelStudio, compiler is C so boolean support must be incl... |
/*
* Driver for Blackfin On-Chip MAC device
*
* Copyright (c) 2005-2008 Analog Device, Inc.
*
* Licensed under the GPL-2 or later.
*/
#include <common.h>
#include <config.h>
#include <net.h>
#include <netdev.h>
#include <command.h>
#include <malloc.h>
#include <miiphy.h>
#include <linux/mii.h>
#include <asm/bla... |
/*
* Copyright (C) 1999-2020 <NAME>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* SPDX-License-Identifier: GPL-2.0-or... |
/*
* Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009
* <NAME> <<EMAIL>>.
*
* This file is part of JamVM.
*
* 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,
* or ... |
/* Topology Builder <NAME>
IUPUI Physics Dept. NMR Center
402 N. Blackford St.
Indianapolis, IN 46202
USA
Functions to judge the bond type
NOTICE: This is a derivative work based on study of the finalize
function found in the antechamber 1.27 program bondtype, version
1.0, dated O... |
/* input_scrub.c - Break up input buffers into whole numbers of lines.
Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
2000
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
GAS is free software; you can redistribute it and/or modify
it under the terms... |
/**********************************************************
* Copyright 2009-2011 VMware, 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
* restricti... |
/*
* POC to gain arbitrary kernel R/W access using CVE-2019-2215
* https://bugs.chromium.org/p/project-zero/issues/detail?id=1942
*
* <NAME> & <NAME> of Google Project Zero
*
* 3 October 2019
*/
#define _GNU_SOURCE
#include <stdbool.h>
#include <sys/mman.h>
#include <sys/wait.h>
#include <ctype.h>
#include <sys/... |
/*
* Game of life made by https://github.com/r4v10l1
* Feel free to fork and improve the code.
*
* Using SDL2.
*
* In this code, variables with value 0 generally mean ON
* and with value 1, OFF.
* */
#include <stdio.h>
#include <stdlib.h> // For random numbers
#include "SDL.h"
#define WINDOW_W 1200 // Windo... |
/* cols: wrap standard input into columns
*
* Similar to the "columns" command from GNU AutoGen, and the "column"
* command from util-linux. However, this version is more portable,
* simpler, faster, less memory-intensive, more precise, more correct,
* and better-licensed.
*
* Very roughly supports UTF-8 by assu... |
/* Support for printing Java values for GDB, the GNU debugger.
Copyright (C) 1997-2013 Free Software Foundation, Inc.
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 Software Fo... |
/* ************************************************************************
* File: act.comm.c Part of CircleMUD *
* Usage: Player-level communication commands *
* *
* All rights re... |
#include <ncurses.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
void spawn_demon();
void spawn_rocks();
void spawn_dragon();
void spawn_dwarf(int);
void delete_boy(int index);
void find_target();
void move_towards_target(int index, int *dirx, int *diry);
struct entity {
int x;
int y;
ch... |
/*
日立ベーシックマスターJr.エミュレータ
ユーティリティ
*/
#include <stdio.h>
#include <string.h>
#include "bm2.h"
/* 小さいほうの値を戻す */
#define MIN(x, y) ((x) < (y) ? (x): (y))
static char *autoKeyBuffer = NULL; /* 自動キー入力のバッファ */
static char *autoKeyPointer = NULL; /* 自動キー入力の読み込みポインタ */
static int autoKeyCount = 0; /* 自動キー入力のカウンタ */
static i... |
/* The following routine will fill "act" with ship and nampla data necessary
for an action; i.e., number of shots per round, damage done per shot,
total shield power, etc. Note that this routine always restores shields
completely. It is assumed that a sufficient number of rounds passes
between actions of a... |
/*
* Portions Copyright 2013-2015 Technology Concepts & Design, Inc
* Portions Copyright 2015-2018-2019 ZomboDB, LLC
*
* 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://ww... |
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 <NAME> <<EMAIL>>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* MT9V034 driver.
*
*/
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include STM32_HAL_H
#include "cambus.h"
#include "sensor.... |
/**
* @file BtServer.c
* @author <NAME>
*
* @copyright Copyright (c) 2014 Battelle Memorial Institute. All rights reserved.
*
* @par
* Unauthorized use or duplication may violate state, federal and/or
* international laws including the Copyright Laws of the United States
* and of other internat... |
/* Extended Module Player
* Copyright (C) 1996-2016 <NAME> and <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... |
#include <sfheader.h>
#include <ugens.h>
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#define SIZE 131072
double array[2][SIZE];
float tabs[2][2];
double warparray[2][SIZE];
float warptabs[2][2];
double ringarray[2][SIZE];
float ... |
// SPDX-License-Identifier: MIT
/*
* Copyright 2019 HabanaLabs, Ltd.
* All Rights Reserved.
*/
#include "hlthunk_tests.h"
#include "gaudi/gaudi.h"
#include "gaudi/asic_reg/gaudi_regs.h"
#include "gaudi/gaudi_packets.h"
#include "ini.h"
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <limits.... |
#include "bbt.h"
//----------------BBT ESTÁTICA-----------------------
bbt_e* inicia_bbt_e(){
bbt_e *be;
be=(bbt_e*)malloc(sizeof(bbt_e));
if(be!=NULL){
be->inicio=0;
be->final=0;
be->quantidade=0;
}
return be;
}
int insere_texto_e(bbt_e *be, texto_e te){
if(be==NULL){
... |
/**
* object_id.c - Processing of object ids
*
* This module is part of ntfs-3g library
*
* Copyright (c) 2009 <NAME>
*
* This program/include file 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; eith... |
/*********************************
Interface for PlayStation 2
By: <NAME> and <NAME>
Copyright 2009-2012
Description:
This AVR is designed to act like
a PlayStation controller. It has
input pins that correspond to the
buttons found on PlayStation
controllers. It communicates with
a PlayStation console via SPI.
... |
/*
linphone
Copyright (C) 2010-2015 Belledonne Communications SARL
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This progra... |
/* mpn_gcdext -- Extended Greatest Common Divisor.
Copyright 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 Free Software
Foundation, Inc.
This file is part of the GNU MP Library.
The GNU MP Library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Lice... |
#include <math.h>
#include <gmp.h>
#include "ptypes.h"
/*****************************************************************************
*
* The AKS polynomial-time deterministic primality test.
*
* Multiple variants are implemented. The original algorithm as shown in
* articles such as Rotella (2005) is... |
/*
*
* Copyright (C) 2002 Intersil Americas Inc.
* Copyright 2004 <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
*
* This pro... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define thisprog "xe-lombscargle1"
#define TITLE_STRING thisprog" v 4: 21.August.2018 [JRH]"
#define MAXLINELEN 1000
/*
<TAGS>signal_processing stats</TAGS>
TO DO:
P-calculation is almost certainly incorrect
Recommend for cell rhythmicit... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "data.h"
#include "random.h"
#include "list.h"
#include "dataDistanceMatrix.h"
#define SWAP(a, b) { tmp = v[a]; v[a] = v[b]; v[b] = tmp; }
/*
* to data einai to global, to conf einai hidden
*/
extern dataIF data;
double qsel... |
const int MAX_UI_ELEMENTS = 512;
size_t UI_POOL_SIZE = Kilobytes(64);
typedef struct {
int Hot; // item currently being hovered over, or tab-selected
int Active; // item currently being used, typed in, etc
} UI_State;
// this is used to determine which single UI items are
// currently active (just clicked), or... |
/* ---------------------------------------------------------------
Phase Vocoder by Portnoff's algorithm
Originally on 12/2/1994
Modified 2012
Copyright (c) 2012 <NAME>
--------------------------------------------------------------- */
#include <stdio.h>
#include <stdlib.h>
#include <math.h... |
/* tst_stringprep.c --- Self tests for stringprep().
* Copyright (C) 2002-2016 <NAME>
*
* This file is part of GNU Libidn.
*
* 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... |
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <ztest.h>
#include <zephyr/sys/crc.h>
#include "../../../lib/os/crc8_sw.c"
#include "../../../lib/os/crc16_sw.c"
#include "../../../lib/os/crc32_sw.c"
#include "../../../lib/os/crc32c_sw.c"
#include "../../../lib/os/crc7_... |
/*
* unistr.c - NTFS Unicode string handling. Part of the Linux-NTFS project.
*
* Copyright (c) 2001-2006 <NAME>
*
* This program/include file 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 vers... |
#include "estruturas.h"
#define null NULL
int max(int x, int y){
return (x > y) ? x : y;
}
node_bin *init_tree(node_bin *tree){
tree = (node_bin*)malloc(sizeof(node_bin));
tree = null;
return tree;
}
// Inserir na arvore
void insert_on_tree(int info, node_bin **tree){
node_bin *newNode;
if((... |
// Program for the database of oxygen supply for hospitals and from manfacturing companies.
// Uses the concept of single linked list.
#include<stdio.h>
#include<string.h>
#include<malloc.h>
// Algorithm for hospitals
struct node1{
char loc1[100];
char name1[1000];
int bed1;
int pat1;
float amo_oxy1;
... |
#include "drelease.h"
ID_ COMMON_IPC_ID[] =
"\0@(#) " __FILE__ " $Revision: 1.7 $$Date: 2014/12/05 14:24:30 $";
/****************************************************************
*
* COMMON_IPC.C - useful fns which know about shared resources
* <NAME>
*
* ~~ Copyright 2000-2014 <NAME> and <NAME>
*
... |
/*
AUTHOR: <NAME>
NAME: bodypRJMCMC.c
DESCRIPTION: Body of the Phase Two of CU-MSDSp
MIT License
Copyright (c) 2020 <NAME> III
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 restricti... |
/*
* Project: Master batterytester
* Hardware: ATmega16 @ Mainboard_V2 (NOV-2009)
* Author: <EMAIL>
* last change: JUN-2012
*/
#include <ctype.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <avr/interrupt.h>
#include <avr/io.h>
#include <... |
/**
* CM30225 Parallel Computing
* Assessment Coursework 2
*
* Relaxation technique for solving differential equations in a distributed
* memory architecture using MPI (Message Passing Interface)
*
* Local usage:
* 1) "mpicc -Wall -Wextra -Wconversion main.c -o distributed_relaxation"
* 2) "mpirun ... |
/*
* File: driver_LCD1602_sfcn.c
*
*
* --- THIS FILE GENERATED BY S-FUNCTION BUILDER: 3.0 ---
*
* This file is an S-function produced by the S-Function
* Builder which only recognizes certain fields. Changes made
* outside these fields will be lost the next time the block is
* used t... |
/**
* Copyright (c) 2016 - 2019, Nordic Semiconductor ASA
*
* 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, th... |
/* cke03.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__4 = 4;
static integer c__3 = 3;
/* $Procedure CKE03 ( C-kernel, evaluate pointing record, data type 3 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.