text
stringlengths
3.08k
10.5k
#include <math.h> #include "uvp.h" #include"helper.h" #include"mpi.h" void calculate_dt(double Re, double tau, double *dt, double dx, double dy, int imax, int jmax, double **U, ...
/* * Copyright (C) 2018-2020 Alibaba Group Holding Limited */ #include <ipc.h> #include <csi_core.h> #include <aos/kernel.h> #include "mca/mca.h" #include "mca/mca_all.h" #include "icore/mcaicore_internal.h" #include "mcaicore_cp.h" #define TAG "mcaicore_cp" struct mcaicore_cp_priv { #define MESSAGE_NUM (5) ...
// would like to call this string.h, but unix programs // are pretty stubborn, in this case lwip typedef buffer string; static inline s8 digit_of(character x) { if ((x <= 'f') && (x >= 'a')) return(x - 'a' + 10); if ((x <= 'F') && (x >= 'A')) return(x - 'A' + 10); if ((x <= '9') && (x >= '0')) return(x - ...
/* * Copyright (c) 2020 Fuzhou Rockchip Electronic Co.,Ltd * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2020-04-24 <NAME> First version * */ #include "setting_playmode.h" #define DBG_SECTION_NAME "SETMODE" #define DBG_LEVEL DBG_INFO #inc...
/* * example.c - an example module for zsh * * This file is part of zsh, the Z shell. * * Copyright (c) 1996-1997 <NAME> * All rights reserved. * * Permission is hereby granted, without written agreement and without * license or royalty fees, to use, copy, modify, and distribute this * software and to distrib...
/* * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/ * * 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 is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions ...
// File: tftp-bootloader-client.c // // Description: Tftp-Bootloader Client functionality. // Tftp-Bootloader is a bootloading protocol. // // Copyright 2013 by Silicon Laboratories. All rights reserved. *80* #include PLATFORM_HEADER #include "stack/include/ember-types.h" #include "stack/core/...
/* $NetBSD: ariareg.h,v 1.2 1998/07/21 07:48:36 mycroft Exp $ */ /* * Copyright (c) 1995, 1996 <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 m...
// // Created by zz on 2015/6/20. // #include <stdio.h> #include <stdlib.h> #include <string.h> #include <netinet/in.h> //#include <winsock2.h> #include "util.h" #define MAX_NAME_SIZE 2048 int resolve_dns_request(void *buf,int bufsize,dns_request *request){ int status; int i; uint16_t *ptr=buf; pri...
/* * Copyright (C) 2006-2010 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 tha...
#define COMMAND_LENGTH 64 #define LINE_FEED 0xa #define FALSE 0 #define TRUE 1 #define MAX_FILESIZE 25600 #define MAX_INPUT 80 #define SECTOR_SIZE 512 #define MAX_FILE_NAME_LENGTH 6 #define DIRECTORY_ENTRY_SIZE 32 /* Check to see if this is an expected command. */ int isExpectedCommand(char *command, char *expectedCo...
/****************************************************************************** ** ** File Name: $RCSfile: sbc_dec_bit_alloc_mono.c,v $ ** ** Description: This file contains the code for bit allocation algorithm. ** It calculates the number of bits required for the encoded stream of data. ** ** Revis...
#include "OpenCLUtils.h" #include <stdio.h> #include <stdlib.h> #define MAX_KERNEL_SOURCE_SIZE 1000000 void printAvailablePlatforms() { cl_platform_id platformsIds[10]; cl_uint platformsCount; cl_uint platformIndex; char platformName[100]; char platformProfile[100]; char platformVersion[100]; ...
/* * Copyright (C) <NAME> * Copyright (C) Nginx, Inc. */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_stream.h> typedef struct { ngx_stream_complex_value_t text; } ngx_stream_return_srv_conf_t; typedef struct { ngx_buf_t buf; } ngx_stream_return_ctx_t; static void n...
#include "minray.h" size_t estimate_memory_usage(Parameters P) { size_t sz = 0; // Ray Data sz += P.n_rays * P.n_energy_groups * sizeof(float); sz += (P.n_rays * sizeof(double)) * 4; sz += P.n_rays * sizeof(int); // Intersection Data sz += (P.n_rays * P.max_intersections_per_ray * sizeof(int))*3; sz +=...
/*- * Copyright (c) 2004 <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,...
#include <stdlib.h> #include <stdio.h> #include "buffer.h" #include "hopcroft.h" #define BUFFER_SIZE 97 static partition* trans_partition; static buffer** trans_reverse; static buffer* state_touched; static buffer* trans_waiting; static buffer* trans_touched; int strlbl_cmp(label* p1, label* p2) { int i; string...
/** @file @brief PPP private header This is not to be included by the application. */ /* * Copyright (c) 2019 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <net/ppp.h> /** * FSM flags that control how it operates. */ #define FSM_RESTART BIT(0) /**< Treat 2nd OPEN as DOWN followed...
/* * dmic.c -- SoC audio for Generic Digital MICs * * Author: <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. * * This program is distributed in the hope ...
/* * PSP Software Development Kit - http://www.pspdev.org * ----------------------------------------------------------------------- * Licensed under the BSD license, see LICENSE in PSPSDK root for details. * * prof.c - Main profiler code * * Copyright (c) 2005 urchin <<EMAIL>> * * $Id$ */ #include <stdlib.h> ...
/**************************************************************************** * JSON_DIFF.C * * Compare two json files. Items can be disordered. * * Copyright (c) 2020 Niyamaka. * All Rights Reserved. ****************************************************************************...
/*==========================================================================================================*\ * MIT License * * Copyright (c) 2022 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to dea...
/* PipeWire * * Copyright © 2020 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pu...
/* * Copyright (C) 2009 <NAME> * Hochschule fuer Technik Rapperswil * * 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 vers...
/** @file tests/strings/stringhelper_test.c * * Copyright (c) 2018 <NAME> * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include "stringhelper_test.h" #include "../../strings/stringhelper.h" #include "../../log.h" #include <stdlib.h>...
// // Created by <NAME> on 2/25/22. // #include "collection.h" #include "array_list.h" #include "iterator.h" int collection_size(struct Collection collection) { return collection.size(collection.list); } void *collection_get(struct Collection collection, int index) { return collection.get(collection.list, in...
/****************************************************************************** * Project: PROJ.4 * Purpose: Code to manage the list of currently loaded (cached) PJ_GRIDINFOs * See pj_gridinfo.c for details of loading individual grids. * Author: <NAME>, <EMAIL> * ******************************...
/* * Copyright (c) 2021 <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 an...
// Copyright 2018 The Emscripten Authors. All rights reserved. // Emscripten is available under two separate licenses, the MIT license and the // University of Illinois/NCSA Open Source License. Both these licenses can be // found in the LICENSE file. // Used internally to test performance of emmalloc against other ...
#include "axp209_emoncms.h" #include "../emoncms.h" // https://github.com/nahidalam/raspberryPi/blob/master/i2ctest.c // from i2c-dev.h from i2c-tools from https://fossies.org/dox/i2c-tools-3.1.2/i2c-dev_8h.html#afb1764d4b58fb542306c715ad6a28a42 #define I2C_SLAVE 0x0703 #define I2C_SLAVE_FORCE 0x0706 static int find...
/* * Copyright (c) 2017, STMicroelectronics - All Rights Reserved * * This file : part of VL53L1 Core and : dual licensed, * either 'STMicroelectronics * Proprietary license' * or 'BSD 3-clause "New" or "Revised" License' , at your option. * ******************************************************************************...
/* Copyright 2001-2004 <NAME>. * Copyright (c) 2004-2006, <NAME>, <NAME>. * Copyright (c) 2007-2018, The Tor Project, Inc. */ /* See LICENSE for licensing information */ #include "or.h" #include "circuitbuild.h" #define CIRCUITLIST_PRIVATE #include "circuitlist.h" #include "relay.h" #include "relay_crypto.h" #includ...
#include <time.h> #include <string.h> #include <stdlib.h> #include <stdio.h> /*******************************************************************************/ /* * Returns day of week for any given date * PARAMS: year y > 1752 (in the U.K.) * month 1 <= m <= 12 * day 1 <= d <= 31 * * RETURNS: day of week (0-...
/* * f_tcindex.c Traffic control index filter * * Written 1998,1999 by <NAME> */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <syslog.h> #include <fcntl.h> #include <string.h> #include <netinet/in.h> #include "utils.h" #include "tc_util.h" static void explain(void) { fprintf(stderr," Usa...
// // XBeeAPIPackets.c // // Copyright (C) 2014 by <NAME>. All rights reserved. // // Implements encoding/decoding of the XBee API mode packets. // #include <stdlib.h> #include <string.h> #include "mcc_generated_files/eusart.h" #include "XBeeAPIPackets.h" // Current packet buffer of one. If sending and receiving eve...
// Copyright (c) 2017 <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, distri...
/* Copyright (c) 2014, <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: * Redistributions of source code must retain the above copyright notice, this lis...
#include <Arduino.h> const int buzzer = 9; typedef struct { char note; int eighth; int duration; } Note; typedef struct { int size_notes; Note *notes; } Music; Music m; void note(int oitava, char nota); void playMusic(Music m); void setup() { int eighth = 4; m.size_notes = 75; m.n...
/* * The contents of this file are subject to the Mozilla Public * License Version 1.1 (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.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS * I...
/* * Copyright (c) 2016 - Qeo LLC * * The source code form of this Qeo Open Source Project component is subject * to the terms of the Clear BSD license. * * You can redistribute it and/or modify it under the terms of the Clear BSD * License (http://directory.fsf.org/wiki/License:ClearBSD). See LICENSE file * fo...
/* * skp_can.c * * Created on: Jan 14, 2020 * Author: sukkinpang */ #include "main.h" #include "skp_can.h" #include <stdio.h> extern FDCAN_HandleTypeDef hfdcan1; extern FDCAN_TxHeaderTypeDef TxHeader; extern FDCAN_RxHeaderTypeDef RxHeader; extern uint8_t RxData[64]; /** * @brief Rx FIFO 0 callback. *...
#include "board_config.h" #include <stddef.h> #include <stdint.h> #include <stdbool.h> #include <lpc_tools/boardconfig.h> #include <lpc_tools/GPIO_HAL.h> #include <mcu_timing/delay.h> #include "flash.h" #include "flash_addresses.h" #include "string.h" #include <mcu_sdcard/sdcard.h> #include "firmware_update.h" #in...
#include <ek/sparse_array.h> typedef struct ek_sparse_array_page { // 4096 bytes, page aligned ek_sparse_array_val data[EK_SPARSE_ARRAY_ELEMENTS_PER_PAGE]; } ek_sparse_array_page; ek_sparse_array_page* invalid_page = 0; static uint32_t ek_sparse_array__get_pages_num(uint32_t count) { return (count + (EK_...
/* * Copyright (c) 2013 <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. */ #include <stdbool.h> #include <stdio.h> #include <xtables.h> #include <linux/netfi...
/* * Author: <NAME> * <EMAIL>, <EMAIL> */ // #define DEBUG_CCE 1 #include <stdio.h> #include <stdlib.h> #include <float.h> #include <assert.h> #include <string.h> #include <math.h> #include "linkedList.h" #include "llQueue.h" #include "entropy.h" #include "ntree.h" #include "CCE.h" /* Insert a sequence into CCE...
/* * * Copyright (c) International Business Machines Corp., 2001 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any l...
/** * * Copyright (c) 2010, <NAME> and Mongrel2 Project Contributors. * 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 co...
#include <stdio.h> #include <stdlib.h> #include <LCUI_Build.h> #include <LCUI/LCUI.h> #include <LCUI/image.h> #include <LCUI/gui/widget.h> #include <LCUI/gui/widget/textview.h> #include <LCUI/gui/css_parser.h> #include <LCUI/gui/builder.h> #include "test.h" #define PARENT_OPACITY 0.8f #define CHILD_OPACITY 0.5f stati...
/* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by the Free Software Foundation. This program is distributed in the hope tha...
/* * Copyright (c) 2013 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any purpose * with or without fee is hereby granted, provided that the above copyright * notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DIS...
#include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> #include <GL/glu.h> #include <stdbool.h> #include <stdio.h> #include "../libraries/libMeshFunctions.h" #include "../libraries/libObjLoader.h" SDL_Window *window = NULL; int width,height; char filepath[] = "build/monke.obj"; int ModelListID; float angle = 0.0f; int...
/* * Copyright (c) 2016-2018, MIPS Tech, LLC and/or its affiliated group companies * (“MIPS”). * * 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/...
/* $NetBSD: display.c,v 1.5 1997/10/20 00:23:17 lukem Exp $ */ /* * 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: ...
#include "ProcessIO.h" #include "UtilityMacros.h" #include "tlsf.h" #include <assert.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <time.h> #include <unistd.h> uint64_t GetHighResTime(void) { uint64_t ...
/* * dfu-suffix * * Copyright 2011-2012 <NAME> <<EMAIL>> * Copyright 2013 <NAME> <<EMAIL>> * Copyright 2014 <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 ver...
#define _CRT_SECURE_NO_WARNINGS #include <math.h> #include <assert.h> #include <stdio.h> #include <time.h> #include <math.h> #include "ttf2mesh.h" #include "glwindow.h" static ttf_t *font = NULL; static ttf_glyph_t *glyph = NULL; static ttf_mesh3d_t *mesh = NULL; static bool load_system_font() { // list all syst...
/* bubbles_default.c - pick images for bubbles.c * By <NAME> <<EMAIL>>, 20-Jan-98. * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * cop...
/************************************************************************ * parse.c - The parsing portion of my small shell * * Syntax: myshell command1 [< infile] [| command]* [> outfile] [&] * ********************************************************************...
#include "utils.h" #include "kcpuv.h" #include "uv.h" #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> /* get system time */ static inline void itimeofday(long *sec, long *usec) { #if defined(__unix) struct timeval time; gettimeofday(&time, NULL); if (sec) *sec = time.tv_sec; ...
#include "wire.h" #include "wire_fd.h" #include "wire_stack.h" #include <errno.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <stdint.h> #include <sys/epoll.h> #include <sys/timerfd.h> #include <time.h> struct fd_state { int epoll_fd; int count; wire_t fd_wire; }; static __thread struct...
#include "DAL/MainEventLoop.h" #include "DAL/PreciseTimer.h" #include "DAL/TouchControlsCtrl.h" #include "DeviceMacros.h" #define IS_STATUS(s) ((status) & (1 << (s))) #define SET_STATUS(s) \ do \ { \ status |= 1 << (s); \ } while (0) #define CLEAR_...
/* !!DESCRIPTION!! Addition tests - mostly int's !!ORIGIN!! SDCC regression tests !!LICENCE!! GPL, read COPYING.GPL */ #include "common.h" #include <stdio.h> #include <stdlib.h> #include <limits.h> unsigned char failures=0; char char0 = 0; char char1 = 0; char char2 = 0; /* this test assumes: si...
/* The oRTP LinPhone RTP library intends to provide basics for a RTP stack. Copyright (C) 2001 <NAME> <EMAIL> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 ...
/* * Copyright (c) Facebook, Inc. * All rights reserved. * * This source code is licensed under both the BSD-style license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tree). * You may select, at your optio...
#include <sys/types.h> #include <sys/wait.h> #include <stdio.h> #include <unistd.h> #include <limits.h> #include <stdlib.h> #include <stdbool.h> #include <signal.h> #include <string.h> #include <sysexits.h> #include "commander/commander.h" static bool gVerbose = false; static bool gQuiet = false; static bool gPrintPa...
/**************************************************************************** * @file main.c * @version V1.00 * @brief Demonstrate how to PDMA and trigger DAC by Timer. * * @copyright SPDX-License-Identifier: Apache-2.0 * @copyright Copyright (C) 2020 Nuvoton Technology Corp. All rights reserved. *******...
/* ************************************************************************* * Copyright (c) International Business Machines Corp., 2009 * 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 ve...
#include <stdio.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <string.h> #include <stdlib.h> //#include "common.h" //#include "cfuhash.h" void cache_name(char *dst_addr, char *name); void respond_to_pnrs(char *dst_addr, char *name); char *msg; void *listen_for_nreqs() { const...
#include "terminal.h" /* int32_t terminal_open (const uint8_t* filename); * Inputs: filename - unused * Return Value: none * Function: Initializes the terminal */ int32_t terminal_open (const uint8_t* filename) { int i; /* Empty the buffer */ for(i=0; i<BUF_LENGTH; i++) { terminal_buf[i] = 0; } /* Clear t...
/* * Copyright (c) 1991 <NAME> * * Disclaimer: No guarantees of performance accompany this software, * nor is any responsibility assumed on the part of the authors. All the * software has been tested extensively and every effort has been made to * insure its reliability. */ /* * halftone - halftones using th...
/* * mfc codec encoding example application * <NAME> <<EMAIL>> * * MFC device. * * Copyright 2012 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *...
/* * This file is part of the Sofia-SIP package * * Copyright (C) 2005 Nokia Corporation. * * Contact: <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation;...
/** * Author: <NAME> (<EMAIL>) */ #include "code.h" #include "utils.h" static struct basicblock *alloc_block (struct subroutine *sub, int insert) { struct basicblock *block; block = fixedpool_alloc (sub->code->blockspool); block->inrefs = list_alloc (sub->code->lstpool); block->outrefs = list_alloc (sub->c...
/* $Id: parse_coa.c,v 1.1 2008/03/07 07:07:12 miyazawa Exp $ */ /* $KAME: str2val.c,v 1.11 2001/08/16 14:37:29 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted pr...
#include <stdio.h> #include <stdlib.h> #include "json.h" #include "braces.h" #define ISWHITESPACE(c) \ (c == ' ' || c == '\n' || c == '\t' || c == '\r') #define BRACES_THROW(condition, code) \ do {\ if (condition) {\ fputs(code "\n", stderr);\ exit(1);\ }\ } while(0) #define CHKEOF(c) BRACES_THROW(c == ...
#include "PID_V2.h" #include "PID_interfaces.h" #include <stdlib.h> //工作变量/初始条件 double setpoint, input, output; double kp = 1, ki = 2, kd = 0; const double outputStart = 50; const double inputStart = 200; const double setpointStart = 200; //转换 // PID myPID(&input, &output, &setpoint, kp, ki, kd, DIRECT); PID pid; PID_...
// ------------------------------------------------------------------ // ref_make.c // Copyright (C) 2020-2021 Black Paw Ventures Limited // Please see terms and conditions in the file LICENSE.txt #include "data_types.h" #include "codec.h" // must be included before reference.h #include "reference.h" #include "v...
/* * Copyright [1999-2017] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute * * 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.o...
#define _POSIX_C_SOURCE 200809L #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <malloc.h> #include <limits.h> #include <assert.h> typedef struct { double value; size_t age; } pointType; typedef struct { size_t num; size_t sorted; pointType *values; size_t ever, window; } numListType...
/* * Phoenix-RTOS * * plo - operating system loader * * Disk routines * * Copyright 2012 Phoenix Systems * Copyright 2001, 2005, 2006 <NAME> * * This file is part of Phoenix-RTOS. * * %LICENSE% */ #include "config.h" #include "errors.h" #include "low.h" #include "plostd.h" #include "timer.h" #include "ser...
#include "helper.h" #include "initLB.h" #include "LBDefinitions.h" #include "mpi.h" /** * Reads the parameters for the lid driven cavity scenario from a config file. * Throws an error if number of program arguments does not equal 2. **/ int readParameters( int *xlength, /* reads domain siz...
#include "driver/tca6416a.h" static uint8 TCA6416A_state_output[2]; static uint8 TCA6416A_state_polinv[2]; static uint8 TCA6416A_state_config[2]; static uint8 _address = 0; static void TCA6416A_update_outputs(); void TCA6416A_init( uint8 address) { // set GPIO 0 as reset pin for the TCA6416A PIN_FUN...
/* * Copyright (C) 2015-2017 Captain Group Holding Limited */ //#include "core_cm4.h" #include "aos/init.h" #include "aos/kernel.h" #include <k_api.h> #include <stdio.h> #include <stdlib.h> #ifdef TINY_ENGINE #define AOS_START_STACK 1536 + 1024*14 #else #define AOS_START_STACK 512 #endif static ktask_t demo_task_...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "dp_nbhd_C.h" #include "dp_grid_C.h" double dp_costs( double *Q1, double *T1, int nsamps1, double *Q2, double *T2, int nsamps2, int dim, double *tv1, int *idxv1, int ntv1, double *tv2, int *idxv2, int ntv2, double *E, int *P, double lam, s...
/* Copyright (c) 2018 <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, d...
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> // pid_t for old posix versions #include <sys/wait.h> #include <unistd.h> #include "remote_stream.h" #include "token.h" #include "nrdp.h" int DEBUG_LEVEL = 0; /** fork & wait for executed command character array ...
#include "main.h" // Default system clock frequency. uint32_t core_clock_hz = 4000000; // SysTick delay counter. volatile uint32_t systick = 0; // Reset handler: set the stack pointer and branch to main(). __attribute__( ( naked ) ) void reset_handler( void ) { // Set the stack pointer to the 'end of stack' value. ...
#include <ctype.h> #include <errno.h> #include <signal.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "pwnio.h" #define PADSIZE 0x4 const char title[] = " ============================================================================\n" "// _|_|_|_|_| _|_|_| _| ...
#include "chooter.h" void background_init(State *S) { textures[BACKGROUND] = load_texture(S, "res/image/background.png"); background_x = 0; } void stars_init(Star *stars) { for (int i = 0; i < STARS_MAX; ++i) { stars[i].pos.x = randint(0, WIN_WIDTH - 1); stars[i].pos.y = randint(0, WIN_HEI...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
/* ------------------------------------------------------------------------ Headers ------------------------------------------------------------------------ */ #include <hl7parser/buffer.h> #include <hl7parser/defs.h> #include <hl7parser/element.h> #include <hl7parser/message.h> #include <hl7parser/parser.h> #in...
/* This file contains code for X-CHESS. Copyright (C) 1986 Free Software Foundation, Inc. This file is part of X-CHESS. X-CHESS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. No author or distributor accepts responsibility to anyone for the consequences of using it or for whether it...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include "mpi.h" // No counter interval will ever be less than 1 const int MINIMUM_ALLOWED_INTERVAL = 1; // Only one process will touch this. Debug purpose only. int totalIterations = 0; int main(int argc, char ** argv) ...
/* ============================================================================ * Copyright (c) 2008-2012 Texas Instruments Incorporated. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redi...
/* * Copyright (c) 2002 - 2006, Netherlands Forensic Institute * * 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 * ...
/*********************************************************************************** ** Copyright (c) 2011, University of British Columbia (UBC); All rights reserved. ** ** ** ** Redistribution and use in source and binary forms, w...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // // Created by james on 8/10/17. // #include <limits.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> /* posix */ #include <errno.h> #include <fcntl.h> #include <lib...
/* Copyright (c) 2018 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publi...
/** * DataSight Spark HiveODBC example * Compile this with Visual Studio 2012 */ #ifdef _WIN32 #include <windows.h> #endif #include <sqlext.h> #include <stdlib.h> #include <stdio.h> #include <string.h> /** * Check ODBC operation return status */ int CHECK_STATUS(SQLRETURN rc, SQLCHAR *location, SQLHANDLE hnd, SQ...