text
stringlengths
3.08k
10.5k
/* * Machine Description Interface C API * * This software is delivered under the terms of the MIT License * * Copyright (c) 2016 STMicroelectronics * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal...
/* Prints out trees in human readable form. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. Hacked by <NAME> (<EMAIL>) This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU ...
#include <stdlib.h> #include <stdio.h> #include <time.h> #include <omp.h> #define N 10 int main (int argc, char **argv); int *dijkstra(int **graph); void findLower(int s, int e, int minDistance[N], int connected[N], int *distance, int *vertex); void matrix(int **graph); void minDis(int s, int e, int mv, int connected...
#include <string.h> #include "shared.h" #include "output/shared/graphical.h" #include "gen/wlr-layer-shell-unstable-v1-client-protocol.h" #include "zwlr.h" #include "main.h" #include "wl_output.h" #ifdef EGL #include "egl.h" #endif #ifdef SHM #include "shm.h" #endif #ifdef CAIRO #include "cairo.h" #endif ...
/*- * Copyright (c) 1991, 1993 * The Regents of the University of California. 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 copy...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "Big_Integer.h" struct big{ char vet[MAX]; int negative; /*negative == 1*/ int num_Digits; }; Big_Integer* create_Big_Integer(){ Big_Integer *x = (Big_Integer *) malloc(sizeof(Big_Integer)); if(x != NULL){ x->num_Digits = 0; } return x; } v...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <pthread.h> #include <sys/stat.h> #include <sys/param.h> #include <assert.h> #include <unistd.h> #include "lib/oflags.h" #include "lib/tracks.h" #include "lib/pass.h" #include "lib/colors.h" #include "lib/utils.h" #include "msa.h" #include "db/DB.h"...
/* * Simple read/write utility to program the SystemID eeprom * on Gridless.mini devices * EEPROM layout based on this paper: https://www.nxp.com/docs/en/application-note/AN3638.pdf */ #include <getopt.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <libgen.h> #include "e...
/* ** server.c -- a stream socket server demo */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <arpa/inet.h> #include <sys/wait.h> #include <signal.h> #define PORT "3...
/** ****************************************************************************** * @file sht_iic_hal.c * @author Xucz(OUC Fab U+/ROV Team) * @brief SHT 系列传感器官方例程中 i2c_hal.c 文件移植 * ****************************************************************************** * @attention * 修改关于引脚操作的宏定义,使用HAL库 ...
/** * \file * * \brief SD/MMC card example with FatFs * * Copyright (c) 2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: ...
#include "lvp_audio_render.h" #include <libavutil/time.h> #include <libavformat/avformat.h> #include <libavcodec/avcodec.h> static void audio_call(void *usrdata,uint8_t *stream, int len){ LVPAudioRender *r = (LVPAudioRender*)usrdata; uint8_t *mixdata = (uint8_t*)malloc(len); memset(mixdata,0,len); mems...
#include <../../nrnconf.h> /* version 7.2.1 2-jan-89 */ #include <stdio.h> #include <stdlib.h> #include "hocdec.h" #include "parse.h" #if 1 #include "hocusr.h" #endif # define CHECK(name) nrn_load_name_check(name) static char CHKmes[] = "The user defined name, %s, already exists.\n"; Symlist* nrn_load_dll_called_; ...
// http://www.mathcs.emory.edu/~cheung/Courses/323/Syllabus/Map/skip-list-impl.html #define _GNU_SOURCE #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <limits.h> typedef struct skiplist_t skiplist_t; typedef struct skipnode_t skipnode_t; struct skipnode_t { long key; int va...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <netdb.h> #include <time.h> #include <sys/socket.h> #include <arpa/inet.h> #include <unistd.h> #define SERVER_PORT "8000" #define MAX_CONNECTION 1000 /* * Client * * socket() * ? bind() ? * connect() * ---------------------...
// Implements an AVL tree in C #include <stdlib.h> #include <stdio.h> #define max(a,b) (((a)>(b))?(a):(b)) typedef struct AVLNode { struct AVLNode* left; // left child node struct AVLNode* right; // right child node struct AVLNode* parent; // parent node int value; // integer type data int height; /...
/** * */ #include <hre/config.h> #include <pins2lts-mc/algorithm/lndfs.h> /* LNDFS dfs_red */ static void lndfs_red (wctx_t *ctx, ref_t seed) { alg_local_t *loc = ctx->local; state_store_inc_wip (seed); while ( !run_is_stopped(ctx->run) ) { raw_data_t state_data = dfs_stack_top ...
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1996 - 1999 // // File: abserv.h // //-------------------------------------------------------------------------- /******************************************...
/* la_tool_cloapse.c */ extern void la_t_collapse_two_vertexes(uint vertex_a, uint vertex_b); extern void la_t_collapse_selected_vertexes(void); extern void la_t_weld_selected_vertexes(void); /* la_tool_draw.c */ extern void la_t_init_draw_line(void); extern void la_t_new_draw_line(float x, float y); extern vo...
/* * Sonics Silicon Backplane * ChipCommon serial flash interface * * Licensed under the GNU/GPL. See COPYING for details. */ #include <linux/ssb/ssb.h> #include "ssb_private.h" struct ssb_sflash_tbl_e { char *name; u32 id; u32 blocksize; u16 numblocks; }; static struct ssb_sflash_tbl_e ssb_sflash_st_tbl[]...
/* * 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, software * dis...
#include <efi.h> #include <efiutil.h> #include "menu.h" // Menu colors #define DEFAULT_COLOR EFI_LIGHTGRAY | EFI_BACKGROUND_BLACK #define SELECTED_COLOR EFI_BLACK | EFI_BACKGROUND_LIGHTGRAY // Banner height #define BANNER_HEIGHT 3 // Menu globals static efi_size cols, rows; static efi_event timer_event; void m...
/* Copyright 2018 <<NAME>> 3-Clause BSD License Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following dis...
// This program is a part of NITAN MudLIB #include <ansi.h> #include <combat.h> string name() { return HIW "神威浩蕩" NOR; } inherit F_SSERVER; int perform(object me, object target) { object weapon, cloth; int ap, dp, damage; string wp; string cl; string msg; if (! targe...
#include <stddef.h> #include <stdio.h> #include <string.h> #include "binject.h" // -------------------------------------------------------------------------- struct binject_static_s { unsigned int tag_size; unsigned int data_size; unsigned int data_offset; char start_tag[1]; }; typedef struct { unsigned i...
/* A X I S . C * BRL-CAD * * Copyright (c) 2004-2016 United States Government as represented by * the U.S. Army Research Laboratory. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as pu...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "process_grayscale.h" /********************************************/ /** * FUNCTION DEFINITIONS ***********************************************/ int save_grayscale_to_file(char *file_name, GrayscaleImage *image) { FILE *fp; int width, heig...
/****************************************************************************** ** Copyright (c) 2013-2018, <NAME> ** ** All rights reserved. ** ** ** ** Redistrib...
/*- * Copyright (c) 2016, <NAME> * Copyright (c) 2009, <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyrigh...
#include "image.h" #include "global.h" extern struct BMPImage outputImage; extern struct Fractal fractal; static unsigned char zeros [3] = {0x00, 0x00, 0x00}; unsigned char BMPheader [54] = { 'B', 'M', 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 54, 0x00, 0x00, 0...
/*------------------------ MIT License HEADER ------------------------------------ Copyright ANSSI and NTU (2015) Contributors: <NAME> [<EMAIL>] and <NAME> [<EMAIL>] and <NAME> [<EMAIL>] and <NAME> [<EMAIL>] This software is a computer program whose purpose is to implement lightweight b...
/* * Python support for serial I/O * * This module was originally created by novus-alex, * https://github.com/novus-alex * https://github.com/novus-alex/SerialIO * * Copyright (c) 2021 by <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated ...
/****************************************************************************** Application entry point. Contains the main loop and the hardware initialization. ******************************************************************************/ #include <stdio.h> #include <stdbool.h> #include <hal.h> #include <...
/* commonLines - Print out lines in one file also found in another file using a minimum of * library routines. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_LINE_SIZE (4*1024) #define HASH_SIZE (64*1024-1) #define TRUE 1 #define FALSE 0 #define boolean int void usage() /* Explain usage...
// SPDX-License-Identifier: GPL-2.0 /* * Support for Intel Application Digital Signal Processor * * Copyright 2019 Google LLC * * Modified from coreboot file of the same name */ #define LOG_CATEGORY UCLASS_SYSCON #include <common.h> #include <dm.h> #include <log.h> #include <pci.h> #include <asm/io.h> #include ...
/* Copyright (c) 2002-2003 krzYszcz and others. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ #include <string.h> #include "m_pd.h" #include "sic.h" typedef struct _comb { t_sic x_sic; float x_sr; f...
/* * Copyright (c) 2014-2018 Cesanta Software Limited * 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 * * ...
/* sala_s.c * +implementazione delle procedure remote: "prenota" e "visualizza". * +inizializzazione struttura. */ #include <fcntl.h> #include <rpc/rpc.h> #include <stdio.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include "fattore.h" /* STATO SERVER */ #define TAB_DIM 20 t...
/* N M G . C * BRL-CAD * * Copyright (c) 2015 United States Government as represented by * the U.S. Army Research Laboratory. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as publis...
/* * panel-p-edp-3000-2000-13-5.c: Panel driver for p-3000-2000-13-5 panel. * * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as publish...
/*/* * Modified form FreeRTOS Blinky example */ #include "FreeRTOS.h" #include "task.h" #include "chip.h" /***************************************************************************** * Private types/enumerations/variables ****************************************************************************/ /...
#include "time.h" #define SECSPERMIN 60 #define SECSPERHOUR (60*60) #define SECSPERDAY (24*60*60) #define DAYSPERWEEK 7 #define EPOCH_WDAY Monday strref timeDayName[7] = { (strref)"\xE1\xC1\x06""Sunday", (strref)"\xE1\xC1\x06""Monday", (strref)"\xE1\xC1\x07""Tuesday", (strref)"\xE1\xC1\x09""Wednesday...
/* 2015/10 functions to support printGV() */ #include "header.h" #include <stdlib.h> #include <stdio.h> #include <string.h> char *AST_TYPE_string[] = {"PROGRAM", "GLOBAL_DECL_LIST", "GLOBAL_DECL", "DECL_LIST", "FUNCTION_DECL", "PARAM_LIST", "PARAM", "DIM_FN", "DIMFN1", "EXPR_NULL", "BLOCK", "DECL", "TYPE_DECL", "VAR...
#include <stdlib.h> #include <string.h> #include <inttypes.h> #include <unistd.h> #include <mpi.h> #include "remote_scratchpad.h" MPI_Win blade_win; MPI_Info blade_info; void *blade_ptr; size_t blade_size; void init_remote_memory(size_t block_size, size_t n, useconds_t get_delay, useconds_t set_delay) { MPI_In...
/* * Copyright (c) 2009, <NAME>, <NAME>'. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <Python.h> #include <sys/sysctl.h> #include <sys/vmmeter.h> #include <vm/vm_param.h> #include <devstat.h> #include <paths.h> #include <fc...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> typedef struct node{ int id; char name[30]; char ra[60]; struct node *ptr_link; }st_node; int _counter_ = 0; bool debug = false; st_node *CreateNode(); st_node *PushInicio(struct node *lista); st_node *...
#include "lexer/token.h" #include "clib/hashtable.h" #include <assert.h> #define NULL_PATTERN(pattern, tok_name, op_name) {0, 0, pattern, 0, TOKEN_##tok_name, OP_##op_name} #define TOKEN_PATTERN(pattern, tok_name, op_name) {#tok_name, 0, pattern, 0, TOKEN_##tok_name, OP_##op_name} #define KEYWORD_PATTERN(keyword, tok_...
#include "bcftools.pysam.h" /* plugins/impute-info.c -- adds info metrics to a VCF file. Copyright (C) 2015-2016 Genome Research Ltd. Author: <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), t...
#include "adc.h" #include "log.h" #include "timing.h" #include "util.h" #include "via.h" #include <assert.h> enum { k_adc_num_channels = 4, }; struct adc_struct { int is_externally_clocked; struct timing_struct* p_timing; struct via_struct* p_system_via; uint32_t current_channel; uint16_t channel_value[...
/* filter/rmedian.c * * Copyright (C) 2018 <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 3 of the License, or (at * your option) any later version. * * This ...
// Copyright 2021 NK Labs, LLC // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // dis...
/* * <NAME>, <NAME> * * Copyright (c) 2016 Alcatel-Lucent, Bell Labs * */ #include <string.h> #include <stdio.h> #include <rte_hash_crc.h> #include <rte_malloc.h> #include <rte_memcpy.h> #include <rte_branch_prediction.h> #include <rte_common.h> #include <rte_mbuf.h> #include <config.h> #include "cs.h" cs_t*...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "stock.h" #include "arrays.h" #include "pf.h" #include "location.h" #include "pmel.h" /* The list of calibration event info is stored in an associative array keyed by evid. However, evid is an int while an Arr is only keyed by character strings. To ...
// std #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> // 3rd party #include <FreeRTOS.h> #include <FreeRTOS_IP.h> #include <FreeRTOS_Sockets.h> #include <queue.h> #include <semphr.h> #include <task.h> #define STRINGIFY(expr) #expr #define XSTRINGIFY(expr) STRINGIF...
/****************************************************************************** * Copyright (C) 2017 Broadcom. The term "Broadcom" refers to Broadcom Limited * and/or its subsidiaries. * * This program is the proprietary software of Broadcom and/or its licensors, * and may only be used, duplicated, modified or...
/*P12.21 Write a program to manage a database of books*/ #include<stdio.h> #include<string.h> #include<stdlib.h> void insert(FILE *fp); void del(FILE *fp); void modify(FILE *fp); void booksold(FILE *fp); int search(FILE *fp,char *name); void display(FILE *fp); void list(FILE *fp); struct { char name[50]...
/* * Copyright (c) 2021, Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <assert.h> #include <common/debug.h> #include <common/runtime_svc.h> #include <lib/mmio.h> #include "socfpga_sip_svc.h" #include "socfpga_mailbox.h" static uint32_t intel_v2_mbox_send_cmd(uint32...
#include <stdio.h> #include <unistd.h> #include <dirent.h> #include <string.h> #include <stdlib.h> #include <limits.h> #define BUFFER_SIZE 250 void usage(){ printf("webgen requires a style sheet, a post header, a post footer, an index header, an index footer, a an input folder, and an output folder\nexample: webg...
/* * shmem_latency.c * compile: oshcc -o shmem_latency shmem_latency.c -lm * run: srun -n 2 -N 1 ./shmem_latency [# iterations] [task size in bytes] [# tasks] [stress test?] [file path] * srun -n 2 -N 2 ./shmem_latency [# iterations] [task size in bytes] [# tasks] [stress test?] [file path] * options are o...
// // clib-uninstall.c // // Copyright (c) 2014 <NAME> // Copyright (c) 2021 clib authors // // MIT licensed // #include "asprintf/asprintf.h" #include "commander/commander.h" #include "debug/debug.h" #include "fs/fs.h" #include "http-get/http-get.h" #include "logger/logger.h" #include "parse-repo/parse-repo.h" #inclu...
/* * Copyright 2015-2017, 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 ...
/** * collectd - src/utils_heap.c * Copyright (C) 2009 <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 of the License, or (at your * option) any later version. ...
/* * main.c - part of f405_feather blinky */ #include "stm32f4xx_hal.h" #include "cyclesleep.h" #include "led.h" #include "usart.h" #include "printf.h" #include "shared_i2c.h" #include "oled.h" #include "tftwing.h" #include "st7735.h" #include "adc.h" #include "arm_math.h" /* uncomment this to enable the OLED */ //...
/* * Copyright (c) 1983, 1993 * The Regents of the University of California. 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 copyr...
#include <SDL.h> #include "simple_logger.h" #include "gf2d_graphics.h" #include "gf2d_sprite.h" #include <stdio.h> #include "entity.h" #include "bug_ent.h" #include "tile_map.h" #include "algo.h" #include "gfc_list.h" #include "path_map.h" #include "building.h" #include "camera.h" #include "input.h" #include "font.h"...
#include "token.h" #include "file_map.h" #include "stdio.h" #include "utils/debug_utils.h" const char* COND_KW_CONSTRUCT = "construct"; const char* COND_KW_DESTRUCT = "destruct"; const char* COND_KW_FOR = "for"; const char* COND_KW_ASM = "asm"; const char* COND_KW_MAIN = "main"; const char* COND_KW_START = "_start"; ...
/* see copyright notice in squirrel.h */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #if defined(_MSC_VER) && defined(_DEBUG) #include <crtdbg.h> #include <conio.h> #endif #include <squirrel.h> #include <sqstdblob.h> #include <sqstdsystem.h> #include <sqstdio.h> #include <sqstdmath...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <ctype.h> #include <stdint.h> #define MAX_TAM_TOKEN 100 #ifndef YYPARSER // Não importa o arquivo quando chamado pelo parse.y #include "parse.tab.h" //Gerado pela flag "-d" do bison #define ENDFILE 0 #endif /* typedef enum{ ...
#include<stdio.h> #include<stdlib.h> void printMatrix(int**, int); int** vonNeumannNeighborhood(int**,int); int** allocateMatrix(int); void recursiveVonNeumannNeighborhood(int***, int, int, int, int, int); int main(int argc, char** argv){ int N; // von neumann number int** matrix; // our matrix char iter_rec; ...
/* * This file is part of SushiVM * Copyright (c) 2019-2021 J42 Pte Ltd * * 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 ...
/* * @file url68.c * @brief url parser and dispatcher * @author http://sourceforge.net/users/benjihan * * Copyright (C) 2001-2011 <NAME> * * Time-stamp: <2011-10-16 02:40:35 ben> * * This program is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public Licen...
// // Created by Damiano on 28/08/2020. // #include <stdlib.h> #include <string.h> #include "filebuffer.h" #include "distance.h" #include "tools.h" /** * Funzione che calcola il minomo di tre valori. * @param a valore da confrontare; * @param b valore da confrontare; * @param c valore da confrontare. * @return i...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <errno.h> #include "injfile.h" #include "util/human.h" struct injfile_t * injfile_init(void * ptr, size_t bytes) { /* This function will return ptr casted to (injfile_t *), but first it will perform a few checks and fix the * pointers to st...
/* PBrickDemo.c Part of the PBrick Library, a PalmOS shared library for bidirectional infrared communication between a PalmOS device and the Lego Mindstorms RCX controller. Copyright (C) 2002 <NAME> <<EMAIL>> This program is free software; you can redistribute it and/or modify it under the terms...
#include "unpack.h" /* Public-domain/CC0 - see https://creativecommons.org/publicdomain/zero/1.0/ */ jpr_uint64 unpack_uint64le(const jpr_uint8 *b) { return (((jpr_uint64)b[7])<<56) | (((jpr_uint64)b[6])<<48) | (((jpr_uint64)b[5])<<40) | (((jpr_uint64)b[4])<<32) | (((jp...
# include <stdio.h> # include <stdlib.h> # include <conio.h> # include <time.h> # include <string.h> # include <locale.h> int searchStudent(); int insertStudent(); void imprimeAtras(); struct node *head = NULL; struct node *last = NULL; typedef struct _student { int id; char name[100]; float gpa; }student;...
/* * $Id$ * Copyright (C) 2004-2008, Parrot Foundation. */ /* =head1 NAME config\gen\platform\win32\exec.c =head1 DESCRIPTION Functions for dealing with child processes and Execs. =head2 Functions =over 4 =cut */ #include <process.h> /* =item C<INTVAL Parrot_Run_OS_Command(PARROT_INTERP, STRING *command)...
#pragma GCC diagnostic ignored "-Wnarrowing" /* * This file is part of the OpenKinect Project. http://www.openkinect.org * * Copyright (c) 2011 individual OpenKinect contributors. See the CONTRIB file * for details. * * This code is licensed to you under the terms of the Apache License, version * 2.0, or, at yo...
/***************************************************************************** * asa: portable digital subtitle renderer ***************************************************************************** * Copyright (C) 2007 <NAME> * * This program is free software; you can redistribute it and/or modify * it under th...
/* * Automated chapter numbering for Texinfo files. * * Restrictions: * * 1. Only supports @chapter and @section directives. * 2. The chapters and sections MUST be in their correct * order, and all the sections MUST be between their * parent chapter and the next chapter. * 3. Conditional (@ifse...
/* rec_wp_decomp1.c .MEX file see rec_wp_decomp1.m The calling syntax is: x = rec_wp_decomp1(img,scale,qmf) This is a modified version of IPT_WP.c (from WaveLab850). */ #include <math.h> #include "mex.h" #include "wavelab.h" #define DOUBLE double #define INT int /* prototypes ...
// SPDX-License-Identifier: BSD-3-Clause /** * @file test-commands.c * * @brief mptcpd commands API test. * * Copyright (c) 2019, Intel Corporation */ #undef NDEBUG #include <assert.h> #include <linux/mptcp.h> #include <ell/main.h> #include <ell/genl.h> #include <ell/timeout.h> #include <ell/util.h> // Ne...
/* This is an independent implementation of the RC6 algorithm that */ /* Ron Rivest and RSA Labs have submitted as a candidate for the */ /* NIST AES activity. Refer to RSA Labs and Ron Rivest for any */ /* copyright, patent or license issues for the RC6 algorithm. */ /* ...
#include <string.h> #include <stdlib.h> #include <stdio.h> #include <assert.h> #include "../include/uti.h" #include "../include/http.h" #include "../tinclude/tests.h" struct HttpRequest* new_req() { struct HttpRequest *req = malloc(sizeof(struct HttpRequest)); init_request(req); req->method = "GET"; req->pat...
/* * qaul.net is free software * licensed under GPL (version 3) */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <olsr_protocol.h> #include "net_olsr.h" #include "scheduler.h" #include "parser.h" // olsr_parser_add #include "olsrd_plugin.h" #include "qaul_config.h" #include "qaul_msg.h" #inc...
#include "../src/recommender.h" #include <stdio.h> #include <assert.h> #include <stdlib.h> #include <memory.h> #include <math.h> #include <time.h> #include "../src/matrix_factorization.h" #include "../src/matrix_factorization_bias.h" #include "../src/sparse_matrix.h" #include "../src/red_black_tree.h" #include "test...
#include <stdio.h> #include <string.h> #include <stdlib.h> #define NAME_LEN 4 #define RECT_MAX 100 #define AREA 1 #define PERIMETER 2 typedef struct { // First pair of coordinates float x1; float y1; // Second pair of coordinates float x2; float y2; // Sizes of the rectangle float x...
/* * ***** BEGIN GPL LICENSE BLOCK ***** * * 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 d...
/* * The MIT License * * Copyright 2018 arc. * * 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, mod...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief Demonstrate BMC data transfer with PDMA. * * @copyright SPDX-License-Identifier: Apache-2.0 * @copyright Copyright (C) 2021 Nuvoton Technology Corp. All rights reserved. **************...
// // Created by <NAME> on 6/10/21. // #include "header/head.h" const raw_obj_header WRAPPED_OK_HEADER = {{HEAD_D, MSG_D, OK_D}}; raw_obj_header * build_raw_obj_header(obj_header * head){ raw_obj_header * ret = malloc(sizeof(raw_obj_header)); int idx = 0; ret->raw[idx] = HEAD_D; idx++; ret->ra...
/* * StartStopApplication.c - this is where resources such as Endpoints and DMA channels, required by the Application * are created and deleted in response to events from USB * * Created on: Feb 18, 2014 * Author: John */ #include "Application.h" // Declare external data extern CyU3PEvent glApplica...
// // main.m // TestApp // // Created by <NAME> on 12/15/16. // Copyright © 2016 Tecgraf, PUC-Rio, Brazil. All rights reserved. // #include "iup.h" #include <stddef.h> #include <stdio.h> #include <stdarg.h> #if __ANDROID__ #include <android/log.h> void MyPrintf(const char* fmt, ...) { va_list ap; va_start(ap...
/** based on SimdAvx2Integral.cpp from the Simd library http://ermig1979.github.io/Simd input: a 3d uint8 array of size [X,Y,Z] output: a 3d uint32 array of size [X+1,Y+1,Z+1] doesn't modify the first index of each axis, the rest are set to the cumulative sum of the input array that is, output[x+1,y+1,z+1] = sum_0^x (s...
#include "stock.h" #include "coords.h" #include "db.h" #include "pf.h" #include "elog.h" #include "perf.h" #include "glputil.h" void usage() { elog_die(0,"Usage: pmelavg db [-pf pffile]\n"); } void get_error(int err) { elog_die(0,"Error reading record %d of working view\n",err); } int main(int argc, char **argv) {...
#include <stdio.h> #include <stdlib.h> #include <mpi.h> #include <math.h> #include <time.h> #include "args.h" #include "rand.h" #include "ra.h" int n = 28; int N_U_log2 = 19; unsigned long long N_U; unsigned long long m; unsigned long long idxMask; const double errorTolerance = 1e-2; int rank, nprocs; int doneCount...
/* * GPLv2 * Copyright 2003, <NAME> <<EMAIL>> * Copyright 2006, <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation; either version 2 of the License. * * ...
/***************************************************************************** Copyright (c) 2012-2018, 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 ...
/******************************************************************************* * SERVIDOR no porto 9000, à escuta de novos clientes. Quando surjem * novos clientes os dados por eles enviados são lidos e descarregados no ecran. *******************************************************************************/ #inclu...
// SPDX-License-Identifier: GPL-2.0-or-later /* cpufreq-bench CPUFreq microbenchmark * * Copyright (C) 2008 <NAME> <<EMAIL>> */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <getopt.h> #include <errno.h> #include "config.h" #include "system.h" #include "benchmark.h" sta...