text
stringlengths
5.8k
28.2k
#include "config.h" #include <errno.h> #include <fcntl.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <sys/stat.h> #include <sys/types.h> #include <time.h> #include <unistd.h> #if HAVE_LINUX_EXT2_FS_H #include <linux/ext2_fs.h> #endif #if HAVE_SYS_VF...
/* Copyright (c) 2020 <NAME>. All Rights Reserved. See LICENCE file for details. */ #include <unistd.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <string.h> #include <sys/time.h> #include <sys/mman.h> #include <sys/stat.h> #include <fcntl.h> #include <curses.h> #inclu...
/**************************************************************************//** * @file main.c * @version V1.00 * $Revision: 6 $ * $Date: 18/07/20 3:57p $ * @brief Configure EBI interface to access BS616LV4017 (SRAM) on EBI interface. * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2018 Nuvoton...
// Elliott 900 Paper Tape Station emulator for Raspberry Pi Pico // Copyright (c) <NAME> - 26/06/2021 // MIT Licence. // Emulator for Elliott 900 Series computer Paper Tape Station. // Does not implement 'undefined' effects. // Has simplified handling of priority levels and initial orders. // Only supports paper ta...
#include <stdlib.h> #include <string.h> #include <stdio.h> #include <assert.h> #include <signal.h> #include <stdbool.h> #include "crypto.h" //#include "monocypher.h" #include "argon2.h" #include "blake2.h" #if LUA_VERSION_NUM <= 501 static void luaL_setmetatable (lua_State *L, const char *tname) { luaL_checkstack(L...
/* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */ /* ** Alquimia Copyright (c) 2013-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. ** *...
#include <stdint.h> #include <string.h> #include <stdio.h> #include "heap.h" #include "cnrfb.h" #include "mathfuncts.h" #include "fps.h" struct FPS FPSs[MAX_RFB_CONNS]; uint8_t RankingHeap[MAX_RFB_CONNS]; uint8_t RankingHeapPlace; uint16_t PlayerPoints[MAX_RFB_CONNS]; //Separate so it can be used with the heap for ...
/*- * Copyright (c) 2014 The FreeBSD Foundation * Copyright (c) 2018 iXsystems, Inc * All rights reserved. * * This software was developed by <NAME> under * the sponsorship of the FreeBSD Foundation and * Rubicon Communications, LLC (Netgate). * Redistribution and use in source and binary forms, with or without...
// DOM-IGNORE-BEGIN /******************************************************************************* * Copyright (C) 2020 Microchip Technology Inc. and its subsidiaries. * * Subject to your compliance with these terms, you may use Microchip software * and any derivatives exclusively with Microchip products. It is ...
#include <stdbool.h> #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include <jwt.h> // Module structures typedef struct { ngx_str_t key; ngx_flag_t issue; ngx_uint_t issue_algorithm; size_t issue_buffer_size; ngx_flag_t verify; } ngx_http_jwt_conf_t; typedef struct { size_t length; ...
/* * This file is part of the coreboot project. * * Copyright (C) 2012 secunet Security Networks AG * * 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; version 2 of * the License. * * Th...
/* * Copyright (c) 2008 <NAME> * Copyright (c) 2005-2006 <NAME> * Modified for Waspmote by Libelium, 2018 * * This program 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...
/* * Copyright (c) 1988 University of Utah. * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * the Systems Programming Group of the University of Utah Computer * Science Department and <NAME>. * * %...
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < ...
/********************************************************************************************************* * Software License Agreement (BSD License) * * Author: <NAME> <<EMAIL>> * * * * Copyright (c) 2010, <NAME>, Teraoka Laboratory (Keio...
/* * Copyright (c) 2003 <NAME> * Copyright (c) 2003 Massachusetts Institute of Technology * * 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 ...
/* * Copyright © 2006 <NAME> * Copyright © 2011 <NAME> * * 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 perm...
// Copyright 2019-2021 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...
/* ** mouse:~ppr/src/pprdrv/pprdrv_writemon.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 m...
/* --------------------------------------------------------------- This source contains GTAIV/EFLC PC script functioning codes. This file is a part of SC-CL Project (C) * AUTHORS : * <NAME> * <NAME> Created Some Natives using Existing Game Natives for Convenience. Edited by SG a.k.a. Gaming...
/* SHA-1 in C By <NAME> <<EMAIL>> 100% Public Domain ----------------- Modified 7/98 By <NAME> <<EMAIL>> Still 100% Public Domain Corrected a problem which generated improper hash values on 16 bit machines Routine SHA1Update changed from void SHA1Update(SHA1_CTX* context, unsigned char* data, unsigned int le...
/******************************************************************************* * * Font metric data for Symbol * * Copyright 2001 <NAME> * * * See dlls/wineps/data/COPYRIGHTS for font copyright information. * */ #include "psdrv.h" #include "data/agl.h" /* * Glyph metrics */ static const AFMMETRICS met...
/* BEGIN_ICS_COPYRIGHT5 **************************************** 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 2008-2012 VMware, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restrict...
/* * Copyright (c) 1992, 1993, 1994, 1995, 1996, 1997 * 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: (1) source code distributions * retain the above copyright notice and this ...
/** ****************************************************************************** * @file Camera/Camera_To_USBDisk/Src/main.c * @author MCD Application Team * @brief This application describes how to configure the camera in continuous mode and save picture under USBDisk. *****************...
/* * Copyright (c) 2009, Google Inc. * All rights reserved. * * Copyright (c) 2013, 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...
/* * Copyright 2011 <NAME> for CodeWeavers * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This l...
/* * Copyright (c) 2011, <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 ...
/* Unix SMB/CIFS implementation. Authenticate against a remote domain Copyright (C) <NAME> 1992-1998 Copyright (C) <NAME> 2001 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;...
/* Copyright 2008-2012 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 distribution of free softw...
/* * Copyright 2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
/* 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. */ /***************************************...
// Option rom scanning code. // // Copyright (C) 2008 <NAME> <<EMAIL>> // Copyright (C) 2002 MandrakeSoft S.A. // // This file may be distributed under the terms of the GNU LGPLv3 license. #include "bregs.h" // struct bregs #include "config.h" // CONFIG_* #include "farptr.h" // FLATPTR_TO_SEG #include "hw/pci.h" // ...
/* Copyright (c) 2014 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. */ /* Hardware initialization and common functions */ #include "adc.h" #include "adc_chip.h" #include "common.h" #include "cpu.h" #include "regist...
/* main.c Super Mario Clone Created by <NAME> on 04/06/20. Copyright © 2020 <NAME>. All rights reserved. CHANGELOG : - 31-7-2020 * Added Ray Collision functions to the project - 1-8-2020 * Integrating Collison System * Refactoring Input system such that it complements the collision system *...
// // renderer.c // C-ray // // Created by <NAME> on 19/02/2017. // Copyright © 2017-2020 <NAME>. All rights reserved. // #include "../includes.h" #include "../datatypes/image/imagefile.h" #include "renderer.h" #include "../datatypes/camera.h" #include "../datatypes/scene.h" #include "pathtrace.h" #include "../ut...
/* $NetBSD: events.c,v 1.5 1997/10/13 22:05:26 cjs Exp $ */ /* * Copyright (c) 1980, 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: * ...
/* * Copyright 2019, Cypress Semiconductor Corporation or a subsidiary of * Cypress Semiconductor Corporation. All Rights Reserved. * * This software, associated documentation and materials ("Software") * is owned by Cypress Semiconductor Corporation, * or one of its subsidiaries ("Cypress") and is protected by ...
/*! @file $Source: /cvs/ics/MakeTools/patch_version/patch_version.c,v $ $Name: $ $Revision: 1.14 $ $Date: 2015/01/22 18:03:59 $ @brief Utility to manage version and branding strings in executable code */ /* BEGIN_ICS_COPYRIGHT7 **************************************** Copyright (c) 2015-2020, Intel Corpora...
/* * Copyright (c) 2010-2018 TIBCO Software Inc. * Licensed under a BSD-style license. Refer to [LICENSE] * For more information, please contact: * TIBCO Software Inc., Palo Alto, California, USA */ /* * This is a sample of a basic C FTL subscriber program which receives the * requested number of messages and t...
/* $OpenBSD: canohost.c,v 1.67 2013/05/17 00:13:13 djm Exp $ */ /* * Author: <NAME> <<EMAIL>> * Copyright (c) 1995 <NAME> <<EMAIL>>, Espoo, Finland * All rights reserved * Functions for returning the canonical host name of the remote site. * * As far as I am concerned, the code I have written f...
/* * MDH WCET BENCHMARK SUITE. File version $Id: edn.c,v 1.1 2005/11/11 * 10:14:10 ael01 Exp $ */ /************************************************************************ * Simple vector multiply * ************************************************************************/ /* * Changes: JG 2005/12/22: Inserted ...
/* * fy-utf8.c - utf8 handling methods * * Copyright (c) 2019 <NAME> <<EMAIL>> * * SPDX-License-Identifier: MIT */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdbool.h> #include <string.h> #include <stdlib.h> #include <libfyaml.h> #include "fy-utf8.h" const int8_t fy_utf8_width_table[32] = { 1...
/* * 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...
//------------------------------------------------------------------------------ // Valos ideju ora es naptar kezeles // // File: MyCalendar.c //------------------------------------------------------------------------------ #include "MyCalendar.h" #include <string.h> #include <stdio.h> static void MyCalendar_lock(...
/* FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. *************************************************************************** * ...
// Copyright 2017 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 applicab...
/* * 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 */ #in...
#include "st_lib.h" #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <syslog.h> #include <signal.h> #include <math.h> #include <sys/resource.h> #include <sys/wait.h> #include <sys/types.h> #include <sys/stat.h> #include "iniparser.h" #define ANEMOMETER_HEIGHT 3.5 #define PR...
/*************************************************************************/ /* */ /* puny */ /* */ /* Routines whic...
/* The MIT License: Copyright (c) 2008-2010 <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, merge, publis...
/* ibm1130_sys.c: IBM 1130 simulator interface Based on PDP-11 simulator written by <NAME> Revision History 0.27 2005Mar08 - Added sca device 0.26 2002Apr24 - Added !BREAK in card deck file to stop simulator 0.25 2002Apr18 - Fixed some card reader problems. It starts the reader properly...
#include "MQTTPacket.h" #include "transport.h" #include "cycle_queue.h" #include "mqtt_app.h" #include "common.h" #include "slist.h" #define PING_TIME_INTERVAL 100 #define PING_TIME_MULTIPLE (1000/PING_TIME_INTERVAL) /******************************************************************************************...
/* * vic.c - A line-based VIC-I emulation (under construction). * * Written by * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * 16/24bpp support added by * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program...
/*============================================================================ FILE EVTprint.c MEMBER OF process XSPICE Copyright 1991 Georgia Tech Research Corporation Atlanta, Georgia 30332 All Rights Reserved PROJECT A-8503 AUTHORS 9/12/91 <NAME> MODIFICATIONS 7/11/2012 <NAME> Replace printf by...
/* Test51.c * * Test getcontext, setcontext, makecontext, and swapcontext system calls. * * Part of this test is somewhat based on the GNU GCC ucontext test set. * */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <ucontext.h> #include <math.h> #include...
/* INPUT EXAMPLE (UI & Input) This example is meant to show how to use the UI & Input system in conjunction with each other. CONTROLS: W / Up Arrow - Previous Element S / Down Arrow - Next Element Space / Left Mouse Click - Select Element Tab - Toggle text capture */ #include <stdio.h> #include <stdlib.h> #include ...
// Copyright Creative Computing, Morristown, New Jersey // C conversion by <NAME> from BASIC in "More BASIC // Computer Games" by Creative Computing. // http://csdb.dk/release/?id=95792 // bugfix applied: result[] in getInput() must be static // bugfix applied: fixed memory leaks caused by use of replace() // change...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <inttypes.h> #include <math.h> #include <unistd.h> #include <stdint.h> #define OFFSET 8 uint8_t subKeys[12]; int shift = 0; int Round; int Encryption; int Decryption; uint8_t ftable[256] = { 0xa3, 0xd7, 0x09, 0x83, 0xf8, 0x48, 0xf6, 0xf4, 0xb3, 0...
// // Created by <NAME> on 3/3/22. // #include <stdlib.h> #include "iterator.h" #include "hash_map.h" #include <string.h> #define DEFAULT_INITIAL_CAPACITY (1 << 4) #define DEFAULT_LOAD_FACTOR 0.75f #define MAXIMUM_CAPACITY (1 << 30) _Bool hash_map_compare(void *a, void *b) { return a == b; } _Bool hash_map_comp...
/* ui-diff.c: show diff between two blobs * * Copyright (C) 2006-2014 cgit Development Team <<EMAIL>> * * Licensed under GNU General Public License v2 * (see COPYING for full license text) */ #include "cgit.h" #include "ui-diff.h" #include "html.h" #include "ui-shared.h" #include "ui-ssdiff.h" struct object_i...
/* * WebM DASH Manifest XML muxer * Copyright (c) 2014 <NAME> * * This file is part of FFmpeg. * * FFmpeg 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...
/* * Copyright (C) 2020 <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 followi...
/* * gtf.c Generate mode timings using the GTF Timing Standard * * gcc gtf.c -o gtf -lm -Wall * * Copyright (c) 2001, <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: ...
#include <stdint.h> #include <stdbool.h> #include <uv.h> #include "nvim/os/uv_helpers.h" #include "nvim/os/job.h" #include "nvim/os/job_defs.h" #include "nvim/os/rstream.h" #include "nvim/os/rstream_defs.h" #include "nvim/os/wstream.h" #include "nvim/os/wstream_defs.h" #include "nvim/os/event.h" #include "nvim/os/eve...
//**********************************************************************; // Copyright (c) 2017-2018, Intel Corporation // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions...
/*- * Copyright (c) 2008 <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...
/** A gpio library for easier usage of GPIO ports Refreshed in F4 by <NAME> */ #include "gpio.h" const GPIO /*** GPIOA ***/ PA0 = {GPIOA, GPIO_Pin_0}, PA1 = {GPIOA, GPIO_Pin_1}, PA2 = {GPIOA, GPIO_Pin_2}, PA3 = {GPIOA, GPIO_Pin_3}, PA4 = {GPIOA, GPIO_Pin_4}, PA5 = {GPIOA, GPIO_Pin_5}, PA6 ...
/* GStreamer * Copyright (C) <2009> <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 (at your option) any later version. * ...
/*! @file * \brief THis file contains the main loop of pdgstrf which involves rank k * update of the Schur complement. * Uses 2D partitioning for the scatter phase. * * <pre> * -- Distributed SuperLU routine (version 4.1) -- * Lawrence Berkeley National Lab, Univ. of California Berkeley. * Octob...
//biLocationSolutions Processing for Sudoku. ******************** /* First, a cell that has a biLocation is set..If this solves the puzzle, this is the solution for that cell, and for the puzzle. If the setting leads to an impossibility, all the connected pairs, in the row, column, and region are equal to this...
// Written by <NAME> // Released under the MIT license // Build a reflow oven: https://whizoo.com #define CONTROLEO3_VERSION "1.5" // Fonts #define FONT_9PT_BLACK_ON_WHITE 0 #define FONT_12PT_BLACK_ON_WHITE 1 #define FONT_9PT_BLACK_ON_WHITE_FIXED 2 #define FONT_12PT_BLACK_ON_WHITE_FIXED 3 ...
/* * Created by nilsonneto on 1/14/16. * * Expectation-Maximization Algorithm * How to tackle: * * * * Author : <NAME> * History : 24.02.2000 file created * 30.06.2001 EM with resilient step width added * 05.01.2002 option evaluation added, output improved */ #include <stdio.h> #includ...
/*- * Copyright (c) 1998 - 2008 <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 lis...
/* client-tls13.c * * Copyright (C) 2006-2022 wolfSSL Inc. * * This file is part of wolfSSL. (formerly known as CyaSSL) * * wolfSSL 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 versio...
/* * Copyright (C) 2006 <NAME>, http://csl.sublevel3.org * Distributed under the GNU General Public License (GPL) v2. * * Project homepage on http://jp2a.sf.net * * $Id: image.c 455 2006-09-25 10:14:06Z csl $ */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #ifdef HAVE_STDLIB_H #include <stdlib.h> #undef HAV...
#include "Types.h" #include "AssemblyUtil.h" #include "Keyboard.h" #include "Queue.h" #include "Sync.h" // 출력 버퍼(Port 0x60) 수신 데이터 확인 BOOL kIsOutputBufferFull(void) { // 상태 레지스터(Port 0x64)에서 읽은 값의 출력 버퍼 상태 비트(BIT 0)가 // 1로 설정 되어 있는 경우, 출력 버퍼에 키보드가 전송한 데이터가 존재 return (kInPortByte(0x64) & 0x1); } // 입력 버퍼(P...
/******************************************************************************\ * * * SimpleCUDD library (www.cs.kuleuven.be/~theo/tools/simplecudd.html) * * SimpleCUDD was developed at Katholieke Universiteit Leuven(www.kuleuven.be...
#include <stdint.h> #include <string.h> #include "../include/lowmc.h" #include "../include/lowmc_mpc.h" #include "../include/picnic.h" #include "../include/predefined_constants.h" #include "../include/sha3.h" void LowMC_mpc(uint8_t** outputs, uint8_t* input, uint8_t** keys, uint8_t** tapes, picnic_para...
/** ****************************************************************************** * @file BSP/Src/main.c * @author MCD Application Team * @brief This example code shows how to use the STM32412G_DISCOVERY BSP Drivers ****************************************************************************** * @at...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include <assert.h> #include <linux/futex.h> #include <pthread.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <syscall.h> #include <time.h> #include <myst/args.h> #include <mys...
/* * T04: * <NAME> * <NAME> * <NAME> * <NAME> * * Self Leveling Table Main Program */ #define F_CPU 16000000 // AVR clock frequency in Hz, used by util/delay.h #include <avr/io.h> #include <util/delay.h> #include <math.h> //definitions #define MIN_ANGLE 50 ...
/** * * Copyright (C) EEMBC(R) All Rights Reserved * * This software is licensed with an Acceptable Use Agreement under Apache 2.0. * Please refer to the license file (LICENSE.md) included with this code. * */ #include "eembc_dt.h" #include "heap.h" #if HAVE_MALLOC_H #include <stdlib.h> #endif #if TURN_ON_VER...
#include <stdarg.h> #include <stddef.h> #include <setjmp.h> #include <stdint.h> #include <string.h> #include <time.h> #include <stdlib.h> #include "robotraconteurlite/array.h" #define inline #include <cmocka.h> void robotraconteurlite_arraytest_buffer(void **state) { uint8_t a[] = { 0,1,2,3,4,5,6,7,8,9 }; uint8_t ...
// --------------------------------------------------------------------------- // Copyright <NAME> 2018. // 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)...
// SPDX-License-Identifier: Apache-2.0 /* * Copyright 2020-2021 Huawei Technologies Co.,Ltd. All rights reserved. * Copyright 2020-2021 Linaro ltd. */ /* * Test performance of the SVA API */ #include <asm/unistd.h> /* For __NR_perf_event_open */ #include <fenv.h> #include <getopt.h> #include <inttypes.h> #include...
/* ============================================================================= ** SimmeredEggsEngine, file: r_geometry.c Created 12/6/2021 ** ** Copyright 2021 <NAME> TX, USA ** All rights reserved. ** ** Redistribution and use of this source file, with or without modification, is ** permitted provided that the follo...
#include <linux/module.h> #include <linux/types.h> #include <linux/string.h> #include <linux/kernel.h> #include <linux/timer.h> #include <linux/mm.h> #include <linux/interrupt.h> #include <linux/major.h> #include <linux/errno.h> #include <linux/genhd.h> #include <linux/blkpg.h> #include <linux/slab.h> #include <linux/p...
#include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> #include "ulog.h" #include "profiler.h" #include "geminc.h" #include "gemprm.h" #include "bridge.h" #ifdef UNDERSCORE #define sn_atim sn_atim_ #define sn_astn sn_astn_ #define sn_rdat sn_rdat_ #define sn_wdat sn_wdat_ #define sn_gtim sn_gtim...
/* $Id$ */ /* * Copyright (c) 2003-2009 <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, th...
/***************************************************************************** * * multi_squ_poly_init.c * * Produce a file of squirmer and polymers information suitable for reading into * the main code. * * Polymer/squirmer positions are initialised at random. Multiple polymers and * squirmers can be gen...
#include "hashmap.h" #include <stdlib.h> #include <stdio.h> #include <string.h> typedef struct _hashmap_element{ char* key; int in_use; any_t data; } hashmap_element; typedef struct _hasmap_map{ int table_size; int size; hashmap_element* data; } hashmap_map; /* * Return an empty hashmap, or ...
/* * mmsvc-core * * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. * * Contact: <NAME> <<EMAIL>> * * 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 * * h...
/* bsdtrap.h. Definitions for values and structures used in bsdtrap.c * * $Revision: 1.30 $ * $Date: 1999/03/01 19:14:16 $ */ /* In this file, we list the trap number for each system call, * and the structures associated with several of the systems * calls in 2.11BSD UNIX */ #define S_INDIR 0 #define S_EXIT ...
/* * Copyright (c) 2012-2017, <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 condition...
#include <stdbool.h> #include <stdlib.h> #include <string.h> #define PFN_MASK 0b11111100 #define PG_DIR_MASK 0b11000000 #define PG_MIDDLE_DIR_MASK 0b00110000 #define PG_TABLE_MASK 0b00001100 #define UNMAPPED 0b00000000 #define PRESENT_MASK 0b00000001 #define PAGE_SIZE 4 #define SWAP_MEM(x, y) \ { ...
#include "api_config.h" #define FLASH_TIME (100) /* 10x10 ms ��ƽ��ת */ /* 00�� Ϩ�� 01/10 ��˸ 11������ */ struct ledStatsManage { u8 msr_dy:2;//��Դ u8 msr_lp:2; //ȱ�� u8 msr_ss:2; //���� u8 msr_cz:2; //���� u8 msr_xj:2; //�½� u8 msr_qz:2; //Ƿ�� u8 msr_tb:2; //ͬ�� u8 msr_q...
/* * Copyright (c) 1997,2011,2013-2014 Apple Inc. All Rights Reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file exce...
// ---------------------------------------------------------------------------- // Copyright 2016-2017 ARM Ltd. // // 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 ...