text
stringlengths
3.12k
18.7k
#ifndef __KERNEL__ #include <string.h> #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <ctype.h> #include <time.h> #include <fcntl.h> #include <unistd.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <linux/fs.h> #include <linux/types.h> #include <linux/hdreg.h> #include <linux/version.h> #...
/** <!-- * * Copyright (C) 2014 OpenVCX <EMAIL> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * ...
/* * SUMMARY: RootBrent.c - Determine surface temperature iteratively * USAGE: Part of DHSVM * * AUTHOR: <NAME> * ORG: University of Washington, Department of Civil Engineering * E-MAIL: <EMAIL> * ORIG-DATE: Apr-96 * LAST-MOD: Mon Jan 24 12:06:38 2000 by <NAME> <<EMAIL>> * D...
/******************************************************************************* * Copyright (c) 2015 <NAME> and <NAME> * * Permission is hereby granted, free of charge, to anyone * obtaining a copy of this document and accompanying files, * to do whatever they want with them without any restriction, * including,...
/* * Copyright (C) 2016 Marvell International Ltd. * * SPDX-License-Identifier: BSD-3-Clause * https://spdx.org/licenses */ #include <mmio.h> #include <mvebu_def.h> #define PCIE_CFG_VENDOR 0x0 #define PCIE_CFG_DEVICE 0x2 #define PCIE_CFG_CMD 0x4 #define PCIE_CFG_CMD_IO_EN (1 << 0) #define PCIE_CFG_C...
/* * -*- coding: utf-8 -*-* * * January 21 2019, <NAME> <<EMAIL>> * * Copyright (c) 2019, LabN Consulting, L.L.C. * 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...
/* # aeneas is a Python/C library and a set of tools # to automagically synchronize audio and text (aka forced alignment) # # Copyright (C) 2012-2013, <NAME> (www.albertopettarin.it) # Copyright (C) 2013-2015, ReadBeyond Srl (www.readbeyond.it) # Copyright (C) 2015-2017, <NAME> (www.albertopettarin.it) # # This prog...
/* wikiTrack - wikiTrack functions */ /* Copyright (C) 2012 The Regents of the University of California * See README in this or parent directory for licensing information. */ #include "common.h" #include "jksql.h" #include "hgTracks.h" #include "hdb.h" #include "ra.h" #include "itemAttr.h" #include "bedCart.h" #incl...
#include <onion/websocket.h> #include <pthread.h> #include <mpv/client.h> #define MAX_ACTIVE_CLIENTS 20 #define NUM_PROPS 50 #define REPLY_ID_OFFSET 10000 // ================== BEGIN onion releated part =============== typedef struct __websocket_t { onion_websocket *ws; pthread_mutex_t lock; } __websocket_t;...
/* * Copyright © 2019 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 2014 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, m...
/* Merge parameters into a termcap entry string. Copyright (C) 1985, 87, 93, 95, 2000 Free Software Foundation, 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, or (at y...
#include <assert.h> #include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <stdbool.h> #include <string.h> #include <openssl/aes.h> #include <openssl/bn.h> #include <openssl/err.h> #include <openssl/ec.h> #include <openssl/evp.h> static void fail(const char *file, int lineno, const char *line) { fprint...
/*- * Copyright (c) 2018-2021 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list ...
/* * a simple OpenSSL client to test interoperability with tls */ #include <stdio.h> #include <unistd.h> #include <string.h> #include <inttypes.h> #include <sys/socket.h> #include <sys/time.h> #include <arpa/inet.h> #include <resolv.h> #include <openssl/ssl.h> #include <openssl/err.h> #include <openssl/opensslv.h> ...
#include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include "print.h" #include "packet.h" #include "caract.h" #include "common.h" //va sur stdout void myprintf(char* message,...) { va_list args; va_start(args,message); if(DEBUG == 1) vprintf(message,args); va_end(args); } //print sur le fichier F...
#include "qc_simd_ldpc_decoder.h" #include "nr5g_simd_ldpc_encoder.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #if defined(_MSC_VER) #include <windows.h> #else #include <sys/time.h> #endif #define M_PI 3.1415927 #define BLOCK_SIZE 10000 #define EBN0_SIZE 6 float randn(float mu, flo...
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
/* P O L Y G O N _ O P . C * * BRL-CAD * * Copyright (c) 2015-2021 United States Government as represented by * the U.S. Army Research Laboratory. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * versio...
#include <stdio.h> #include <unistd.h> #include <sys/inotify.h> #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include <SDL2/SDL_ttf.h> #define SONG_TITLE_FONT_SIZE 24 #define ARTIST_FONT_SIZE 16 #define WINDOW_MIN_WIDTH 400 #define WINDOW_MIN_HEIGHT 150 #define FONT_PATH "/usr/share/fonts/TTF/DejaVuSans.tt...
#include <device/sys.h> #include <mcu/debug.h> #include <mcu/arch/stm32/stm32f7xx/stm32f7xx_hal.h> #include "display_device.h" extern DMA2D_HandleTypeDef hdma2d; static int display_device_getinfo(const devfs_handle_t * handle, void * ctl); static int display_device_clear(const devfs_handle_t * handle, void * ctl); ...
/* * Copyright 2016 <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 the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
/********************************************************************** // For TASP VSIPL Documentation and Code neither the United States / // Government, the United States Navy, nor any of their employees, / // makes any warranty, express or implied, including the warranties / // of merchantability and fitnes...
/* $OpenBSD: radiotrack2.c,v 1.3 2002/01/07 18:32:19 mickey Exp $ */ /* $RuOBSD: radiotrack2.c,v 1.2 2001/10/18 16:51:36 pva Exp $ */ /* * Copyright (c) 2001 <NAME> <<EMAIL>>, * <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * mod...
/******************************************************************** * * * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * * GOVERNED BY A BSD-STYLE SOURCE LICENS...
/** * @file * @brief main for QClean host utility * @ingroup qclean * @cond ****************************************************************************** * Last updated for version 6.9.0 * Last updated on 2020-08-06 * * Q u a n t u m L e a P s * ------------------------ * ...
/* * (C) Copyright 2002 * <NAME>, Omicron Ceti AB, <<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 Foundation;...
#include "mex.h" #include <math.h> #ifdef _OPENMP #include <omp.h> #endif #define max(a, b) ((a > b) ? a : b) #define min(a, b) ((a < b) ? a : b) #define DEBUG 0 void cal_slope_limiter(double fmean, double gx, double gy, double xc, double yc, double *fmask, int Nfp, int Nv, ...
/* * Copyright 2017 People Power Company * * This code was developed with funding from People Power Company * * 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.a...
/* * graphics file reading for page */ #include <u.h> #include <libc.h> #include <draw.h> #include <thread.h> #include <bio.h> #include <cursor.h> #include "page.h" typedef struct Convert Convert; typedef struct GfxInfo GfxInfo; struct Convert { char *name; char *cmd; char *truecmd; /* cmd for true color */ }; ...
#include <u.h> #include <libc.h> #include "glob.h" char *globname; Glob *globv; Glob *lastglob; #define GLOB ((char)0x01) /* * onebyte(c), twobyte(c), threebyte(c) * Is c the first character of a one- two- or three-byte utf sequence? */ #define onebyte(c) ((c&0x80)==0x00) #define twobyte(c) ((c&0xe0)==0xc0) #defi...
/** * \file accelerometer_test.c * * \brief * */ /* * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of sour...
#include <stdio.h> #include "AUDIO.h" #define SAMPLE_FREQ 16000 #define SOC_FREQ_COEFF 25 // at soc_freq=50MHz, I2S_CLK=2MHz /* I2S0 */ /* Clock register */ #define WORD_SIZE_CHAN0 16 #define EN_CHAN0 1 /* Mode register */ #define LSB_FIRST_CHAN0 0 #define PDM_EN_C...
#include<stddef.h> #include<stdio.h> #include <allegro5/allegro_primitives.h> #include "../../board/board.h" #include "../../board/pawn.h" #include "../../data/list.h" #include "painter.h" #include "controller.h" #include "marker.h" #include "display.h" #include "message.h" #define FIELD_WIDTH 30.0 #define WHITE_FIELD...
/* * contrib/tbase_pooler_stat/tbase_pooler_stat.c * * tbase_pooler_stat.c * * Copyright (c) 2020 Tbase Kernel Group * * Permission to use, copy, modify, and distribute this software and * its documentation for any purpose, without fee, and without a * written agreement is hereby granted, provided that the abo...
/* * Methods pertaining to handling of a ships lua state (as a whole, in contrast * to the lua-callable functions in luafuncs.c) */ #define _GNU_SOURCE #include <lua.h> #include <lualib.h> #include <lauxlib.h> #include <time.h> #include <string.h> #include "luastate.h" #include "luafuncs.h" #include "entities.h" #in...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <wayland-client.h> #include <wayland-server.h> #include <wayland-client-protocol.h> #include <wayland-egl.h> #include <EGL/egl.h> #include <GLES2/gl2.h> struct wl_display *display = NULL; struct wl_compositor *compositor = NULL; struct wl_surface *sur...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
/* Copyright 2001-2004 The Apache Software Foundation * * 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 applica...
#include <emscripten.h> #include <libavcodec/hevc_parse.h> #include <libavutil/common.h> #include <string.h> #include "hevc_decoder.h" //colourmaps #include "colourmap.h" static AVCodec *codec; static AVCodecContext **avctx = NULL; static AVFrame **avframe = NULL; static AVPacket **avpkt = NULL; extern AVCodec ff...
/***************************************************************************//** * @file * @brief EFM32/EFR32 specific sleep functions. ******************************************************************************* * # License * <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b> *********************...
/* GStreamer Intel MSDK plugin * Copyright (c) 2016, Oblong Industries, 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. Redistributions of source code must retain the above copy...
/* Serval Low-bandwidth asychronous Rhizome Demonstrator. Copyright (C) 2015 Serval Project Inc. This program monitors a local Rhizome database and attempts to synchronise it over low-bandwidth declarative transports, such as bluetooth name or wifi-direct service information messages. It is intended to give a high p...
#include <linux/kernel.h> #include <linux/module.h> #include <linux/sched.h> #include <linux/random.h> /* for random number */ #include <linux/vmalloc.h> /* to use vmalloc */ #include <linux/mm_types.h> /* mm_struct */ #include "../include/virtmeminfo.h" /* forward declaration */ void update_pgd_info(struct task_stru...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
#include "tcp-echo.h" #include "worker.h" void te_alloc_buffer(__attribute__((unused)) uv_handle_t *handle, size_t size, uv_buf_t *buffer) { *buffer = uv_buf_init((char *) te_malloc(size), size); } void free_write_request(te_write_req_t *write_request) { sdsfree(write_request->buffer.base); free(write_req...
/* * File: avrnacl_fast/crypto_sign/precompute.c * Author: <NAME>, <NAME> * Version: Thu Jul 31 09:29:00 2014 +0200 * Public Domain */ #include <stdio.h> #include "ge25519.h" #include "fe25519.h" #define WINDOWSIZE 4 #define NMULTIPLES ((1<<(WINDOWSIZE-1))+1) /* 0*P,...,(2^(WINDOWSIZE-1))*P */ /* 2*d */ sta...
/* * Copyright (c) 2018,2020 <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 copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR ...
/** ****************************************************************************** * @file ws2812.c * @author janeson332 * @version V1.0 * @date 18.07.2019 * @brief Simple WS2812 LED library for the STM32F10x * * This lib uses a double buffering method with cyclic reload of the * DMA...
/********************************************************************* * * riak_command.c: Riak C Command Parser * * Copyright (c) 2007-2014 Basho Technologies, Inc. All Rights Reserved. * * This file is provided to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except...
/* * Copyright (C) 2012, <NAME> <<EMAIL>> * * Based on flea3.c and mx35pdk.c * * 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 Sof...
/* * Copyright (C) 2015-2016 Freescale Semiconductor, Inc. * * The code contained herein is licensed under the GNU General Public * License. You may obtain a copy of the GNU General Public License * Version 2 or later at the following locations: * * http://www.opensource.org/licenses/gpl-license.html * http://w...
/* BLIS An object-based framework for developing high-performance BLAS-like libraries. Copyright (C) 2014, The University of Texas Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributi...
/* * Copyright (C) 2020 <NAME> * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup drivers_sps30 * @brief Device driver for the Sensirion SPS30 particulate matter se...
/* Copyright (C) 2011-2016 OldTimes Software 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 distributed ...
/**********************************************************************/ /* ____ ____ */ /* / /\/ / */ /* /___/ \ / */ /* \ \ \/ ...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (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 * o...
/* -*- Mode: C; c-basic-offset:4 ; -*- */ /* * Copyright (c) 2007 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 2011 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2011-2013 Los Alamos National Security, LLC. All * ri...
/** * @file sort.c * @author timoteus <<EMAIL>> */ #include "sort.h" #include "print.h" /* Use default values if not manually overridden. */ int rock_radix_bits = ROCK_USE_DEFAULT; int rock_num_threads = ROCK_USE_DEFAULT; static inline void indx_sort_thread(rock_desc_t *desc, rock_uint_t num_dims...
/** * \file * * \brief PWM service for XMEGA. * * Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip products. * It ...
/* * Copyright (c) 2008 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 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 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but W...
#include <pspkernel.h> #include <pspdisplay.h> #include <pspdebug.h> #include <pspctrl.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include <string.h> #include <pspgu.h> #include <pspgum.h> PSP_MODULE_INFO("SceGu Cube", 0, 1, 1); PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER); #define printf pspDebugScreenPr...
#include <stdio.h> #include <math.h> typedef struct assignForNetwork{ char network[32], broadcast[32],firstAssignable[32], lastAssignable[32]; int subnet; } AssignForNetwork; typedef struct ipBlock{ char network[32]; int subnet; } IpBlock; typedef struct network{ int totalNodes; int serialNo;...
/***************************************************************************** * Copyright ©2017-2019 Gemalto – a Thales Company. All rights Reserved. * * This copy is licensed under the Apache License, Version 2.0 (the "License"); * You may not use this file except in compliance with the License. * You may o...
/* ----------------------------------------------------------------------------- $Id: tsp_tun.c,v 1.1 2010/03/07 19:39:09 carl Exp $ ----------------------------------------------------------------------------- This source code copyright (c) gogo6 Inc. 2002-2006. LICENSE NOTICE: You may use and modify this source c...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* File: mpi_main.c (an MPI version) */ /* Description: This program shows an example on how to call a subroutine */ /* that implements a simple k-means clustering algorithm ...
#include <stdio.h> #include <time.h> /* to seed rand */ #include <windows.h> #include "tigr.h" #include "parg.h" #include "util.h" /* includes stdlib.h, stdbool.h */ #define TITLE "Conway's Game of Life" #define HELP "Conway's Game of Life\nUsage: gol [-h] [-a STAY_ALIVE] [-b BE_BORN] "\ "[-d DELAY (1...1...
/********************************************************************* Gazelle: a system for building fast, reusable parsers interpreter.c Once a compiled grammar has been loaded into memory, the routines in this file are what actually does the parsing. This file is an "interpreter" in the sense that it p...
/* * * 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"); y...
/** * \copyright * MIT License * * Copyright (c) 2020 Infineon Technologies AG * * 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 ...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "goatee_gen.h" #include "goatee_run.h" #include "goatee_logger.h" #include "goatee_cfg.h" #include "goatee_hashmap.h" #define __VERSION "v1.1.0 (happy llama)" extern char **environ; /* * you expect() something to happen. * if it does not, error wi...
/* * Copyright (c) 1990, 1991, 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...
/* Visual Executive - Data Types * (C) 2020 vmlinuz719. All rights reserved * See COPYING for copyright notice. You may modify and redistribute this file * however you like, so long as it is redistributed along with the notice in * COPYING. * This file contains callbacks that are used to update the view. It is a...
#include "hash.h" #include "globals.h" #include <stdlib.h> #include <string.h> #include <math.h> static const unsigned int primes[] = { 53, 97, 193, 389, 769, 1543, 3079, 6151, 12289, 24593, 49157, 98317, 196613, 393241, 786433, 1572869, 3145739, 6291469, 12582917, 25165843, 50331653, 100663319...
/* -bash-3.00$ ./dtsparc 192.168.1.100:2 [+] Re-executing with polluted environment ... [+] Aligning bits and bobs to match target stack layout ... [+] Prepping Fake Frame ... [+] Searching for RWX mem in child: 9384 [+] Located RWX address @ 0xff3f6010 [+] Payload src @ ffbfff7e [+] Fake Frame located @ ffbfff26, ali...
/* * BSD LICENSE * * Copyright(c) 2007-2017 Intel Corporation. All rights reserved. * 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 (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, merge, publish, distribut...
#include <8051.h> #include <ch554.h> #include <debug.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include "i2c.h" #define BMP180_ADDR 0x77 // 0xEE // 0x77 #define BMP085_ULTRALOWPOWER 0 //!< Ultra low power mode #define BMP085_STANDARD 1 //!< Standard mode #define BMP085_HIGHRES 2 //!< ...
/* SPDX-License-Identifier: BSD-2-Clause */ /******************************************************************************* * Copyright 2017-2018, Fraunhofer SIT sponsored by Infineon Technologies AG * All rights reserved. *******************************************************************************/ #ifdef HAVE...
/* Unix SMB/Netbios implementation. Version 1.9. NBT client - used to lookup netbios names Copyright (C) <NAME> 1994-1998 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; eith...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2019 NXP */ #include <common.h> #include <errno.h> #include <image.h> #include <linux/libfdt.h> #include <spl.h> #include <asm/arch/sys_proto.h> DECLARE_GLOBAL_DATA_PTR; static int is_boot_from_stream_device(u32 boot) { u32 interface; interface = boot >> 16; ...
/* * The source code form of this Open Source Project components is * subject to the terms of the Clear BSD license. * You can redistribute it and/or modify it under the terms of the * Clear BSD License (http://directory.fsf.org/wiki/License:ClearBSD) * See COPYING file/LICENSE file for more details. * This softw...
//To compile: gcc =std=c99 testcache.c -o tcache // #include <stdio.h> #include <stdlib.h> //#include <cstdlib> //#include <iostream> //#include <cassert> //#include <cstdint> //hello struct Cache { int S; //numbers of sets int s; // # of set index bits int E; // Associativity int B; /...
/* SPDX-License-Identifier: MIT */ #include "usb.h" #include "adt.h" #include "dart.h" #include "iodev.h" #include "malloc.h" #include "pmgr.h" #include "types.h" #include "usb_dwc3.h" #include "usb_dwc3_regs.h" #include "utils.h" #define USB_INSTANCES 2 struct usb_drd_regs { uintptr_t drd_regs; uintptr_t dr...
#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include "common.h" #include "log.h" #include "appconfig.h" #include "procfile.h" #include "rrd.h" #include "plugin_proc.h" typedef struct name_value { char filename[FILENAME_MAX + 1]; unsigned long long value...
/* * * Copyright © 2002 <NAME>, member of The XFree86 Project, Inc. * * 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 ...
/* * Copyright 2018 NXP * * SPDX-License-Identifier: BSD-3-Clause */ #include "fsl_device_registers.h" #include "fsl_debug_console.h" #include "board.h" #include "pin_mux.h" #include "clock_config.h" #include "hab_M4.h" /******************************************************************************* * Definiti...
#include "offset.h" #include "quantity_select.h" #include "gui.h" #include "app_cfg.h" #include "button.h" #include "lcd.h" #include "gfx.h" #include "gui/button_list.h" #include <string.h> #include <stdio.h> #define MIN_PROBE_OFFSET -30 #define MAX_PROBE_OFFSET 30 typedef struct { sensor_id_t sens...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <ctype.h> #define TAM 20 struct lista_equivalentes{ char info[100]; struct lista_equivalentes *prox; }; struct arv_palavras{ char info[100]; struct lista_equivalentes *l; struct arv_palavras *left, *right; }; struct unit{ ...
/* * SIE Remote Access (SRA) ASCII tool * * Copyright (c) 2014-2018 by Farsight Security, 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/licen...
/* <NAME> 17th April 2022 */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <assert.h> #include <time.h> #include <sys/wait.h> #include <sys/time.h> #include <sys/shm.h> #include <sys/ipc.h> #include "read_ppm.h" void sub_image(struct ppm_pixel* palette, struct ppm_pixel* result, int size, int st...
/* ------------------------------------------------------------------------- @file main.c @date 04/06/17 17:21:20 @author <NAME> @email <EMAIL> @brief Add two png images @detail Licence: This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publi...
#include <stdio.h> #include <stdlib.h> #include <time.h> // int v,j,i; int bomb_vet[10]; // vetor que guarda as posicoes das bombas int q=0; int i = 0; int x = 0; int j = 0; int v = 1; int c = 0; int l = 0; int minefield[8][8]; // [linha][coluna] int vis_mine[8][8]; // matriz de visibilidade int bomb_counter = 0; ...
#include "gvcustomdevice.h" #include "gvsource.h" #include "gvcodec.h" #include "gvutil.h" #define GVI_DEFAULT_THRESHOLD ((GVScalar)0.0) #if defined(_WIN32) static GVDeviceID GVICustomDeviceID = {0}; #else static GVDeviceID GVICustomDeviceID = 0; #endif typedef struct { GVBool m_captureStarted; GVScalar m_ca...
/***************************************************************************//** * @file * @brief MVP Math functions. ******************************************************************************* * # License * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b> ***************************************...
/** * @file eth.c * @brief Ethernet management for the MEGA65 45GS100 integrated 100mbit Ethernet controller * @compiler CC65 * @author <NAME> (<EMAIL>) * Based on code by: * @author <NAME> (<EMAIL>) */ #include <stdint.h> #include <stdio.h> #include <string.h> #include "task.h" #include "weeip.h" #include "a...
// Copyright 2021 Tea Engineering 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 applicable law or agre...
/* * $Id: ant32_reg.c,v 1.5 2002/05/20 19:15:54 ellard Exp $ * * Copyright 1996-2001 by the President and Fellows of Harvard College. * See LICENSE.txt for license information. * * <NAME> -- 10/25/01 * */ #include <stdio.h> #include "ant_external.h" #include "ant32_external.h" static int check_names (ant_asm...
/*------------------------------------------------------------------------- * * zenithtest.c * Helpers for zenith testing and debugging * * IDENTIFICATION * contrib/zenith_test_utils/zenithtest.c * *------------------------------------------------------------------------- */ #include "postgres.h" #include ...