text
stringlengths
3.12k
18.7k
/* * arch/arm/mach-k3v2/k3v2_iomux.c * * Copyright (C) 2011 Hisilicon * License terms: GNU General Public License (GPL) version 2 * */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/err.h> #include <linux/list.h> #include <linux/spinlock.h> #include <linux/delay.h> #include <linux/io.h> #incl...
#include "pluto.h" #ifdef USE_PNG #include <png.h> #endif static void GetSlice (double ***, Image *, Grid *); static int GET_SLICE_INDEX (int, double, Grid *); /* ****************************************************************** */ void WritePPM (double ***Vdbl, char *var_name, char *filename, Grid...
/************************************************************************** * * Copyright 2007 VMware, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software wi...
// ---------------------------------------------------------------------------- // ATMEL Microcontroller Software Support - Colorado Springs, CO - // ---------------------------------------------------------------------------- // DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR /...
#include "flync.h" #include "nrf52840.h" #include "nrf52840_bitfields.h" #include "nrf_clock.h" #include "nrf_delay.h" #include "nrf_gpio.h" #include "nrf_gpiote.h" #include "nrf_power.h" #include "nrf_ppi.h" #include "nrf_rtc.h" #include "nrf_saadc.h" #include <stdbool.h> #include <stdint.h> #include "disco.h" #inclu...
#include <math.h> #include "brush.h" static inline short div_32767(int a) { return ( a + ( (a + 32769) >> 15 ) ) >> 15; } static short brush_texture_warp(brush_texture_t* tex, int x, int y) { int w, h; w = tex->w; h = tex->h; // Warp Pixel x %= w; y %= h; short pixel; // Lookup Pixel From Buffer p...
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
#include <forth.h> ASM_INT(u32_t, var_SHOW_PROMPT); void do_BACKSLASH() { if (INPUT_IS_BLK()) { // Move index to the beginning of the next line. current_input->id_index = ((current_input->id_index / CONFIG_LIST_CPL) + 1) * CONFIG_LIST_CPL; } else { // Discard the rest of input buffer by simply sign...
#include <stdio.h> #include <errno.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <stdbool.h> #include <limits.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/inotify.h> #include <json-c/json.h> #include "error.h" #include "net.h" #include "md5.h" #include "inotify_common.h" #i...
#include <stdio.h> #include <unistd.h> #include <openssl/err.h> #include <openssl/ssl.h> #include <openssl/sm2.h> #include <openssl/sm2_ipp.h> #ifndef PRINT_HEX #define PRINT_HEX(buf, len) \ do{ ...
#include "lz4_stream.h" #include <string.h> #include <limits.h> #include <assert.h> #include <stdlib.h> #define PHASE_READ_TOK 0 #define PHASE_READ_EX_LIT_LEN 1 #define PHASE_COPY_LIT 2 #define PHASE_READ_OFS 3 #define PHASE_READ_OFS2 4 #define PHASE_READ_EX_MAT_LEN 5 #define PHASE_COPY_MAT 6 #define PHASE...
#include "projed.h" int max(int a, int b) { return (a > b) ? a : b; } NOTE *appendNote(NOTE *head, PERSON *person, unsigned char grade) { NOTE *newp; if ((newp = (NOTE *) malloc(sizeof (NOTE))) == NULL) { fprintf(stderr, "Memory Allocation error.\n"); exit(1); } newp->grade = grade...
/* * This code was created by <NAME> '99 * (ported to Linux/SDL by <NAME> '01) * * If you've found this code useful, please let me know. * * Visit Jeff at http://nehe.gamedev.net/ * * or for port-specific comments, questions, bugreports etc. * email to <EMAIL> */ #include <stdio.h> #include <stdlib.h> #i...
#include "stringutil.h" #include "../constants.h" #ifdef COMMON_STRINGUTIL_DEBUG #include "../common/logging.h" #define DEBUG_MSG(fmt, ...) LOG_SERVER_DEBUG_FORMAT(fmt, "stringutil", __VA_ARGS__) #define DEBUG_PUT(fmt) LOG_SERVER_DEBUG_FORMAT(fmt, "stringutil") #else #define DEBUG_MSG(fmt, ...) #define DEBUG_PUT(fmt...
/* -*- C -*- * * Copyright 2011 Sandia Corporation. Under the terms of Contract * DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government * retains certain rights in this software. * * Copyright (c) 2017 Intel Corporation. All rights reserved. * This software is available to you under the BSD license. *...
/*****************************************************************************\ ** ** ** FILE: offline.news.c ** ** AUTHORS: Alexios ** **...
// md4.cpp - modified by <NAME> from <NAME>'s md4.c // The original code and all modifications are in the public domain. // This is the original introductory comment: /* * md4.c : MD4 hash algorithm. * * Part of the Python Cryptography Toolkit, version 1.1 * * Distribute and use freely; there are no restriction...
#include "mpsse.h" #include "helper.h" /* Helper to open a libusb device that matches vid, pid, product string and/or serial string. * Set any field to 0 as a wildcard. If the device is found true is returned, with ctx containing * the already opened handle. ctx->interface must be set to the desired interface...
// gpu_shader.c #include <stdint.h> #include <stdio.h> #include <string.h> #include "gles3.h" #include "id_plug.h" #include "static_array.h" #include "gpu_shader_unit.h" #define NAME_BUFFER_SIZE 100 #define SHADER_MAX_COUNT 5 #define SHADER_INPUTS_MAX_COUNT SHADER_MAX_COUNT * 10 #define INPUT_NAME_LENGTH 16 extern ...
/* * $Id: yhex.c,v 1.1 2005-09-18 22:05:51 dhmunro Exp $ * Yorick-specific interface routines, see hex.i */ /* Copyright (c) 2005, The Regents of the University of California. * All rights reserved. * This file is part of yorick (http://yorick.sourceforge.net). * Read the accompanying LICENSE file for details. *...
/* * This program takes a csv dataset as input, splits it according to a split coeffincient * to set X and Y and finaly calculates the kNN of all the Y points from the X set. * * OUTPUT: knnresult structure */ #include<stdio.h> #include<stdlib.h> #include<errno.h> #include<string.h> #include<math.h> #include<fl...
/* * Copyright (C) <NAME> */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> typedef struct { ngx_flag_t enable; } ngx_http_gzip_static_conf_t; static ngx_int_t ngx_http_gzip_static_handler(ngx_http_request_t *r); static void *ngx_http_gzip_static_create_conf(ngx_conf_t *cf); static ch...
// Copyright 2014 Google Inc. All Rights Reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the COPYING file in the root of the source // tree. An additional intellectual property rights grant can be found // in the file PATENTS. All contributing project authors may // be...
/* * 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 version. * * This program is distributed in the hope that it will be use...
/* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyr...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2012 The FreeBSD Foundation * All rights reserved. * * This software was developed by <NAME> under sponsorship * from the FreeBSD Foundation. * * Redistribution and use in source and binary forms, with or without * modification, are permitt...
/* Copyright (C) 1995-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This ...
/****************************************************************************//** * @file main.c * @version V3.00 * @brief Demonstrate how to implement a USB audio class device with HID key. * NAU8822 is used in this sample code to play the audio data from Host. * It also supports to record d...
/* * C Compiler front end for PIC16Cxx processors. * Based on Rithie's sources from Unix Seventh Edition. * * Copyright (C) 2006 <NAME> <<EMAIL>> * * This file is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A P...
// Copyright 2017 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. #include <fcntl.h> #include <stdlib.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <sys/resource.h> #include <sys/stat.h> #include <sys/types.h> ...
/* Copyright (c) 2006-2013 <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 and the following d...
/* * RPC Protocol Sequence Server Tests * * Copyright 2008-2009 <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) a...
/* File-I/O functions for GDB, the GNU debugger. Copyright (C) 2003-2015 Free Software Foundation, Inc. This file is part of GDB. 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; eith...
/* Copyright (c) the Selfie Project authors. All rights reserved. Please see the AUTHORS file for details. Use of this source code is governed by a BSD license that can be found in the LICENSE file. Selfie is a project of the Computational Systems Group at the Department of Computer Sciences of the University of Salzb...
/** * (C) Copyright 2016-2019 Intel Corporation. * * 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 l...
/* comedi/drivers/comedi_parport.c hardware driver for standard parallel port COMEDI - Linux Control and Measurement Device Interface Copyright (C) 1998,2001 <NAME> <<EMAIL>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Licen...
/* * Copyright (C) 2017 University of Chicago. * See COPYRIGHT notice in top-level directory. * */ #define _XOPEN_SOURCE 500 #define _GNU_SOURCE #define csJOBID_ENV_STR "ALPS_APP_ID" #include "darshan-runtime-config.h" #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <pthread.h> #include <asser...
#include <sys/socket.h> #include <openssl/rand.h> #include <strings.h> #include <openssl/md5.h> //#include "sodium.h" #include "local.h" #include "table.h" #include "encrypt.h" #define CIPHER_TABLE 0 #define CIPHER_OPENSSL 1 #define CIPHER_SODIUM 2 static uint8_t cipher; #define SODIUM_BLOCK_SIZE 64 static unsigned ...
/* * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (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/l...
#include "lwip/ip_addr.h" #include "lwip/netif.h" #include "netif/etharp.h" #include "lwip/sys.h" extern sys_sem_t lwip_sta_netif_linked; extern sys_sem_t lwip_sta_netif_has_addr; extern sys_sem_t lwip_ap_netif_linked; extern struct netif lwip_sta_netif; extern struct netif lwip_ap_netif; const ip_addr_t *...
//------------------------------------------------------------------------------ // Szoftveres idozito modul // // File: MySwTimer.c //------------------------------------------------------------------------------ #include "MySwTimer.h" #include <string.h> //-------------------------------------------------------...
#include "inttypes.h" #include "kyber-ntt.h" #include "kyber-reduce.h" #include <stddef.h> #include "kyber-params.h" int16_t kyber_zetas[128] = { 2285, 2571, 2970, 1812, 1493, 1422, 287, 202, 3158, 622, 1577, 182, 962, 2127, 1855, 1468, 573, 2004, 264, 383, 2500, 1458, 1727, 3199, 2648, 1017, 732, 608, 1787, 411...
/* snpLocType125 - third step in dbSNP processing. * Read the chrN_snpTmp tables created by snpSplitSimple and handle locType. * Not doing any coord adjustments here, just checking for errors. * Rewrite to new chrN_snpTmp tables. Get chromInfo from ContigInfo. */ /* Copyright (C) 2013 The Regents of the Universi...
/* * Copyright (c) 2015,2016,2017,2018 Apple Inc. All rights reserved. * * corecrypto Internal Use License Agreement * * IMPORTANT: This Apple corecrypto software is supplied to you by Apple Inc. ("Apple") * in consideration of your agreement to the following terms, and your download or use * of this Apple soft...
/* * GL06TimerFunc.cpp: Translation and Rotation * Transform primitives from their model spaces to world space (Model Transform). */ #include <GL/glut.h> // GLUT, include glu.h and gl.h // global variable GLfloat angle = 0.0f; // rotational angle of the shapes int refreshMills = 17; // refresh interval in millis...
/* * lp55231.c * * Created on: 30 Apr 2018 * Author: Fifth */ #include "lp55231.h" #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "app_error.h" #include "nrf_delay.h" #include "i2c.h" #include "nrf_log.h" #include "nrf_log_ctrl.h" #include "nrf_log_default_backends....
/* SDSLib, A C dynamic strings library * * Copyright (c) 2006-2009, <NAME> <<EMAIL> at <EMAIL> dot <EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of sourc...
/****************************************************************************** * Copyright (C) 2014-2020 <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 restr...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * File Name : stm32h7xx_hal_msp.c * Description : This file provides code for the MSP Initialization * and de-Initialization codes. ****************************...
#include <stdio.h> #include <stdlib.h> #include <windows.h> char teren[20][40],caracter; int l = 20,L = 40; unsigned gameover = 0,x,y,difficulty = 0,safe_space5 = 20 / 2,safe_space1 = 20 / 2,safe_space2 = 20 / 2,safe_space3 = 20 / 2,safe_space4 = 20 / 2, c1_wall = 37,c2_wall = 37,c3_wall = 37,c4_wall = 37,score ...
/* * readimage.c. * * Read image data. * *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% * * This file part of: SExtractor * * Copyright: (C) 1993-2012 <NAME> -- IAP/CNRS/UPMC * * License: GNU General Public License * * SExtractor is free software: you can redistribute it and/or modi...
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>) * All rights reserved. * * This package is an SSL implementation written * by <NAME>ung (<EMAIL>). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as * the following condition...
///////////////////// // \author JackeyLea // \date // \note 以关系内存方式显示一个空白窗口 ///////////////////// #include <stdio.h> #include <stdlib.h> #include <string.h> #include <wayland-client.h> #include <fcntl.h> #include <sys/mman.h> #include <errno.h> #include <unistd.h> static struct wl_display *display = NULL; static st...
#include <stasis/operations/arrayList.h> #include <stasis/bufferManager.h> #include <stasis/transactional.h> #include <stasis/page/fixed.h> #include <assert.h> #include <math.h> #define MAX_OFFSET_POSITION 3 #define FIRST_DATA_PAGE_OFFSET 4 typedef struct { pageid_t firstPage; pageid_t initialSize; pageid_t ...
/* * Copyright (c) 2017 Linaro Limited * * SPDX-License-Identifier: Apache-2.0 */ /* * TODO: * Support PULL transfer method (from server) */ #define SYS_LOG_DOMAIN "lwm2m_obj_firmware_pull" #define SYS_LOG_LEVEL CONFIG_SYS_LOG_LWM2M_LEVEL #include <logging/sys_log.h> #include <stdio.h> #include <net/zoap.h> #...
/* * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * * HDF is dual licensed: you can use it either under the terms of * the GPL, or the BSD license, at your option. * See the LICENSE file in the root of this repository for complete details. */ #include <securec.h> #include "osal_mem.h" #include "hdf_device_des...
/* * E C H O S . C * * echoS - display a line of text over socket stream. * * Initial created in 2008 at CUG(China University of Geoscience). * <NAME> * * Modified in 2022 for IPv6 support. * <NAME> * Pv6 support * Client source port binding ability. * * */ #include <stdio.h> #in...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <strings.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <termios.h> #include <getopt.h> #include "ymodem.h" #include "serial_port.h" #define DEV_PATH_DEF "/dev/ttyUSB0" #define BAUDRATE_DEF ...
#include "screen.h" #include "BearLibTerminal.h" #include "entity.h" #include "mapgen.h" #include "new.h" #include "stdio.h" #include <string.h> static Panel* msg_p; static Panel* map_p; static Panel* stat_p; static Panel* info_p; static Panel* skills_p; static Entity* test_e; static GameMap* test_map; static void ha...
#include "converter_lib.h" char *lib_init(ConverterState *state, char from_s24le, enum AVSampleFormat src_sample_fmt, int src_rate, int64_t src_ch_layout, enum AVSampleFormat dst_sample_fmt, int dst_rate, int64_t dst_ch_layout) { state->swr_ctx = NULL; struct SwrContex...
/* * Copyright ProcessOne 2006-2009. All Rights Reserved. * * The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in * compliance with the License. You should have received a copy of the * Erlang Public License along with this softwa...
/* * Copyright 2017-2018, 2020-2021 Uber Technologies, 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...
/* * SVGA3D example: Present Reaback example. This example tests the 3d * and 2d syncronization presentReadback command. This example draws * a spinning cube using 3d. After every frame parts of the 2d * framebuffer are updated with present readback with a 2d update * following. Parts of the 3d region are clea...
/****************************************************************************** * * Copyright (C) 2006-2017 by * The Salk Institute for Biological Studies and * Pittsburgh Supercomputing Center, Carnegie Mellon University * * Use of this source code is governed by an MIT-style * license that can be found in the ...
/* * * Copyright 2016, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
/** * \brief Multi-precision integer library, ESP32 S2 hardware accelerated parts * * based on mbedTLS implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * Additions Copyright (C) 2016-2020, Espressif Systems (Shanghai) PTE Ltd * SPDX-License-Identifier: Apache-2.0 * * Licensed ...
/* Extended Module Player * Copyright (C) 1996-2021 <NAME> and <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...
#pragma once #include <stm32f4xx_hal.h> #define OV2640_PRODUCT_ID 0x2642 /* Use this define to set the maximum delay timeout for the I2C DCMI_OV2640_SingleRandomWrite() and DCMI_OV2640_SingleRandomRead() operations. Exeeding this timeout delay, the read/write functions will be aborted and return e...
#include <bolos_target.h> #include <inttypes.h> #include <zxmacros.h> #include <zxformat.h> #include "os.h" #include "cx.h" #include "aes.h" #include "coin.h" #include "jubjub.h" #define CTX_REDJUBJUB "Zcash_RedJubjubH" #define CTX_REDJUBJUB_LEN 16 #define CTX_REDJUBJUB_HASH_LEN 64 #define CTX_EXPAND_SEED "Zcash_Expa...
/* * Copyright (c) 2013 <NAME> <<EMAIL>> * * This file is free software: you may copy, redistribute 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 version. * * This file is...
#define _GNU_SOURCE #include <assert.h> #include <emscripten.h> #include <emscripten/proxying.h> #include <pthread.h> #include <sched.h> #include <stdio.h> #include <stdlib.h> // The worker threads we will use. `looper` sits in a loop, continuously // processing work as it becomes available, while `returner` returns t...
/* * This program is one of the genome analysis tools. * This program makes the wiggle file of the free energy difference between the duplex and single-strand states. * See usage for detail. */ #include "parse_chr.h" #include "write_tab.h" #include "argument.h" #include "ga_my.h" #include <stdio.h> #include <stdl...
/* SCTP kernel Implementation * Copyright (c) 2003 Hewlett-Packard Development Company, L.P * (C) Copyright IBM Corp. 2004 * * This file has test cases to test the sctp_connectx () call for 1-1 style sockets * * TEST1: Bad socket descriptor * TEST2: Invalid socket * TEST3: Invalid address * TEST4: Invalid addr...
/*********************************************************************** ** ** REBOL [R3] Language Interpreter and Run-time Environment ** ** Copyright 2012 REBOL Technologies ** REBOL is a trademark of REBOL Technologies ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this...
/* ccm_mode.c - TinyCrypt implementation of CCM mode */ /* * Copyright (C) 2017 by 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: * * - Redistributions of source cod...
/* * Copyright (c) 2014, Texas Instruments Incorporated - http://www.ti.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: * 1. Redistributions of source code must retain the above copy...
// SPDX-License-Identifier: GPL-2.0+ #include "../codecs/wm8994.h" #include <sound/pcm_params.h> #include <sound/soc.h> #include <linux/module.h> #include <linux/of.h> #include <linux/of_device.h> /* * Default CFG switch settings to use this driver: * SMDKV310: CFG5-1000, CFG7-111111 */ /* * Configure audi...
#include "os.h" #include <emscripten.h> #include <emscripten/html5.h> #include <emscripten/dom_pk_codes.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #define CANVAS "#canvas" static struct { EMSCRIPTEN_WEBGL_CONTEXT_HANDLE context; quitCallback onQuitRequest; windowFocusCallback onWindowFocus; ...
#include "types.h" #include "defs.h" #include "param.h" #include "traps.h" #include "spinlock.h" #include "fs.h" #include "file.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" #include "x86.h" int index = 0; //index of current place in history(for up and down) int lCounter =0; static void consputc(int); ...
#include "stdio.h" #include "stdlib.h" #define N 1024 #define Pi 3.1415926 #include "math.h" //DFT算法 /*Input 输入数组,Amount 数组长度 outputRe 实数输出部分 outputIm虚数部分 */ void DFT(float *Input, int Amount, float *outputRe, float *outputIm){ int n, k;//循环控制变量 float Cos, Sin;//临时变量 /* X[k]=x[n]*e^-i*2pi/N*k e^-i*2pi/N*k 欧拉变换[e^-...
/* This file is part of RECBIS: A library for parallel computation of medians and for parallel data distribution using recursive bisection. Written by <NAME> at the Lawrence Livermore National Laboratory. */ #include <string.h> #include <stdlib.h> #include <assert.h> #include <sys/time.h> #include "r...
/** * \addtogroup exampleapps * @{ */ /** * \defgroup httpd Web server * @{ * * The uIP web server is a very simplistic implementation of an HTTP * server. It can serve web pages and files from a read-only ROM * filesystem, and provides a very small scripting language. * * The script language i...
/** * @File: demo_rtt_iotboard.c * @Author: MurphyZhao * @Date: 2018-09-29 * * Copyright (c) 2018-2019 MurphyZhao <<EMAIL>> * https://github.com/murphyzhao * All rights reserved. * License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may ...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee a...
/***************************************************************************/ /* ** PSF-o-Cycle development system ** ** This is an example which demonstrates the basics of how to make a PSF ** driver stub and illustrates the format of the PSF_DRIVER_INFO block. ** It can be customized to create stubs for actual games ...
/* * Copyright (C) 2016 MUTEX NZ Ltd. * Copyright (C) 2015 Loci Controls Inc. * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. * */ /** * @ingroup cpu_cc2538 * @{ * * @file * @brief...
/*- * Copyright (c) 2008 Yahoo!, Inc. * All rights reserved. * Written by: <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 ...
/** * GY45 (MMA845X breakout board) example * Wiring * * GY45 ----------------- STM32F429-DISCO * V_IN (red) ----------- 3V (right) * GND (brown) ---------- GND * SCL (orange) --------- PA8 * SDA (yellow) --------- PC9 * * CP210X ----- STM32F429-DISCO * RX --------- PA9 * TX --------- PA10 * * Half-bridge...
// // Copyright (c) 2019-2022 yanggaofeng // #include <yangrtp/YangRtp.h> #include <yangrtp/YangRtpConstant.h> #include <yangutil/sys/YangSsrc.h> #include <yangutil/sys/YangLog.h> #include <yangutil/buffer/YangBuffer.h> #include <stdlib.h> #include <stdio.h> #ifdef _WIN32 #include <winsock2.h> #include <ws2tcpip.h> #el...
#include <errno.h> #include <string.h> #include <math.h> #include <ctype.h> #include "csm_all.h" void jo_add_timestamp(JO jo, const char*name, struct timeval*tv); int is_all_nan(const double *v, int n ); void jo_add_double_array_if_not_nan(JO jo, const char*name, const double *v, int n); int all_is(int *a, int n, int...
/* Copyright (c) 2016, prpl Foundation 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 IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRA...
/* Compute the inverse Rosenblatt (cumulative) transform via linearly interpolated TT Args (sizes): lapackint d: dimension lapackint *n: mode sizes (d) double *xs: array of grid points (sum(n)) lapackint *ttrank: tt ranks (d+1) double *ttcore: TT2.0 contiguous storage of tt cores (sum(r*n*r)) lapack...
/* Copyright 2012, 2013 Free Software Foundation, Inc. This file is part of the GNU MP Library test suite. The GNU MP Library test suite 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 L...
#include "http-server/http-server.h" #include <stdlib.h> #include <stdio.h> #include <sys/event.h> #include <sys/socket.h> #include <sys/time.h> #include <netdb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <unistd.h> #include <assert.h> #include <string...
/* vi: set sw=4 ts=4: */ /* * cut.c - minimalist version of cut * * Copyright (C) 1999,2000,2001 by Lineo, inc. * Written by <NAME> <<EMAIL>> * debloated by <NAME> * * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ #include "libbb.h" /* This is a NOEXEC applet. Be very careful...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <assert.h> #include "lmnt/archive.h" #include "lmnt/validation.h" #include "lmnt/interpreter.h" #include "lmnt/jit.h" #include "circle.h" #include "circle_double.h" #include "circle_ht.h" #include "simple1000.h" #include "simple500.h...
/* * nessDB storage engine * Copyright (c) 2011-2012, BohuTANG <overred.shuttler at gmail dot com> * All rights reserved. * Code is licensed with BSD. See COPYING.BSD file. * */ #include "config.h" #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdlib.h> #include <unistd.h> #include <s...
/* * M_APM - mapm_gcd.c * * Copyright (C) 2001 - 2007 <NAME> * * Permission to use, copy, and distribute this software and its * documentation for any purpose with or without fee is hereby granted, * provided that the above copyright notice appear in all copies and * that both that copyright notice ...
// Build with "gcc -o customs customs.c -lreadargs #include <stdio.h> #include <readargs.h> #include <stdlib.h> // for atof() #include <string.h> // for strcasecmp() #include <errno.h> /**************************************************************** * Custom agent: read a floating value * Name: float_age...
/* * Copyright (c) 2021 libsixel developers. See `AUTHORS`. * Copyright (c) 2014-2016 <NAME> * Copyright (c) 2014 <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 rest...