text
stringlengths
3.08k
10.5k
/* USER CODE BEGIN Header */ /** ****************************************************************************** * File Name : freertos.c * Description : Code for freertos applications ****************************************************************************** * @attention * * <h2><cente...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. #pragma once #include "WinEventLogLevels.h" #include <TraceLoggingProvider.h> // In the OS repo, we want to pick up the published version of MicrosoftTelem...
// Copyright 2022 Google 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 ...
/** * \file * * \brief * * Copyright (c) 2015 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: * * 1. Redistributions of sou...
/************************************************* * Perl-Compatible Regular Expressions * *************************************************/ /* PCRE is a library of functions to support regular expressions whose syntax and semantics are as close as possible to those of the Perl 5 language. ...
#include <fudge.h> #include <kernel.h> #include <modules/base/base.h> #include <modules/system/system.h> #include <modules/console/console.h> #include <modules/arch/x86/platform/platform.h> #include <modules/arch/x86/pic/pic.h> #include <modules/arch/x86/io/io.h> #define REGISTERRBR 0x0000 #define ...
#include "graphics.h" #include "hello.h" #include "input_devices.h" #include "math.h" typedef struct MouseDecoder { uint8_t buf[3]; int8_t index; mouse_state_t decoded; } mouse_decoder_t; static mouse_decoder_t _mouse_decoder = {0}; static uint8_t _keyboard_modifier = 0; static void wait_...
/* $Id$ */ /* This file performs the following test: start, stop and timer functionality for 2 slave native SMP threads - It attempts to use the following two counters. It may use less depending on hardware counter resource limitations. These are counted in the default counting domain and default granularity, depe...
/* ===---------- emutls.c - Implements __emutls_get_address ---------------=== * * The LLVM Compiler Infrastructure * * This file is dual licensed under the MIT and the University of Illinois Open * Source Licenses. See LICENSE.TXT for details. * * ===-----------------------------------------...
/* * decmacro.h * * Macros used by the decoder */ /* * decode an element from the aligned offset tree, without checking * for the end of the input data */ #define DECODE_ALIGNED_NOEOFCHECK(j) \ (j) = context->dec_aligned_table[dec_bitbuf >> (32-ALIGNED_TABLE_BITS)]; \ FILL_BUF_NOEOFCHECK(contex...
/* * Copyright 2021-2022 <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 la...
/* * BSD 3-Clause License * * Copyright (c) 2019, Analog Devices, 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: * * 1. Redistributions of source code must retain the above copyrigh...
/* Copyright (C) StrawberryHacker */ #include "print.h" #include "gpio.h" #include "clock.h" #include "usart.h" #include "sprint.h" #include "nvic.h" #include "ringbuffer.h" #include <stdarg.h> /* * The `sprint` formatter functions will output the result to this * buffer. This buffer sets the maximum print limit s...
// <NAME>, 2/11/2021, Raycore #include <stdio.h> #include <SDL2/SDL.h> #include "./util.h" typedef struct { TCPsocket tcp_socket; client_data data; } client_connect; // Holds the IPv4 address and port number // for this server. IPaddress ip_addr; // TODO: Eventually we will have both a TCP // socket and UDP soc...
#include<types.h> #include<apic.h> #include<lib.h> #include<idt.h> #include<memory.h> #include<context.h> #include<entry.h> #define PGD_MASK 0xff8000000000UL #define PUD_MASK 0x7fc0000000UL #define PMD_MASK 0x3fe00000UL #define PTE_MASK 0x1ff000UL #define PGD_SHIFT 39 #define PUD_SHIFT 30 #define PMD_SHIFT 21 #defin...
/* EXT2 filesystem implementation. references: * https://engineering.purdue.edu/~ee469/lectures/469_lec22_part3.pdf * https://web.archive.org/web/20211027105440/https://wiki.osdev.org/Ext2 * http://www.science.smith.edu/~nhowe/Teaching/csc262/oldlabs/ext2.html */ #include "types.h" #include "file.h" ...
/****************************************************************************** * * (C)Copyright 1998,1999 SysKonnect, * a business unit of Schneider & Koch & Co. Datensysteme GmbH. * * See the file "skfddi.c" for further information. * * This program is free software; you can redistribute it and/or modify * it...
/******************************************************************** Copyright 2010-2017 <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 3 of the License, or (at your...
/* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved. This software is licensed as OpenSource, under the Apache License, Version 2.0. This license is available at: http://opensource.org/licenses/Apache-2.0. */ /* * Miscellaneous functions and system calls. */ #include <sys/...
#include <bootloader.h> struct stivale2_struct_tag_kernel_base_address *baseAddrTag; struct stivale2_struct_tag_framebuffer *framebufTag; struct stivale2_struct_tag_terminal *termTag; struct stivale2_struct_tag_modules *modsTag; struct stivale2_struct_tag_memmap *memTag; struct stivale2_struct_tag_firmware *fwTag; str...
// -fruchti 2015 #include "main.h" volatile uint32_t MillisecondCounter = 0; volatile uint16_t HallSensorTimer = T_HALL_L; volatile State_t State = PowerOnWait; volatile uint8_t HallSensorBuffer = 0; int main(void) { //// IN- AND OUTPUTS //// D_LED_RD |= (1 << P_LED_RD); D_LED_YE |= (1 << P_LED_YE); ...
/* * Copyright (C) 2018 ETH Zurich, University of Bologna and * GreenWaves Technologies * * 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-...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <sys/time.h> #include <sys/types.h> #include <unistd.h> #include <omp.h> // maximum value of n #define NMAX 133500000 //#define NMAX 200 #define CHUNKSIZE 20 static double N[NMAX]; static int lt[NMAX]; static int gt[NMAX]; stat...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <getopt.h> #include <unistd.h> #include <errno.h> #include <curl/curl.h> static int flag_q = 0; static int flag_help = 0; static int flag_error = 0; static const struct option long_options[] = { { "help", 0, NULL, 'h' }, ...
/* * Copyright (c) 2002 <NAME> * (Royal Institute of Technology, Stockholm, Sweden). * 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 th...
#include <u.h> #include <libc.h> #include <cda/fizz.h> int cmppal(Type ** , Type ** ); int cmptype(Type ** , Type ** ); void cnttype(Type *c); void gettype(Type *c); void prchip(Chip *c); void prtype(Type *); void prcbchip(Chip *); Board b; Type * curtype; int burn = 0; int shortflg = 0; int tflg = 0; int typecnt;...
/* BAREOS® - Backup Archiving REcovery Open Sourced Copyright (C) 2000-2007 Free Software Foundation Europe e.V. This program is Free Software; you can redistribute it and/or modify it under the terms of version three of the GNU Affero General Public License as published by the Free Software Foundation...
/* to compile: gcc -o SynchroThread SynchroThread.c -l pthread * Linux Version of thread Synchronization */ #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <semaphore.h> //My added declarations #define MAXQUEUESIZE 100 pthread_mutex_t my_lock;//mutex for thread lock int buf_size_n;//bound...
/* // Copyright (c) 2016, <NAME> // Licensed under the Apache License version 2.0 // // History: // 30 Aug 2016 <NAME> Creation */ #include "faninit.h" #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <string.h> // push back for read int unread = 0; /** * Read next character from stream or r...
#include "escapefrombootbay.h" typedef struct appdata{ Evas_Object* win; Evas_Object* layout; Evas_Object* conform; } appdata_s; static void win_delete_request_cb(void *data, Evas_Object *obj, void *event_info) { ui_app_exit(); } static void layout_back_cb(void *data, Evas_Object *obj, void *event_info) { appda...
/* * Make opcodes.[ch] from standard input and parse.h. */ #include <string.h> #include <stdio.h> #include <stdlib.h> struct tk { struct tk *next, *other; char *name; int val; int nopush; }; static int opsort(const void *a, const void *b) { struct tk *ta = (struct tk *) a; struct tk *tb = (...
/* * bar_monitor.c - another version of dwmstatus. * * Author: levi0x0. * * ChangeLog: * 13/09/2014, - 0.8 * 08/08/2014, - 0.7 * 19/07/2014, - 0.3 * 02/07/2014, - 0.1 * * .xinitrc: * * while [ true ];do * xsetroot -name "$(bar_monitor)" * done & * * bar_monitor contain sleep(1) function. ...
/* * Unit tests for atom functions * * Copyright (c) 2002 <NAME> * * 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 of the License, or (at your option) any lat...
#pragma once #include "system.h" #include "librg.h" #include "packet.h" #include "flecs/flecs.h" #include "flecs/flecs_meta.h" #include "world/blocks.h" #include "modules/components.h" #define WORLD_ERROR_NONE +0x0000 #define WORLD_ERROR_OUTOFMEM -0x0001 #define WORLD_ERROR_INVALID_BLOCKS ...
/* * @Author: HanwGeek * @Github: https://github.com/HanwGeek * @Description: Functions to manipulate and create control flow and * interference graphs. * @Date: 2020-01-30 10:15:58 * @Last Modified: 2020-02-24 11:17:21 */ #include "graph.h" #include <stdio.h> #include "absyn.h" #include "assem.h" #include "erro...
/* * Copyright (C) 2013 Glyptodon 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, publi...
/* wigToBedGraph - Convert wig files to bedGraph, merging adjacent items with identical * values when possible. */ /* Copyright (C) 2011 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "linefile.h" #include...
/* go-caller.c -- look up function/file/line/entry info Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ /* Implement runtime.Caller. */ #include <stdint.h> #include <sys/types.h> #include <sys/stat.h> ...
//-KB,-5-11-202- //nhd_20x4_LCD.c #include <nhd_20x4_LCD.h> #include "stm32h7xx_hal.h" /*********** Define the LCD PINS below ****************/ #define RS_Pin GPIO_PIN_1 #define RS_GPIO_Port GPIOD #define RW_Pin GPIO_PIN_2 #define RW_GPIO_Port GPIOD #define EN_Pin GPIO_PIN_3 #define EN_GPIO_Port GPIOD #define D4_Pin...
#include <stdio.h> #include <stdlib.h> #include <GL/glut.h> FILE *fpin; int **imagemR, **imagemG, **imagemB, ncol, nlin, grade; void abrir_arquivos(int argc, char *argv[]); void ler_cabecalho(void); void ler_imagem(void); void fechar_arquivos(void); void abrir_arquivos(int argc, char *argv[]) { if (argc <= 1) {...
/* vim:filetype=c */ #define _XOPEN_SOURCE #define max(X, Y) (((X) > (Y)) ? (X) : (Y)) #include "gbm_mc.h" #include "sobol.h" #include "utils.h" #include "asa241.h" #include <math.h> #include <pthread.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <time.h> #define NUM_THREADS 8 dou...
/* nettle-pbkdf2.c Command-line tool for pbkdf2 hashing. Copyright (C) 2013 <NAME> This file is part of GNU Nettle. GNU Nettle is free software: you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free Software F...
/* Esse header não deve ser compartilhado com as aplicações que consomem essa biblioteca. Contém todas as funções que representam os algoritmos e facilitam uma arquitetura de testes unitários para validá-los. Para essa implementação é essencial porque muitas funções utilizam stdin, dificultando automação de testes unit...
/** Load/save snapshot from/to file. Copyright (c) 2019 <NAME> */ /* ver.0 format: # fcom file tree snapshot d "/d" { v 0 // version // name size attr uid gid mtime crc f "1" 0 0 0 0 0 0 } d "/d/1" { v 0 f "2" 0 0 0 0 0 0 } */ #include <fsync/fsync.h> struct ssloader { struct dir *top; struct dir *dcur; struct f...
/* Copyright 2010,2011,2012,2013 <NAME> <<EMAIL>> */ #include <stdbool.h> #include <util/delay.h> #include "debug.h" #include "ring_buffer.h" #include "ibm4704.h" #define WAIT(stat, us, err) do { \ if (!wait_##stat(us)) { \ ibm4704_error = err; \ goto ERROR; \ } \ } while (0) uint8_t ibm4704...
/*% SONGETREALDATA returns data for Adc, AdcMark, RealWave ( and RealMark?) % data channels % % Implemented through SONGetRealData.dll % % [npoints, bTime, data]=SONGETREALDATA(fh, chan,... % maxpoints, sTime, eTime{, FilterMask}) % % INPUTS: FH = file handle % CHAN = channel...
#include "SysToolX.h" void FreeMem(void *block) { if (block) { LocalFree(block); } } void *GetMem(DWORD dwSize) { return((void *) LocalAlloc(LPTR, dwSize)); } TCHAR *LangLoadString(UINT sid) { TCHAR *res; WORD *p; HRSRC hr; int i; res = NULL; hr = FindResource(NULL, MAKEINTRESOURCE(sid / 16 + 1), RT_ST...
// SPDX-License-Identifier: GPL-2.0 /* * MS5611 pressure and temperature sensor driver (I2C bus) * * Copyright (c) <NAME> <<EMAIL>> * * 7-bit I2C slave addresses: * * 0x77 (CSB pin low) * 0x76 (CSB pin high) * */ #include <linux/delay.h> #include <linux/i2c.h> #include <linux/module.h> #include <linux/mod_de...
#include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <fcntl.h> void do_shit(int filedescr1,int filedescr2); int main(int argc,char *argv[]) { int fd,fi; if(argc < 3) { printf("Usage: %s fisier de date, %s fisier cu instructiuni\n", argv[0], argv[0]); exit(1); } if(-1 == (fd = open(argv[1],O_RD...
/* * This software was written by <NAME> hdietrich2 at hotmail * dot com 2002, 2003. Source placed in public domain (original * statement below in this file). * This software was modified by JimF jfoug AT cox dot net * in 2014. No copyright is claimed, and all modifications to this source * fall under original pu...
#include "type.h" #include "base.h" #include "register.h" #include "character.h" #include "music/music.h" #include "music.h" typedef struct { u32 start; u32 size; u32 offset; u16 step; u8 sound; u8 _padding; } state_t; enum { SOUND1, SOUND2, SOUND3, SOUND4 }; static u8 voices = 3; static state_t...
/* Cross platform defines for exporting symbols from shared libraries Wireshark - Network traffic analyzer By <NAME> <<EMAIL>> Copyright 2013 <NAME> SPDX-License-Identifier: GPL-2.0-or-later */ #include "ws_compiler_tests.h" /** Reset symbol export behavior. If you {un}define WS_BUILD_DLL on...
#define _GNU_SOURCE #include <alloca.h> #include <dirent.h> #include <fcntl.h> #include <linux/loop.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "config.h" #include "dbg.h" static char *loopback_assign(const char *filename...
/* * pkt_processing.c * * Extract's packet properties from raw payload. */ #include <stdio.h> #include <pcap.h> #include <openssl/sha.h> #include <stdlib.h> #include <netinet/if_ether.h> #include <netinet/ip.h> #include <netinet/tcp.h> #include <netinet/udp.h> #include "include/sniffer.h" #include "include/s...
/* Demonstrates how to apply an effect to a duplex stream using the node graph system. This example applies a vocoder effect to the input stream before outputting it. A custom node called `ma_vocoder_node` is used to achieve the effect which can be found in the extras folder in the miniaudio repository. The vocoder no...
#include <stdio.h> #include <mpi.h> #include <stdlib.h> #define N 5 int A[N][N],B[N][N],C[N][N]; typedef struct{ int n; /* The number of processors in a row (column). */ int size; /* Number of processors. (Size = N*N*/ int row; /* This processor's row number.*/ int col; /* This processor's column numbe...
/* * Copyright 2016 <NAME> and <NAME> * * This program uses the GROMACS molecular simulation package API. * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team. * Copyright (c) 2013,2014, by the GROMACS development team, led by * <NAME>, <NAM...
/***************************************************************************** * * test_pair_yukawa.c * * Edinburgh Soft Matter and Statistical Physics Group and * Edinburgh Parallel Computing Centre * * (c) 2014-2017 The University of Edinburgh * * Contributing authors: * <NAME> (<EMAIL>) * *********...
/* * Copyright (C) 2013 Glyptodon 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, publi...
#include <stdio.h> #include <stdlib.h> #include <time.h> typedef int *Sets; typedef struct MazeStruct *Maze; struct MazeStruct { Sets S; // Disjoint Set of cells. Sets E; // Set of edges. int sizeM; // size of maze; int sizeS; // size of S. int sizeE; // size of E. }; // Functions. void InitM...
// Public Domain. #include <stdlib.h> #include <stdio.h> #include <string.h> #include "sexp.h" #include "fs.h" static char decode(char** s); static sexp* parse_literal(char** s) { sexp* x; char* e; char q; int len, i; x = calloc(1, sizeof(*x)); x->type = 1; //check if it's not quoted if(**s != '...
#ifndef stdio_h #include <stdio.h> #define stdio_h #endif #ifndef stdlib_h #include <stdlib.h> #define stdlib_h #endif #ifndef string_h #include <string.h> #define string_h #endif #ifndef locale_h #include <locale.h> #define locale_h #endif #ifndef wchar_h #include <wchar.h> #define wchar_h #endif #ifndef unistd #...
/****************************************************************************** * MIT License * * Copyright (c) 2021 <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 re...
/* * lusolv.c * * <NAME> 5/2000 * * Solve a system of linear equations using the LU decomposition * method. Matrix inverse is not calculated, as in Gauss-Jordan * method. Returns zero for singular matrix (no solution). * * Algorithms taken from: * <NAME>, <NAME>, <NAME>, and ...
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <mqueue.h> #include "array.h" #include "msg.h" // Queue descriptors. mqd_t server_queue = NULL; mqd_t client_queue = NULL; // Client queue name. char *cli_queue_name; /* * @Brief: create a new array in the s...
/**************************************************************************** ** Copyright (C) 2021 MikroElektronika d.o.o. ** Contact: https://www.mikroe.com/contact ** ** Permission is hereby granted, free of charge, to any person obtaining a copy ** of this software and associated documentation files (the "Software"...
/* * Copyright 2021 <NAME> <<EMAIL>> * * 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 di...
/** * @ingroup climote * @{ * * @file * @brief Main control loop * * @author smlng <<EMAIL>> * * @} */ // standard #include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // riot #include "board.h" #include "log.h" #include "msg.h" #include "net/af.h" #include "net...
/*==========================================================================================================*\ * 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...
/* * MIT License * * Copyright (c) 2019 <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, m...
/* Gradient descent (GD) on convex quadratic */ #include "aa.h" #include "aa_blas.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "minunit.h" /* default parameters */ #define SEED (1234) #define DIM (100) #define MEM (5) #define TYPE1_REGULARIZATION (1e-3) #define TYPE2_REGULA...
#include <stdio.h> #include <stdlib.h> #include <getopt.h> #include "hashids.h" enum { COMMAND_ENCODE = 0, COMMAND_DECODE = 1 }; static void usage(const char *program_invocation_name, FILE *out) { fputs("\n", out); fputs("Usage:\n", out); fprintf(out, " %s [options] <arguments>\n", program_invoc...
#include "copyright.h" /*============================================================================== * FILE: hall_drift.c * * PURPOSE: Problem generator for Hall drift mode test in 2D. The problem * is initiated by a non-linear sinusoidal distribution of B_z field in the x1 * direction and a sinusoidal dist...
/* file: $RCSfile: fk524.c,v $ ** rcsid: $Id: fk524.c 261 2007-10-19 19:07:02Z laidler $ ** Copyright <NAME> ** ******************************************************************* ** Space Astronomy Laboratory ** University of Wisconsin ** 1150 University Avenue ** Madison, WI 53706 USA ** *****************************...
/** * Simple example with two sensors, one sensor connected to I2C bus 0 and * one sensor connected to SPI. It defines two different user tasks, one for * each sensor. It demonstrates the possible approaches to wait for measurement * results, active busy waiting using ```bme680_is_measuring``` and passive * waitin...
/** * Copyright 2014-2016 CyberVision, 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 applicabl...
#include <stdint.h> #include <stdbool.h> #include "lab7.h" #include "inc/hw_types.h" #include "inc/hw_memmap.h" #include "inc/hw_gpio.h" #include "driverlib/sysctl.h" #include "driverlib/pin_map.h" #include "driverlib/gpio.h" #include "driverlib/interrupt.h" #include "inc/tm4c123gh6pm.h" #define RED_MASK ...
#include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <stdint.h> #include <string.h> #define CHECK_ERROR(condition,message) \ do {if (condition) { \ fprintf(stderr, "%s:%d:%s: %s\n",__FILE__,__LINE__,__func__,message); \ exit(EXIT_FAILURE); \ }}while(0) #define CHECK_ERRNO(condition, message) ...
#include <stdio.h> #include <pthread.h> #include <time.h> #include <unistd.h> #include <semaphore.h> #include "Models/Control.c" #include "Models/Algorithms.c" #define SLEEPTIME 1 #define FIFO 1 #define SJF 2 #define NPriority 3 #define HRRN 4 #define RoundRobin 5 #define PriorityRR 7 struct Control ctrl; Queue* que...
/* * Copyright (c) 1997-1999 Massachusetts Institute of Technology * * 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 versio...
#include <stdio.h> #include <string.h> #include "sdkconfig.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_log.h" #include "esp_event.h" #include "esp_system.h" #include "esp_spi_flash.h" #include "esp_task_wdt.h" #include "app_info.h" #include "board_info.h" #include "i2c_utils.h" #include...
/* * File: overflow_values.c * CVS: $Id$ * Author: <NAME> * <EMAIL> * Mods: <your name here> * <your email address> */ /* This file performs the following test: overflow values check The Eventset contains: + PAPI_TOT_INS (overflow monitor) + PAPI_TOT_CYC + PAPI_L1_DCM...
/** * Copyright 2020 Tampere University * * 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...
#include <stdio.h> #include <getopt.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <time.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include "add_packet_header.h" #include "md5.h" int do_name, do_gf_name; char *l_opt_arg; static const char *shortopt...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* get_next_line.c :+: :+: :+: ...
/* * * FocalTech fts TouchScreen driver. * * Copyright (c) 2010-2018, Focaltech Ltd. All rights reserved. * Copyright (C) 2019 XiaoMi, Inc. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed...
/* $NetBSD: mach_clock.c,v 1.12 2003/12/21 14:44:43 manu Exp $ */ /*- * Copyright (c) 2002-2003 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME> * * Redistribution and use in source and binary forms, with or without * mod...
#include "misc.h" #include "inc/vsh_exports.h" static void *vsh_pdata_addr = NULL; /*********************************************************************** * search and return vsh_process toc * Not the best way, but it work, it's generic and it is fast enough... ***************************************************...
/*D*********************************************************** * Modul: DBI - booking modul * insert/update/delete reservation * * Copyright: yafra.org, Basel, Switzerland **************************************************************/ #include <mpmain.h> #include <mpsqlsel.h> #include <mpprodbi.h> ...
/* * ______ * / ____/________ _____ __ ________ ______ __________ ___ * / / / ___/ __ `/_ / / / / / ___/ | /| / / __ `/ ___/ __ `__ \ * / /___/ / / /_/ / / /_/ /_/ (__ )| |/ |/ / /_/ / / / / / / / / * \____/_/ \__,_/ /___/\__, /____/ |__/|__/\__,_/_/ /_/ /_/ /_/ * /____...
#include <stdio.h> #include "stdint.h" #include "math.h" //Defines #define ALARM_TRIGGER_DIST 45 #define ALARM_DISABLE_INCREASE 20 #define DEG_IN_RAD 0.0174533 typedef struct { float lat; float lon; }ampel_pos_t; ampel_pos_t ampel_pos[2] = { { 48.4795867, 7.921582 }, { 48.4790187, 7.921641...
/* -*- Mode: C; c-basic-offset:4 ; -*- */ /* * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ #include "mpidi_ch3_impl.h" /*static MPID_Request * create_request(void * pkt, int pkt_sz, int nb)*/ #undef create_request #define create_request(sreq, pkt, pkt_sz, nb) \ { \ ...
/*- * BSD LICENSE * * Copyright(c) 2016 Intel Corporation. All rights reserved. * 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 mus...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* base64_handler.c :+: :+: :+: ...
/* * * Copyright 2013 IPOL Image Processing On Line http://www.ipol.im/ * * * This file implements an algorithm possibly linked to the patents: * * - US 5991456, "Method of improving a digital image," Issued Nov 23, 1999 * - US 6834125, "Method of improving a digital image as a function of its * dynamic ran...
#include "minray.h" SimulationResult run_simulation(Parameters P, SimulationData SD) { center_print("SIMULATION", 79); border_print(); double k_eff = 1.0; double k_eff_total_accumulator = 0.0; double k_eff_sum_of_squares_accumulator = 0.0; int is_active_region = 0; uint64_t n_total_geometric_intersect...
/* * ac1d.c Copyright (C) 1996-1997 Asle / ReDoX * Copyright (C) 2006-2007 <NAME> * * Converts AC1D packed MODs back to PTK MODs * thanks to Gryzor and his ProWizard tool ! ... without it, this prog * would not exist !!! */ #include <stdlib.h> #include <string.h> #include "prowiz.h" static i...
#include "pliki.h" int czytaj(FILE *p, t_obraz *obraz) { char s[DL_LINII]; int znak, koniec=0, i, j; if (p==NULL) /* sprawdzenie czy podano prawidlowy uchwyt pliku */ { fprintf(stderr,"Blad: Nie podano uchwytu do pliku.\n"); return 0; } if (fgets(s,DL...
/* Dhara - NAND flash management layer * Copyright (C) 2013 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE I...
/* ************************************************************ MODULE sdmaux*.c -- Several low-level subroutines for the mex-files in the Self-Dual-Minimization package. % This file is part of SeDuMi 1.1 by <NAME> and <NAME> % Copyright (C) 2005 McMaster University, Hamilton, CANADA (since 1.1) % % Copyright ...