text
stringlengths
3.12k
18.7k
/* * Copyright (C) 2017 GreenWaves Technologies * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. * */ #include <stdio.h> #include <math.h> #include "Gap8.h" #include "FFTBasicKernels.h" #include "TwiddlesDef.h" #inc...
/* * Copyright [2021] JD.com, Inc. * * 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 in wri...
/* mimeDecodeTest.c for parsing MIME from a descriptor (stdin). * * This file is copyright 2006 <NAME>, but license is hereby * granted for all use - public, private or commercial. */ #include "common.h" #include "options.h" #include "dystring.h" #include "errabort.h" #include "hash.h" #include "cheapcgi.h" #includ...
/* Target definitions for GNU compiler for Intel 80860 running System V.4 Copyright (C) 1991 Free Software Foundation, Inc. Written by <NAME> (<EMAIL>). This file is part of GNU CC. GNU CC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published ...
/***********************************/ /* SPICE Modeling for VPR */ /* <NAME>, EPFL/LSI */ /***********************************/ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include <assert.h> #include <errno.h> #include <sys/types.h> #include <sys/...
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2021 <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 ...
/* C standard library headers */ #include <stdio.h> #include <string.h> /* LSP Common headers */ #include "hmac.h" /* SHA256 macros */ #define SHA_Ch(x,y,z) (((x) & (y)) ^ ((~(x)) & (z))) #define SHA_Maj(x,y,z) (((x) & (y)) ^ ((x) & (z)) ^ ((y) & (z))) #define SHA_Parity(x, y, z) ((x) ^ (y) ^ (z)) #define...
/* * Copyright (C) 2015 <NAME> * Copyright (C) 2013 Erlang Solutions 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 * * Unle...
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 <NAME> * Copyright (C) 2009-2013 <NAME> * Copyright (C) 2010-2012 <NAME> * Copyright (C) 2010-2013 <NAME> * Copyright (C) 2012-2013 <NAME> * See AUTHORS file for a more comprehensive list of co...
#include <stdio.h> #include <gencon-impl.h> #include <genmap-impl.h> typedef struct { ulong *elements; uint *offsets; ulong *globalIds; uint size; } VToEMap; typedef struct { ulong id; } LongID; typedef struct { ulong procId; } ProcID; VToEMap *getVToEMap(Mesh m, struct comm *c, buffer *bfr) { sint n...
/************************************************************************** * File: dg_misc.c Part of LuminariMUD * * Usage: Contains general functions for script usage. * * * * $Author: ...
#include "buffer.h" /*! \def DEBUG \brief set DEBUG to 1 to have a complete equality test */ #define DEBUG 0 /*! \brief initialize \a buf as an array of maximal size \a size. */ int buffer_init(buffer_t *buf, size_t size){ if(size == 0) size = 1; buf->size = size; buf->length = 0; buf->tab = (uchar...
#include <stdlib.h> #include <avl.h> #define max(a,b) ((a > b) ? a : b) static int abs_node_height(avl_tree_t *node){ return max(avl_tree_height(node->left) , avl_tree_height(node->right)) + 1; } static int balance_factor(avl_tree_t *node){ return avl_tree_height(node->left) - avl_tree_height(node->right); } sta...
/******************************************************************************* MIT License Copyright (c) 2018 <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, inclu...
#define FFI_SCOPE "sdl-ttf" #include "sdl-types.h" // ===================================================================================================================== // Function Definitions // =====================================================================================================================...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Mupen64plus - m64282fp.c * * Mupen64Plus homepage: https://mupen64plus.org/ * * Copyright (C) 2017 <NAME> * * ...
#include <furutacat.h> // target and current angle, 12b, TDC = 2048 uint16_t target = 0; uint16_t current = 0; // pid coefficients uint16_t kp = 0; uint16_t ks = 0; uint16_t ki = 0; uint16_t kd = 0; int32_t up = 0; int32_t us = 0; int32_t ui = 0; int32_t ud = 0; // pid error data int16_t error = 0; int16...
/* * * Copyright 2015, Google Inc. * 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 condi...
#include <stdint.h> #include <stdio.h> #include <string.h> #define IOREG(X) (*(volatile uint32_t *) (X)) // GPIO registers #define GPFSEL0 IOREG(0x20200000) #define GPFSEL1 IOREG(0x20200004) #define GPFSEL2 IOREG(0x20200008) #define GPFSEL3 IOREG(0x2020000C) #define GPFSEL4 IOREG(0x20200010) #define GPFSEL5 IOREG(0x...
/* * Copyright (c) 2017 The Linux Foundation. All rights reserved. * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the * above copyright notice and this permission notice appear in all * copies. * * THE SOFTWARE IS PROVIDED...
/* * 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 ...
/* * 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 * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; withou...
/* Copyright (c) 2001-2004, <NAME>. * Copyright (c) 2004-2006, <NAME>, <NAME>. * Copyright (c) 2007-2010, The Tor Project, Inc. */ /* See LICENSE for licensing information */ #include "orconfig.h" #include "or.h" #include "config.h" #include "connection_edge.h" #include "test.h" static void test_config_addressmap(v...
/******************************************************************************* CONSTRAINT.C Author: <NAME> Date: 20-DEC-01 Copyright (c) 2000 MusculoGraphics, Inc. All rights reserved. Description: Routines: markAffectedGencoords: calculateConstraintResids: updateConstraintInfo: ...
/* ___________________________________________________________ * ____________<<<___#_R_V_C_G_E_E_K_S___>>>__________________ * CREATED BY #RVCGEEKS @PUNE for more github.com/rvcgeeks * * Real Time Programming Development * micro auto scaling HTTP server in 500 lines * created on 26.10.2019 4:30am * * http.c : ...
/* PAML interface. * * "Phylogenetic Analysis by Maximum Likelihood" * <NAME> * http://abacus.gene.ucl.ac.uk/software/paml.html * [Yang97] * */ #include "esl_config.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include "easel.h" #include "esl_alphabet.h" #include "esl_vectorops.h" #i...
/* * File: native.c * Mods: <NAME> * <EMAIL> */ /* This test defines an array of native event names, either at compile time or at run time (some x86 platforms). It then: - add the table of events to an event set; - starts counting - does a little work - stops counting; - reports the results....
/* * This software is licensed under the terms of the MIT License. * See COPYING for further information. * --- * Copyright (c) 2011-2019, <NAME> <<EMAIL>>. * Copyright (c) 2012-2019, <NAME> <<EMAIL>>. */ #include "taisei.h" #include "shaderlib.h" #include "rwops/rwops_autobuf.h" #include "vfs/pathutil.h" #incl...
#include "ble_bgs.h" #include <string.h> #include "nordic_common.h" #include "ble_srv_common.h" #include "ble_gatts.h" // BluChip GPIO Service #define BLE_UUID_BGS_GM_CHARACTERISTIC 0x0002 /**< The UUID of the TX Characteristic. */ #define BLE_BGS_MAX_GM_CHAR_LEN BLE_BGS_MAX_DATA_LEN ...
/* * Copyright (c) 2012 The Chromium OS Authors. 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...
/* Copyright (c) 2009, Nokia Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of con...
/* * Copyright (c) 2021 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <logging/log.h> LOG_MODULE_REGISTER(net_virtual_interface_sample, LOG_LEVEL_DBG); #include <zephyr.h> #include <device.h> #include <errno.h> #include <net/net_core.h> #include <net/ethernet.h> #include <net/virtual.h> #...
/* ** Purpose: Manage a UDP uplink command interface. ** ** Notes: ** None ** ** License: ** Written by <NAME>, licensed under the copyleft GNU ** General Public License (GPL). ** ** References: ** 1. OpenSatKit Object-based Application Developer's Guide. ** 2. cFS Application Developer's Guide. ** */ /* *...
/* Some of the source code in this file came from "linux/fs/fat/misc.c". */ /* * linux/fs/fat/misc.c * * Written 1992,1993 by <NAME> * 22/11/2000 - Fixed fat_date_unix2dos for dates earlier than 01/01/1980 * and date_dos2unix for date==0 by <NAME>(<EMAIL>) */ /* * Copyright (C) 2012-2013 Samsung El...
/* * jabberd - Jabber Open Source Server * Copyright (c) 2002 <NAME>, <NAME>, * <NAME>, <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...
/* * q_netem.c NETEM. * * 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. * * Authors: <NAME> <<EMAIL>> * *...
/* * debug.c - SST debug package * * Original: RMM 1/8/89 * Revised: RMM, 30 Dec 03 * * These routines implement a simple debugging package for handling * error messages. There are four primary routines that are defined: * * dbg_info(fmt, ...) informational message * dbg_warn(fmt, ...) warning messa...
/****************************************************************************** * Copyright 2020 The Firmament Authors. 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 ...
/** BSD 3-Clause License Copyright (c) 2019, TheWover, Odzhan. All rights reserved. Python C Extension by @byt3bl33d3r 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 reta...
/* LL(1) Embeddedd Nonrecursive Predictive Parser */ #include "calc_ll.h" /* Token-Rule pair (predict set) */ struct tr_pair { uint8_t t; uint8_t r; }; /* Predict sets */ const struct tr_pair predict_vec[] = { /* 22 (program) */ { 0, 0}, { 14, 1}, { 17, 1}, { 19, 1}, { 21, 1}, /* 23 (stat) */ { 14, 2...
/* * complement_counters.c */ #define DAG_RECORDER 2 #include <dag_recorder.h> #include <dag_recorder_impl.h> /* linear interpolation. find the value at t based on the value x0 at t0 and the value x1 at t1. t is typically but need not be between t0 and t1. */ static long long interpolate_sample(unsigned...
/* * 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...
/* * Wonderful routine to create a Z88 application * * z88app [binary file] [startup file] [-nt] * * djm 2/4/99 - A very, very quick knock up! * * Application ID number is generated from time() * - if you have a better automatic algorithm let me know! * * djm 12/4/99 * Than...
/* BCM2835 "GPU_FFT" release 3.0 Copyright (c) 2015, <NAME>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list o...
#pragma once #include "type.h" #include "io.h" #define dmasg_ca(base, channel) (base + channel*0x80) #define DMASG_CHANNEL_INPUT_ADDRESS 0x00 #define DMASG_CHANNEL_INPUT_STREAM 0x08 #define DMASG_CHANNEL_INPUT_CONFIG 0x0C #define DMASG_CHANNEL_INPUT_CONFIG_MEMORY BIT_12 #define DMASG_CHANNEL_INPUT_CONFIG_STREAM 0 #d...
/* $OpenBSD: autoconf.c,v 1.44 2016/06/08 17:24:44 tedu Exp $ */ /* * Copyright (c) 1996, 1997 <NAME> * Copyright (c) 1995 <NAME> * 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 contrib...
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2015, 2017 Oracle and/or its affiliates. All rights reserved. * */ /* * Database manipulation function implementation. * */ #include "servicemgmt_setup.h" int get_customer_name(DB *, const DBT *, const DBT *, DBT *); int...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define DEBUG 1 #define T_BYTE 0x01 #define T_TEXT 0x02 /* Opcodes */ #define MOV 0x01 #define ADD 0x02 #define SUB 0x03 #define MUL 0x04 #define DIV 0x05 #define JMP 0x06 #define CMP 0x07 #define JE 0x08 #define JNE 0x09 #define JG 0x0A #define JL 0x0B #defi...
#include "shell.h" int init(int argc, char** argv, char** env) { // should to be called at the start stage of shell and only called once input_len = INPUT_LEN; input = (char* )malloc(input_len + 1); struct passwd* pw = getpwuid(getuid()); DEBUG = 0; if(argc == 2) { if (strcmp(argv[1], "-...
/* * Copyright (C) 2016 BayLibre, SAS * Author: <NAME> <<EMAIL>> * Copyright (C) 2015 Amlogic, Inc. All rights reserved. * Copyright (C) 2014 Endless Mobile * * 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 ...
#include "link_layer.h" static int s = 0; int ll_open(LinkLayer *link_layer) { if (link_layer->status == RECEIVER) return ll_open_receiver(link_layer); else return ll_open_transmitter(link_layer); } int ll_close(LinkLayer *link_layer) { if (link_layer->status == RECEIVER) return ll_close_receiver...
/* The MIT License Copyright (c) 2019 <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...
/* test/split/test_filter_header_rg.c -- split test cases. Copyright (C) 2014-2016, 2018, 2019 Genome Research Ltd. Author: <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softw...
/* ----------------------------------------------------------------------------- * Copyright (c) 2014 ARM Ltd. * * This software is provided 'as-is', without any express or implied warranty. * In no event will the authors be held liable for any damages arising from * the use of this software. Permission is granted...
/* * Copyright (c) 2011 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <wchar.h> #include <windows.h> #include "redirector.h" #pragma comment(linker, "/entry:entry") #define FILE_NOT_FOUND_ERROR_MES...
/* * ESPRESSIF MIT License * * Copyright (c) 2020 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD> * * Permission is hereby granted for use on ESPRESSIF SYSTEMS products only, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software")...
/* * 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...
#include <errno.h> #ifdef ENABLE_WINPR #include <winpr/stream.h> #else #include "compat/winpr-stream.h" #endif #include <freerdp/utils/svc_plugin.h> #include <guacamole/protocol.h> #include "rdpdr_messages.h" #include "rdpdr_printer.h" #include "rdpdr_service.h" #include "client.h" /* Command to run GhostScript s...
/* GStreamer * Copyright (C) 2005 <NAME> <<EMAIL>> * Copyright (C) 2010 <NAME> <tim centricular net> * Copyright (C) 2012 Collabora Ltd. <<EMAIL>> * Copyright (C) 2015 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public ...
// // COnfiguration Micro MAnager (comma) writen by <NAME> // MIT License // https://github.com/tteeoo/comma // #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <dirent.h> #include <sys/stat.h> #include <sys/types.h> #include "../inc/parse.h" char *objname; void err(char *name...
/** \file archdep_win32.c * \brief Miscellaneous Windows-specific stuff * * \author <NAME> <<EMAIL>> */ /* * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of t...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <genmap-impl.h> int GenmapSymTriDiagSolve(genmap_vector x, genmap_vector b, genmap_vector alpha, genmap_vector beta) { assert((x->size == b->size) && (x->size == alpha->size)); assert(alpha->size == beta-...
/* * Copyright (c) 2015 The DragonFly Project. All rights reserved. * * This code is derived from software contributed to The DragonFly Project * by <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are...
/* Copyright (c) <NAME>, 1997. */ /* This program is freely distributable without licensing fees and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain. */ /* This is a small interactive demo of Dave Eberly's algorithm that fits a circle boundary to...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <error.h> #include "cfbf.h" /* The CONTENTS stream of a Publisher file is a series of 512-byte sectors, * as required by the container format. * * The stream starts with struct pub_contents_header. * After that is the first str...
/* SPDX-License-Identifier: BSD-3-Clause */ /* * SLIRP stateless DHCPv6 * * We only support stateless DHCPv6, e.g. for network booting. * See RFC 3315, RFC 3736, RFC 3646 and RFC 5970 for details. * * Copyright 2016 <NAME>, Red Hat Inc. * * Redistribution and use in source and binary forms, with or without * m...
/* * HID driver for Huion devices not fully compliant with HID standard * * Copyright (c) 2013 <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 Lice...
/* * io.c - Ilmi input/output routines * * Written by <NAME> * * Copyright (c) 1995-97 All Rights Reserved. * * Permission to use, copy, modify and distribute this * software and its documentation is hereby granted, * provided that both the copyright notice and this * permission notice appear in all copies ...
/** ****************************************************************************** * @file TIM_Asymetric/main.c * @author MCD Application Team * @version V1.1.0 * @date 20-September-2012 * @brief Main program body ****************************************************************************** *...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* mlx_key_release.c :+: :+: :+: ...
/****************************************************************************** @file device.c @brief QMI device dirver. DESCRIPTION Connectivity Management Tool for USB network adapter of Quectel wireless cellular modules. INITIALIZATION AND SEQUENCING REQUIREMENTS None. ---------------...
/* Funções e constantes relacionadas à leitura e escrita de arquivos */ #include <stdio.h> /* fopen, fprintf, fclose ... */ #include <linux/limits.h> /* constantes limite */ #include <unistd.h> /* getcwd */ #include "global.h" /* constantes e tipos globais */ /* nomes de arquivos pré-definidos */ #define DEFAULT_FIL...
#include "clex.h" #include "cmem.h" #include <string.h> CReservedWord reservedWords[] = { {TOKEN_AND, "and", 3}, {TOKEN_BREAK, "break", 5}, {TOKEN_CONTINUE, "continue", 8}, {TOKEN_DO, "do", 2}, {TOKEN_ELSE, "else", 4}, {TOKEN_ELSEIF, "elseif", 6}, {TOKEN_END, "end", 3}, {TOKEN_FALSE, "...
#include "remote.h" #include "control.h" #include "usart2.h" #include "led.h" #include "iwdg.h" #include "Task_Chassis.h" #include "Task_Gimbal.h" /* 超过这个时间没有收到新的遥控器数据就认为已经失控 */ #define REMOTE_LOST_TIME ((uint32_t)50) //50ms /* 存放读取到的遥控器数据 */ RC_Ctl_t RC_Ctl; portTickType ulRemoteLostTime = 0; /* 获取...
//PWI Project //Program using various ciphers to either encipher a file given by the user or decipher it #include "mod.h" #include "func.h" //funkcja deszyfrujaca void de_szyfr_rosnacy(const char* in, const char* out) { //Łączenie się z plikiem wejściowym FILE *plik=fopen(in,"r"); FILE *wyjsci...
/* Copyleft 2016-2017 <NAME>. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL ...
/** FILE: arrowin.c ******** Module Header ******************************** * * Control panel arrow window class routines. This file contains the * window procedure and utility functions for managing the "cpArrow" * window class/spinner control for use by Control Panel applet dialogs. * * History...
/* asmhead.asm */ #define ADDR_BOOTINFO 0x0ff0 struct BOOTINFO { char cyls, leds, vmode, reserve; short scrnx, scrny; char *vram, *fonts; }; /* nasmfunc.asm */ void io_hlt(void); void io_cli(void); void io_sti(void); void io_stihlt(void); int io_in8(int port); void io_out8(int port, int data); int io_load_eflags(v...
/* * gmc.c Copyright (C) 1997 Sylvain "Asle" Chipaux * Copyright (C) 2006-2007 <NAME> * * Depacks musics in the Game Music Creator format and saves in ptk. */ #include <string.h> #include <stdlib.h> #include "prowiz.h" static int depack_GMC(FILE *, FILE *); static int test_GMC(uint8 *, in...
#include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "macro.h" #include "maths.h" #include "private.h" #include "skeleton.h" /* * for skeletal animation, see * https://people.rennes.inria.fr/Ludovic.Hoyet/teaching/IMO/05_IMO2016_Skinning.pdf */ typedef struct { ...
#include <tyranscript/tyran_value.h> #include <tyranscript/tyran_config.h> #include <tyranscript/tyran_object_prototype.h> #include <tyranscript/tyran_array_prototype.h> #include <tyranscript/tyran_function_prototype.h> #include <tyranscript/tyran_function.h> #include <tyranscript/tyran_function_object.h> #include <tyr...
/*! \file Copyright (c) 2003, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from U.S. Dept. of Energy) All rights reserved. The source code is distributed under BSD license, see the file License.txt at the top-level director...
#define __DELAY_BACKWARD_COMPATIBLE__ #include <avr/io.h> #include <stdio.h> #include <string.h> #include <util/delay.h> #include <inttypes.h> #include <avr/interrupt.h> // Acknowledgements // LCD Method from lecture has been implemented. // Serial IO methods from lecture has been implmented. /* * Setting data dire...
#include <Winsock2.h> #include <ws2tcpip.h> #include <mswsock.h> #include <Windows.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #define BUFFER_SIZE 4096 #define MAX_READ_BYTES (BUFFER_SIZE*100 + 100) #define LISTEN_PORT 2000 static uint8_t data_buffer[BUFFER_SIZE]...
/* This is a sample implementation of a libssh based SSH server */ /* Copyright 2003-2009 <NAME> This file is part of the SSH Library You are free to copy this file, modify it in any way, consider it being public domain. This does not apply to the rest of the library though, but it is allowed to cut-and-paste working...
// disas: disassembles a machine code file in the binary format #include <stdio.h> #include <errno.h> #include <string.h> #include <stdlib.h> #include <stdint.h> #include <lib/optbl.h> #include <lnk/bin.h> FILE *g_in = NULL; // File metadata char *strtab = NULL; struct symbol *symtab = NULL; unsigned int ...
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ /* rna_zdipsitocsy - zfiltered tocsy with dipsi2 spinlock */ #include <stand...
/* This file is for the inversion-free Berlekamp-Massey algorithm see https://ieeexplore.ieee.org/document/87857 */ #include "bm.h" #include "gf.h" #include "util.h" #include <stdint.h> static inline uint64_t mask_nonzero(gf a) { uint64_t ret = a; ret -= 1; ret >>= 63; ret -= 1; return ret...
/* * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2022-05-26 xiangxistu first version */ /* Do NOT include sys/time.h in this file */ #include <WinSock2.h> #include <WS2tcpip.h> #include <rtthread.h> #in...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <assert.h> #include <inttypes.h> #include <time.h> #include "zhe-util.h" #ifndef TCP #include "platform-udp.h" #else #include "platform-tcp.h" #endif #include "zhe.h" #include "zhe-tracing.h" #include "zhe-assert.h" #include "zhe-...
/* * display.c * * Created on: May 28, 2018 * Author: Sam */ #include <msp430.h> #include <stdint.h> #include "display.h" #include "button.h" void dispSetup() { // Setup pins for HEX, DEC, and BIN displays // Initialize pins for 4 digit 7 segment common anode display // setup digit pins, digit ...
/* * This is iyacc's main.c; byacc's main.c with Java and Icon support. * iyacc needs to be updated to the current version of byacc! */ #include <signal.h> #ifdef _MSC_VER #include <stdlib.h> #else #include <unistd.h> /* for _exit() */ #endif #include "defs.h" #if NT #define tmpfile mstmpfile #endif /* NT */...
#include<mm/malloc.h> #include<lib/stdio.h> #include<debug/debug.h> #include<sync/spinlock.h> #include<proc/cpu.h> uint64_t freeblocks = 0; //空闲内存页数 uint64_t freememory = 0; //空闲页链表头 struct spinlock alloclock; struct spinlock malloclock; uint64_t alloc(){ //申请一页内存 if(systemstarted){ acquire(&alloclock);...
/*- * Copyright (c) 2012 Advanced Computing Technologies LLC * Written by: <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 retai...
/* $OpenBSD: cn30xxpko.c,v 1.5 2016/05/24 14:06:39 visa Exp $ */ /* * Copyright (c) 2007 Internet Initiative Japan, Inc. * 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. Redistributi...
// RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-unknown-unknown -emit-llvm -o - %s | \ // RUN: FileCheck %s // This test validates that the inreg branch generation for __builtin_va_arg // does not exceed the alloca size of the type, which can cause the SROA pass to // eliminate the assignment. typedef struct...
/* * Copyright (c) 2011 Surfnet * Copyright (c) 2011 .SE (The Internet Infrastructure Foundation). * Copyright (c) 2011 OpenDNSSEC AB (svb) * Copyright (c) 2014 NLnet Labs * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that t...
#include <stdio.h> #include <signal.h> #include <locale.h> #include <wchar.h> #include "lib/bdf.h" #include "lib/calendar.h" #ifdef EPD #include "lib/epd/ER-EPD0583-1.h" #include "lib/epd/GUI_Paint.h" #endif bool g_running = true; void signal_handler(int signo) { g_running = false; } int main() { /** ...
/* \file tasks.c * * Copyright 2018 The wookey project team <<EMAIL>> * - <NAME> * - Arnauld Michelizza * - <NAME> * - <NAME> * - <NAME> * * 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...
/*- * Copyright (c) 1999 <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...