text stringlengths 3.12k 18.7k |
|---|
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>
#define NUM_MOVES 4
const double TARGET_ACCEPTANCE = 0.1;
const double KBT = 1;
/* qsort int comparison function */
int int_cmp(const void *a, const void *b)
{
const int *ia = (const int *)a; // casting pointer types
const i... |
// Demo of multiple stream/window capability (requires Tk or Tcl-DP).
//
// <NAME>
// IFS, University of Texas at Austin
//
// Copyright (C) 2004 <NAME>
//
// This file is part of PLplot.
//
// PLplot is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library Genera... |
/*
Copyright (c) 2012, Broadcom Europe 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:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and th... |
/* How many pieces of land? */
#include <stdio.h>
#include <stdlib.h>
#define MAXDIGITS 60
#define PLUS 1
#define MINUS -1
typedef struct {
char digits[MAXDIGITS];
int signbit;
int lastdigit;
} bignum;
void print_bignum(bignum *n) {
int i;
if (n -> signbit == MINUS) putchar('-');
... |
/* Convert between 'struct utmp' and 'struct utmx'.
Copyright (C) 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by <NAME> <<EMAIL>>, 2002.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Publ... |
/* vim: set et: */
/************************************************************************
* Id: cfg.c *
* *
* TR069 Project: A TR069 library in C *
* Co... |
#include "UserInterface.h"
#include <assert.h>
#include <stdio.h>
#include "Medicine.h"
#include "Repository.h"
#include "DynamicArray.h"
#include "UndoRedo.h"
void testFunction() {
Medicine *med, *copy, *med2;
DynamicArr * arr;
Repository *repo;
//create REPO
repo = createRepository(compareMedicines, destroyMe... |
/* main.c
* This file contains the main program and driver for the raytracer.
*
* $Id: animspheres.c,v 1.13 2002/07/03 04:59:28 johns Exp $
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "tachyon.h"
int rt_mynode(void); /* proto */
/* Number of frames to render */
#define MAXFRAMES 4... |
/*
* qaul.net is free software
* licensed under GPL (version 3)
*/
#include "qaullib_private.h"
#include <pj/config_site.h> // local configuration needs to be included for android
#include <pjsua-lib/pjsua.h>
#define THIS_FILE "qaullib_voip.c"
#define SIP_USER "qaul"
// currently active call id
static pjsua_call... |
/// MentOS, The Mentoring Operating system project
/// @file elf.h
/// @brief Function for managing the Executable and Linkable Format (ELF).
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
/// See LICENSE.md for details.
#pragma once
#include "process/process.h"
#include "... |
/* Tests for name switch cache daemon (nscd) door wrapper. */
#include "config.h"
#include <assert.h>
#include <ctype.h>
#include <door.h>
#include <fcntl.h>
#include <inttypes.h>
#include <nss_dbdefs.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <unistd.h>
#include <sys/mman.h>
#if defined... |
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include "nids.h"
#include "ant_queue.h"
#include "ant_... |
#include<stdlib.h>
#include<stdio.h>
#define maxnode 100
#define TRUE 1
#define FALSE 0
int numberNodes;
int numberLinks;
int numberQuery;
int sizeofHashTable;
int prime;
int parent[maxnode];
int distance[maxnode];
int seen[maxnode];
int graph[maxnode][maxnode];
int shortestDis[maxnode][maxnode];
int que... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/* nv2ps.f -- translated by f2c (version 19990503).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Common Block Declarations */
struct {
real xrow, xcol, xlat1, xspace, xqlon, xblat;
integer itype;
real xpole, fac;
integer ihem, iwes... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
/*
* Copyright 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "samd20.h"
#include "code.h"
#include "utils.h"
#include "rtc.h"
#include "flash.h"
#include "tone.h"
#include "oled.h"
#include "uart.h"
#include "cmd.h"
#include "tasks.h"
static Eeprom_time eeprom_time;
stat... |
/* cabinfo -- dumps useful information from cabinets
* (C) 2000-2018 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your optio... |
/* See LICENSE file for copyright and licensing details */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <time.h>
#include <SDL.h>
#include "int.h"
#include "anim.h"
#include "obj.h"
#include "level.h"
#include "rndr.h"
#include "tile.... |
#include <stdio.h>
#include <pthread.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <pthread.h>
#include <unistd.h>
#include "dbg.h"
#include <stdint.h>
#include <stdlib.h>
#include "futex.h"
#include "main.h"
//file descriptors are bad. fopen With FILE struct better
int urandom_fd;
RWlock rwlocks[FILES_COUNT]=... |
/* default1D.c */
/*---------------------------------------------------------------------------*/
/* */
/* default1D.c: 1D recon */
/* ... |
/**
* \file src/DENSE/module.c
* \ingroup MATTYPE_DENSE
* \brief Generalized compressed sparse row (DENSE) implementation.
*/
#include <oski/config.h>
#include <stdarg.h>
#include <oski/common.h>
#include <oski/matrix.h>
#include <oski/DENSE/format.h>
#include <oski/DENSE/module.h>
#include <oski/CSR/module.h... |
/**
* \file
*
* \brief SAM BOD Callback Quick Start
*
* Copyright (C) 2015 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page Licensepo
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
... |
/*
$Id$
Copyright 1989-2014 MINES ParisTech
This file is part of PIPS.
PIPS is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
PIPS is distr... |
/*
Audio File Library
Copyright (C) 2001, Silicon Graphics, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
... |
/*
* Copyright (C) 2016 BayLibre, SAS
* Author: <NAME> <<EMAIL>>
* Copyright (C) 2015 Amlogic, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2... |
#include "hash.h"
#include "sha256.h"
#include <stdbool.h>
#include <stdint.h>
/*
* This defines the various internal functions that Sphincs+ relies on
*
* Random musing: we could rearchitecture this to use function pointers,
* rather than passing a hash_t around (and using switch statements based
* on the hash t... |
/**
* \file
* \brief main l2 agent functionality implemented here
*
* This is the main implementation of a level 2 agent (LLDP/HTIP) and extended level 2 agent
* (LLDP/HTIP over GRE).
*/
#include <stdlib.h>
#include <string.h>
#include <lwip/opt.h>
#include <lwip/def.h>
#include <lwip/tcpip.h>
#include <lwip/net... |
/*
* url-parser.c
*
* copyright (c) 2019 <NAME>
*
* author: <NAME> <<EMAIL>(a)gmail.<EMAIL>>
* license: Apache2.0
*
* https://github.com/shixiongfei/url-parser
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "url-parser.h"
static int url_isschemechar(int c) {
... |
/*******************************************************
Copyright (C) 1995 <NAME>
All rights reserved
This file is part of yaehmop.
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 r... |
/*
* Copyright 2016, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the f... |
/*************************************************************************//**
* @file main.c
* @version V1.00
* @brief
* Configure USCI_SPI1 as Master mode and demonstrate how to communicate with an off-chip SPI Slave device.
* Needs to work with USCI_SPI_SlaveMode sample code.
*
* @copyr... |
/*
* Copyright (c) 2021 HiSilicon Technologies Co., Ltd.
* Wayca scheduler is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED... |
#include "common.h"
#include <ndb.h>
#include <smtp.h> /* to publish dial_string_parse */
enum
{
Nmx= 16,
Maxstring= 256,
Maxipstr= 8*5, /* ipv6 */
};
typedef struct Mx Mx;
struct Mx
{
char host[Maxstring];
char ip[Maxipstr]; /* this is just the first ip */
int pref;
};
char *bustedmxs[Maxbustedmx];
Ndb *db... |
/*++
Copyright (c) 1997 Microsoft Corporation
Module Name:
copythrd.c
Abstract:
CopyThread routine copies files needed to support migration modules. This
thread runs in the background while the user is reading the backup instructions,
or while WINNT32 is doing some work. Any file copi... |
#include "../inc/editor.h"
#define CTRLKEY(k) ((k)&0x1f)
struct editorConfig E;
extern int ENABLE_LINE_NUMS;
extern int LINE_NUM_WIDTH;
void initEditor() {
for (int i = 0; i < E.numrows; ++i) { freeRow(&E.row[i]); }
E.cx = 0;
E.oldcx = 0;
E.cy = 0;
E.numrows = 0;
E.scrollRow = 0;
E.scroll... |
/*
* bsxfun.c
*
* Code generation for function 'bsxfun'
*
* C source code generated on: Tue Jan 14 10:28:31 2014
*
*/
/* Include files */
#include "rt_nonfinite.h"
#include "logsumexp2.h"
#include "bsxfun.h"
#include "logsumexp2_emxutil.h"
#include "logsumexp2_mexutil.h"
/* Variable Definitions */
static emlrt... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <stdbool.h>
#include <stdint.h>
static char buf[1024];
static struct {
uint64_t user;
uint64_t nice;
uint64_t system;
uint64_t idle;
uint64_t iowait;
uint64_t irq;
uint64_t softirq;
uint64_t steal;
uin... |
//
// chine executive
//
// usage:
// chine_exec packed.script (or $0 from script)
// chine_exec prog.x run chine code from file
// chine_exec run chine code from stdin
//
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include "chine.h"
//#define DE... |
/*! Dynamic memory allocator - Grid Memory Allocator, based on TLSF algorithm */
#define _GMA_C_
#include <lib/gma.h>
static gma_t pool; /* first pool, used if none is specified */
/*!
* Initialize dynamic memory manager
* \param memory_segment Memory pool start address
* \param size Memory pool size
* \param mi... |
/*
Copyright 2010-2013 SourceGear, 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://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... |
/*
* Virtue: better than VICE
* File: board.c
* Usage: Provides internal board representation and piece lists.
* Functions:
* int PceListOk(const S_BOARD *pos)
* int CheckBoard(const S_BOARD *pos)
* void UpdateListsMaterial(S_BOARD *pos)
*/
#include <stdio.h>
#include "defs.h"
int PceListOk(const S_BOAR... |
/*!\file geometry.h
*
* \brief quelques surfaces basiques sous forme polygonale : un plan
* (quad), un cube et une sphere.
*
* \author <NAME>, <EMAIL>
* \date December 2, 2020.
*/
#include "moteur.h"
#include <assert.h>
#if defined(_MSC_VER)
# define _USE_MATH_DEFINES
#endif
#include <math.h>
/*!\brief fabriq... |
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include "../../../../src/flash/nor/spi.h"
/* Register offsets */
#define FESPI_REG_SCKDIV 0x00
#define FESPI_REG_SCKMODE 0x04
#define FESPI_REG_CSID 0x10
#define FESPI_REG_CSDEF 0x14
#define FESPI_REG_CSMODE 0... |
// end_adapter is the code for including this function in bioawk_cas
// gcc suffix_match_snippet.c -o suffix_match_snippet -O2 -mavx2 -pedantic-errors -lz
// -std=gnu17 is the default for C code
// you can use -S to generate the assembly equivalent of the code in a .s file (when not using -o)
// -mavx2 gets popcnt, do... |
/*
* Copyright 2019 NXP
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#include <platform_def.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <debug.h>
#include <errno.h>
#include <string.h>
#include <io.h>
#include <ddr.h>
#include <utils.h>
#include <utils_def.h>
#inc... |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - <NAME>
* Copyright (C) 2011-2017 - <NAME>
* Copyright (C) 2014-2017 - <NAME>
*
* RetroArch 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 Foun... |
/*
* s2lp.c
*
* Created on: 28 cze 2021
* Author: SteelPh0enixLocal
*/
#include "s2lp.h"
#include "bit_helpers.h"
#include <string.h>
void S2LP_Initialize(S2LP_Handle* handle, S2LP_ClockFrequency frequency) {
S2LP_InitHandle(handle);
handle->frequency = frequency;
S2LP_Reset(handle);
... |
#include <postgres.h>
#include <stdio.h>
#include <string.h>
#include <search.h>
#include <stdlib.h>
#include <math.h>
#include "access/tupmacs.h"
#include "catalog/pg_type.h"
#if PG_VERSION_NUM >= 90100
#include "catalog/pg_collation.h"
#endif
#include "utils/array.h"
#include "utils/builtins.h"
#include "utils/lsys... |
#include <stdio.h>
#include <getopt.h>
#include <stdbool.h>
#include <stdlib.h>
#include "timer.h"
#include "util.h"
#include "mat_mul.h"
#include "mat_mul_ref.h"
#ifdef USE_MPI
#include <mpi.h>
#define EXIT(status) \
do { \
MPI_Finalize(); \
exit(status); \
} while (0);
#define PRINTF_WITH_RANK(rank, fm... |
/*
* Copyright (c) 2015 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
... |
#include "common.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int decode(uint8_t* rom, opcode_t* opcode) {
uint8_t op = *rom;
uint8_t imm = rom[1];
uint8_t dd = (op >> 4) & 3;
uint8_t last3 = op & 7;
uint8_t last4 = op & 0xf;
uint8_t aa = ((op >> 6) & 3);
memset(opcode, 0, sizeof(opcode_t));
... |
#include <string.h>
#include "erl_nif.h"
#include "lol_html.h"
ERL_NIF_TERM atom_ok;
ERL_NIF_TERM atom_true;
ERL_NIF_TERM atom_false;
ERL_NIF_TERM atom_comment;
ERL_NIF_TERM atom_text;
ERL_NIF_TERM atom_element;
ERL_NIF_TERM atom_end;
ERL_NIF_TERM atom_enomem;
typedef struct {
lol_html_rewriter_builder_t *builder;... |
// 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... |
/* -MODULE----------------------------------------------------------------------
RapidBATCH
Copyright (C) 2008, 2009 by Phorward Software Technologies, <NAME>
http://www.phorward-software.com ++ <EMAIL>
File: rb_vm.stack.c
Author: <NAME>
Usage: Virtual machine variable access and manipulation via the
virtual machine... |
#include "stddefx.h"
/********/
/* USES */
/********/
/* libs ext. <>, our "" */
#include <sys/stat.h>
#ifndef _MSC_VER
# include <unistd.h>
# include <dirent.h>
#endif
#include <string.h>
#include "misc.h"
/* global header (opt.) and filestat's prototypes "" */
/* headers of this app. modules called */
/******... |
/* SIE CONFIDENTIAL
PlayStation(R)4 Programmer Tool Runtime Library Release 05.008.001
* Copyright (C) 2016 Sony Interactive Entertainment Inc.
* All Rights Reserved.
*/
const char *meshDesc[] =
{
"SG01.mesh",
"SG01_b.mesh",
"SG08.mesh",
"SG09.mesh",
"SG010.mesh",
"SG011.mesh",
"SG012.mesh... |
#include <nds.h>
#include <string.h>
#include "io_acekard.h"
#include "io_ak_sd.h"
typedef enum _tagAK_SLOT1_ROM_MODE
{
SLOT1_ROM_MODE_FLASH = 0,
SLOT1_ROM_MODE_SD = 1
} AK_SLOT1_ROM_MODE;
static void AKP_set_direct_sd_mode()
{
u8 cmd[] = { 0, 0, 0, 0, 0, 0, 0, 0xd3 };
cardWriteCommand( cmd );
CARD_CR2 = CARD... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
** This notice applies to any and all portions of this... |
/* CMSIS-DAP Interface Firmware
* Copyright (c) 2009-2013 ARM Limited
*
* 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 re... |
/* Copyright (c) 2014 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.
*
* Misc functions which need access to vb2_context but are not public APIs
*/
#include "2sysincludes.h"
#include "2api.h"
#include "2misc.h"
#i... |
/***************************
* lcd3-test.c
*
* Revision 0.1 April 2016 shabaz
* Revision 1.0 August 2019 shabaz
* Revision 1.1 August 2019 shabaz - added PocketBeagle code
*
* This is an I2C test program that can be used with the
* 3-digit LCD module design described here:
* https://bit.ly/2Mh4kvp
*
******... |
#include <sys/syscall.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <signal.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include "config.h"
#include "sandbox.h"
#include "binder.h"
#include "ptraceaux.h"
#include "log.h"
#define DEV_BINDER "/dev/binder"
#define IS_WRITE(oflag) ((oflag & O_WRON... |
/*
Leonardo is different from Uno. The control lines are now all on PORTF
LCD_RST PF1
LCD_CS PF4
LCD_CD PF5
LCD_WR PF6
LCD_RD PF7
*/
#define RS_PIN 1
#define CS_PIN 4
#define CD_PIN 5
#define WR_PIN 6
#define RD_PIN 7
#define CONTROLPORT PORTF
/*
The data lines are not set up as nicely for fast IO, as the ports a... |
/*
****************************************************************************
* Copyright IBM Corporation 1988, 1989 - All Rights Reserved *
* *
* Permission to use, copy, modify, and distribute this software and its *
* documen... |
/*
* Copyright 2018-2020 <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 a... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
//
// Created by <NAME> on 2020/8/23.
//
#include <server/socket.h>
#include <server/loop.h>
#include <server/pools.h>
#include <server/db_cache.h>
#include <server/curl.h>
#include <db/io.h>
#include <db/resp_cache.h>
#include <dns/utils.h>
#include <dns/compose.h>
#include <dns/print.h>
#include <stdlib.h>
#include ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "josephus.h"
// ----- definição do struct soldado ----- //
typedef struct soldado{
int posicao;
char nome[100];
} Soldado;
// ----- definição do struct elemento ----- //
typedef struct elemento{
Soldado *dado;
struct elemento *prox;
} Element... |
#include<stdio.h>
#include<mpi.h>
#include<stdlib.h>
#include<unistd.h>
#include<assert.h>
int warmup_num = 0;
int window_size = 256;
int msg_size = 1024;
int iter_num = 1;
int want_multithread = 1;
int me;
int size;
int n_send_process=1, m_recv_process=1;
int x_send_thread=1,y_recv_thread=1;
int i_am_sender;
int i_am... |
//MIT License
//
//Copyright (c) 2017 tvelliott
//
//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,... |
/*
* client_main.c
*
* Created on: 06.10.2015
* Author: tecdroid
*
* message
* {
* "read":1|0,
* "slave":10,
* "addr":120,
* "length":2,
* "data": "b64",
* }
*/
#include <daemonizer.h>
#include <getopt.h>
#include <linux/i2c-dev.h>
#include <log.h>
#include <rocsmq.h>
#include <rocsmqthread.... |
// The Computer Language Benchmarks Game
// http://benchmarksgame.alioth.debian.org/
//
// Contributed by <NAME>
// This controls the width of lines that are output by this program.
#define MAXIMUM_LINE_WIDTH 60
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// intptr_t should be the ... |
/* ###################################################################
** Filename : main.c
** Project : ProyectoB
** Processor : MC9S08QE128CLK
** Version : Driver 01.12
** Compiler : CodeWarrior HCS08 C Compiler
** Date/Time : 2019-06-22, 17:07, # CodeGen: 0
** Abstract ... |
/**********************************************************************
* $Id: cu_tester.c 9730 2012-05-09 12:08:06Z strk $
*
* PostGIS - Spatial Types for PostgreSQL
* http://postgis.refractions.net
* Copyright 2008 <NAME> <<EMAIL>>
*
* This is free software; you can redistribute and/or modify it under
* the t... |
/**
* @file
* @brief Text and graphics output to the LCD display.
*
* @date 09.10.10
* @author <NAME>
*/
#include <embox/unit.h>
#include <hal/reg.h>
#include <string.h>
#include <drivers/at91sam7s256.h>
#include <drivers/nxt/lcd.h>
EMBOX_UNIT_INIT(unit_lcd_init);
//TODO move to bsp
#define SPI_BITRATE 200... |
#include <errno.h>
#include <netdb.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/epoll.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/wait.h>
#inc... |
#include <csuCommon.h>
Matrix findLMatrix(Matrix W, Matrix D)
{
return subtractMatrix(D, W);
}
Matrix findDMatrix(Matrix Dist)
{
int i, j;
Matrix D;
double Sum;
D = makeMatrix(Dist->row_dim, Dist->col_dim);
for (i = 0 ; i < D->row_dim; i++)
{
Sum = 0;
for (j = 0 ; j < D->... |
#include "vars.h"
#include "zlmath.h"
#include "zcsound.h"
s32 ta,taa,range,insight,ta;
s32 x,y,z,dx,dy,dz,vx,vy;
s32 airange=5*65536;
u8 mobsee(u8 i0,u8 i1)
{
s32 x,y,z,ix,iy,iz,d,d0,i;
u8 see=1;
x=mob[i0][1];
y=mob[i0][2];
z=mob[i0][3]+45536;
ix=mob[i1][1]-x;
iy=mob[i1][2]-y;
iz=(mob[i1][3]+45536)-z;
i... |
/*
* 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... |
/*
* 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 program is distributed in the hope that it will be use... |
/* This is from the BIND 4.9.4 release, modified to compile by itself */
/* Copyright (c) 1996 by Internet Software Consortium.
*
* 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 n... |
/// PROJECT: Deltarune MD
/// FILE: src/main.c
/// AUTHOR: RatcheT2497
/// CREATION: ???
/// MODIFIED: 12/10/21
/// DESCRIPTION: Main project file. Contains the entry point for the program, initialization and main game loop.
/// Also includes some content which I ... |
/*
* ===========================================================================
* Loom SDK
* Copyright 2011, 2012, 2013
* The Game Engine Company, 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 o... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (c) 2015 Google, Inc
* Written by <NAME> <<EMAIL>>
*
* Copyright (c) 1992 <NAME>
*/
#include <common.h>
#include <errno.h>
#include <log.h>
#include <malloc.h>
#include "membuff.h"
void membuff_purge(struct membuff *mb)
{
/* set mb->head and mb->tail so the bu... |
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#define N 288 /* frame dimension for QCIF format */
#define M 352 /* frame dimension for QCIF format */
#define filename "akiyo_cif_0_yuv444.yuv"
#define file_y "akiyo2y.yuv"
#define iTile 144
/* code for armulator*/
#pragma ar... |
/*******************************************************************************
* Copyright 2016-2020 ARM 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.apach... |
#include "xdp-dumper.h"
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC 1
#endif
#define NANOSECS_PER_USEC 1000
#define NANOSECS_PER_SEC 1000000000
typedef struct perf_event_header PerfEventHeader;
typedef struct perf_event_attr PerfEventAttribute;
typedef struct rlimit RLimit;
typedef struct bpf_prog_load_attr BPF... |
/*
* FLI/FLC Animation File Demuxer
* Copyright (c) 2003 The FFmpeg project
*
* 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 t... |
/*! \file bcma_clicmd_rcload.c
*
* CLI 'rcload' command.
*/
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
#include <bsl/bsl.h>
#include <sal/sal_libc.h>
#inc... |
/* Copyright (C) 2011 The Regents of the University of California
* See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
/**
\page createSageSummary.doxp createSageSummary Doc Page
<P>createSageSummary takes the tagList file
(i.e. SAGEmap_ug_tag-rel-Nla3-Hs) and the file produced by ... |
/* crypto/txt_db/txt_db.c */
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME> (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
#include <assert.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdint.h>
#include <inttypes.h>
#define FAST 1
#define TRACE 0
#define quit(s, ...) \
do { \
fprintf(stderr, s "\n" __VA_OPT__(,) ... |
#include "clar_libgit2.h"
#include "posix.h"
#include "blob.h"
#include "filter.h"
#include "buf_text.h"
#include "git2/sys/filter.h"
#include "git2/sys/repository.h"
#include "custom_helpers.h"
static git_repository *g_repo = NULL;
static git_filter *create_wildcard_filter(void);
#define DATA_LEN 32
static unsigne... |
/*
* 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: seq_main.c (an sequential version) */
/* Description: This program shows an example on how to call a subroutine */
/* that implements a simple k-means clustering algorithm */
... |
/* generate gaussian images
*
* Written on: 30/11/1989 by Nicos
* Updated on: 6/12/1991
* 7/8/96 JC
* - ansified, mem leaks plugged
* 20/11/98 JC
* - mask too large check added
* 18/3/09
* - bumped max mask size *40
* - added _sep variant
* 30/3/09
* - set scale in _sep variant, why not
* 21/10/10
* -... |
#include <stdio.h>
#include <stdbool.h>
#include <errno.h>
#include <assert.h>
#include <time.h>
#include <sys/time.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <pthread.h>
#include <fsdyn/fsalloc.h>
#include <fsdyn/list.h>
#include <async/async.h>
#include <fstrace.h>... |
/**
* \file
* \brief Platform code for the Xilinx Zynq7000-series SoCs
*/
/*
* Copyright (c) 2016 ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetst... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.