text
stringlengths
5.8k
28.2k
/* Copyright (C) 2014, The University of Texas at Austin This file is part of libflame and is available under the 3-Clause BSD license, which can be found in the LICENSE file at the top-level directory, or at http://opensource.org/licenses/BSD-3-Clause */ #include "FLAME.h" FLA_Error FLA_Bidiag_UT_...
/* Address Book * by <NAME> * * filename: ab.h */ /* For version history, see file version_history.doc */ /* Compiler setup. */ /* Lib bases are extern'd in extern.h. */ #define __NOLIBBAE__ /* UNIX style includes. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> /* Amiga include...
/* Library for the Infinite Noise Multiplier USB stick */ // Required to include clock_gettime #define _POSIX_C_SOURCE 200809L #define INFNOISE_VENDOR_ID 0x0403 #define INFNOISE_PRODUCT_ID 0x6015 #include <stdint.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #...
/* * lock.c : routines for managing lock states in the DAV server * * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for addition...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <wiic.h> #include <android/log.h> #include "wiijni.h" #define LOG_TAG "WIIHandler" #define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__) #define LOG...
/* Copyright (c) 2016 <NAME> */ #include "table.h" /** * @file * @author <NAME> <<EMAIL>> * * This file implements a multidimensional lookup table for real values. The * table consists of one or more axes, each with one or more index, and an array * of values for each combination of axis indices. The table perfo...
// SPDX-License-Identifier: GPL-2.0 /* * access_tracking_perf_test * * Copyright (C) 2021, Google, Inc. * * This test measures the performance effects of KVM's access tracking. * Access tracking is driven by the MMU notifiers test_young, clear_young, and * clear_flush_young. These notifiers do not have a direct ...
/* Bacula(R) - The Network Backup Solution Copyright (C) 2000-2019 <NAME> The original author of Bacula is <NAME>, with contributions from many others, a complete list can be found in the file AUTHORS. You may use this file and others of this release according to the license defined in the LICENSE ...
/* LPCUSB, an USB device driver for LPC microcontrollers Copyright (C) 2006 <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 ...
/* asm.c: primitive redcode assembler * $Id: asm.c,v 1.2 2003/06/09 12:18:48 martinus Exp $ */ /* This file is part of `exhaust', a memory array redcode simulator. * Copyright (C) 2002 M <NAME> * Public Domain. */ /* The format of lines with instructions should be: * * [START] OPCODE.MODIFIER A-MO...
/*------------------------------------------------------------------------- * * elog.c * error logger * * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * $Header: /home/hjcvs/OB-CCM-1.0/post...
/****************************************************************************** * @section DESCRIPTION * * Unpack forcing data. *****************************************************************************/ #include <vic_driver_cesm.h> /*****************************************************************************...
/* TwoAdvSelfSims.c Simulation calculating fixation probability of second beneficial allele, given existing ben allele at initial frequency p. For use in the study "Linkage and the limits to natural selection in partially selfing populations". Simulation uses routines found with the GNU Scientific Library (GSL) (htt...
/** * @file timer_manager.h * @author Ario@Permadev * @brief * @version 0.1 * @date 2021-08-29 * * @copyright Copyright (c) 2021, MIT-License included in project toplevel dir * */ #include "clk_control.h" #include "irq_handler.h" #include "system_heap.h" #include "system_memory_map.h" /* Utils...
#define FFI_SCOPE "blas" #define FFI_LIB "libblas.so" typedef size_t CBLAS_INDEX_t; void openblas_set_num_threads(int num_threads); void goto_set_num_threads(int num_threads); int openblas_get_num_threads(void); int openblas_get_num_procs(void); char* openblas_get_config(void); char* openblas_get_co...
#define _GNU_SOURCE /* for asprintf */ #include <stdio.h> #include <unistd.h> #include <errno.h> #include <string.h> #include "grok.h" #include "grok_matchconf.h" #include "grok_matchconf_macro.h" #include "grok_logging.h" #include "libc_helper.h" #include "filters.h" #include "stringhelper.h" char *grok_match_reacti...
/** ****************************************************************************** * File Name : main.c * Description : Main program body ****************************************************************************** ** This notice applies to any and all portions of this file * that ar...
#include "chart.h" #include <curses.h> #include <errno.h> #include <fcntl.h> #include <float.h> #include <getopt.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <unistd.h> static size_t dsize, dlen, dptr = -1; static struct ohlc { double open; double h...
/** 2017 <NAME>, distributed under the terms of the MIT License; see readme.txt, or \url{ https://opensource.org/licenses/MIT }. A dynamic string, intended to be used with modified UTF-8 encoding (or subsets of this,) \url{ https://en.wikipedia.org/wiki/UTF-8#Modified_UTF-8 }. That is, this is a wrapper that autom...
#include <pthread.h> #include <unistd.h> #include <stdio.h> #include <sys/socket.h> #include <stdlib.h> #include <netinet/in.h> #include <string.h> #define PORT 5678 //Protos char *concatWithColon(char input[]); int isError(char* key,int curSocket); int isAlphanumeric(char* s) ; void sendResponse(char* co...
/** * @file scifi_clock.c * */ /********************* * INCLUDES *********************/ #include "scifi_clock.h" #include <stdio.h> #include <string.h> /********************* * DEFINES *********************/ #define LV_OBJX_NAME "scifi_clock" #define SCIFI_CLOCK_DEF_NEEDLE_COLOR LV_COLOR_RED #define SC...
/* * Copyright (c) 2014-2016, Cisco Systems, Inc. All rights reserved. * * LICENSE_BEGIN * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the mai...
#include <mt_partition.h> #include <stdint.h> #include <string.h> #include <stdio.h> #include <platform/errno.h> #include "pmt.h" #include <platform/mtk_nand.h> #include <target.h> #define PMT 1 //common //BLK_SIZE is 512, block_size is from flash is 128K static u32 block_size; static u32 page_size; #ifndef MTK_EMMC_...
/* * Copyright 2020. <NAME>, all rights reserved * 이 프로그램은 한양대학교 ERICA 소프트웨어학부 재학생을 위한 교육용으로 제작되었습니다. */ #include <stdio.h> #include <string.h> #include "aes.h" static const uint8_t sbox[256] = { 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x...
/* ----------------------------------------------------------------------- ffi.c - Copyright (c) 1998 Cygnus Solutions Copyright (c) 2000 <NAME> IA64 Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentatio...
/* Copyright (c) 2021, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights reserved. See files LICENSE and NOTICE for details. This file is part of CEED, a collection of benchmarks, miniapps, software libraries and APIs for efficient high...
/* * pfmlib_generic_ia64.c : support default architected IA-64 PMU features * * Copyright (c) 2001-2004 Hewlett-Packard Development Company, L.P. * Contributed by <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation file...
/*----------------------------------------------------------------------------- * This banner is generated with toilet using font standard.flf. * The header of font standard.flf is: * =============================================================================== flf2a$ 6 5 16 15 11 0 24463 229 Standard ...
/* * Copyright 2013 Red Hat 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, merge, publish, d...
#include <stdint.h> /*for int8_t, int32_t */ #include <string.h> /* for strlen, memset */ #include "hpack/encoder.h" #include "hpack/huffman.h" /* for huffman_encoded_word_t, hpack_huffman_...*/ #include "hpack/utils.h" #define LOG_MODULE LOG_MODULE_HPACK #include "logging.h" /* * Function: hpack_encoder_pack_e...
/* $Id$ */ /* * Copyright(C) Caldera International Inc. 2001-2002. 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 and documentation must retain the above...
/* * * * Copyright (C) 2005 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License * * This program is distributed in the hope that it w...
/* Communication between reload.c and reload1.c. Copyright (C) 1987, 1991, 1992, 1993, 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publi...
#include "decode.h" #include "constants.h" #include "crc.h" #include "ldpc.h" #include "unpack.h" #include <stdbool.h> #include <math.h> #include <stdio.h> #include "decode_ft8.h" // for the constants /// Compute log likelihood log(p(1) / p(0)) of 174 message bits for later use in soft-decision LDPC decoding /// @p...
/* * max9850.c -- codec driver for max9850 * * Copyright (C) 2011 taskit GmbH * * Author: <NAME> <<EMAIL>> * * Initial development of this code was funded by * MICRONIC Computer Systeme GmbH, http://www.mcsberlin.de/ * * This program is free software; you can redistribute it and/or modify it * under the ...
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "runtime.h" #include "textflag.h" // Look up symbols in the Linux vDSO. // This code was originally based on the sample Linux vDSO parser at // https...
/* * Copyright (c) 1980, 1986, 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...
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2020 Marvell International Ltd. */ #include <i2c.h> #include <ram.h> #include <mach/octeon_ddr.h> #define DEVICE_TYPE DDR4_SPD_KEY_BYTE_DEVICE_TYPE // same for DDR3 and DDR4 #define MODULE_TYPE DDR4_SPD_KEY_BYTE_MODULE_TYPE // same for DDR3 and DDR4 #define BU...
#include "document.h" #include "err.h" #include "util/logging.h" #include "commands.h" #include "rmutil/rm_assert.h" /* ## FT.ADD <index> <docId> <score> [NOSAVE] [REPLACE] [PARTIAL] [IF <expr>] [LANGUAGE <lang>] [PAYLOAD {payload}] FIELDS <field> <text> ....] Add a documet to the index. ## Parameters: - index: ...
/* Socket Interface libray file: wardsocket.c * <NAME> "08-30-18" */ #include <stdio.h> #include <stdlib.h> #include <sys/socket.h> #include <arpa/inet.h> #include <ward/dict.h> #include <ward/scope.h> #include <ward/object.h> #include <ward/stack.h> #include <ward/error.h> /* Socket module interface: * * A socke...
/*-------------------------------------------------------------------------- Copyright (c) 2014, The Linux Foundation. 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...
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
/* txWalk - Walk transcription graph and output transcripts.. */ /* Copyright (C) 2011 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "bed.h" #inc...
// --------------------------------------------------------------------------- // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. // --------------------------------------------------------------------------- /** * @file * @brief * This file contains internal definitions and implementation used wi...
/*- * Copyright (c) 2002-2018 The UbixOS Project. * All rights reserved. * * This was developed by <NAME> for the UbixOS Project. * * 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...
/********************************************************************** * $Id$ lpc_phy_dp83848.c 2011-11-20 *//** * @file lpc_phy_dp83848.c * @brief DP83848C PHY status and control. * @version 1.0 * @date 20 Nov. 2011 * @author NXP MCU SW Application Team * * Copyright(C) 2011, NXP Semiconductor * All rights reser...
#include "ppu.h" #include "cpu.h" #include "fce.h" #include "memory.h" #include <klib.h> //#define PROFILE //#define HAS_US_TIMER PPU_STATE ppu; static bool ppu_2007_first_read; static byte ppu_addr_latch; static byte PPU_SPRRAM[0x100]; static byte PPU_RAM[0x4000]; static bool ppu_sprite_hit_occured = false; static ...
/* SPDX-License-Identifier: BSD-3-Clause */ /* * Authors: <NAME> <<EMAIL>> * * Copyright (c) 2018, NEC Europe Ltd., NEC 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....
/* dnsychk.f -- translated by f2c (version of 20 August 1993 13:15:44). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Common Block Declarations */ struct { doublereal a[40000], m[200]; } system_; #define system_1 system_ struct { integer n,...
/*************************************************************************** MAME source code dependency generator **************************************************************************** Copyright <NAME> All rights reserved. Redistribution and use in source and binary forms, with or wi...
/* $OpenBSD: asr_utils.c,v 1.12 2014/03/26 18:13:15 eric Exp $ */ /* * Copyright (c) 2009-2012 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and 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 ...
/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
/* zunik.f -- translated by f2c (version 20190311). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
// // <NAME> // <EMAIL> // Czech Technical University - Faculty of Information Technology // 2022 // #include <stdio.h> #include <math.h> #include <esp_system.h> #include "ecc.h" #include "bit_array.h" #include "nvs.h" #include "puf_measurement.h" #define PROVISIONING_MEASUREMENTS 10 // value of probability of bit fl...
/******************************************************************** * * * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. * * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * * GOVERNED BY A BSD-STYLE SOURCE LICENS...
/* ccall.c -- consensus variant calling. Copyright (C) 2013-2014 Genome Research Ltd. Portions copyright (C) 2010 Broad Institute. Author: <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), t...
/* Copyright (c) 2012, <NAME> * x_interaction.c - layer to talk with X11. */ #include <stdlib.h> #include <string.h> #include <inttypes.h> #include <gdk/gdkx.h> #include <gtk/gtk.h> #include <X11/Xutil.h> #include "x_interaction.h" Atom a_UTF8_STRING; Atom a_WM_CLASS; Atom a_WM_NAME; Atom a_WM_WINDOW_ROLE; Atom a...
#include "KalmanRollPitchYaw.h" void KalmanRollPitchYaw_Init(KalmanRollPitchYaw *kal, float Pinit, float *Q, float Racc, float Rpsi) { kal->phi = 0.0f; kal->theta = 0.0f; kal->P[0] = Pinit; kal->P[1] = 0.0f; kal->P[2] = 0.0f; kal->P[3] = 0.0f; kal->P[4] = Pinit; kal->P[5] = 0.0f; kal->P[6] = 0.0f; kal->P[7] ...
#include "unp.h" #include "unprtt.h" #include <math.h> #include <setjmp.h> #define RTT_DEBUG #define SHARED_PATH "./" static char SERVER_IP[MAXLINE]; static int SERVER_PORT = 9877; static int seed = 41; static float PROB_LOSS = 0.2; static int MAX_WSIZE = 1024; static int delay = 20; int curr_wsize = 4; int last_pkt...
/* * Copyright (c) 2005-2017 National Technology & Engineering Solutions * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with * NTESS, the U.S. Government retains certain rights in this software. * * Redistribution and use in source and binary forms, with or without * modification, are permitt...
/** * * \file * * \brief WINC1500 Weather Client Example. * * Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip pro...
#include "mupdf/svg.h" /* Color keywords (white, blue, fuchsia) * System color keywords (ActiveBorder, ButtonFace -- need to find reasonable defaults) * #fb0 (expand to #ffbb00) * #ffbb00 * rgb(255,255,255) * rgb(100%,100%,100%) * * "red icc-color(profileName,255,0,0)" (not going to support for now) */ struct...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <immintrin.h> #include <unistd.h> #include <CL/cl.h> #define min(a,b) (((a)<(b))?(a):(b)) #define max(a,b) (((a)>(b))?(a):(b)) void reportOCLError(cl_int err, char* string); static char string[100]; void CHK_ERR(cl_int err, int line...
/* BEGIN_ICS_COPYRIGHT7 **************************************** Copyright (c) 2015-2020, 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 copyrig...
/**************************************************************************** * drivers/audio/song_pcm.c * * Copyright (C) 2018 Pinecone Inc. All rights reserved. * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the ...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyri...
/* * Copyright © 2006 Red Hat, Inc. * * Permission to use, copy, modify, distribute, and sell this software * and its documentation for any purpose is hereby granted without * fee, provided that the above copyright notice appear in all copies * and that both that copyright notice and this permission notice * app...
/* ellf.c * * Read ellf.doc before attempting to compile this program. */ #include <stdio.h> /* System configurations */ #include "ellf.h" static double wr = 0.0; static double cbp = 0.0; static double wc = 0.0; static double rn = 8.0; static double c = 0.0; static double cgam = 0.0; static double scale = 0.0; ...
/** * \file htab.c * * \brief Hashtable routines. * * The hash tables here implement open addressing using cuckoo hashing * to resolve collisions. This gives an O(1) worse-case performance * (As well as best, of course), compared to the worst-case O(N) of * chained or linear probing tables. * * A lookup will ...
/* * tclStrIdxTree.c -- * * Contains the routines for managing string index tries in Tcl. * * This code is back-ported from the tclSE engine, by <NAME>. * * Copyright (c) 2016 by <NAME> aka sebres. All rights reserved. * * See the file "license.terms" for information on usage and redistribution of * this file...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <fcntl.h> #include <linux_hugepage.h> #include <rte_spinlock.h> #include "iokvs.h" #define SF_INACTIVE 1 #define SF_NIC 2 #define SF_CLEANED 4 static struct segment_header *free_segments; static rte_spinlock_t segalloc_lock; ...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
/** * This file is bassicaly and SPI display controller for ESP-IDF based controllers. * It has been adapted from * https://github.com/espressif/esp-idf/blob/master/examples/peripherals/spi_master/lcd/main/spi_master_example_main.c * In a summary, you're able to draw buffers in a ILI9341 display line by line. * It has ...
// XPL0 main routine. /* * XPL0 BNF * <program> ::= <block> '.' * <block> ::= [ 'const' ident '=' number {',' ident '=' number} ';' ] * [ 'var' ident {',' ident} ';' ] * { 'procedure' ident ';' <block> ';' } * <statement> * <statement> ::= [ ident ':=' <expression> * ...
/*********************************************************************************** * * Emulates a Space Invaders Arcade Machine * @Author: <NAME> * ***********************************************************************************/ #include "../src/arcadeEnvironment.h" void playSpaceInvaders(ArcadeState *arcad...
/* * File...........: linux/drivers/s390/block/dasd_fba.c * Author(s)......: <NAME> <<EMAIL>> * Bugreports.to..: <<EMAIL>> * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999,2000 * * $Revision: 1.50 $ * * History of changes * fixed partition handling and HDIO_GETGEO */ #include <linux/co...
/* OggEnc ** ** This program is distributed under the GNU General Public License, version 2. ** A copy of this license is included with this source. ** ** This particular file may also be distributed under (at your option) any ** later version of the GNU General Public License. ** ** Copyright 2008, ogg.k.ogg.k...
/* * Simple hash filesystem (SHFS) tools * * Authors: <NAME> <<EMAIL>> * * * Copyright (c) 2013-2017, NEC Europe Ltd., NEC 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: * ...
#include "ctxt.h" #include "install.h" struct install_item insthier[] = { {INST_MKDIR, 0, 0, ctxt_bindir, 0, 0, 0755}, {INST_MKDIR, 0, 0, ctxt_incdir, 0, 0, 0755}, {INST_MKDIR, 0, 0, ctxt_dlibdir, 0, 0, 0755}, {INST_MKDIR, 0, 0, ctxt_slibdir, 0, 0, 0755}, {INST_MKDIR, 0, 0, ctxt_repos, 0, 0, 0755}, {INST_C...
/* ** Driver code for the x64 JIT compiler. */ /* Needed to ensure we get defines like MAP_ANON. */ #define _GNU_SOURCE #include <dlfcn.h> #include <stdio.h> #include <sys/mman.h> #include <unistd.h> #include "upb/msg.h" #include "upb/pb/decoder.h" #include "upb/pb/decoder.int.h" #include "upb/pb/varint.int.h" /* To...
#include "data_defs.h" #include "packet_processing.h" int get_packet_offset_at_index(const ipacket_t * ipacket, unsigned index) { int retval = 0; int i = index; for (i = index ; i >=0 ; i--) { retval += ipacket->proto_headers_offset->proto_path[i]; } return retval; } unsigned get_protocol...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2018 SiFive, Inc. * Copyright 2019 <NAME> <<EMAIL>> * * SiFive SPI controller driver (master mode only) */ #include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <malloc.h> #include <spi.h> #include <spi-mem.h> #include <wait_bit.h> #include ...
/* * Library file snooper * * (C) 17/11/2002 <NAME> * * Prints the contents of a z80asm library file including local symbols * and dependencies of a particular library */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <getopt.h> #include <assert.h> #include <stdarg.h> ...
/* ---- SYMMETRIC KEY STUFF ----- * * We put each of the ciphers scheduled keys in their own structs then we put all of * the key formats in one union. This makes the function prototypes easier to use. */ #ifdef BLOWFISH struct blowfish_key { ulong32 S[4][256]; ulong32 K[18]; }; #endif #ifdef RC5 struct rc...
/* OUTLINED FUNCTION PROTOTYPE */ void OUT_3_jacobi_134(void **__out_argv); /* OUTLINED FUNCTION PROTOTYPE */ void OUT_2_jacobi_199(void **__out_argv); /* OUTLINED FUNCTION PROTOTYPE */ void OUT_1_jacobi_242(void **__out_argv); #include <stdio.h> #include <math.h> // Add timing support #include <sys/time.h> double dif...
/* * File: clip.c * * Cohen-Sutherland clipping algorithm, extended to 3D triangles. * If you are familiar with the Cohen-Sutherland line clipping algorithm, * this implementation is similar, treating edge edge as a "line" and carefully * maintaining polygon structure. * * This code has a funky style - it was ...
/* * tuner.c * pianod - User station preferences and autotuning. * * Created by <NAME> on 2013-03-19. * Copyright 2013-2014 Devious Fish. All rights reserved. * */ #include <string.h> #include <strings.h> #include <assert.h> #include <fb_public.h> #include <piano.h> #include <ezxml.h> #include "pianod.h" ...
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * svd.c * * Code generation for function 'svd' * */ /* Include files */ #include <string.h> #include "mwmath...
/* Extra femtoLisp builtin functions */ #include <sys/types.h> #include <assert.h> #include <ctype.h> #include <errno.h> #include <math.h> #include <setjmp.h> #include <stdarg.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "scheme.h" extern char **environ; size_t lleng...
/* This is a generated header file */ #ifdef MINIMAL #include <stdlib.h> #endif enum { SPORTH_FLOAT, SPORTH_STRING, SPORTH_IGNORE, SPORTH_FUNC, SPORTH_NOTOK, SPORTH_OK, SPORTH_WORD }; #define SPORTH_FOFFSET 2 #define SPORTH_MAXCHAR 200 #define SPORTH_STACK_SIZE 32 typedef struct { float fval; char *sval; ...
/* * dmon.c * Copyright (C) 2010-2014 <NAME> <<EMAIL>> * * Distributed under terms of the MIT license. */ #define _GNU_SOURCE 1 #include "deps/cflag/cflag.h" #include "deps/clog/clog.h" #include "conf.h" #include "task.h" #include "util.h" #include <assert.h> #include <sys/types.h> #include <sys/wait.h> #include...
/*=========================================================================== g3topbm ============================================================================= This program reads a Group 3 FAX file and produces a PBM image. <NAME> wrote this on August 5, 2004 and contributed it to ...
/* $Id: cexpsyms.c,v 1.26 2009/03/09 18:30:53 till Exp $ */ /* generic symbol table handling */ /* SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03 * * Authorship * ---------- * This software (CEXP - C-expression interpreter and runtime * object loader/linker) was created by * * <NAME> <<EMAIL>>, 2002-200...
/* ** 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 app...
// // Created by Hugo on 12/11/2017. // #include <stdio.h> #include <string.h> #include <stdlib.h> #include "../../header/minunit.h" #include "../../../../src/header/string_array_functions.h" static char *trim1() { char *msg = strdup(" spacesbefore"); mu_assert("trim1", strcmp(trim(msg), "spacesbefore") ==...
// ??? A CWA/OMX split function between two times -- support crop / cut ----[=====]---- / ==]---------[=== // ??? Unify with OMAPI to make a single exporter for OMX and old CWA files (What to do with additional per-block CWA data like batt/temp/light?) /* * Copyright (c) 2009-2013, Newcastle University, UK. * All...
/* * Copyright 2012 <NAME> <<EMAIL>> * Copyright 2013 <NAME> <<EMAIL>> * Copyright 2013 <NAME> <<EMAIL>> * * This file is part of HackRF. * * 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 Foundatio...
/* * CS145Lab2.c * * Created: 4/21/2016 3:54:15 PM * Author : toran */ #include "avr.h" unsigned int speed = 1; unsigned int convertKeypad(unsigned int input) { unsigned int output = input; if(input == 5 || input == 6 || input == 7) { output = input - 1; } else if(input == 9 ||input == 10 ||...
#include "modem.h" #include <stdio.h> #include "board.h" #include "peripherals.h" #include "pin_mux.h" #include "clock_config.h" #include "K32L2B31A.h" #include "fsl_debug_console.h" #include "leds.h" #include "botones.h" #include "reles.h" #include "sensor_luminosidad.h" //#include "sensor_temperatura.h"...
/*s: windows/rio/fsys.c */ #include <u.h> #include <libc.h> #include <draw.h> #include <thread.h> #include <cursor.h> #include <mouse.h> #include <keyboard.h> #include <frame.h> #include <fcall.h> #include "dat.h" #include "fns.h" /*s: global [[Eexist]] */ char Eexist[] = "file does not exist"; /*e: global [[Eexist]]...