text
stringlengths
3.12k
18.7k
/** * @file decompress.c * @brief Decompress functions. * @date 2014-2015 * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> */ #include "decompress.h" #include "common.h" /* External variables */ extern int got_signal; /** * Decompress a given palz file. * @param source_filename * @param dictionary * @return comp...
// // main.c // nrf52-dfu // // Sample host application to demonstrate the usage of our C library for the Nordic // firmware update protocol. // // Created by <NAME> on 30.11.2018. // Copyright © 2018-2019 Classy Code GmbH // // Permission is hereby granted, free of charge, to any person obtaining a copy of this ...
/* * "[...] Sincerity (comprising truth-to-experience, honesty towards the self, * and the capacity for human empathy and compassion) is a quality which * resides within the laguage of literature. It isn't a fact or an intention * behind the work [...]" * * - An introduction to Literary and Cultural T...
#include <stdio.h> #include <stdint.h> #include "mssb_32.h" #include "mssb_16.h" #include "utils.h" // Some constants related to the algorithm static const uint32_t rootW = 6; // sqrt(36) static const uint64_t F = 0x820820820LL; static const uint64_t M = 0x84210840; // From perfect_sketch_const.py // Step 1 in th...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team, * check out http://www.gromacs.org for more information. * Copyright (c) 2012,2013, by the GROMACS development team, l...
/* * MIPS CI13320A EHCI Host Controller driver * Based on "ehci-au1xxx.c" by K.Boge <<EMAIL>> * * Copyright (C) 2012 MIPS Technologies, 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 the * Free Software Foundat...
/* $Id: input.c,v 1.6 2008/06/11 17:13:37 rumble Exp $ */ #include <ctype.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <unistd.h> #include <zlib.h> #include "../common/sw-full-common.h" #include "../common/input.h" #include "../common/util.h" enum { ...
#include "json_cpu.h" int send_json_cpu(void *para) { // 1 minute for /report/post char *buf_collect, *cmd, *cmd_curl, *result; int i, ret; buf_collect = malloc(CMD_SIZE); //atoi( shell("cat /proc/cpuinfo |grep processor|wc -l ") ); int cpuNum = sysconf(_SC_NPROCESSORS_CO...
/* setusertime.c <NAME> <<EMAIL>> Copyright (c)2000, <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 ri...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <ipps.h> #include "xcloc_finter.h" #include "acousticGreens2D.h" #ifndef M_PI #define M_PI 3.14159265358979323846 #endif #ifndef CHKERR #define CHKERR(ierr, msg) \ { \ if (ierr != EXIT_SUCCESS) \ { \ fprintf(stderr, "ER...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <omp.h> #include <signal.h> #include <ctype.h> #include "common.h" #include "turing.h" #include "evolve_turing.h" #include "pqueue.h" #define TAPE_LEN 1000 typedef enum { start, was_1, was_2, was_3, s2_1, s3_1, s3_2, was_2_swap, was_3_swap, searc...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * License); you ma...
#define BENCHMARK "OSU OpenSHMEM Put Message Rate Test" /* * Copyright (C) 2002-2013 the Network-Based Computing Laboratory * (NBCL), The Ohio State University. * * Contact: Dr. <NAME> (<EMAIL>) * * For detailed copyright and licensing information, please refer to the * copyright file COPYRIGHT in the top level...
/** * @file statistique_test.c * @author <NAME> * @author <NAME> * @brief Lancer des tests unitaires sur les fonctions de manipulation de Data. * @date 27 Mar 2019 * */ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include "../src/statistique.h" void lire_et_comparer(struct Data *data, const cha...
/* ***************************************************************************** * Copyright (C): <NAME>, 2011 * Author(s): <NAME> * Developed at the: * - Retis LAB, TeCIP Insti...
/* * isr.c * * Copyright (c) 2015 <NAME> <<EMAIL>> All rights reserved. * * This file is part of a non-commercial software. For more details please * refer to the license agreement that comes with this software. * * If you have not received a license file please contact: * <NAME> <<EMAIL>> * */ #include <is...
/*===========================================================================* * input.c * * Stuff for getting the raw frame input for the program * *===========================================================================*/ /* COPYRIGHT ...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
/* * Copyright (c) 2009-2012, <NAME> <antirez at gmail dot com> * 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...
#define FLT double #define INT int #include <stdlib.h> #include <stdio.h> #include <time.h> #include <math.h> #if macintosh #include <console.h> #endif FLT **matrix(INT nrl,INT nrh,INT ncl,INT nch); INT mint(FLT x); FLT walltime(); void bc(FLT ** psi,INT i1,INT i2,INT j1,INT j2); void do_jacobi(FLT ** psi,FLT ** new_...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <wchar.h> #include "test.h" #define TEST(r, f, x, m) ( \ errno = 0, msg = #f, ((r) = (f)) == (x) || \ (t_error("%s failed (" m ")\n", #f, r, x), 0) ) #define TEST2(r, f, x, m) ( \ ((r) = (f)) == (x) || \ (t_error("%s failed (" ...
//GitHub: HenriqueIni //https://www.blogcyberini.com/ #include <stdio.h> #include <stdlib.h> #include <math.h> /* * Formata o número complexo na forma "a + bi" e imprime-o */ void formatComplex(double realPart, double imPart) { if (realPart == 0 && imPart == 0) { printf("0\n"); } if (realPart != ...
/** * @src/menustate.c */ #include <GFraMe/GFraMe_accumulator.h> #include <GFraMe/GFraMe_audio.h> #include <GFraMe/GFraMe_audio_player.h> #include <GFraMe/GFraMe_event.h> #include <GFraMe/GFraMe_messagebox.h> #ifdef GFRAME_MOBILE #include <GFraMe/GFraMe_mobile.h> #endif #include <GFraMe/GFraMe_screen.h> #include <GFr...
/* * Copyright (c) 2007 <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 a...
/** * MIT License * * Copyright (c) 2018 Z.Riemann * https://github.com/ZRiemann/ * * 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...
/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> lcp_aux.c Ver 1.0 28-apr-2004 Functions for lightweight computation of the LCP array. 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 Pub...
/* 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, distr...
#include <pebble.h> #define NUM_MENU_SECTIONS 1 #define NUM_FIRST_MENU_ITEMS 1 #define NUM_SECOND_MENU_ITEMS 1 static Window *window; static Window *windowCard; static TextLayer* txtlyer; static InverterLayer* invert; // This is a menu layer // You have more control than with a simple menu layer static MenuLayer *m...
/* ** $Id: host.c,v 1.14 2006/06/16 07:55:37 ravenben Exp $ ** ** <NAME> ** description: */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <pthread.h> #include <errno.h> #include "host.h" #include "network.h" #include "message.h" #include "log.h" #include "dllist.h" #include "jval.h" #include "jr...
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #include <stdbool.h> #include <aos/debug.h> #include <media.h> #include <yoc/aui_cloud.h> #include <avutil/named_straightfifo.h> #include "cJSON.h" #include "nui_things.h" #include "nls_nui_things_tts.h" #include "nls_nui_things_config.h" #include "cloud_...
#include "quadtree.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #ifdef __APPLE__ #include <OpenGL/gl.h> #else #include <GL/gl.h> /* OpenGL functions */ #endif unsigned int first = 1; char desenhaBorda = 1; float calculateLevelDetailOfRegion(Img* pic, QuadNode* region, int minDetail); QuadNode* new...
/* * utils.c * * Created on: March 12, 2020 * Author: Alvi */ #include "globals.h" /* Global Variables*/ extern int left_key_pressed; extern int right_key_pressed; extern int esc_key_pressed; extern int enter_key_pressed; extern int any_key_pressed; /* *****************************************************...
#include "serial.h" #ifdef NO_IRQ #define IRQ_ON 0x00 #else #define IRQ_ON 0x33 #endif //68681 Duart Registers #define MRA (*((char*)0x80000000)) //RW Mode Register A #define SRA (*((char*)0x80000001)) //R Status Register A #define CSRA (*((char*)0x80000001)) //W Clock Select Register A #define BGR (*((char*)0...
#include "world.h" #include "brain.h" #include "organism.h" #include "tile.h" #include <stdlib.h> #include <string.h> #include <stdio.h> const unsigned ORGANISM_SPAWN_TRIES = 5; const unsigned RESEED_TRIES = 10; const unsigned FOOD_SPAWN_TRIES = 5; struct World World_random(size_t width, size_t height, TILE_SEED ti...
/**************************************************************************** * * Copyright 2016 Samsung Electronics All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at...
// // Created by gen on 11/19/21. // #include <stdio.h> #include <string.h> #include <git2.h> #include <stdbool.h> #include <pthread.h> #include "bmt.h" typedef struct _GitRepository { const char *path; git_repository *repo; int handler; } GitRepository; typedef struct _GitController { int id; in...
/*- * Copyright (c) 2002-2005 <NAME>, <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...
/* ncdu - NCurses Disk Usage Copyright (c) 2007-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, mo...
/* * Copyright 2008, The Android Open Source Project * * 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 applica...
/** * @file ptp4l.c * @brief PTP Boundary Clock or Transparent Clock main program * @note Copyright (C) 2011 <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 vers...
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2014 <NAME>. */ #include "xfs.h" #include "xfs_shared.h" #include "xfs_format.h" #include "xfs_log_format.h" #include "xfs_trans_resv.h" #include "xfs_mount.h" #include "xfs_inode.h" #include "xfs_trans.h" #include "xfs_bmap.h" #include "xfs_iomap.h" #include "xf...
/* This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ /****************************************...
//================================== // This is a modification of: // PEDUMP - <NAME> 1995 // done by <NAME> 1997 // // This program only outputs to stdout a DEF file from a DLL given in the // command line. // I don?t know how to contact Matt, so if this program is not legal, please // let me know. // <EMAIL> //=...
/*++ /* NAME /* lmtp_connect 3 /* SUMMARY /* connect to LMTP server /* SYNOPSIS /* #include "lmtp.h" /* /* LMTP_SESSION *lmtp_connect(destination, why) /* char *destination; /* VSTRING *why; /* DESCRIPTION /* This module implements LMTP connection management. /* /* lmtp_connect() attempts to establish an LMTP session. ...
/* * File: paging.c * ***************************************************************************** * Copyright 2020-201 <NAME> * Check the LICENSE file that came with this program for licensing terms */ #include <string.h> #include "log.h" #include "bootloader.h" #include "framebuffer.h" #include "bitmap.h" #in...
/*------------------------------------------------------------------------/ / MMCv3/SDv1/SDv2 (in SPI mode) control module /-------------------------------------------------------------------------/ / / Copyright (C) 2010, ChaN, all right reserved. / / * This software is a free software and there is NO WARRANTY...
/*==================[inclusions]=============================================*/ #include "board.h" #include "os.h" #include <string.h> /*==================[macros and definitions]=================================*/ /** valor de retorno de excepci��n a cargar en el LR */ #define EXC_RETURN 0xFFFFFFF9 /** id de tare...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */ /* * (C) 2004 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ /* * The routines in this file provide an event-driven I/O handler * * Each active fd has a handler associated with it. */ /* FIXME: Occassionally, d...
#include <string.h> #include "render/model.h" #include "render/shader.h" ex_model_t* ex_model_new() { // init lists etc ex_model_t *m = malloc(sizeof(ex_model_t)); // init attributes memset(m->position, 0, sizeof(vec3)); memset(m->rotation, 0, sizeof(vec3)); m->scale = 1.0f; m->is_shadow = 1; m->i...
/* * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to the limitations in the * disclaimer below) provided that the following conditions are met: * * * Redistributions of source ...
#include <netdb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <arpa/inet.h> #include <fcntl.h> // for open #include <unistd.h> // for close #include <libgen.h> #include "transfer.h" #include <netinet/in.h> #include <time.h> #define MAX 1024 #define PORT 8088 #define...
/* * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
/* * mm-naive.c - The fastest, least memory-efficient malloc package. * * In this naive approach, a block is allocated by simply incrementing * the brk pointer. A block is pure payload. There are no headers or * footers. Blocks are never coalesced or reused. Realloc is * implemented directly using mm_malloc an...
/* KallistiOS 2.0.0 scissor.c (c)2014 <NAME> (c)2002 <NAME> Demonstrates the use of glScissor( ) using GL_SCISSOR_TEST. Use the 'A' button to cycle though the following demos. Use the 'DPAD' to move the clip rectangle in the first two demos. Demos: GL_SCISSOR_TEST GL_KOS...
#include <minix/syslib.h> #include <minix/drivers.h> #include <machine/int86.h> #include <sys/mman.h> #include <sys/types.h> #include <minix/sysutil.h> #include "vbe.h" #include "video_gr.h" /* Constants for VBE 0x105 mode */ /* The physical address may vary from VM to VM. * At one time it was 0xD0000000 * #defi...
/* * Implements fixed-point arithmetic with 6 bits for the decimal part and 10 * bits for the integer part (referred to as fp16_t). * * This effectively lets the game perform calculations on each pixel at the * level of 64x64 subpixels. * * Integer and fixed-point multiplication/division are implemented in ...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <GL/glew.h> #include <GL/freeglut.h> #define WINDOW_TITLE_PREFIX "Chapter 3" typedef struct { float v[4]; float c[4]; } Vertex; int g_width = 500, g_height = 500, g_hwnd = 0; unsigned int frames = 0; GLuint vertex_shader_id, fragmen...
/* * Copyright (C) 2010-2011 <NAME> <<EMAIL>> * Copyright (C) 2010 <NAME> <<EMAIL>> * Copyright (C) 2010 <NAME> <<EMAIL>> * 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 t...
/* darwin.c - Darwin-specific (OS X) CD-ROM API glue * * Copyright (c) 2011 <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...
/* * Copyright 2000, International Business Machines Corporation and others. * All Rights Reserved. * * This software has been released under the terms of the IBM Public * License. For details, see the LICENSE file in the top-level source * directory or online at http://www.openafs.org/dl/license10.html */ /* ...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <unistd.h> #include "../../include/qisr.h" #include "../../include/msp_cmn.h" #include "../../include/msp_errors.h" #define SAMPLE_RATE_16K (16000) #define SAMPLE_RATE_8K (8000) #define MAX_GRAMMARID_LEN (32) #define MA...
#include <stdio.h> #include <unistd.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/stat.h> #include <linux/if_alg.h> #include <linux/socket.h> #include <string.h> #include <stdlib.h> #include <errno.h> #include <stdint.h> #include <assert.h> #include <fcntl.h> #include <limits.h> #include "af_alg.h" ...
// Porres 2017 #include "m_pd.h" #include "math.h" #include "magic.h" #define TWOPI (3.14159265358979323846 * 2) static t_class *sine_class; typedef struct _sine { t_object x_obj; double x_phase; double x_last_phase_offset; t_float x_freq; t_inlet *x_inlet_phase; t_inlet *x_inlet_sync; ...
#include <stdio.h> #include <stdlib.h> /******************************************************************** Programa: queue.h Autor: <NAME> (RA:139095) Descricao: Define um tipo abstrado de dados fila utilizando listas ligadas circulares. ********************************************************************/ /* ...
#include <winioctl.h> // basic types typedef unsigned char u_char; typedef unsigned char uint8_t; typedef unsigned char u_int8_t; typedef unsigned short u_short; typedef unsigned short uint16_t; typedef unsigned short u_int16_t; typedef int __int32_t; typedef int int32_t; typedef int socklen_t; typedef ...
/* A C-program for MT19937-64 (2004/9/29 version). Coded by <NAME> and <NAME>. This is a 64-bit version of Mersenne Twister pseudorandom number generator. Before using, initialize the state by using init_genrand64(seed) or init_by_array64(init_key, key_length). Copyright (C) 2004, <NAME> and ...
//**********************************************************************; // Copyright (c) 2015-2018, Intel Corporation // 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...
/* This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <stdint.h> #include <stdbool.h> ...
/* ______ ___ ___ * /\ _ \ /\_ \ /\_ \ * \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___ * \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\ * \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \ * \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/ * ...
/*------------------------------------------------------------------------- * * pg_aggregate.c * routines to support manipulation of the pg_aggregate relation * * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * *...
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <c_api/ie_c_api.h> #include <opencv_c_wrapper.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> /** * @brief Struct to store classification results */ struct classify_res { size_t cla...
/* $NetBSD: t_rwtoro.c,v 1.1 2017/01/27 10:45:11 hannken Exp $ */ /*- * Copyright (c) 2017 The NetBSD Foundation, 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. Redistribution...
/* MiniDLNA media server * Copyright (C) 2013 NETGEAR * * This file is part of MiniDLNA. * * MiniDLNA 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. * * MiniDLNA is distributed in the hope...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <mpi.h> #include "ga.h" #include "macdecls.h" #include "cblas.h" #define HEAP 200000000 #define STACK 15435450 #define LOCAL_BUFLEN 1093475 //#define LOCAL_BUFLEN 10 #define TILE_DIM 1000 #define ITERATIONS 10 #define NUM_BUFS 2 void call_DGEMM(int ...
///////////////////////////////////////////////////////////////////////////// // Demo/Tutorial project 2 for L-Star project // Copyright (C) 2016 <NAME> // // TERMS OF USE: MIT License. See bottom of file. //////////////////////////////////////////////////////...
#include "archiver.h" /** Simple fonction rendant le maximum de deux int. */ int max(int a,int b){ if(a>b) return a; else return b; } /** Fonction écrivant dans une archive les fichiers contenue dans un index. Si c'est dernier sont stocker sur le systeme. */ boolean add_archive(Fichier * fichiers, in...
/* * hostapd - MBO * Copyright (c) 2016, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "common/ieee802_11_defs.h" #include "common/ieee802_11_common.h" #include "hos...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2011-2015 Los Alamos National Security, LLC. All rights * reserved. * Copyright (c) 2011 UT-Battelle, LLC. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ #inc...
//############################################################################ // file_io_test.c // // Tests for kmyth I/O utility functions in tpm2/src/util/file_io.c //############################################################################ #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <sys/...
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdlib.h> #include <sys/time.h> #include <unistd.h> #include "dacapooptions.h" #ifndef FALSE #define FALSE 0 #endif struct option_s { struct option_s* next; char* option; int length; char* ...
/************************************* An ANSI-C implementation of the digamma-function for real arguments based on the Chebyshev expansion proposed in appendix E of http://arXiv.org/abs/math.CA/0403344 . This is identical to the implementation by Jet Wimp, Math. Comp. vol 15 no 74 (1961) pp 174 (see Table 1). For...
#include <stdlib.h> #include <string.h> #include <stdio.h> #include <math.h> #include <stdbool.h> #include <stdint.h> #include "ft8/pack.h" #include "ft8/encode.h" #include "ft8/decode_ft8.h" #include "ft8/gen_ft8.h" #include "util/tx_ft8.h" #include "util/rx_ft8.h" #include "pico/stdlib.h" #includ...
/* * Copyright (c) 2011-2012 Research In Motion Limited. * * 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 o...
/* Copyright (c) 1991-1999 <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, publi...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief * Show a Slave how to receive data from Master in GC (General Call) mode. * This sample code needs to work with I2C_GCMode_Master. * * SPDX-License-Identifier: Apache-...
/****************************************************************************** * * Project: MapServer * Purpose: KernelDensity layer implementation and related functions. * Author: <NAME> and the MapServer team. * ****************************************************************************** * Copyright (c)...
#include "spectrum.h" #include <math.h> #include <errno.h> #include <string.h> struct strong { double wave; double code; int iso; double El; double Eu; double loggf; double radius; double dampfac; char T[5]; double SA; int flag; }; void pop(); void broad(atmosphere *model,linedata *line,int N,dou...
/* TMX usage example with SDL 2 requires SDL_image */ #include <stdio.h> #include <tmx.h> #include <SDL.h> #include <SDL_events.h> #include <SDL_keyboard.h> #include <SDL_keycode.h> #include <SDL_image.h> #define fatal_error(str) { fputs(str, stderr); goto errquit; } #define fatal_error2(str) { fputs(str, stderr); ...
#include <stdint.h> #include <string.h> #include <kernel/mm/memlayout.h> #include <kernel/mm/vm.h> #include <kernel/sync.h> #include <kernel/drivers/rtc.h> /* * ---------------------------------------------------------------------------- * Time-of-Year RTC chip. * -------------------------------------------------...
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @precisions normal z -> s d c * **/ #include "plasma.h" #include "plasma_async.h" #include "plasma_context.h" #include "plasma_descriptor.h" #include "plasma_internal.h" #include ...
/* * File...........: linux/fs/partitions/ibm.c * Author(s)......: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * Bugreports.to..: <<EMAIL>> * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999,2000 * History of changes (starts July 2000) * 07/10/00 Fixed detection of CMS formatted disks ...
/* Copyright 2018 Canaan 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 applicable law or agreed to in ...
/* This file manages the super block table and the related data structures, * namely, the bit maps that keep track of which zones and which inodes are * allocated and which are free. When a new inode or zone is needed, the * appropriate bit map is searched for a free entry. * * The entry points into this file are...
/**************************************************************** NAME: eleverr SYNOPSIS: eleverr [-i <init_err>] [-log <file>] [-mask <file>] <coherence> <base> <outfile> DESCRIPTION: Generate a slant range DEM error map from a coherence image and an unwrapped phase file. Requires metadata for the r...
/* * Copyright (c) 2016 <NAME> * Copyright (c) 2017-2018 Vrije Universiteit Amsterdam * * 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 opti...
/* * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. */ #include "common.h" #include "git2/attr.h" #include "diff.h" #include "diff_patch.h" #include "diff_dri...
/* Generic SHA-256 implementation * * Copyright (C) 2020 - 2021, <NAME> <<EMAIL>> * * License: see LICENSE file in root directory * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICUL...
/* * Copyright 2016-2017, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and ...
/* * Copyright (c) 2017, 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 w...
//******************************************************************* //Author: <NAME> //Description: PRCv9E Extended Layer (GPIO, Power Switch, SPI) //******************************************************************* #include "mbus.h" #include "PRCv9E.h" volatile uint32_t enumerated; //***************************...