text
stringlengths
7.55k
41.9k
#include <Smacker.h> // persistent memory for loading frames since none of this is threaded static Uint8* _buffer; static Sint32 _buffer_size; static BitStream _bs; static void BitStream_new (BitStream*, Uint8* buf, Uint32 size); static bool BitStream_get_bit (BitStream*); static Uint8 BitStream_get_8 (BitStream*); s...
/* * name: scheduler * autor: <NAME> * * source 1: http://stackoverflow.com/questions/17877368/getopt-passing-string-parameter-for-argument * source 2: http://www.jbox.dk/sanos/source/include/pthread.h.html * source 3: http://stackoverflow.com/questions/3219393/stdlib-and-colored-output-in-c * source 4: http://s...
/* * Copyright (c) 2015-2018 Qualcomm Technologies, Inc. * 2015-2016 Qualcomm Atheros, Inc. * All Rights Reserved. */ // Copyright (c) 2018 Qualcomm Technologies, Inc. // All rights reserved. // Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitatio...
// #include "survive_internal.h" #include <assert.h> #include <math.h> /* for sqrt */ #include <stdint.h> #include <stdlib.h> #include <string.h> //#define DEBUG_TB(...) SV_INFO(__VA_ARGS__) #define DEBUG_TB(...) /** * The lighthouses go in the following order: * * Ticks State * 0 ACode 0b1x0 (4) <--...
/**************************************************************** * A brute force integration of the partition function for the * 2D Thirring model. Usefull for testing the correctness * of a simulation algorithm. * * Go through all possible configurations and calculate the * determinant and measurables for each...
/* * Copyright (c) 2022 The WebM project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributin...
/* t-accelerator.c Author: <NAME> <<EMAIL>> Copyright: Copyright (c) 2002, 2003 SFNT Finland Oy. All rights reserved Created: Mon Oct 25 17:11:56 1999 vsuontam Last modified: Mon Dec 30 16:12:24 2002 vsuontam An interactve test for externalkey. The test program adds two providers to externalkey system ...
/* $XConsortium: nv_driver.c /main/3 1996/10/28 05:13:37 kaleb $ */ /* * Copyright 1996 <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...
/******************************************************************************* * Copyright (C) 2017 Maxim Integrated Products, 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 d...
#include <stdio.h> #include <stdlib.h> #include <math.h> struct luneImage_struct { double *xWesternLine; /*!< x locations defining the eastern line [nWesternLine] */ double *yWesternLine; /*!< y locations defining the western line [nWesternLine]...
#include <stdlib.h> #include "fsl_misc_utilities.h" #include "fsl_device_registers.h" #include "fsl_i2c_master_driver.h" #include "fsl_spi_master_driver.h" #include "fsl_rtc_driver.h" #include "fsl_clock_manager.h" #include "fsl_power_manager.h" #include "fsl_mcglite_hal.h" #include "fsl_port_hal.h" #include "gpio_pi...
/* ** mouse:~ppr/src/lprsrv/uprint_obj.c ** Copyright 1995--2005, Trinity College Computing Center. ** Written by <NAME>. ** ** 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 re...
/*Task Number: Task 3 Unit code: FIT2100 - Operating Systems Description: Upon execution, the IOL UI and the main programs get executed, which provides a user friendly UI for the user, and allows the system to push the files and its type to the IOL UI. System features...
/* ** por compatibilidad se omiten tildes ** ================================================================================ TRABAJO PRACTICO 3 - System Programming - ORGANIZACION DE COMPUTADOR II - FCEN ================================================================================ */ #include "game.h" #include "mm...
/* Tree lowering pass. Lowers GIMPLE into unstructured form. Copyright (C) 2003, 2005 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 published by the Free Software Foundation; either vers...
/* * CHIC - China Hardware Innovation Camp - Todoo * https://chi.camp/projects/todoo/ * * <NAME> * <EMAIL> * 2018, January 11 * * Task to manage the LCD Screen. * OS_time delay of one second to let time for the other task to run * * Each activity are screen on the LCD with the activity's image stored * in ...
/* * Copyright 2014 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, m...
#define _GNU_SOURCE #include <sched.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/param.h> #include <sys/mman.h> #include <time.h> #include <fcntl.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <fts.h> #include <values.h> #include <ctype.h>...
/***************************************************************************** * Copyright(C)2009-2019 by VSF Team * * * * Licensed under the Apache License, Version 2.0 (the "License"); * ...
/*- * Copyright (c) 2007-2008 <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...
/* * Copyright (c) 2019 The DragonFly Project. All rights reserved. * * This code is derived from software contributed to The DragonFly Project * by <NAME> <<EMAIL>> * * This code uses concepts and configuration based on 'synth', by * <NAME> <<EMAIL>>, which was written in ada. * * Redistribution and use in s...
/* m2q.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static doublereal c_b2 = .1; /* $Procedure M2Q ( Matrix to quaternion ) */ /* Subroutine */ int m2q_(doublereal *r__, doubl...
#include "pebble.h" #include "common.h" static Window* window; static GBitmap *background_image_container; static Layer *minute_display_layer; static Layer *hour_display_layer; static Layer *center_display_layer; static Layer *second_display_layer; static TextLayer *date_layer , *dig_time_layer, *steps_layer, *batter...
/************************************************************************** * * Copyright (C) 2007 <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, incl...
/* Print the strings of printable characters in files. Copyright (C) 2005-2010, 2012 Red Hat, Inc. This file is part of elfutils. Written by <NAME> <<EMAIL>>, 2005. This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by t...
/* * comedi/drivers/comedi_test.c * * Generates fake waveform signals that can be read through * the command interface. It does _not_ read from any board; * it just generates deterministic waveforms. * Useful for various testing purposes. * * Copyright (C) 2002 <NAME> <<EMAIL>> * Copyright (C) 2002 <NAME> <<E...
/* * Copyright (c) 2015, <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: * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
/* * Copyright (c) 2017, <EMAIL> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditi...
/*- * Copyright (c) 1999 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
#include "config.h" /* vf_bmovl.c v0.9.1 - BitMap OVerLay videofilter for MPlayer * * (C) 2002 <NAME> <<EMAIL>> * Licenced under the GNU General Public License * * Use MPlayer as a framebuffer to read bitmaps and commands from a FIFO * and display them in the window. * * Commands are: * * RGBA32 width height ...
#include "head.h" #include "tools.h" #include "print.h" #include "read.h" #include "parallel.h" void read_headfile(char *headfile) { char str[BUFF] = "0"; int i; Nfile = 0; FILE *ifp = fopen(headfile, "r"); while(fscanf(ifp, "%s",str)==1){ fprintf(stderr, " %s", str); if(access(str, R_OK) == -1)...
#pragma once #include "../include/global.h" #include "../include/battle.h" #include "pokemon.h" struct Clock { u16 year; u8 dayOfWeek; u8 month; u8 day; u8 _; u8 hour; u8 minute; u8 second; }; #define gEnigmaBerries ((struct BattleEnigmaBerry*) 0x2023F54) //Length 0x70 #define gBattleScripting ((struct Battl...
/* * Copyright 2004-2020 Hewlett Packard Enterprise Development LP * Other additional copyright holders may be indicated within. * * The entirety of this work is licensed under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * * You may obt...
/* Copyright 2004,2007,2008,2011,2015 IPB, Universite de Bordeaux, INRIA & CNRS ** ** This file is part of the Scotch software package for static mapping, ** graph partitioning and sparse matrix ordering. ** ** This software is governed by the CeCILL-C license under French law ** and abiding by the rules of distributio...
#include "assets/texture.h" texture* texture_new() { texture* t = malloc(sizeof(texture)); texture tex_id; glGenTextures(1, &tex_id); *t = tex_id; return t; } void texture_delete(texture* t) { texture tex = *t; glDeleteTextures(1, &tex); free(t); } GLuint texture_handl...
/* macro - expand string definitions (with arguments) */ #include <assert.h> #include <ctype.h> #include <stdarg.h> #include <stdbool.h> #include <stdio.h> #include "common.h" #include "eval.h" #include "strbuf.h" #define BUF_ABORT nomem() #include "buf.h" #define HASHSIZE 53 /* prime */ #define ARGFLAG '$' /...
/* Align user sequence to the reference genome and write VCF */ /* Copyright (C) 2020 The Regents of the University of California */ #include "common.h" #include "fa.h" #include "genoFind.h" #include "iupac.h" #include "parsimonyProto.h" #include "phyloPlace.h" #include "psl.h" #include "trashDir.h" // Globals exter...
extern void foo000(); extern void foo001(); extern void foo002(); extern void foo003(); extern void foo004(); extern void foo005(); extern void foo006(); extern void foo007(); extern void foo008(); extern void foo009(); extern void foo010(); extern void foo011(); extern void foo012(); extern void foo013(); extern void ...
/*- * Copyright (c) 2015 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include "lexer.h" #include "ast-make.h" static inline void format_char(const char ch, char *dest) { if(ch == '\n' || (ch >= ' ' && ch <= '~')) { dest[0] = ch; dest[1] = 0; dest[2] = 0; dest[3] = 0; ...
//////////////////////////////////////////////////////////////////////////// // **** LZW-AB **** // // Adjusted Binary LZW Compressor/Decompressor // // Copyright (c) 2016-2020 <NAME> // // ...
/*//////////////////////////////////////////////////////////////////////// Copyright (c) 2003 National Institute of Advanced Industrial Science and Technology (AIST) Permission to use this material for noncommercial and/or evaluation purpose, copy this material for your own use, and distribute the copies via publicly ...
/*------------------------------------------------------------------------- * * walsender.c * * The WAL sender process (walsender) is new as of Postgres 9.0. It takes * charge of XLOG streaming sender in the primary server. At first, it is * started by the postmaster when the walreceiver in the standby server * ...
#include <stdlib.h> #include "benchtime.h" typedef union { byte bytes[64]; uint words[16]; } chunk; //---------------------------------------------------------------------------------------------------------------------+ // <Precompiled constants used in the md5 hashing algorithm> ...
/* * Copyright (c) 2019, <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of co...
/** * @file modem.c * @brief Implements functions for connecting to the cellular network, and sending/receiving packets. * @author <NAME>, <NAME> and <NAME> * @version TODO * @date 2017-06-01 */ #include <device.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include "modem.h" #include "strlib.h" #...
#include<stdio.h> #include<string.h> #include<math.h> #include<stdlib.h> #include"calc.h" #include"valuables.h" #include"utilities.h" #include"dxf.h" //valuables frem runCEA.C extern T_CEA CEA[3]; // parameter for chamber, throat, exit //global valuables just in this file static float At,Dt,Ae,De,Ln,Ac; //At: throat ...
#include <windows.h> #include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include <process.h> #include <d3drmwin.h> #include <dinput.h> #include "..\inc\Standard.h" #include "..\inc\Errors.h" #include "..\inc\dxbug.h" // Disable the : switch statement has default statement but no case statments warning // unt...
/* Copyright (c) 1996,1997,1998,1999,2000,2001,2004,2006,2007,2008 Whitehead Institute for Biomedical Research, <NAME> (http://purl.com/STEVEROZEN/), <NAME> and <NAME> All rights reserved. This file is part of primer3 and the primer3 suite. Primer3 and the primer3 suite are free software; you can redistri...
/* aslink.h */ /* * (C) Copyright 1989-1996 * All Rights Reserved * * <NAME> * 721 Berkeley St. * Kent, Ohio 44240 */ /* * Extensions: P. Felber */ #include <limits.h> #define VERSION "V01.75" /* * Case Sensitivity Flag */ #define CASE_SENSITIVE 0 /*)Module asmlnk.h * * The module asmlnk.h contains t...
/***********************************************************************/ /* */ /* svm_struct_api.c (instantiated for SVM-rank) */ /* */ /* Definition of API f...
/*$ Copyright (c) 2014-2017, Azel 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 conditions and the follow...
/* * This file is part of the UCB release of Plan 9. It is subject to the license * terms in the LICENSE file found in the top-level directory of this * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No * part of the UCB release of Plan 9, including this file, may be copied, * modified, pro...
/* -*- c-file-style: "linux" -*- Copyright (C) 1996-2000 by <NAME> Copyright (C) <NAME> 1996 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...
/* * iperf, Copyright (c) 2014, The Regents of the University of * California, through Lawrence Berkeley National Laboratory (subject * to receipt of any required approvals from the U.S. Dept. of * Energy). All rights reserved. * * If you have questions about your rights to use or distribute this * software, pl...
#include "MSPd.h" #include "fftease.h" #if MSP void *pvharm_class; #endif #if PD static t_class *pvharm_class; #endif #define OBJECT_NAME "pvharm~" typedef struct _pvharm { #if MSP t_pxobject x_obj; #endif #if PD t_object x_obj; float x_f; #endif int R; int N; int N2; int Nw; int ...
#include <stdio.h> #include <stdint.h> #include <string.h> #include <assert.h> /* Things that affect compression rate/CPU HASH_ASSOC: bigger numbers => better compression DO_LITERALIZE: whether literalize can be > 1. (improves compression speed on incompressible material) MAX_LITERALIZE: How many bytes ...
/* * udp.c * * Written by <NAME> <<EMAIL>> */ #include "ppp.h" #include "phys.h" #include "mbuf.h" #include "udp.h" #include "ngfunc.h" #include "util.h" #include "log.h" #include <netgraph/ng_message.h> #include <netgraph/ng_socket.h> #include <netgraph/ng_ksocket.h> #include <netgraph.h> /* * XXX this devic...
/*====================================================================== CTOY version 1.0 ------------------------------------------------------------------------ Copyright (c) 2015 <NAME> <www.maratis3d.com> This software is provided 'as-is', without any express or implied warranty. In no event will the authors ...
/* * A driver for the I2C members of the Abracon AB x8xx RTC family, * and compatible: AB 1805 and AB 0805 * * Copyright 2014-2015 Macq S.A. * * Author: <NAME> <<EMAIL>> * Author: <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General ...
/* * Copyright (c) 2019 TAOS Data, Inc. <<EMAIL>> * * This program is free software: you can use, redistribute, and/or modify * it under the terms of the MIT license as published by the Free Software * Foundation. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; wi...
/* vi:ts=4:sw=4:noet The MIT License (MIT) Copyright (c) 2015-2016 <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 rights to...
/******************************************************************************* * * Font metric data for New Century Schoolbook Roman * * Copyright 2001 <NAME> * * * See dlls/wineps/data/COPYRIGHTS for font copyright information. * */ #include "psdrv.h" #include "data/agl.h" /* * Glyph metrics */ stati...
/* * LibXDiff by <NAME> ( File Differential Library ) * Copyright (C) 2003 <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 (a...
/* PLUGIN file to use with plantri.c To use this, compile plantri.c using cc -o plantri_ad -O '-DPLUGIN="allowed_deg.c"' plantri.c This plug-in deletes those triangulations with vertex degrees which are not allowed. Allowed degrees may be defined by using the -F switch, for example plantri_ad -...
/*****************************************************************************\ ** ** ** FILE: upload.c ** ** AUTHORS: Alexios ** **...
#ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <stdint.h> #include <string.h> #include <assert.h> #include <math.h> #include <pthread.h> #include <stdatomic.h> #include <sched.h> #include <openssl/bn.h> #include <numa.h> #if CACHEGRAND_CMAKE_CONFIG_...
/* $OpenBSD: tcx.c,v 1.19 2003/06/28 17:05:33 miod Exp $ */ /* $NetBSD: tcx.c,v 1.8 1997/07/29 09:58:14 fair Exp $ */ /* * Copyright (c) 2002, 2003 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditio...
#include <karbon/core.h> #include <app/fundamental.h> #include <stdlib.h> #include <string.h> #include <app/config.h> #include <dirent.h> #include <thirdparty/glfw/include/GLFW/glfw3.h> #include <allocators/tagged_allocator.h> #include <stdio.h> #ifdef _WIN32 #include <Windows.h> #else #include <dlfcn.h> #endif #incl...
/** * correlation.c: This file is part of the PolyBench/GPU 1.0 test suite. * * * Contact: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU * * Updated by <NAME> (http://cTuning.org/lab/people/gfursin) * to work with Collective Mind, OpenME plugin...
/* * Copyright (C) 2004-2010 NXP Software * Copyright (C) 2010 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/...
/* acssum -- Sum repeatobs data This file contains: AcsSum AcsInit GetSumKeyInfo SumGrps PutSumHdrInfo SquareErr SquareErrLine SqrtErr RptSumLine */ # include <stdio.h> # include <stdlib.h> # include <string.h> # include <math.h> #include "hstcal.h" # include "hstio.h" # inclu...
/** ****************************************************************************** * File Name : main.c * Description : Main program body ****************************************************************************** * This notice applies to any and all portions of this file * that are...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include "aws/s3/private/s3_auto_ranged_get.h" #include "aws/s3/private/s3_client_impl.h" #include "aws/s3/private/s3_meta_request_impl.h" #include "aws/s3/private/s3_request_messages.h" #include "aws/...
/* * XDD - a data movement and benchmarking toolkit * * Copyright (C) 1992-23 I/O Performance, Inc. * Copyright (C) 2009-23 UT-Battelle, LLC * * This 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 * F...
/* Voxels will be organized into chunks and regions. Chunk = 16x16x16 voxels Region = 16x16x16 chunks Voxel Info Planes +0=Voxel Base Type (Bits 0..7) +1=Voxel Base Type (High 4), Voxel Mode +2=Voxel Attribute Bits +3=Block Light Color(0..3), Light Level (4..7) +4=Area Light ID (0..2), Light Level (3..7) ...
#include <stdio.h> #include <stddef.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <time.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> // file I/O int64_t getFileSize(FILE* fp) { struct stat buf; int fd = fileno(fp); fstat(fd, &buf); int64_t size = buf.s...
/* * 8 bit implementation of the hash function Groestl 256. Designed for avr micro-controllers. * This implementation of Groestl 256 is coded by <NAME> (<EMAIL>). * December 04, 2011. */ #include <string.h> #include "crypto_hash.h" #define ROUNDS 10 const unsigned char sbox[256] = { 0x63, 0x7C, 0x77, 0x7B,...
/*==================================================================== 文節間の比較・類似度計算 S.Kurohashi 91. 6.25 S.Kurohashi 93. 5.31 $Id$ ====================================================================*/ #include...
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
/* * * See file CREDITS for list of people who contributed to this * project. * * 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...
/* * Copyright 2016 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, m...
/* * Copyright (C) 1997 Massachusetts Institute of Technology * * This software is being provided by the copyright holders under the * following license. By obtaining, using and/or copying this software, * you agree that you have read, understood, and will comply with the * following terms and conditions: * *...
/* ISC License Copyright (c) 2016, Autonomous Vehicle Systems Lab, University of Colorado at Boulder 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. ...
/*- * Copyright (c) 1991, 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 copy...
/* * This file is part of the PikaScript project. * http://github.com/pikastech/pikascript * * MIT License * * Copyright (c) 2021 lyon 李昂 <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 * i...
/* Copyright (c) 2009 Atmel 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 code must retain the above copyright notice, this list of conditions ...
/* Xflow_ringbuf_test_user : User-space program to load and consume the flow record entries of the ring-buffer */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <getopt.h> #include <stdbool.h> #include <math.h> #include <locale.h> #include <unistd.h> #include <time.h> #include ...
/* * 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...
/* -*- coding: utf-8-unix -*- */ #pragma once #define EXPAND(...) __VA_ARGS__ #define EAT(...) #define EMPTY() #define DEFER(x) x EMPTY() #define DEFER2(x) x DEFER(EMPTY)() // Find the result of testing whether a macros is enclosed or not #define CAT_STRUCT(a, b) (a, CAT_STRUCT_ b, PRIMITIVE, b) #define CAT_STRUCT...
/* Disassembler code for CRX. Copyright (C) 2004-2017 Free Software Foundation, Inc. Contributed by <NAME>, NSC, Israel. Written by <NAME>. This file is part of the GNU opcodes library. This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <stdint.h> #include <math.h> #include <assert.h> #include "nb/memory_bot.h" #include "nb/container_bot.h" #include "nb/geometric_bot/utils2D.h" #include "nb/geometric_bot/model/model2D_struct.h" #include "nb/geometric_bot/model/m...
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/** * @file * * @author <EMAIL> * * Copyright (c) 2015 Battelle Memorial Institute. */ #include "config.h" #include <stdint.h> #include <stdlib.h> #include <immintrin.h> #include "parasail.h" #include "parasail/memory.h" #include "parasail/internal_knc.h" #define NEG_INF (INT32_MIN/(int32_t)(2)) static inlin...
/* convert.c Polygon conversion functions Copyright (c) 2009 <NAME> <<EMAIL>> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, ...
/* Copyright 2021 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Driver for Kandou KB800x USB-C 40 Gb/s multiprotocol switch. */ #include "common.h" #include "console.h" #include "i2c.h" #include "kb800x.h" #i...
/* Serial monitor client example using WEB Socket. 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. ...
/* * Copyright © 2008 <NAME> * Copyright © 2012 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to us...
/*************************************************************************** * * * Intend C - Embeddable Scripting Language * * * * Copyrig...
/* This program simulates truncated multiplication. By default it calculates CCT, VCT, and HCT methods. However, to limit the output, options at run time can be input to allow limited runs or only certain truncation methods. To compile: gcc -o trunc_mult trunc_mult.c -lm Usage: tru...