text
stringlengths
3.08k
10.5k
/* * Copyright 2018-2022 Redis Labs Ltd. and Contributors * * This file is available under the Redis Labs Source Available License Agreement */ #include "./op_delete.h" #include "../../errors.h" #include "../../util/arr.h" #include "../../query_ctx.h" #include "../../arithmetic/arithmetic_expression.h" /* Forward dec...
/******************************** Author: <NAME> ********************************/ #include "texture.h" int WIDTHin,HEIGHTin; F2D *target, *result; int WIDTH,HEIGHT; int localx, localy,targetin=0; int *atlas; int *xloopin, *yloopin; int *xloopout, *yloopout; int main(int argc, char **argv) { params* data; I...
#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <time.h> #define MAX_TEXT_SIZE 1024 void handleText(); void handleNumber(char* arg); __off_t selectRandomLocation(size_t neededSize); __off_t selectFre...
/* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that...
/* * An OCF module for determining the cost of crypto versus the cost of * IPSec processing outside of OCF. This modules gives us the effect of * zero cost encryption, of course you will need to run it at both ends * since it does no crypto at all. * * Written by <NAME> <<EMAIL>> * Copyright (C) 2006-2010 <NAM...
#include "http-client-internal.h" #include "aio-client.h" #include <stdlib.h> #include <errno.h> #define http_entry(ptr, type, member) ((type*)((char*)ptr-(ptrdiff_t)(&((type*)0)->member))) struct http_aio_transport_t { struct http_transport_t* transport; aio_client_t* client; void* buf; int len; int coun...
#include <inttypes.h> #include <stdio.h> #include <stdint.h> #include "mymalloc.h" #define BLOCK_SIZE 15000 #define HEADER_SIZE 2 // #define malloc( x ) mymalloc( x, __FILE__, __LINE__ ) // #define free( x ) myfree( x, __FILE__, __LINE__ ) // Extra 2 to keep track of first free pointer (may not be at beginning) sta...
/*********************************************************************** * * * This software is part of the ast package * * Copyright (c) 1985-2010 AT&T Intellectual Property * * and i...
// SPDX-License-Identifier: GPL-2.0 #include <test_progs.h> #include "test_stacktrace_build_id.skel.h" static __u64 read_perf_max_sample_freq(void) { __u64 sample_freq = 5000; /* fallback to 5000 on error */ FILE *f; f = fopen("/proc/sys/kernel/perf_event_max_sample_rate", "r"); if (f == NULL) return sample_fre...
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2017 RDK Management * * 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 ...
// Copyright 2019 <NAME>. All rights reserved. // SPDX-License-Identifier: BSD-2-Clause #include "avif/avif.h" #include "avifutil.h" #include "y4m.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #define NEXTARG() \ if (((argIndex + 1) == argc) ||...
/* * hypot_generic.c * * Compute the length of the hypotenuse of a right triangle, given the * lengths of the two perpendicular sides. * * $Id$ * * Written by <NAME> <<EMAIL>> * Copyright 2015, MinGW.org Project * * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this so...
#include <stdint.h> #include "pwm.h" #include "gpio.h" #include "registerset.h" static volatile uint32_t * const rcc_apb1enr = (volatile uint32_t *)(REG_RCC_ADDR + REG_RCC_APB1ENR_OFFS); static volatile uint16_t * const tim_cr1[] = { (volatile uint16_t *)(REG_TIM2_ADDR + REG_TIM_CR1_OFFS), (volatile uint...
/******************************** Copyright 2008 Google Inc. 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 app...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* burning_ship.c :+: :+: :+: ...
/* * file map routines */ #include <lib9.h> #include <bio.h> #include "mach.h" Map * newmap(Map *map, int n) { int size; size = sizeof(Map)+(n-1)*sizeof(struct segment); if (map == 0) map = malloc(size); else map = realloc(map, size); if (map == 0) { werrstr("out of memory: %r"); return 0; } memset(m...
#include "OpenCL_helper_library.h" // Loads the kernel source code from the specified file into a C string and returns the string pointer char *load_kernel_source(const char *filename) { // Open the source file FILE *file = fopen(filename, "r"); if (file == NULL) fatal("Error opening kernel source file\n"); // D...
#define _XOPEN_SOURCE 600 #define _USE_XOPEN 1 #include <linux/limits.h> #include <stdlib.h> #include <memory.h> #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include <time.h> #include <dirent.h> #include <assert.h> #include <sys/errno.h> #include <sys/wait.h> #include <unistd.h> #include "dir_explo...
/** * Copyright (c) 2004-2005 <NAME> <<EMAIL>> * All rights reserved * * "THE BEER-WARE LICENSE" (Revision 42): * <NAME> wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you can buy me a beer in return...
/**************************************** * * * SwarmCraft * * Chain Expansion * * * * ------------------------------------ * * * * Originally written by: ...
/* * File : sftbyvec.c * Description: Read an input ASCII PGM image, shift its contents by * : a given vector and then writes it back. * Author : <NAME> <<EMAIL>> * Copyright : (C) <NAME> 2014, 2015, 2016, 2017 ...
/* * Name: kstat v.1.1 syscalls.c * Date: Sun Feb 10 02:49:49 CET 2002 * Author: FuSyS [<EMAIL>, <EMAIL>] * * SoftProject Digital Security for Y2K * Sikurezza.org - Italian Security Mailinglist * * MOJITO-WARE LICENSE - This source code is like "THE BEER-WARE LICENSE" by * <NAME> <<EMAIL>> but you can give me ...
#include <epicsExport.h> #include <string.h> #include <stdio.h> #include <asynShellCommands.h> #include <drvAsynSerialPort.h> #include <iocsh.h> /* There are no include files and/or they are not installed for the following * definitions. * Must be careful to make sure these following remain consistent with the ...
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <time.h> #include <string.h> #include "omp.h" /* Function used to extract the number of seconds spent */ time_t extract_time_secs(struct timespec start, struct timespec stop){ if(stop.tv_sec - start.tv_sec > 0 && stop.tv_nsec - start.tv_nsec < 0)...
/* BSD 3-Clause License Copyright (c) 2017, <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 list of conditions an...
#include <stdio.h> #include <stdlib.h> #include "c_jobsched.h" #if JOBSCHED==JS_TORQUE #include "pbs_error.h" #include "pbs_ifl.h" #elif TESTING==JS_SLURM #endif #define C_ARG_MAX 1000 // ARG_MAX in limits.h is typically too large #if JOBSCHED==JS_TORQUE // TORQUE-based environment...
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include "svdpi.h" #include "dpiheader.h" #define DDR_DATAWIDTH 32 FILE *fin; FILE *fout; void init_files() { fin = fopen("D:/aidata/ddrread_ddrd_read_input.txt", "rt"); fout = fopen("D:/aidata/ddrread_ddrd_read_output.txt", "rt"); assert(fin);...
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT-0 #include<sys/types.h> #include<sys/uio.h> #include<unistd.h> #include<poll.h> #include<errno.h> #include<string.h> #include"log.h" #include"client_connection.h" #include"safe_blocking_readwrite.h" // returns ...
#include "types.h" #include "param.h" #include "memlayout.h" #include "riscv.h" #include "spinlock.h" #include "sleeplock.h" #include "proc.h" #include "list.h" #include "mbuf.h" #include "net.h" #include "defs.h" #include "debug.h" #include "tcp.h" uint32 sum_every_16bits(void *addr, int count) { ...
/* Copyright (c) 2010-2011,2013-2015 The Linux Foundation. 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 version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distribut...
#include "stm32f0xx_ll_bus.h" #include "stm32f0xx_ll_gpio.h" #include "stm32f0xx_ll_rcc.h" #include "stm32f0xx_ll_system.h" #include "stm32f0xx_ll_adc.h" #include "stm32f0xx_ll_dma.h" char adc_buffer[16] = {0}; static void led_config(void) { /* * Setting Clock */ LL_AHB...
/** * main.c * * License: MIT * * Copyright (c) 2013 <NAME> <<EMAIL>> */ #include <string.h> #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include "sha1.h" #include "commander.h" /** Global variables for option parsing: * * input_string - parsing variable for string to hash * orig_string - p...
/* Includes */ #define PY_SSIZE_T_CLEAN /* So we get Py_ssize_t args. */ #include <Python.h> /* Because of "reasons", the Python header must be first. */ #include "benzina/benzina-old.h" /** * xorshift128+: A fast, high-quality PRNG. * * Implementation taken from * https://en.wikipedia.org/wi...
////////////////////////////// //<NAME> //07/01/18 //ELEC3800 //Lab11 //Analog control of PWM motor ////////////////////////////// /* DriverLib Includes */ #include <ti/devices/msp432p4xx/driverlib/driverlib.h> /* Standard Includes */ #include <stdint.h> #include <stdbool.h> #include <stdio.h> //pre-defined timer va...
#define DEBUG 0 #include <stdbool.h> #include <stdint.h> #include "arm.h" #include "board.h" #include "console.h" #include "hwinfo.h" #include "debug.h" #include "smc.h" #include "sha256.h" #include "ecc.h" #include "ns16550.h" #define BL1_COPIES 0x3 #define VECTOR_TABLE_SIZE 0x400 #define STACK_POINTER 0xffffc #d...
/** * Disassembler * by pyroesp, aka <NAME> * * Date: 1/09/2014 * * License: * This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. **/ #include "../include/program.h" uint8_t program_ReadFile(DISASM *pDisasm, char *programPath) { FILE ...
#include "common.h" #include "monitor.h" #include "virtix_page.h" #include "kheap.h" #include "virtix_proc.h" vpage_dir_t* current_vpage_dir = NULL; vpage_dir_t* root_vpage_dir = NULL; //Assembly abstraction for more maintainable code page_table_t* get_cr3(){ unsigned int cr3; asm volatile ("movl %%cr3, %%eax" : "...
// // Created by refexchange on 2018/5/26. // #include "csv_parser.h" #include <stdio.h> #include <string.h> char *csvDequote(char *source, size_t *rlength) { /* * Stage 1: Scan source. If there are commas, set quote_flag to 1; If any quotation * marks are found, increase quomark_count. * */ *...
/* * Copyright 2017 RIS. * Authored by <NAME> <<EMAIL>> */ #include "utility/lists.h" #include "utility/logging.h" #include "utility/c8math.h" #include <stdlib.h> #include <string.h> #include <GL/glew.h> #include <GLFW/glfw3.h> #include "shaders.h" /* For samples below */ #include <math.h> #include <stdio.h> #includ...
// Copyright 2021 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #define HAS_DEVICE_TREE 1 #define USE_DEVICE_TREE_CPU_COUNT 0 #define USE_DEVICE_TREE_GIC_VERSION 0 #define PRINT_DEVICE_TREE 0 #define PRINT_ZBI 1 // leav...
#include <conio.h> #include <math.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <time.h> #include "lizard.h" #include "map.h" #include "order.h" #include "lizgame.h" #include "lizhex.h" #include "lizmisc.h" #define HOME_SIZE 400 char data_path [80], game_code [5]; char player_code [MA...
/** * \file hs_mmcsd.c * * \brief This file contains functions which configure the HS/MMCSD controller */ /* * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/ */ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the follo...
/* The MIT License (MIT) Copyright (c) 2014-2015 CSAIL, MIT 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, merg...
/* * Copyright (c) 2017-2019, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * */ #include <stddef.h> #include "test/test_services/tfm_core_test/core_test_defs.h" #include "tfm_ss_core_test_2.h" #include "tfm_api.h" #include "tfm_secure_api.h" #include "spm_partition_defs.h" #include ...
/* * Copyright (c) 2012, 2013, <NAME> aka Tectu <<EMAIL>> * Copyright (c) 2012, 2013, <NAME> aka inmarket * * 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...
#include "adc_8080_cpu.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #define MEMORY_TOTAL 0x10000 static void run_test(adc_8080_cpu *cpu, const char *filename, uint64_t expected_cycles); static bool s_test_complete; static uint8_t *s_memory; // Credit to superzazu for their 808...
/***************************************************************************** * video_text.c : OSD text manipulation functions ***************************************************************************** * Copyright (C) 1999-2010 VLC authors and VideoLAN * $Id: 58566b4ec60c9a6f6493205136008092739d97b9 $ * * Aut...
/* * WakeOnLAN v0.3 * A simple C program that sends a magic packet * * * MIT License * * 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 restr...
/* convergence.c */ #include "convergence.h" #include <ftw_std.h> #include <ftw_rng.h> #define sigma0 1.000 extern double max_scale; extern double d_max_scale; extern double diameter_scale; extern double x[], y[], z[]; extern double box_x, box_y, box_z; extern int number_of_molecules; extern double c_convergence_ra...
/**\ * Copyright (c) 2020 Bosch Sensortec GmbH. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause **/ #include <stdio.h> #include "bma456.h" #include "bma4_common.h" /*****************************************************************************/ /*! Global variable ...
/* * Copyright (c), Microsoft Open Technologies, Inc. * 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 co...
/* * Created 190923 lynnl * * see: https://gist.github.com/lynnlx/03114faeb120f161abad8d46f5e6d56c */ #include "utils.h" #include "macho.h" #include <sys/errno.h> #include <uuid/uuid.h> #include <mach-o/fat.h> #include <mach-o/loader.h> typedef struct { void *data; size_t size; } buffer_t; static void *...
#include "bitmap.h" #include <GL/glew.h> #include <GLFW/glfw3.h> #include <float.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <time.h> #include "logger.h" #include "shader.h" #include "util.h" #include <cglm/cglm.h> #define ZOOMSPEED 1e-4f void fr...
/************************************************************************** * * File name: ompprof.c * * <NAME> * Computer Science Department * Technion, Haifa 32000 Israel * <EMAIL> * * Last Updated: 11.4.2009 * *************************************************************************/ #incl...
/*! * @file main.c * @brief LR Click Example. * * # Description * This example reads and processes data from LR clicks. * * The demo application is composed of two sections : * * ## Application Init * Initializes driver init and LR init. * * ## Application Task * Transmitter mode - sends one by one by...
#include "../../include/Nimble/NimbleLicense.h" /* * Crash.c * Nimble Engine * * Created by <NAME> on 2020-08-19. * Copyright (C) 2020-2021 <NAME> <<EMAIL>> * */ #include "../../include/Nimble/Errors/Crash.h" /** * @file Crash.c * @author <NAME> * @copyright * @parblock * The MIT License ...
/* * Copyright (c) 2018, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at h...
#include <stdlib.h> #include "set_time_face.h" #include "watch.h" #define SET_TIME_FACE_NUM_SETTINGS (7) const char set_time_face_titles[SET_TIME_FACE_NUM_SETTINGS][3] = {"HR", "M1", "SE", "YR", "MO", "DA", "ZO"}; void set_time_face_setup(movement_settings_t *settings, uint8_t watch_face_index, void ** context_ptr) {...
/* * Copyright (c) 2013, Google Inc. All rights reserved * Copyright (c) 2012-2013, NVIDIA CORPORATION. All rights reserved * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files * (the "Software"), to deal in the Software without res...
/* * dump_editor.c: The svn_delta_editor_t editor used by svnrdump to * dump revisions. * * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed wit...
/* * main.c * * Created on: 09/03/2012 * Author: <NAME> */ //General Includes #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <sys/resource.h> #include <signal.h> #include <pthread.h> //Internal Includes #include "database.h" #include "lower_bound.h" #include "utils/hostUtils.h" #in...
/* * Multiboot information definitions. * Taken from GRUB documentation (http://www.gnu.org/software/grub/). * Copyright (C) 1999-2001 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * t...
/* * Copyright (C) 2015 <NAME> <<EMAIL>> * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup examples * @{ * * @file * @brief Demonstrating the sending and receiv...
/** * Copyright (C) 2021 Bosch Sensortec GmbH * * SPDX-License-Identifier: BSD-3-Clause * */ #include <stdio.h> #include <freertos/FreeRTOS.h> #include <freertos/task.h> #include <esp_err.h> #include <esp_log.h> #include <esp_timer.h> #include "bme68x-idf.h" #include "bme68x.h" /******************************...
/***************************************************************************** * * \file * * \brief Resistive Touch Calibration * * Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Mi...
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "graphics.h" #include "buttons.h" #include "flash.h" #include "lcd.h" #include "game.h" extern ADC_HandleTypeDef hadc1; extern SAI_HandleTypeDef hsai_BlockA1; extern RTC_HandleTypeDef hrtc; extern uint16_t audiobuffer[48000]; #define randint(max, mi...
/* Copyright 2020 <NAME> THIS SOFTWARE IS CONTRIBUTED SUBJECT TO THE TERMS OF YOU MAY OBTAIN A COPY OF THE LICENSE AT https://www.apache.org/licenses/LICENSE-2.0. THIS SOFTWARE IS LICENSED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMP...
/* Copyright (c) 2019 Garmin Ltd. or its subsidiaries. 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 ...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * * Copyright (c) 2019 STMicroelectronics. All right...
#define _XOPEN_SOURCE 600 /* Or higher */ #include <stdio.h> #include <stdlib.h> #include <semaphore.h> #include <pthread.h> #include <time.h> #define THREADS_NUMBER 4 #define GEN_LIMIT 1000 #define TRUE 1 #define FALSE 0 typedef unsigned char cell_t; int size; int width = 0, height = 0; int st...
/* * Copyright 2010-2011 Freescale Semiconductor, Inc. * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <asm/io.h> #include "ics307_clk.h" #if defined(CONFIG_FSL_NGPIXIS) #include "ngpixis.h" #define fpga_reg pixis #elif defined(CONFIG_FSL_QIXIS) #include "qixis.h" #define fpga_reg ((struct ...
/* * Copyright 2008-2010, Freie Universitaet Berlin (FUB). All rights reserved. * Copyright 2014 INRIA * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup cpu_lpc2387 ...
/* * pack: a type-agnostic version of [pack] * * (c) 2007-2011 forum::für::umläute * * 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...
/* * Copyright 2021, Cypress Semiconductor Corporation (an Infineon company) * SPDX-License-Identifier: Apache-2.0 * * 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.a...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "staff.h" #include "linked_list.h" #include "defs.h" #include "member.h" lnode_ptr staff_head = NULL; int staffn = 0; static int cmp(const void *id, const void *node) { return *(int *)id == ((staff_ptr)node)->id; } int add_staff(int id, int targ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <pcre.h> #include <signal.h> #include <unistd.h> #define BUFSIZE 1024 #define STATSFILE "/var/log/pfstats" #define LOGFILE "/var/log/maillog" enum { SENT, DEFERRED, BOUNCED, RECEIVED }; int stats[4]={0,0,0,0}; int cmp(char *a, char *b); void *s...
/* # This file is part of the Astrometry.net suite. # Licensed under a 3-clause BSD style license - see LICENSE */ // Author: <NAME>, Skynet RTN, University of North Carolina at Chapel Hill #include <assert.h> #include <stddef.h> #include <string.h> #include "ucac5-fits.h" #include "fitsioutils.h" // This is a n...
/* ///////////////////////////////////////////////////////////////////// */ /*! \file \brief Inversion scheme for RMHD using a pressure fix. Fix p to a small value, solve for the square of velocity by using secant or bisection algorithm applied to Eq (A3). This step involved re-computing W at each step of th...
/* * Copyright (c) 2016 <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, p...
#pragma once #include <cx/cx.h> #include <cx/string.h> #include <cx/core/stvar.h> enum LOG_LEVEL_ENUM { LOG_Fatal, LOG_Error, LOG_Warn, LOG_Notice, LOG_Info, LOG_Verbose, LOG_Debug, // Compiled out of non-development builds LOG_Trace, // Only available in debug builds...
#include <stdio.h> #include <stdlib.h> #include <sys/socket.h> #include <sys/un.h> #include <unistd.h> #include <netinet/in.h> #include <arpa/inet.h> #include <string.h> #include <sys/ipc.h> #include <sys/msg.h> #include <sys/types.h> #include <signal.h> #include <pthread.h> #define MAX 1024 #define port 8082 #define...
/* ---------------------------------------------------------------------------- * Microchip Microprocessor (MPU) Software Team * ---------------------------------------------------------------------------- * Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries * * Redistribution and use in sou...
/* * @file deca_uart.c * * @brief HW specific definitions and functions for UART Interface * * @author <NAME> * * @attention Copyright 2018 (c) DecaWave Ltd, Dublin, Ireland. * All rights reserved. * * @modified 2018 PathPartner */ #include "boards.h" #include "po...
/* "mem" by Regan "CuckyDev" Green: A tiny portable C89 memory allocator. This is a single-header library. You must include this file alongside `#define MEM_IMPLEMENTATION` in one file in order to use. You can then include `mem.h` in other files for the function declarations. Additional control defines: MEM_S...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file OpenAMP/OpenAMP_TTY_echo/Src/stm32mp1xx_hal_msp.c * @author MCD Application Team * @brief This file provides code for the MSP Initialization * and de-Initialization codes. ...
#include <stdlib.h> #include <fcntl.h> #include <stdio.h> #include <ctype.h> #include <unistd.h> #include <string.h> #include <limits.h> #include <assert.h> // = return 1 #define EQ 1 // >= return 2 #define EGT 2 // <= return 3 #define ELT 3 // > return 4 #define GT 4 // < return 5 #define LT 5 // != re...
#include <stdio.h> #include <stdlib.h> #include "header.h" #include "parser.tab.h" extern void yyerror(char *s); extern int sym[26]; static int cont = 0; static int brk = 0; static int loop_depth = 0; int ex(nodeType *p) { if ((cont || brk)){ if(loop_depth!=0){ return 0; }else{ ...
/* -*-Mode: C;-*- */ /**BeginCopyright************************************************************ * * $HeadURL$ * $Id: cf0249ba326b256a332a67f0d5639a0223f06756 $ * *--------------------------------------------------------------------------- * Part of PERFECT Benchmark Suite (hpc.pnnl.gov/projects/PERFECT/) *--...
#include <stdlib.h> #include <string.h> #include <stdio.h> #include <time.h> #include <math.h> #include <stdbool.h> #include <time.h> #include <mpi.h> #define PI 3.14159265358979323846 typedef struct Planet_s { float x, y; // position float ax, ay; // acceleration float vx, vy; // velocity float mass; // mass } ...
/* * This file is part of the coreboot project. * * Copyright (C) 2016 Siemens AG * * 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; version 2 of the License. * * This program is distrib...
#include <mpi.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #define TAG 0 #define ETA 0.0002 #define RHO 0.5 #define G 0.75 #define SIZE 512 #define STRIKEX SIZE/2 #define STRIKEY SIZE/2 #define STRIKE 1 void exchange(int sendingProcess, int receiveProcess, float* sendingData,float* receiveBuffer,int ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "pilha.h" //criando elemento struct elemento{ char dado; struct elemento *prox; }; //typedef do elemento typedef struct elemento Elemento; //criando nó descritor struct descritor{ struct elemento *inicio; struct elemento *fim; ...
#if HAVE_NBTOOL_CONFIG_H #include "nbtool_config.h" #endif #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <errno.h> #include <sys/stat.h> #include <limits.h> #include <fcntl.h> #include <unistd.h> #include <string.h> #include "installboot.h" #ifndef DFL_SECSIZE #define DFL_SECSIZE 512 #endif...
// // BME (Blasphemous Multimedia Engine) main module // #include <SDL.h> #include "bme_err.h" #include "bme_cfg.h" #include "bme_main.h" int bme_error = BME_OK; unsigned int gtSdlKeyMapping[110] = { // 0 SDLK_BACKSPACE, SDLK_CAPSLOCK, SDLK_RETURN, SDLK_ESCAPE, SDLK_LALT, SDLK_LCTRL, SDLK_LCTRL, SDLK_R...
#include <string.h> #include <stdio.h> #include "trace.h" #include "peripheral_uart.h" #include "SEGGER_RTT.c" void trace_task(trace_uart_t *ctx) { for (;;) { wait: xSemaphoreTake(ctx->tx_sem, portMAX_DELAY); while (ctx->read_next != ctx->write_next) { if (!apUART_Check_TX...
#include <stdint.h> #define MANT_SIZE 52 #define EXP_SIZE 11 #define EXP_MASK ((1 << EXP_SIZE) - 1) #define MANT_MASK (((uint64_t)1 << MANT_SIZE) - 1) #define CANONICAL_NAN 0x7FF8000000000000 typedef union { uint64_t u; double f; } uf64_t; static inline uint32_t MULH_32(uint32_t a, uint32_t b) { return (...
/* GELL 15.26: include file for the module: "libcir" */ /* translation done: "Wed June 16 93 18:01:44 " */ /* impure LLM3 predefined */ extern Ptr GIdlink, GIllink, GIfcons, GIevalst; /* LLM3 functions */ extern Ptr GXunbind7(), GXunbind5(), GXunbind3(), GXunbind1(); extern Ptr GXp...
/* * Copyright (c) 2015-2016 MediaTek Inc. * Author: <NAME> <<EMAIL>> * <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 distribu...
/******************************************************************************* * Includes ******************************************************************************/ #include "blazar_flash.h" /******************************************************************************* * Definitions **********************...
#include "trie.h" #include <stdio.h> static void trie_postorder_traverse(trie_t trie, trie_node_t cursor, void (*cb)(trie_t trie, trie_node_t node)); static trie_node_t trie_split(trie_t trie, trie_node_t m, trie_node_t n, uint32_t traverse_depth); static trie_node_t trie_create_node(trie_t trie, const void *key, ...