text
stringlengths
3.12k
18.7k
/* ################################################################### ** Filename : main.c ** Project : SonicScrewdriver ** Processor : MKL02Z32VFM4 ** Version : Driver 01.01 ** Compiler : GNU C Compiler ** Date/Time : 2015-12-04, 13:49, # CodeGen: 0 ** Abstr...
/* test permutation.c */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include "permutation.h" #include "sym_gr_1_6.c" void test () { printf ("mapsto\n"); if (mapsto(3, s3[2], 1) != 2) printf ("Mapsto didn't work.\n"); if (mapsto(5, s5[10], 4) != 2) /*13524*/ printf ("Mapsto didn't work.\n")...
#include <sys/socket.h> #include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <netinet/in.h> #include <string.h> #include <edhoc/edhoc.h> #include <edhoc/creddb.h> #if defined(EDHOC_AUTH_X509_CERT) #if defined(MBEDTLS) #include <mbedtls/x509_crt.h> #else #error "No X509 backend enabled" #endif #else #...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file stm32f1xx_it.c * @brief Interrupt Service Routines. ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* this code is licensed as public domain */ #ident "@(#)M_DRAW:driver/hpgt.c - M_DRAW driver for HP Graphics Terminals" #ident "@(#)M_DRAW:author - <NAME>" #ident "@(#)M_DRAW:version - 1.0, Mar 1999" /* #define BSD 1 */ #include <stdio.h> #include <string.h> /* #include <stropts.h> */ #include <sys/ioctl.h> #includ...
/* C Source File: ADLIB ***************************************************** Author: <NAME> Last Amended: 27th March, 1993 Description: Low-level interface to the Adlib (or compatible) FM sound card. All information gleaned from <NAME>'s "Programming the Adlib/Sound Blaster FM Music Chips"....
/**************************************************************************** * * Copyright 2017 Samsung Electronics All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at...
/*- * Copyright (c) 2003-2012 Broadcom Corporation * All Rights Reserved * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this...
#include <stdlib.h> #include <string.h> #include "feature/alias.h" #include "log.h" #include "libvmaf/libvmaf.h" #include "model.h" static enum VmafOutputFormat log_fmt_map(const char *log_fmt) { if (log_fmt) { if (!strcmp(log_fmt, "xml")) return VMAF_OUTPUT_FORMAT_XML; if (!strcmp(log...
// LD_PRELOAD wrapper to print the (estimated) peak memory usage #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <dlfcn.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <stdint.h> #include <stdlib.h> #include <malloc.h> static void *(*origmalloc )(size_t); static void *(*origcall...
/* T E X T U R E S C A L E . C * BRL-CAD * * Copyright (c) 1997-2016 United States Government as represented by * the U.S. Army Research Laboratory. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2...
/* Copyright (c) 2002, <NAME> Part of Radeon kernel driver PCI GART. Currently, we use PCI DMA. Changing to AGP would only affect this file, but AGP-GART is specific to the chipset of the motherboard, and as DMA is really overkill for 2D, I cannot bother writing a dozen of AGP drivers just to gain little ext...
/********************************************************************************* * Copyright (c) 2018 * * <NAME> and <NAME> * * <<EMAIL>>, <<EMAIL>> * * University of Basel, Switzerland ...
/* * This file is part of libbluray * Copyright (C) 2009-2012 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your o...
/* $OpenBSD: amphy.c,v 1.18 2008/09/08 07:38:33 brad Exp $ */ /* * Copyright (c) 1997, 1998, 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 ...
/************************************************************************ ** MODULE: MSXTYPES.H ** PROJECT: EPANET-MSX ** DESCRIPTION: Global constants and data types used by the EPANET ** Multi-Species Extension toolkit. ** COPYRIGHT: Copyright (C) 2007 <NAME>, <NAME>, and <NAME>...
/* * utils.c * * Created on: Mar 12, 2013 * Author: reschly * * http://www.opensource.apple.com/source/OpenSSL/OpenSSL-22/openssl/demos/x509/mkcert.c used as a guide */ #include "certgeneration.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <openssl/pem.h> #inclu...
/******************************Module*Header**********************************\ * * ******************* * * D3D SAMPLE CODE * * ******************* * * Module Name: d3dline.c * * Content: Direct3D hw line rasterization code. * * ...
/* Copyright (c) 2012 <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: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following d...
// Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers // Copyright (c) 2014-2018, The Monero Project // Copyright (c) 2014-2018, The Aeon Project // Copyright (c) 2018, The TurtleCoin Developers // Copyright (c) 2018-2020, The Qwertycoin Project // // This file is part of Qwertycoin. // // Qwer...
// Copyright (C) <NAME> <<EMAIL>> // SPDX-License-Identifier: Apache-2.0 #include <stdio.h> #include <errno.h> #include <libxnvme.h> #include <libxnvme_spec_pp.h> #include <libxnvme_nvm.h> #include <libxnvme_znd.h> #include <libxnvmec.h> struct cb_args { uint64_t zslba; uint32_t ecount_offset; uint32_t ecount; uin...
/* * Copyright 2021 <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 * notice, this list of conditions and the following di...
/* * In-band packet stack. * * Used for transfering data (such as change in window size) to remote peer. */ #include "gs-common.h" #include <gsocket/gsocket.h> #include "gsocket-engine.h" #include "gs-externs.h" int GS_PKT_init(GS_PKT *pkt) { memset(pkt, 0, sizeof *pkt); return 0; } int GS_PKT_close(GS_PKT *pk...
/* * Copyright Inria: * <NAME> * * jfhren[at]gmail[dot]com * michael[dot]hauspie[at]lifl[dot]com * * This software is a computer program whose purpose is to read, analyze, * modify, generate and write Java Card 2 CAP file. * * This software is governed by the CeCILL-B license under French * law and * abi...
/* $OpenBSD: palm_lcd.c,v 1.2 2009/09/09 11:34:02 marex Exp $ */ /* $NetBSD: lubbock_lcd.c,v 1.1 2003/08/09 19:38:53 bsh Exp $ */ /* * Copyright (c) 2002, 2003 Genetec Corporation. All rights reserved. * Written by <NAME> for Genetec Corporation. * * Redistribution and use in source and binary forms, with or wit...
// MIT License // Copyright (c) 2017 <NAME>(신진환) // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, mer...
#ifdef HAVE_CONFIG_H #include <config.h> #endif // for asprintf #define _GNU_SOURCE #include <errno.h> #include <limits.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <m4ri/m4ri.h> #include <openssl/rand.h> typedef struct { mzd_t* x0; mzd_t* x1; mzd_t* x2; mzd_t* mask; } mask_t; ty...
#include <assert.h> #include <inttypes.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define _PDCLIB_FLT_BIAS 127 #define _PDCLIB_DBL_BIAS 1023 #define _PDCLIB_FLT80_BIAS 16383 #define _PDCLIB_FLT128_BIAS 16383 char * nibbles[] = { "0000", "0001", "0010", "0011", "0100", "0...
#include "geminc.h" #include "gemprm.h" #include "writepng.h" #ifdef UNDERSCORE #define gdlgin gdlgin_ #define gdhgin gdhgin_ #define freeimg freeimg_ #endif #define MAXSTR 512 #define DEFBAND 25 /* * These pointers are defined in the IM library * * <NAME>/Unidata 11/13 Changed num < ncal to num < ncal+1 * ...
/* packet-gcpast.c * Routines for GCPAST ion * Copyright 2007, <NAME> <<EMAIL>> * * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as publi...
/*! ***************************************************************************** * @file: ISM43340.c * @brief: eS-Wifi module * @version: $Revision$ * @date: $Date$ *----------------------------------------------------------------------------- * Copyright (c) 2016-2017 Analog Devices, Inc. All rights r...
#include "dac.h" #include "input.h" #include "variables.h" #include "wavetable.h" #include "cycle_speed.h" #include "sequencer.h" #include <avr/pgmspace.h> void spi_init() { //Enable SPI, Master, set clock rate fck/2 = 8MHz SPCR = (1<<SPE)|(1<<MSTR); SPSR = (1<<SPI2X); } inline uint8_t trans_spi(uint8_t data) ...
/* * CMU 15513 * CacheLab part A * Name: <NAME> * AndrewID: yuchenca * * csim.c - Cache Simulator * There are 3 main structs: cache_line for cache memory, cache_input for * storing arguments from prompt, csim_stats_t for counting the number of * different data. The pipeline goes: * 1. Initialization of...
/* chkparse - generate PSIPRED compatible mtx file from BLAST+ checkpoint file */ /* V0.2 */ /* Copyright (C) 2010 <NAME> */ #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <math.h> #include <string.h> #define MAXSEQLEN 65536 #define EPSILON 1e-6 #define FALSE 0 #define TRUE 1 #define SQR(x) (...
/* $Id$ *====================================================================== * * DISCLAIMER * * This material was prepared as an account of work sponsored by an * agency of the United States Government. Neither the United States * Government nor the United States Department of Energy, nor Battelle, * nor a...
/* @(#)$RCSfile: vecfonts.h,v $ $Revision: 1.2 $ $AVS$ $Date: 1995/04/10 11:55:22 $ */ /* Copyright (c) 1993 by Advanced Visual Systems Inc. All Rights Reserved This software comprises unpublished confidential information of Advanced Visual Systems Inc. and may not be used, copied or made ...
/** * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. * * SPDX-License-Identifier: BSD-3-Clause */ #include <stdio.h> #include <math.h> #include "pico/stdlib.h" #include "hardware/pio.h" #include "hardware/gpio.h" #include "hardware/dma.h" #include "st7789_lcd.pio.h" #define SCREEN_WIDTH 240 #define SCREEN_HEIGH...
// --------------------------------------------------------------------------- // Copyright <NAME> 2010 - 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt...
/* Copyright 2018 eomain this program is licensed under the 2-clause BSD license see COPYING for the full license info THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILI...
/* Copyright (C) 2013-2016, The Regents of The University of Michigan. All rights reserved. This software was developed in the APRIL Robotics Lab under the direction of <NAME>, <EMAIL>. This software may be available under alternative licensing terms; contact the address above. Redistribution and use in source and bina...
/***************************************************************************//** * @file dotdot-mfg-certs.c * @brief Dotdot MFG Certificates HAL APIs ******************************************************************************* * # License * <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b> *******...
#define SIZE 256 // besarnya buffer untuk struct #define ESC 27 #define RED 12 #define WHITE 15 // <NAME> <2006577605> // untuk mempermudah penamaan, // kumpulan soal dan jawaban dinamakan section struct Soal_N_Jawaban{ char soal[SIZE]; char jawaban_a[SIZE]; char jawaban_b[SIZE]; char jawaban_c[SIZE]; char ...
#include "camera.h" #include <stdlib.h> /* for malloc(), free() */ #include <math.h> /* atanf() sinf()*/ #define IMPL(p) ((CAMERA_CONTEXT_IMPL *)(p)) typedef struct _tagImplCameraContext { FLOAT_VECTOR3 eye; FLOAT_VECTOR3 at; float fovY; float aspect; float near; float far; FLOAT_MATRIX view; FLOAT_MATRIX pr...
/*=========================================== GRRMOD - Test Code - ============================================*/ #include <grrlib.h> #include <grrmod.h> #include <stdlib.h> #include <wiiuse/wpad.h> // Image file #include "Impact_9_png.h" // Mod file #include "music_mp3.h" #include "music_669.h" #inc...
/* * tracebuf.c * * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * m...
/* * main.c * * MESH Main File * main.c contains the GUI elements needed for the MESH frontend. * Yes, there are globals. Please don't kill me, Mateo. * * The real mathematical parsing occurs within the other files, and is linked * here solely by the "eval" function, which takes in an input string, and returns ...
/******************************************************************************\ * * * Copyright (c) 2003, The Regents of the University of California * * See the file COPYRIGHT for a complete copyright notice and license. ...
#include "erat_sieve.h" #include <limits.h> #include <stdio.h> typedef struct _int_it { uint bit_number; // total index uint index; // index in the primes array uint bit; // bit inside the array[index] } int_it; #define ITER(i) i##_it #define DECLARE_INT_IT(iter) int_it ITER(iter) #define BIT_NUMBER(i) ITER(i).bi...
/* * $Id: node_composite_huecorrect.c 39944 2011-09-05 22:04:30Z gsrb3d $ * * ***** BEGIN GPL LICENSE BLOCK ***** * * 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 ...
#pragma config(I2C_Usage, I2C1, i2cSensors) #pragma config(Sensor, dgtl1, enc4, sensorQuadEncoder) #pragma config(Sensor, dgtl3, enc1, sensorQuadEncoder) #pragma config(Sensor, dgtl5, enc3, sensorQuadEncoder) #pragma config(Sensor, dgtl7, enc2, sensorQuadEncoder) #pragma...
// A simple C example to play a mono or stereo, 16-bit 44KHz // WAVE file using ALSA. This goes directly to the first // audio card (ie, its first set of audio out jacks). It // uses the snd_pcm_writei() mode of outputting waveform data, // blocking. // // Compile as so to create "alsawave": // gcc -o alsawave alsawave...
/* main.arm9.c By <NAME> (Chishm) All resetMemory and startBinary functions are based on the MultiNDS loader by Darkain. Original source available at: http://cvs.sourceforge.net/viewcvs.py/ndslib/ndslib/examples/loader/boot/main.cpp License: NitroHax -- Cheat tool for the Nintendo DS Copyright (C) 200...
/*- * Copyright (c) 2014 <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...
/* * Copyright (c) 2015 <NAME> * * Use of this source code is governed by a MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT */ #include <assert.h> #include <lk/trace.h> #include <lk/debug.h> #include <stdint.h> #include <stdlib.h> #include <arch/riscv.h> #incl...
/* * EDID (Extended Display Information Data) parsing, taken from libweston's * compositor-drm.c; original author information below. * * EDID is an extensible binary block provided by monitors to describe their * physical capabilities, preferred resolutions, etc. The most common * extension to EDID is CEA. There ...
#include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "io.h" #include "../port/error.h" #include "flashif.h" typedef struct Nandtab Nandtab; struct Nandtab { short manufacturer; uchar id; uchar l2bytesperpage; ushort pagesperblock; ushort blocks; uchar tPROGms; us...
/** * 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...
/// MentOS, The Mentoring Operating system project /// @file kernel.c /// @brief Kernel main function. /// @copyright (c) 2019 This file is distributed under the MIT License. /// See LICENSE.md for details. #include "kernel.h" #include "zone_allocator.h" #include "gdt.h" #include "syscall.h" #include...
/**************************************************************** * Name : <NAME> * * Class : CSC 415 * * Date : 10/15/18 * * Description : Writting a simple bash shell program * ...
/* popen.c -- popen/pclose for OS/2. */ /* Set to 0 for distribution. Search for "DIAGNOSTIC" in the code to see what it's for. */ #define DIAGNOSTIC 0 #include <process.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <ctype.h> #include <string....
/** * Copyright (C) 2022 <NAME>, all xrdp contributors * * 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 appli...
/************************************************ ********************** *** CNatural: Remote embed systems control. *** * General purpose utility functions. ********************** Copyright 2016 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with...
/* * A reseter that blocks TCP communication to a given service. * It sniffs all traffic for packets that match the given IP and port, * And it will send out reset packets to both the service and the sender * of packets to terminate the communication. */ #include <signal.h> #include <sys/wait.h> #include <l...
/* * Copyright 2000, International Business Machines Corporation and others. * All Rights Reserved. * * This software has been released under the terms of the IBM Public * License. For details, see the LICENSE file in the top-level source * directory or online at http://www.openafs.org/dl/license10.html */ /*...
#include <stddef.h> #include "gpio.h" #include "uart.h" // UART BUSY TRANSMITTING #define UART_BUSY_TX (1 << 3) //Rx FIFO empty #define RX_FIFO_EMPTY (1 << 4) // Tx FIFO full #define TX_FIFO_FULL (1 << 5) // Rx FIFO full #define RX_FIFO_FULL (1 << 6) // Tx FIFO empty #define TX_FIFO_EMPTY (1<< 7) // Wait for spa...
#include "babble/error.h" #include "babble/entities.h" #include "babble/routes.h" #include "gateway.h" #include "payload.h" #include "http.h" #include "json.h" #include "util.h" #include <uwsc.h> #include <pthread.h> #include <jansson.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> ...
// // MLMacroColor.h // Mateline // // Created by sprite on 2018/7/18. // #pragma mark - 颜色 // 颜色的定义 #define RGBA(r, g, b, a) [UIColor colorWithRed:(r/255.0) green:(g/255.0) blue:(b/255.0) alpha:a] #define RGB(r, g, b) RGBA(r, g, b, 1.0) #define HEX_COLOR(hexValue) [UIColor colorWithRed:((float)((hexValue & 0xFF000...
/* Copyright (c) 2009-2012, Structural Bioinformatics Laboratory, Boston University 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 notic...
#include "spinc.h" #include "spmpool.h" #include "spnet.h" #include "spdb.h" #include "sptextb.h" #include "sptglobal.h" /* define */ #define CREAT_VIEW_ERRT 0x3 /* extern */ extern inline int txbug_tran_db_news(void *dbHandler, BUFF *pBuff); /*------------------------------------------ Part Three: Database opera...
/* * Copyright (C) 2013 Texas Instruments Incorporated * * 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 condit...
/* SPIM S20 MIPS simulator. Code to maintain symbol table to resolve symbolic labels. Copyright (c) 1990-2010, <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 ...
#include "rt.h" extern node * will_after_found_id; void _recieve_pingreq(){ if(USART_ERR_NOMESSAGE){ printf("wrong situation"); } // printf("begin\n %s \nend",_usart_recv_packet); if (usart_flag1==1){ recv_process( _usart_recv_packet1); memset(_usart_recv_packet1, 0, sizeof(_usart_recv_packet1)); ...
/* GStreamer RIST plugin * Copyright (C) 2019 Net Insight AB * Author: <NAME> <<EMAIL>> * * 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 Software Foundation; either * version 2 of the License, or...
// Copyright 2017 ETH Zurich and University of Bologna. // Copyright and related rights are licensed under the Solderpad Hardware // License, Version 0.51 (the “License”); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // http://solderpad.org/licenses/SHL-0....
/* Loosely based on the code in a Knol by <NAME>: ** ** http://knol.google.com/k/roberto-garca-lpez/creating-elf-relocatable-object-files/1ohwel4gqkcn2/3# ** ** Note: This file is released under the terms of the LGPL2 license. */ #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <l...
/* * Copyright 2020 Makani Technologies LLC * * 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 ...
/* * This config file is for the Sandisk Sansa e200 */ /* For Rolo and boot loader */ #define MODEL_NUMBER 20 #define MODEL_NAME "Sandisk Sansa c200 series" #define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32) /* define this if you have recording possibility */ #define HAVE_RECORDING #define...
/* * $QNXLicenseC: * Copyright 2007, 2008, QNX Software Systems. * * Licensed under the Apache License, Version 2.0 (the "License"). You * may not reproduce, modify or distribute this software except in * compliance with the License. You may obtain a copy of the License * at: http://www.apache.org/lic...
/* * Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2014 * The President and Fellows of Harvard College. * * 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 r...
#include <ctype.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include "dfcc.h" // Create a new token. Token *new_token(TokenKind kind, const char *str, int len) { Token *tok = calloc(1, sizeof(Token)); tok->kind = kind; tok->str = str; tok->len = len; tok->origin = stream_head(); return ...
/* || || @file Keypad.cpp || @version 3.1 || @author <NAME>, <NAME> || @contact <EMAIL>, <EMAIL> || || @description || | This library provides a simple interface for using matrix || | keypads. It supports multiple keypresses while maintaining || | backwards compatibility with the old single key library. || | It also su...
#include "game.h" #include "sprite.h" #include "generate.h" #include "render.h" #include "levels/start.h" #include "levels/stairs.h" #include "levels/pword.h" #include "levels/bridge.h" #include "levels/maze.h" #include "levels/death.h" #include "levels/end.h" #include "levels/maths.h" #include "levels/stones.h" #inclu...
#define _DEFAULT_SOURCE #include <stdio.h> #include <stdlib.h> #include <stddef.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <termios.h> #include <signal.h> #include <errno.h> #include <setjmp.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <sys/wait.h> #include <sys/stat.h> #include...
/////////////////////////////////////////////////////////////////////////////// // // IMPORTANT NOTICE // // The following open source license statement does not apply to any // entity in the Exception List published by FMSoft. // // For more information, please visit: // // https://www.fmsoft....
/* Copyright (C) 2000, Dr. <NAME> * * This code is provided as part of the book entitled "The Combined * Finite Discrete Element Method". It is distributed WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * PARTICULAR PURPOSE. Inclusion of a part or whole of this ...
#include <xmmintrin.h> #include "msutil.h" // sserank16d: returns a ranking vector such that keys[rank[i]] <= keys[rank[i+1]]. // Order-preserving over duplicates. //NOTE: This unrolling and byte-switching leaves ssesrank16d speed // only 3 x qsort and 2 x insort. ssesort16d is 10 x qsort. #define LSB(x) (*(uint8_t...
/* * 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...
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYIN...
/*! * p25519.h - p25519 field element for libtorsion * Copyright (c) 2020, <NAME> (MIT License). * https://github.com/bcoin-org/libtorsion */ #if defined(TORSION_HAVE_INT128) typedef uint64_t p25519_fe_word_t; #define P25519_FIELD_WORDS 5 #include "p25519_64.h" #else typedef uint32_t p25519_fe_word_t; #define P255...
/** * ***************************************************************************** * @file lhal_bl702_spi.c * @version 0.1 * @date 2020-07-14 * @brief * ***************************************************************************** * @attention * * <h2><center>&copy; COPYRIGHT(c) 2020 Bouffalo Lab<...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <arpa/inet.h> #include <linux/if_packet.h> #include <net/ethernet.h> #include <net/if.h> #include <linux/ip.h> #include <linux/udp.h> #include <linux/tcp.h> void parse_mac(void *v, ...
/* * cluster.c * * Created on: 1 Jul 2020 * Author: computer */ #include "spmat_lists.h" #include "set_of_sets.h" #include "b_matrix.h" #include "norm_1.h" #include "modularity_maximization.h" #include "power_iteration.h" #include "sub_graph.h" #include "read_write_graph.h" #include <stdlib.h> #include <std...
#include "XSbench_header.h" void run_event_based_simulation(Inputs in, GridPoint * energy_grid, NuclideGridPoint ** nuclide_grids, int * num_nucs, int ** mats, double ** concs, int mype, unsigned long long * vhash_result) { if( mype == 0) printf("Beginning event based simulation...\n"); unsigned long long vhash =...
#include <tree_sitter/parser.h> #include <wchar.h> #include <wctype.h> enum TokenType { IMPLICIT_TIMES, }; struct NamedLetter { const int32_t *name; const int32_t unicode; }; const size_t NUM_NAMED_LETTERS = 37; const struct NamedLetter NAMED_LETTERS[37] = { {L"Plus", L'+'}, {L"Minus", L'-'}, {L"Pl...
/* $NetBSD: vm_meter.c,v 1.20 1997/09/07 19:31:52 pk Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions ...
/* * Hisilicon K3 SOC camera driver source file * * Copyright (C) Huawei Technology Co., Ltd. * * Author: * Email: * Date: 2014-11-15 * * 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 Founda...
#include <cpu.h> #include <string.h> #include <debug.h> #include <pic.h> typedef struct idt_entry { uint16_t base_low; uint16_t selector; uint8_t ist; uint8_t flags; uint16_t base_mid; uint32_t base_high; uint32_t zero; } __attribute__((packed)) idt_entry_t; typedef struct idt_ptr { u...
// struct.h // LMNO LALR(1) parser generator // Principal data structures // // Copyright ©2010 <NAME> // (Based on LEMON v1 parser generator, public domain) ////////////////////////////////////////////////////// typedef enum {B_FALSE=0, B_TRUE} Boolean; /* Symbols (terminals and nonterminals) of the grammar are sto...
#include "hss_thread.h" #include <pthread.h> #include <string.h> /* * This is an implementation of our threaded abstraction using the * POSIX pthread API * * C11 has a similar (but not precisely identical) API to the one that POSIX * defines (at least for what we do; all we need is thread create/join and * mute...
/* model.c * SRE, Fri May 27 11:25:06 1994 * * Allocation, free'ing, initialization of the SCFG */ #include <stdio.h> #include <stdlib.h> #include <limits.h> #include <math.h> #include "pknots.h" #include "pk_model.h" #include "pk_rnaparam.h" #include "pk_util.h" #include <easel.h> void AllocBaseFreq(float **r...