text
stringlengths
3.08k
10.5k
/* * Copyright (C) <NAME> */ #include <ngx_config.h> #include <ngx_core.h> ngx_int_t ngx_collect_garbage(ngx_gc_t *ctx, ngx_str_t *dname, ngx_int_t level) { int rc; u_char *last; size_t len; ngx_err_t err; ngx_str_t fname, buf; ngx_dir_t dir; buf.len = 0; #if ...
#include "../../unit_tests/src/pss_util_test.h" #include "PHY/defs_nr_UE.h" #include "PHY/INIT/init_extern.h" #include "PHY/phy_extern_nr_ue.h" /* #include "SCHED_NR_UE/defs.h" #include "SCHED_NR/extern.h" #include "SCHED_NR_UE/harq_nr.h" */ #include "SCHED_NR_UE/pucch_uci_ue_nr.h" /**************** define *********...
#include "hbirdv2.h" #include "hbirdv2_pwm.h" /* * Enable the specific timer */ void pwm_timer_en(PwmTimerNum nTimer){ unsigned int ch_en_val = pwm_timer_status(); ch_en_val |= PWM_TIMER_EN(nTimer); pwm_timer_en_reg(ch_en_val); } /* * Enable all the timers */ void pwm_timer_all_en(){ pwm_timer_...
#include <stdlib.h> #include <string.h> #include "mount_db.h" typedef struct { int flags; int mode; uint64_t fd; uint64_t hash; FileSystemObject *obj; } FileDescriptor; static List *fds; static uint64_t fd_base = 0; static FileSystemObject *root; int strcmp_path(const char *a, const char *b) { const char *...
/* * Copyright 2010, <NAME> and <NAME>. * * 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 fo...
/* * Файл : daf_reader.c * Исполнитель : <NAME> * Заказчик : <NAME> * Проект : КР ФЭЛП, ОКР "Эфемериды" * Год : 2015 */ #include <math.h> #include <string.h> #include <stdlib.h> #include "daf_reader.h" static int _readExactDouble (FILE *f, int *result) { double value; if (fr...
/* * Copyright (c) 2004 <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 copyright * notice, this list of co...
/* Author: <NAME> <<EMAIL>> Copyright (c) 2014 Cromulence 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, m...
/* * Copyright © 2020 Intel Corporation * * 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, pub...
#include "i2c.h" #include <stm32l0xx.h> #include <stddef.h> // sets up I2C1 on PB8 (SCL) and PB9 (SDA) // connected to LCD shield // standard mode (100kHz), 7 bit addressing void i2c_setup(void) { RCC->IOPENR |= RCC_IOPENR_IOPBEN; // enable peripheral clock for port B RCC->APB1ENR |= RCC_APB1ENR_I2C1EN; // ...
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <jsmn.h> #include "textFile.h" #include "jsonFile.h" static int is_jsmn_error(int i){ return i == JSMN_ERROR_INVAL || i == JSMN_ERROR_NOMEM || i == JSMN_ERROR_PART; } //(internal function) Recursively counts all the children tok...
#include <stdint.h> #include <stdbool.h> #include <lcdutil.h> #include <matrix.h> #include <delayutil.h> #include <stringutil.h> #include <randomutil.h> #define COLOR_SNAKE 0x4f4 // Light green #define COLOR_BACKGROUND 0x000 // Black #define COLOR_FOOD 0xf71 // Orange-ish #define COLOR_BORDER ...
/* betas[] = array of inverse temperatures * acceptances[] = array of acceptance acceptancesabilities * s[] = lattice of spins with helical boundary conditions * L = constant edge lenght of lattice * N = number of spins */ /* Needed libraries are included */ #include <stdio.h> #include <stdlib.h> //required for r...
#define __UART5_GLOBALS #include "./usart5/usart.h" Float_data dis,yaw,yaw_ref; u8 USART5_RX_BUF[USART5_REC_LEN]; //接收缓冲,最大USART_REC_LEN个字节. u8 USART5_TX_BUF[USART5_TEC_LEN]; //接收缓冲,最大USART_REC_LEN个字节. u16 USART5_RX_STA = 0; //接收状态标记 u8 state_machine5 = 0; const char* delim5 = ","; //分割點 u8 rec5_co...
#include "physics.h" #include <jammy/assert.h> #include <jammy/command_buffer.h> #include <jammy/color.h> #include <jammy/remotery/Remotery.h> #include <chipmunk/chipmunk.h> #include <string.h> typedef struct jm_physics { struct cpSpace* space; struct cpShape** shapes; size_t shapeCount; struct cpBody** bodie...
// This is free and unencumbered software released into the public domain. // For more information, please refer to <https://unlicense.org> // bbbbbr 2020 #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <stdbool.h> #include <stdint.h> #include "common.h" #include "banks.h" #inc...
#include <pthread.h> #include <signal.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/epoll.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/un.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include "utils.h" int socket_fd; char* ...
#include "pacote.h" #include <string.h> #include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #define DEBUG // aloca memória e retorna ponteiro para pacote criado pacote* criaPacoteVazio(){ int cargaUtilMax = tamMaxMsg - sizeof(uint8_t) - sizeof(uint16_t); pacote *p = malloc(sizeof *p)...
#include <stdlib.h> #include <string.h> #include <stdio.h> #include <gtk/gtk.h> #ifdef LINUX #include <X11/Xlib.h> #endif #include "error.h" #include "serial.h" #include "callbacks.h" #include "version.h" #include "disconnect.h" #include "refresh.h" #include "threads.h" #include "tuning_plotter.h" #include "log.h" #...
#include "vidhrdw/generic.h" #include "res_net.h" /* globals */ data8_t *timelimt_bg_videoram; size_t timelimt_bg_videoram_size; /* locals */ static int scrollx, scrolly; static struct tilemap *bg_tilemap, *fg_tilemap; /*************************************************************************** Convert the color...
#include "../includes/tetro.h" t_tetro *get_t_tetro(t_tetro *t, int index) { while(t) { if(t->id == index) { return t; } t = t->next; } return (0); } int size_t_tetro(t_tetro *tetro) { int size; size = 0; while(tetro) { size++; tetro = tetro->next; } return (size); } void tetro_lines_dup(t_li...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #define LIMPA_TELA system("clear||cls"); struct locatario { char nome[101]; double valor; int codigo; }; void menu(struct locatario locatarios[], int *counter); void cadastro(struct locatario locatarios[], int *counter); void p...
// // SENAC BCC PI 2 // Projeto Betelgeuse #include <stddef.h> #include <stdio.h> #include "destinationsScene.h" #include "cityScene.h" #include "travelScene.h" #include "../engine/colors.h" static void drawInterface(Game *game, int completion, int frame); static int abin_bg, map, destination_name, destination_eta;...
#define _GNU_SOURCE #define _FILE_OFFSET_BITS 64 #define __MSVCRT_VERSION__ 0x0700 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <search.h> #include "utils.c" #define CHR_MIN 0x20 #define CHR_MAX 0x7f #define KEYS_CNT1...
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by a...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* hook.c :+: :+: :+: ...
/* * odometer.c * * Created: 2021/03/01 9:51:14 * Copyright ? 2021 <NAME>. All rights reserved. */ #include <stdint.h> #include <string.h> #include <samd51_error.h> #include <samd51_i2c.h> #include "internal/odometer.h" /*-------------------------------------------------------------------------...
#include <u.h> #include <libc.h> #include <draw.h> #include <event.h> typedef struct KbMap KbMap; struct KbMap { char *name; char *file; Rectangle r; int current; }; KbMap *map; int nmap; Image *lightblue; Image *justblue; enum { PAD = 3, MARGIN = 5 }; char *dir = "/sys/lib/kbmap"; void* erealloc(void *v, ul...
/*- * Copyright (c) 2012-2016 <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 conditi...
/* # <<BEGIN-copyright>> # Copyright 2021, Lawrence Livermore National Security, LLC. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: BSD-3-Clause # <<END-copyright>> */ #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #include <Python.h> #include <arrayobject.h> /* for numpy c inter...
/* * FocusAlg.c * * Created on: 24 may. 2021 * Author: asier.marzo * Static stuff to calculate emission phases to focus at target points */ #include "FocusAlg.h" #include "EmitterPos.h" #include "Arduino.h" #define PHASE_RES 32 #define SOUND_SPEED 346 #define FREQ 40000 float point...
/** * @brief Provision WiFi using BLE and phone app * * Written in 2019, 2022 by <NAME> * * To the extent possible under law, the author(s) have dedicated all copyright and related and * neighboring rights to this software to the public domain worldwide. This software is * distributed without any warranty. You...
/****************************************************************************** * Copyright (C) 2013 - 2014 <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, inclu...
/* declarations of routines that interface with the kernel's IPsec mechanism * Copyright (C) 1998-2001 <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 Lic...
/******************************************************************** Implementation of Lossy Counting algorithm to Find Frequent Items Based on the paper of Manku and Motwani, 2002 Implementation by <NAME> 2002, 2003 Original Code: 2002-11 This version: 2003-10 This work is licensed under the Creative Commons Attrib...
#include <assert.h> #include <signal.h> #include <stdatomic.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/shm.h> #include <unistd.h> #include "common/common.h" #include <sys/mman.h> #define SHM_SIZE_1M 0x100000 /* 1M */ #define SHM_SIZE_1G 0x40000000 /* 1G */ #define SHM_SIZE_4G 0x10000...
/* Copyright (c) 2017-2019 <NAME> a.k.a mr.DIMAS * * 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, ...
/* MIT License Copyright (c) 2016 Ravf, <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, publ...
#include <stdio.h> #include <math.h> #include "util.h" #include "vpr_types.h" #include "globals.h" #define ABS_DIFF(X, Y) (((X) > (Y))? ((X) - (Y)):((Y) - (X))) #define MAX_X 50 #define MAX_LEN MAX_X*2 typedef struct relapos_rec_s { int num_rp[MAX_LEN]; } relapos_rec_t; #ifdef PRINT_REL_POS_DISTR void print_relativ...
#include <assert.h> #include <ctype.h> #include <stddef.h> #include <regex.h> #include <string.h> #include "file_view.h" #include "regex.h" #include "truncate.h" #include "util.h" static char * trim_line(char *src, size_t *line_sizep) { assert(src != NULL); assert(line_sizep != NULL); char *line = src; while (is...
#include "local_search.h" int cndt_poi_cmp(const void *a, const void *b) { // compares two candidate pois by their b_score attribute. const cndt_poi *aa = (const cndt_poi *) a; const cndt_poi *bb = (const cndt_poi *) b; if (isinf(aa->b_score) || isnan(aa->b_score)) { if (isinf(bb->b_score) || ...
/** * g729a codec for iPhone and iPod Touch * Copyright (C) 2009 Samuel <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at ...
#include "private.h" // forward declare int LDLInit(cs * A, int P[], double **info); int LDLFactor(cs * A, int P[], int Pinv[], cs ** L, double **D); void LDLSolve(double *x, double b[], cs * L, double D[], int P[], double * bp); int factorize(Data * d,Work * w); void freePriv(Work * w){ cs_spfree(w->p->L);coneOS_fr...
/* * foo-tools, a collection of utilities for glftpd users. * Copyright (C) 2003 Tanesha FTPD Project, www.tanesha.net * * This file is part of foo-tools. * * foo-tools 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 Soft...
/* * @Author: QianXu * @LastEditors: QianXu * @Description: NONE * @Date: 2019-04-05 20:11:53 * @LastEditTime: 2019-04-05 22:09:37 */ #include "OV7725.h" #include "ov7725config.h" #include "dcmi.h" #include "sccb.h" #include "delay.h" /** * @description: 找不到就自己先定义了 * @param {type} * @return: */ #define OV7...
/* schedule.c ========== Author: R.J.Barnes */ /* (c) 2010 JHU/APL & Others - Please Consult LICENSE.superdarn-rst.3.1-beta-18-gf704e97.txt for more information. */ #include <time.h> #include <sys/types.h> #include <sys/time.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal...
#include "dnsClient.h" /** * @brief Function to count number of dots in dns request * * @param dn : DNS query * @param size : Size of DNS query * @returns on success number of dots in query 0 otherwise */ int countDots ( char *dn, int size ) { int count = 0; for ( int i=0; i<size;i++ ) { i...
/*--------- threads support ------------------------- g.f. -----*/ /*--------- lower half of the Oberon Threads module */ #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <limits.h> #include <signal.h> #include <semaphore.h> #include <errno.h> #include <bits/local_lim.h> #include "Threa...
#include <stdio.h> #include <stdlib.h> #include "u1_oop.h" /* * U1 uzduotis #30: * Ivedamas surusiuotas masyvas ir ieskomas skaicius. Realizuoti dvejetaine paieska ir * isvesti i ekrana pradini masyva, ieskoma reiksme ir masyvo indeksa, jei reiksme rasta. * reiksme masyve negali kartotis. * * ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <time.h> #include <mysql.h> #include <openssl/md5.h> void end_with_db(void); MYSQL *mysql = NULL; // global... bool connect_db(const char *host, const char *user, const char *pwd, const char *db, unsigned int port) { if ( m...
/* MIT License Copyright (c) 2016 <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, distrib...
#include <assert.h> #include <stdbool.h> #include <stdio.h> #include <signal.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/user.h> #include <sys/wait.h> #include <sys/ptrace.h> #include <errno.h> #include "../asrepl.h" #include "common.h" static void get_registers(pid_t pid, struct user_...
/* Industrialio test ring buffer with a lis3l02dq acceleromter * * Copyright (c) 2008 <NAME> * * 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. * * Assumes suitable udev rules a...
/* Copyright 2016 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Charger profile override for fast charging */ #include "charger_profile_override.h" #include "console.h" #include "ec_commands.h" #include "util...
/* bcon.c Block Constructor * * Copyright (c) 2018 by Adequate Systems, LLC. All Rights Reserved. * See LICENSE.PDF **** NO WARRANTY **** * * The Mochimo Project System Software * * Date: 10 January 2018 * * NOTE: Invoked by server.c by fork() and execl() * * Inputs: argv[1], txclean.dat * * Output...
/* * lookup_tree.c -- the tree of host lookup engine * Part of the tcpick project * * Author: <NAME> <duskdruid @ <EMAIL>> * * Copyright (C) 2003, 2004 <NAME> * Licensed under the GPL * */ /* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Pub...
/* * @f lib-sha256.c * @b implementation of NIST SHA256, based on Aaron Gifford's code * */ #include <assert.h> #include <stdint.h> #include <string.h> #ifdef CCNL_ARDUINO # define _MEMLOCATION_ PROGMEM # define K256_(i) pgm_read_dword_near(K256 + i) #else # define _MEMLOCATION_ # define K256_(i) K256[i] #end...
/* ----------------------------------------------------------------- */ /* The HMM-Based Speech Synthesis System (HTS) */ /* hts_engine API developed by HTS Working Group */ /* http://hts-engine.sourceforge.net/ */ /* -----------------------------...
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
/* * comedi/drivers/adl_pci8164.c * * Hardware comedi driver for PCI-8164 Adlink card * Copyright (C) 2004 <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 versi...
/** * @file net_ipv6_addr_in_network.c * @author <NAME> <<EMAIL>> * * @section 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 * ...
#include <stdio.h> #include <stdlib.h> #include <event2/event.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <signal.h> #include <time.h> #include <string.h> #include "message.h" #define NS_PER_S 1000000000 #define AGGREGATE struct client_context { struct event_base *base; ...
/* * A set of python wrappers around C levinson, etc... */ #include <Python.h> #include <numpy/arrayobject.h> #include "levinson.h" /* * Levinson-Durbin recursion on one array. Output arrays are put into * alpccoeff, klpccoeff and elpc. */ int array_levinson_1d(PyArrayObject *arr, long order, PyArrayObject** al...
#include <syslog.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include "logpipe-module.h" #include "querystring.h" #include "url.h" typedef struct { int level; str_t ident; } modsyslog_ctx_t; /** * Parses a comma separated list of syslog options */ static int parse_option(str_t *str) { int lo...
/***************************************************************************//** * @file * @brief Non-Volatile Memory Wear-Leveling driver HAL implementation ******************************************************************************* * # License * <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b> ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #undef JUDYERROR #define JUDYERROR(CallerFile, CallerLine, JudyFunc, JudyErrno, JudyErrID) \ { \ if ((JudyErrno) == JU_ERRNO_NOMEM) \ goto ou...
#include <dirent.h> #include <errno.h> #include <limits.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "checks.h" #include "file.h" /* BSD 3-Clause License Copyright (c) 2021, Ruthenic All rights reserved. Redistribution and use in source and binary f...
#pragma once #include "engine/common.h" #include "engine/graphics.h" #include "game/stage.h" #include "game/npctab.h" #define NPC_MAX 512 #define NPC_MAX_BOSS 20 #define NPC_MAX_FLAGS 1024 #define NPC_STARTIDX_DYNAMIC 256 #define NPC_STARTIDX_EVENT 170 #define NPC_MAIN_TABLE "\\MAIN\\NPC.TBL;1" enum npc_cond_flags ...
// ################################################################################################# // # << NEORV32: neorv32_pwm.c - Pulse Width Modulation Controller (PWM) HW Driver >> # // # ********************************************************************************************* # // # BSD 3-Clause...
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
typedef int SItype __attribute__(( mode( SI ) )); typedef unsigned int USItype __attribute__(( mode( SI ) )); typedef int DItype __attribute__(( mode( DI ) )); typedef unsigned int UDItype __attribute__(( mode( DI ) )); #define Wtype SItype #define UWtype USItype #define DWtype DItype #define UDWtype UDItype #def...
#include <assert.h> #include <string.h> #include <stdlib.h> #include <stdint.h> static const char *CHARSET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; static const int TABLE[128] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -...
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include "common.h" #include "WStream.h" #include "RStream.h" #include <signal.h> #include <errno.h> unsigned int ALARM_INTERVAL = 1; struct WStream WSTREAM; struct RStream RSTREAM; static void _alarmSignalHandler(int sig) { uint64_...
/* calstis12 -- update SHIFTAi keywords in science file extensions This file contains: CalStis12 StisInit12 WavOption */ # include <stdio.h> # include <string.h> /* strcpy, strcmp */ # include "hstio.h" # include "stis.h" # include "calstis12.h" # include "hstcalerr.h" static void StisInit12 (StisInfo12 *, S...
/* This works has been developed at Diamond Light Source Ltd. * * Copyright 2019 <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 *...
// SPDX-License-Identifier: GPL-2.0-only /* * KVM_SET_SREGS tests * * Copyright (C) 2018, Google LLC. * * This is a regression test for the bug fixed by the following commit: * d3802286fa0f ("kvm: x86: Disallow illegal IA32_APIC_BASE MSR values") * * That bug allowed a user-mode program that called the KVM_SET_...
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<math.h> #define SIZE 500 #define SIGNF 499 int transToint(int *n,char *temp){ int index=0,length; length=strlen(temp); if(temp[0]=='-'){ length-=1; n[SIGNF]=1; } while(temp[index++]!='\0'){ if(temp[0]=='-')n[le...
/* Original Author: <NAME> Conversion to C of <NAME>' Maple code for his formula for the 384 TWZ data points. Last mod.: 1996-05-27 */ // Ported to Linux // 18 Jan 2016 // <NAME> // <EMAIL> // Fixed compilation warnings and indentations // 28 Dec 2019 // <NAME> // <EMAIL> /* This is free and unencum...
#include "SDL.h" #include "SDL_gpu.h" #include <math.h> #include "common.h" #include "compat.h" #define MIN(a, b) ((a) < (b)? (a) : (b)) int main(int argc, char* argv[]) { GPU_Target* screen; printRenderers(); screen = GPU_Init(800, 600, GPU_DEFAULT_INIT_FLAGS); if(screen == NULL) return -1; printCurrentRen...
#include <stdlib.h> #include <stdio.h> #include "vptree.h" #include "geom.h" #include "timing.h" #define N (1 << 18) #define DIM (128) #define TRIALS (128) #define MAX_NODES (1024) static double points[N * DIM]; static const void *ptr[N]; static double frand(unsigned *seed, double a, double b); static void frandvec...
/* $NetBSD: util.c,v 1.32 2007/06/06 13:21:28 soda Exp $ */ /* * Copyright (c) 1989, 1993, 1994 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME>. * * Redistribution and use in source and binary forms, with or without ...
#include <sys/file.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include "aol.h" #include "errhandle.h" #include "oleg.h" #include "file.h" int _ol_get_stat(const char *filepath, struct stat *sb) { int fd; fd = open(filepath, O_RDONLY); /* Che...
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2012 Couchbase, 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 * * ht...
/*====================================================================* - Copyright (C) 2001 Leptonica. 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 c...
/** * FreeRDP: A Remote Desktop Protocol Implementation * RemoteFX Codec Library - Quantization * * Copyright 2011 <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 * * htt...
//--------------------------------------------------------------------------------------- // Smile Programming Language Interpreter (Unit Tests) // Copyright 2004-2019 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // ...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* create_job.c :+: :+: :+: ...
#include "util.h" #include "vpr_types.h" #include "OptionTokens.h" /* OptionBaseTokenList is for command line arg tokens. We will track how * many times each of these things exist in a file */ struct s_TokenPair OptionBaseTokenList[] = { { "settings_file", OT_SETTINGS_FILE }, { "nodisp", OT_NODISP }, { "auto",...
#include "status_service.h" #include "app_error.h" #include "acromegaly_config.h" #include "ble_srv_common.h" #include "nrf_gpio.h" #include "nrf_log.h" #include <string.h> #define STATUS_CHAR_LENGTH 9 static uint32_t status_char_add(ble_status_service_t* p_status_service) { uint32_t err_code; ble_uuid_t char...
/* * Copyright 2015 Advanced Micro Devices, Inc. * * 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...
/* * Copyright 1999, University Corporation for Atmospheric Research * Do not redistribute without permission. * * dcncprof.c * Generic netCDF format COSMIC decoder. See usage information * for options. */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sy...
/* * 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. */ /* IP HEADER 0 1 2 ...
#include "types.h" // === [ Overlay ID d ] === // address: 0x80135E80 // line start: 210 // line end: 211 void DsDataCallback() { } // address: 0x80135E88 // line start: 214 // line end: 215 void DsReadyCallback() { } // address: 0x80135E90 // line start: 226 // line end: 228 void SetDecDCT() { } // addre...
/** * epci driver * Copyright (C) 2019 <EMAIL> * */ #include <linux/init.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/pci.h> #include <linux/errno.h> #include "epci.h" /** * constants */ const char EPCI_DEV_NAME[] = "epci-board"; const unsigned EPCI_MEM_BAR = 0; const int EPCI_FW_VER = 0x...
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct stArvore { struct stArvore *esq; struct stArvore *dir; int frequencia; char letra; } *arvore; struct stArvore parvores[256]; arvore arvores[255]; arvore *ListaArvores = arvores - 1; int n_arvores = 0; int final_fila = 1; char *cTabe...
#include <unistd.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include "kvvec.c" #include "t-utils.h" static int walking_steps, walks; static int walker(struct key_value *kv, void *discard) { static struct kvvec *vec = (void *)1; static int step; walking_steps++; if (vec != discard) { walks++...
// // Copyright (c) 2011 <NAME> <EMAIL> // Copyright (c) 2009 <NAME> <EMAIL> // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software...
#ifdef __linux__ #define _GNU_SOURCE #endif #include <platform.h> #if defined(PLATFORM_IS_LINUX) || defined(PLATFORM_IS_FREEBSD) #include <sched.h> #include <sys/time.h> #include <sys/resource.h> #include <sys/mman.h> #endif #if defined(PLATFORM_IS_FREEBSD) #include <pthread_np.h> #include <sys/cpuset.h> typedef cpus...
/** * FreeRDP: A Remote Desktop Protocol Implementation * Time Zone Redirection * * Copyright 2012 <NAME> <<EMAIL>> * * 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://ww...
/** * @file b2bua.c Back-to-Back User-Agent (B2BUA) module * * Copyright (C) 2010 Creytiv.com */ #include <re.h> #include <baresip.h> /** * @defgroup b2bua b2bua * * Back-to-Back User-Agent (B2BUA) module * * NOTE: This module is experimental. * * N session objects * 1 session object has 2 call objects (l...