text
stringlengths
7.55k
41.9k
/*####COPYRIGHTBEGIN#### ------------------------------------------- Copyright (C) 2005 <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at you...
/*************************************************************************** Exidy Car Polo hardware driver by <NAME> ****************************************************************************/ #include "driver.h" #include "cpu/m6502/m6502.h" #include "machine/6821pia.h" #include "machine/7474....
/* < qRMS.c > RMS calculation based using quaternion-rotation based on <NAME> "Quaternions in molecular modeling" E-print: arXiv:physics/0506177 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <strings.h> #include "pdbstruct.h" struct POS_ARRAY{ int N; int Nmall...
#include "config_1_2_3.h" // Modified to allow 9600 baudrate // threading library //#define use_uart_serial #include "pt_cornell_1_2_3.h" #include "gpio.h" #ifndef _SUPPRESS_PLIB_WARNING #define _SUPPRESS_PLIB_WARNING #endif ////////////////////////////////////// // graphics libraries #include "tft_master.h" #include "...
/* Lesamnta-LW reference C99 implementation The code is based on reference [1]. APIs are the same as those of the SHA-3 competition. Reference [1] <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, and <NAME>, "An AES based 256-bit hash function for lightweight applications: Lesamnta-LW," IEICE TRANSACTIO...
/* Take a picture and Publish it via SMTP Send. This 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. I p...
/* Winbond W25Q32 Code * <NAME> Fri Oct 27 23:52:33 2017 * * Important! You must have a pullup resistor on the NSS * line in order that the NSS (/CS) SPI output * functions correctly as a chip select. The * SPI peripheral configures NSS pin as an * open drain output. * * PINS: * PC13 LED * PA4 ...
#include "LCDClock.h" /* Primitive functions (Macros) */ #define _anpersand_anpersand(a, b) (a && b) #define _eq__eq_(a, b) (a == b) #define _exclamation__eq_(a, b) (a != b) #define _parcent_(a, b) (a % b) #define _plus_(a, b) (a + b) #define _lt_(a, b) (a < b) #define _slash_(a, b) (a / b) #define _at__exclamation_(a)...
/* Copyright 2016, <NAME>. * All rights reserved. * * This file is part of CIAA Firmware. * * 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 not...
/* usb.c - USB Hub Support. */ /* * GRUB -- GRand Unified Bootloader * Copyright (C) 2008 Free Software Foundation, Inc. * * GRUB 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...
/* ///////////////////////////////////////////////////////////////////// */ /*! \file \brief Compute coefficients for high-order reconstruction methods. Compute the interpolation coefficients needed by high-order (3rd, 4th and 5th) reconstruction methods such as PPM or WENO3. The function PPM_Coefficients...
/*- * Copyright (c) 2016 Cavium * All rights reserved. * * This software was developed by Semihalf. * * 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 co...
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <math.h> #include "gd.h" #include "gd_errors.h" #include "gdhelpers.h" #include "gd_intern.h" #ifdef HAVE_LIBAVIF #include <avif/avif.h> /* Define defaults for encoding images: ...
// RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +xop -emit-llvm -o - -Wall -Werror | FileCheck %s // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +xop -fno-signed-char -emit-llvm -o - -Wall -Werror | FileCheck %s #include <x86intrin.h> // _MM_PCOMCTRL...
/* * Copyright 2012 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...
// Options: --no-pointers --no-structs --no-unions --argc --no-bitfields --checksum --comma-operators --compound-assignment --concise --consts --divs --embedded-assigns --pre-incr-operator --pre-decr-operator --post-incr-operator --post-decr-operator --unary-plus-operator --jumps --longlong --int8 --uint8 --no-float ...
#include "gbn.h" state_t s; gbnhdr empty; void client_time_out() { printf("timeout: s.state = %d\n", s.state); if (s.state == SYN_SENT) { /* Timeout after the client sends SYN. * Resend a SYN, decrease the times for trying. */ printf("SYN timeout! left times: %d\n", s.syn_t...
/* BEGIN_ICS_COPYRIGHT7 **************************************** Copyright (c) 2015-2017, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyrig...
/* * Copyright (C) 2018 dcurl Developers. * Copyright (C) 2016 <NAME>. * Use of this source code is governed by MIT license that can be * found in the LICENSE file. */ #include "pow_sse.h" #include <pthread.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include "constants.h" #include "cpu-utils.h"...
#include <time.h> #include <sys/types.h> #include <sys/param.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <sys/time.h> #include <sys/timex.h> #include <errno.h> #include <sys/socket.h> #include <netinet/in.h> #include <netinet/ip.h> #include <netinet/ip_ic...
#include<entry.h> #include<lib.h> #include<context.h> #include<memory.h> #include<schedule.h> #include<file.h> #include<pipe.h> #include<kbd.h> #include<fs.h> /* Returns the pte coresponding to a user address. Return NULL if mapping is not present or mapped in ring-0 */ u64* get_user_pte(struct exec_context *ctx, u...
/* $OpenBSD: asn1test.c,v 1.3 2014/12/07 20:00:13 bcook Exp $ */ /* * Copyright (c) 2014 <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 all co...
/* * Copyright © 2017 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pub...
/*- * Copyright (c) 2004 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
/* sim_mega128.c Copyright 2008, 2009 <NAME> <<EMAIL>> This file is part of simavr. simavr 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 ...
/* * Updated version: Merges DJA version "Distance" WCS/Astrometry work * with standard Talon libraries. * * Control Compilation via wcs.h header #define USE_DISTANCE_METHOD * Set to 1 (to enable) or 0 (to disable, and use former triangle method only) * * Last update DJA 020917 * Merged STO 021001 * 021220 (DJ...
/*************************************************************************** PRO3D: 3D-to-2D and 3D-to-1D projection program for compressed-format RadWare triple coincidence cubes. <NAME> Sept 1997 ****************************************************************************/ #include <stdio.h> #inclu...
/* * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved. * * This file is part of LVM2. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and conditions * ...
/****************************************************************************** Copyright (C) 2013-2014 by <NAME> <<EMAIL>> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either vers...
/*############################################################################ # Copyright 1999-2018 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 # # ht...
/* * Verbity * * This is a self-contained ANSI-C soundpipe port of * the Verbity VST plugin by <NAME> of AirWindows: * * http://www.airwindows.com/verbity/ * * In addition to the C++->C rewrites, a few notable * adjustments have been made to the * algorithm. Wet/Dry control has been removed in favor * of 100...
/* * Copyright (c) 2020, Pycom Limited. * * This software is licensed under the GNU GPL version 3 or any * later version, with permitted additional terms. For more information * see the Pycom Licence v1.0 document supplied with this file, or * available at https://www.pycom.io/opensource/licensing */ #include <...
#include "readvariant.h" #include "readfasta.h" #include <assert.h> #include "htslib/hts.h" // read bgzipped VCF files // count the # of variants in VCF file to allocate space for VCF variant array int count_variants(char* vcffile, char* sampleid, int* samplecol) { FILE* fp = fopen(vcffile, "r"); if (fp == ...
/* * Copyright © 2012 Collabora, Ltd. * Copyright © 2012 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use,...
/* * iplink_bridge.c Bridge device support * * 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 y...
/* Shifter, Copyright (c) 2015, 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. ## ## Redistribution and use in source and binary forms, with or without ## modification, ...
/* cellspu.c - a pocl device driver for Cell SPU. Copyright (c) 2012 <NAME> / Tampere University of Technology 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, ...
/* * Copyright (c) 2015-2018 Nexenta Systems, inc. * * This file is part of EdgeFS Project * (see https://github.com/Nexenta/edgefs). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional informat...
/* ZEsarUX ZX Second-Emulator And Released for UniX Copyright (C) 2013 <NAME> This file is part of ZEsarUX. ZEsarUX 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 th...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * SPDX-License-Identifier: Apache-2.0 * Copyright (c) 2019 Intel Corporation */ /** * @file nts_acl_cfg.c * @brief Implementation of nts acl config loading */ #include <assert.h> #include <stdlib.h> #include <arpa/inet.h> #include <rte_ip.h> #include <rte_ether.h> #include "nts/nts_acl_cfg.h" #include "nes...
/* Originally inet-relay.c by <NAME> */ /* TODO set up system to allow relaying between any two descriptors received from unix domain socket */ #define _GNU_SOURCE #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <sys/epoll.h> #include <errno.h> #include...
#define IDE_IMPLEMENT #include "ide.h" #include "wrapper.h" unsigned char ide_read(unsigned char channel, unsigned char reg) { unsigned char result; if (reg > 0x07 && reg < 0x0C) ide_write(channel, ATA_REG_CONTROL, 0x80 | channels[channel].nIEN); if (reg < 0x08) result = inb(channels[channel].base + reg ...
/* omega copyright (C) by <NAME>, 1987,1988,1989 */ /* guild2.c */ /* L_ functions */ /* These functions implement the various guilds. */ /* They are all l_ functions since they are basically activated*/ /* at some site or other. */ #include "glob.h" void l_thieves_guild() { int fee,count,i,number,done=FALSE,du...
/******************************************************************************* unitTest.c Functions for unit tests. Jumper wires are required for these tests: A1 ( 0) <---> ( 1) A2 A3 ( 2) <---> (13) D4 B4 ( 4) <---> ( 5) C3 C4 ( 6) <---> ( 7) C5 C6 ( 8) ...
/* * Example Gen3-multiboot payload by slipstream/RoL 2017. * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. * * saveblocks.h: describes structures used by saveblocks for all of Gen 3 */ // Most of the structures come from pokeruby, FR/LG...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <float.h> #include "../utilities/array.h" #include "../tree/struct_tree.h" #include "../particles/struct_particles.h" #include "../run_params/struct_run_params.h" #include "interaction_compute.h" #ifdef CUDA_ENABLED #define SIN...
/* mbed Microcontroller Library * Copyright (c) 2018 GigaDevice Semiconductor Inc. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * htt...
/* * Copyright 2016 British Broadcasting Corporation and Contributors(1) * * (1) Contributors are listed in the AUTHORS file (please extend AUTHORS, * not this header) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You...
/* * This file is part of GreatFET */ #include "greatfet_core.h" #include "pins.h" #include "spi_ssp.h" #include "spiflash.h" #include "spiflash_target.h" #include "i2c_bus.h" #include "i2c_lpc.h" #include <libopencm3/cm3/scb.h> #include <libopencm3/lpc43xx/creg.h> #include <libopencm3/lpc43xx/cgu.h> #include <libop...
/* <NAME>, <EMAIL>, Virtual Machine, Public Domain */ /* TODO: Networking (debug) * TODO: Screen/Keyboard/Mouse/Sound * TODO: Floating point * TODO: Misc: Forth/BIOS ROM, Device/Peripheral discovery/description table, debugging */ #include <assert.h> #include <limits.h> #include <inttypes.h> #include <stdarg.h> #inc...
/* * Copyright (C) 2012 Red Hat Inc. * * 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 * ...
/*------------------------------------------------------------------------- * tupser.c * Functions for serializing and deserializing a heap tuple. * * Portions Copyright (c) 2005-2008, Greenplum inc * Portions Copyright (c) 2012-Present Pivotal Software, Inc. * * * IDENTIFICATION * src/backend/cdb/motio...
/*************************************************************************** *cr *cr (C) Copyright 1995-2019 The Board of Trustees of the *cr University of Illinois *cr All Rights Reserved *cr ***************************************************************...
/*********************************************************** Copyright 1987, 1989, 1998 The Open Group 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 t...
#define _XOPEN_SOURCE 600 #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <unistd.h> #include "db.h" #define NBLOCKS(size) (RUP(size, JFDB_BLOCK_SIZE)) static int JFDB_file_open(JFDB *db, const char *path) { // g...
/* Win4.c - (c) 1999 by <NAME> four bit per pixel (16 greyscale) mulg graphics some major improvements contributed by <NAME> <<EMAIL>> */ #define NON_PORTABLE #ifdef OS35HDR #include <PalmOS.h> #include <PalmCompatibility.h> #else #include <Pilot.h> typedef signed char Int8; typedef unsigned char UInt...
#include "win32.h" #include "browser.h" #include "editor.h" #include "resources.h" wchar_t *window_class_name = L"plaatcode"; #ifdef WIN64 wchar_t *window_title = L"PlaatCode (64-bit)"; #else wchar_t *window_title = L"PlaatCode (32-bit)"; #endif #define WINDOW_WIDTH 1280 #define WINDOW_HEIGHT 768 #define WIN...
/* spkr18.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 integer c__2 = 2; static integer c__6 = 6; /* $Procedure SPKR18 ( Read SPK record from segment, type 18 ) */...
/* $OpenBSD: file.c,v 1.38 2019/06/28 13:34:58 deraadt Exp $ */ /* $NetBSD: file.c,v 1.11 1996/11/08 19:34:37 christos Exp $ */ /*- * Copyright (c) 1980, 1991, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modific...
#include "great_burst.h" #include "background.c" #include "great_burst_level.c" #include "pix/great_burst_bg_data.c" #include "pix/great_burst_bg_map.c" #include "pix/great_burst_bg_map_clear.c" #include "pix/great_burst_fg_data.c" #include "pix/great_burst_fg_map.c" Ball ball; Paddle paddle; static UINT8 current...
/* * FreeRTOS version 202012.00-LTS * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. 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 without restriction,...
/** Adapted from: https://github.com/sparkfun/SparkFun_VCNL4040_Arduino_Library/blob/master/src/SparkFun_VCNL4040_Arduino_Library.cpp Development environment specifics: Azure Sphere 10.9 Original comment: This is a library written for the VCNL4040 distance sensor. By <NAME> @ SparkFun Electronics, April 1...
/* * (C) Copyright 2006-2009 * <NAME>, DENX Software Engineering, <EMAIL>. * * (C) Copyright 2006 * <NAME>, AMCC/IBM, <EMAIL> * <NAME>, AMCC/IBM, <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 Fr...
/*Exercise 1: Heuristic Search Implement A* for the 8-puzzle. Measure and compare the runtimes and the # of nodes expanded using the following 3 heuristics: a) No heuristic ( h(s) = 0 for all states ) b) Misplaced tile count heuristic c) Manhattan distance Evaluate each of the above heuristics using at least 100 ran...
/* * acq_debug.h * * This file is part of YAOS and is licensed under the MIT License. * * Created on: 19 Jul 2020 * Author: Tom */ #include <stdint.h> #include <stdlib.h> #include <stdbool.h> #include <math.h> #include <errno.h> #include <malloc.h> #include "acquire.h" #include "acq_debug.h" #include "ha...
/* * http_resp.c -- routines for reading http_responses * Created: <NAME> <<EMAIL>> 9-Aug-1998 * * Copyright (C) 1998 Free Software Foundation * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Softwa...
/* * Copyright 2002-2004, Instant802 Networks, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/netdevice.h> #include <linux/types.h> #include <linux/sl...
// This is an open source non-commercial project. Dear PVS-Studio, please check // it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include <assert.h> #include <inttypes.h> #include <stdbool.h> #include "nvim/ascii.h" #include "nvim/assert.h" #include "nvim/change.h" #include "nvim/indent...
// lwesp_dev_os.cpp : Defines the entry point for the console application. // #include <string.h> #include "windows.h" #include "lwesp/lwesp.h" #include "lwesp/apps/lwesp_mqtt_client_api.h" #include "lwesp/apps/lwesp_cayenne.h" #include "mqtt_client.h" #include "mqtt_client_api.h" #include "http_server.h" #include "s...
// Copyright 2015-2018 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
/* * Copyright 2021 NAVER Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
#include "draw.h" #include <assert.h> #include <math.h> #include <pango/pango-attributes.h> #include <pango/pangocairo.h> #include <pango/pango-font.h> #include <pango/pango-layout.h> #include <pango/pango-types.h> #include <stdlib.h> #include <inttypes.h> #include <glib.h> #include "dunst.h" #include "icon.h" #inclu...
/* ----------------------------------------------------------------------------- PicoModel Library Copyright (c) 2002, <NAME> & seaw0lf All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2010-2014 Intel Corporation */ #include <string.h> #include <stdio.h> #include <stdint.h> #include <inttypes.h> #include <assert.h> #include <sys/queue.h> #include <rte_atomic.h> #include <rte_common.h> #include <rte_cycles.h> #include <rte_per_lcore.h> #inclu...
/** * @file * * @author <EMAIL> * * Copyright (c) 2015 Battelle Memorial Institute. */ #include "config.h" #include <stdint.h> #include <stdlib.h> #include <emmintrin.h> #include "parasail.h" #include "parasail/memory.h" #include "parasail/internal_sse.h" #define NEG_INF (INT64_MIN/(int64_t)(2)) #define MAX(a...
/** * @file * * @date 11.10.10 * @author <NAME> * @author <NAME> */ #include <hal/reg.h> #include <util/math.h> #include <drivers/at91sam7s256.h> #include <drivers/nxt/lcd.h> #include <string.h> extern __u8 display_buffer[NXT_LCD_DEPTH+1][NXT_LCD_WIDTH]; static int display_x; static int display_y; __u8 font[N...
/* * Copyright (c) 2004-2006 <NAME> <<EMAIL>> * Copyright (c) 2006-2014 Sippy Software, Inc., http://www.sippysoft.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. Redistribution...
/* * @f ccn-lite-riot.c * @b RIOT adaption layer * * Copyright (C) 2011-14, <NAME>, University of Basel * Copyright (C) 2015, 2016, <NAME>, INRIA * * 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 not...
/* $ReOpenLDAP$ */ /* Copyright 1992-2018 ReOpenLDAP AUTHORS: please see AUTHORS file. * All rights reserved. * * This file is part of ReOpenLDAP. * * Redistribution and use in source and binary forms, with or without * modification, are permitted only as authorized by the OpenLDAP * Public License. * * A copy...
/*****************************************************************************/ /* */ /* macro.c */ /* */ ...
/** * Copyright 2021 University of Adelaide * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
/* Copyright (C) 1996-1997 Id Software, 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 2 of the License, or (at your option) any later version. This program is distribut...
/* * (C) Copyright 2005 * <NAME>, DENX Software Engineering, <EMAIL>. * * 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 Fo...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include "../algorithms/kmeans/kmeans_utils.h" #include "../algorithms/kmeans/kmeans_control.h" #include "../utils/matrix/csr_matrix/csr_load_matrix.h" #include "../utils/matrix/csr_matrix/csr_store_matrix.h" #include "../utils/matrix/csr_ma...
//Individual project <NAME> EMPR group 4 #define in_range(var, max) (var <= max) && (var >= 0) #define is_numchar(c) in_range((c-48),9) #define NEXTLINE "\r\n" #define CLEARLINE "\r \r" #define INPUTSIZE 36 //#include "GenericLibraries.c" #inclu...
/* ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses t...
/* * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * */ #define _FILE_OF...
/* * eCTF Collegiate 2020 MicroBlaze Example Code * Audio Digital Rights Management */ #include <stdio.h> #include "platform.h" #include "xparameters.h" #include "xil_exception.h" #include "xstatus.h" #include "xaxidma.h" #include "xil_mem.h" #include "util.h" #include "secrets.h" #include "xintc.h" #include "const...
// // Created by meteor on 2018/11/8. // #include "ppu.h" #include "nes.h" #include "port.h" static uint32_t g_palette[] = { 0xFF525252, 0xFFB40000, 0xFFA00000, 0xFFB1003D, 0xFF740069, 0xFF00005B, 0xFF00005F, 0xFF001840, 0xFF002F10, 0xFF084A08, 0xFF006700, 0xFF124200, 0xFF6D2800, 0xFF000000, 0xFF000000, 0xFF0...
#include "protein_model.h" #include "entry_dist.h" #include "logger.h" #include "nuclt_dist.h" #include "protein_model.h" #include "protein_node.h" #include <assert.h> #include <limits.h> #include <stdlib.h> #define LOGN2 (imm_float)(-1.3862943611198906) /* log(1./4.) */ #define LOG1 IMM_LPROB_ONE static imm_float co...
// // Created by <NAME> on 12/31/21. // #include "starter.h" #include "../graphic/GUI_init.h" #include "../graphic/GUI_gravity.h" #include "../characters/characters.h" #include "../graphic/MrJack_Map.h" #include "../gameplay/MrJack_Gameplay.h" #include "../audio/audio.h" #define SCREEN_WIDTH 1300 #define SCREEN_HEIGH...
// COMMON.h typedef struct sizebuf_s { const char *buffername; uint16 flags; byte *data; int maxsize; int cursize; } sizebuf_t; // CVARDEF.h typedef struct cvar_s { char *name; char *string; int flags; float value; struct cvar_s *next; } cvar_t; // USERCMD.h typedef struct usercmd_s { short lerp_msec; ...
/* Copyright (c) 2015 Arduino LLC. All right reserved. Copyright (c) 2015 Atmel Corporation/Thibaut VIARD. All right reserved. 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; eithe...
#include <stdlib.h> #include <stdio.h> #include <string.h> #define QTBi 19 #define QPBi 22 #define XBi 490 //#define YBi char * HELP = "Generator of Petri nets which are strong/exact computers of double exponent 2^2^k\n" "(Based on minimized and modified constructs of R.J.Lipton & J.Esparza)\n" ...
/* spr_defs.h -- Defines OR1K architecture specific special-purpose registers Copyright (C) 1999 <NAME>, <EMAIL> This file is part of OpenRISC 1000 Architectural Simulator. 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 ...
#include <stdio.h> #include <stdarg.h> // vargs #include <math.h> // sqrt #include <string.h> #include <ctype.h> // tolower #include <time.h> // clock, CLOCKS_PER_SEC #include <fftw3.h> // This uses the system FFTW (check with ldd) #include "mex.h" //int mxUnshareArray(mxArray *, int); #define __USE_OMP__ 0 #ifdef...
/* * diff_local.c: comparing local trees with each other * * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional informa...
/* * Copyright (C) 2017 BlueKitchen GmbH * * 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 follo...
/** */ #include <stdbool.h> #include <stdint.h> #include <math.h> #include "nrf.h" #include "mcp3912.h" #include "bmi160.h" #include "leds.h" #include "urf_star_protocol.h" #include "urf_timer.h" #include "imu_fusion.h" //openocd -f interface/stlink-v2.cfg -f target/nrf52.cfg //flash write_image erase...