text
stringlengths
3.12k
18.7k
/* * Copyright (C) 2009-2021 <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 AUTHOR DISCLAI...
// Main loader for sled. The entry point. // // Copyright (c) 2019, Adrian "vifino" Pistol <<EMAIL>> // // 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 copie...
#include <windows.h> #include <string.h> #include <stdio.h> #include "gutils.h" #include "list.h" #include "queue.h" #define NAMELENGTH 20 typedef struct queue_tag{ CRITICAL_SECTION CritSect; /* to single-thread queue operations */ HANDLE Event; /* Event to set when f...
/********************************************************************************** Avatar Tools Copyright (c) 2019, National Technology and Engineering Solutions of Sandia, LLC All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the foll...
/* * * Copyright (C) 2019, Broadband Forum * Copyright (C) 2016-2019 CommScope, Inc * * 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 * ...
/* vim: ts=3 sw=3 sts=3 tw=80 sta noet list */ /** * \file t_ael_epl.c * \brief epoll specific implementation for T.Loop. * \detail Handles implmentation specific functions such as registreing * events and executing the loop. Being based on the epoll system * call this version sh...
/* * Copyright (c) 2016 <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 Software without restriction, including without limitation the rights * to use, copy, modify, merge, pu...
/* Copyright (c) 2009-2019, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
/***************************************************************************** * ts_hotfixes.c : MPEG PMT/PAT less streams fixups ***************************************************************************** * Copyright (C) 2014-2016 - VideoLAN Authors * * This program is free software; you can redistribute it and...
/*!============================================================================= ============================================================================== \file SL_register.c \author <NAME> \date August 1993 ============================================================================== \remar...
/* * Copyright (c) 2002 * <NAME> and the University of Washington. * 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 *...
/* * UART0.c */ #include <stdbool.h> #include <stdio.h> #include <inc/tm4c123gh6pm.h> #include <inc/hw_memmap.h> #include <driverlib/gpio.h> #include <driverlib/pin_map.h> #include <driverlib/sysctl.h> #include <driverlib/interrupt.h> #include <driverlib/uart.h> #include <driverlib/udma.h> #include <utils/uartstdio....
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or its l...
/** Copyright (c) 2013 <NAME> */ #include <FFOS/dir.h> #include <FFOS/time.h> #include <FFOS/thread.h> #include <FFOS/timer.h> #include <FFOS/process.h> #include <FFOS/asyncio.h> #include <FFOS/sig.h> #include <FFOS/atomic.h> #include <FFOS/semaphore.h> #include <FFOS/dylib.h> #include <FFOS/pipe.h> #include <FFOS/fil...
/* Copyright (c) 2020 <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, distri...
#include <lighttpd/base.h> #include <sys/stat.h> #include <fcntl.h> #include <lighttpd/plugin_core.h> static void stat_cache_delete_cb(liWaitQueue *wq, gpointer daa); static void stat_cache_entry_release(liStatCacheEntry *sce); static void stat_cache_entry_acquire(liStatCacheEntry *sce); liStatCache* li_stat_cache_...
#include <stdbool.h> #include <string.h> #include <Judy.h> #include "fns_generated.h" #include "fns_imported.h" #include "hyperloglog.h" #include "utils.h" #include "safeio.h" char *string_tuple_to_string(string_tuple_t *tuple, int *length) { *length = tuple->len; return tuple->buf; } void set_add(set_t *dst,...
/* * 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 "ending.h" #include "global.h" #include "video.h" #include "progress.h" typed...
#include "vrt_string.h" #include "vrt_error_code.h" #include "vrt_types.h" const char* vrt_string_packet_type(enum vrt_packet_type packet_type) { switch (packet_type) { case VRT_PT_IF_DATA_WITHOUT_STREAM_ID: return "IF Data packet without Stream Identifier"; case VRT_PT_IF_DATA_WITH_ST...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <inttypes.h> #include "glib_indirect.h" enum { EVENT_BEGINS_SHIFT, EVENT_FALLS_ASLEEP, EVENT_WAKES_UP }; static const size_t MAXIMUM_LINE_LENGTH = 50; static const uint8_t MINUTES_IN_HOUR = 60; struct guard_event { char str[M...
#include "nvs_flash.h" #include "esp_nimble_hci.h" #include "nimble/nimble_port.h" #include "nimble/nimble_port_freertos.h" #include "host/ble_hs.h" #include "host/util/util.h" #include "services/gap/ble_svc_gap.h" #include "services/gatt/ble_svc_gatt.h" #define MAX_CHARS 10 #define MAX_SVCS 4 static ble_uuid16_t v_u...
/* * Copyright 2012 Red Hat Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, d...
#include "../UBCSR.h" #include "../VBR.h" csr *ubcsr_csr_splitOnce(csr *c, ubcsr *u, float thresh) { vbr *v = malloc(sizeof(vbr)); csr *rem = malloc(sizeof(csr)); int i, j, k, lk; int rcnt, bcnt; csr_vbr(c, v, thresh); // Converting from VBR to UBCSR u->n = v->n; u->m = v->m; // C...
/* $Id$ Copyright 1989-2014 <NAME> This file is part of Linear/C3 Library. Linear/C3 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 3 of the License, or any later v...
/**----------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2020 <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 r...
// Implementation of interface described in float_blob.h. #include <errno.h> #include <fcntl.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <glib.h> #include <glib/gstdio.h> #include <gsl/gsl_math.h> #include "float_blob.h" #include "float_image.h" #include "utiliti...
/* ********************************************************** * Copyright (c) 2014-2020 Google, Inc. All rights reserved. * **********************************************************/ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
#include "mmp.h" #include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/param.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/uio.h> #include <unistd.h> #include <locale.h> #define ucfree(x) if(x) { wfree(x); x = NULL; } typedef struct mpg123Back...
#pragma once #include <inttypes.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <rte_byteorder.h> #include <rte_mbuf.h> #include <rte_mbuf_ptype.h> #include <rte_memory.h> #include <rte_ethdev.h> #include "libvig/verified/packet-io.h" #include "libvig/models/str-descr.h" #include "libvig/mod...
/* ISC license. */ #include <skalibs/uint16.h> #include <skalibs/uint32.h> #include <skalibs/uint.h> #include <skalibs/bytestr.h> #include <skalibs/fmtscan.h> #include <skalibs/buffer.h> #include <skalibs/stralloc.h> #include <skalibs/djbunix.h> #include <skalibs/ip46.h> #include <skalibs/skamisc.h> #include "mgetuid....
/* * $Id: aa8.c,v 1.8 2002/01/02 02:37:59 ellard Exp $ * * Copyright 1996-2001 by the President and Fellows of Harvard College. * See LICENSE.txt for license information. * * <NAME> -- 10/20/96 * <NAME> -- 11/09/96 * * aa8.c -- * */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> /* for unlink */...
/* This file is part of SAIL (https://github.com/smoked-herring/sail) Copyright (c) 2020 <NAME> The MIT License 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 restr...
/*! \file * Hardware.c * * \brief * Code for setting up the hardware elements of the board * * \author * Ryan * \date 20/04/2017 21:20:39 *****************************************************************************/ #include "Hardware.h" #include "drivers/port/port_driver.h" #include "dr...
/** * 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...
/* * Joystick specific HID functionality * * Copyright (c) 2016-2017 Red Hat, Inc. * * Author(s): * <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 mus...
/** * Interfaccia privata dalla libreria edit.h * * @author <NAME> * <EMAIL> * matricola: 105056 * * @version Seconda Consegna 25/09/2020 * */ #include <stdlib.h> #include <string.h> #include "edit.h" #include "list.h" #include "edit_instruction.h" int minimum(int, int, int)...
#include "model.h" #include "../lang-model/model.h" #include "controller.h" #include <math.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include <ctype.h> const char* PROGRAM_OPTIONS = ".,+-<>[]"; #define PROGRAM_OPTION_COUNT 8 #define MAX_MUTATION_RATE PROGRAM_OPTION_COUNT const int PROGRAM_SIZE = ...
/* $OpenBSD: rfc931.c,v 1.12 2009/10/27 23:59:30 deraadt Exp $ */ /* rfc1413 does an attempt at an ident query to a client. Originally written * by <NAME>, rewritten by <NAME> <<EMAIL>> to avoid * potential longjmp problems and get rid of stdio usage on sockets. */ #include <stdio.h> #include <sys/types.h> #incl...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> static void print_coloring(int n, unsigned char *coloring) { int i; for (i = 0; i < n; i++) { printf("%d", coloring[i]); if (((i + 1) % 50) == 0) printf("\n"); else if (((i + 1) % 10) == 0) printf(" "); } printf("\n"); } inl...
//#include <string.h> #include <machine/spm.h> #include "include/bootable.h" #include "include/patio.h" #include "libnoc/noc.h" #define __IO_CALC_ADDRESS_DYNAMIC(BASE, BANK, OFFSET) \ ((void _SPM *)(((unsigned char*)BASE) + (BANK) + (OFFSET))) #define ARGO_CONFIG_RD32(BANK, OFFSET) \ *((volatile unsigned long int...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team, * check out http://www.gromacs.org for more information. * Copyright (c) 2012,2013, by the GROMACS development team, l...
/** * fpcc-comp.c - Compare fingerprints produced by fpcc-sig * * Author: <NAME> <<EMAIL>> */ #include <errno.h> #include <limits.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <unistd.h> #include "common.h" typedef struct { char *fname; // filename unsigned count; // number of hashe...
#include "imu.h" #include "calibration.h" #include <stdint.h> #include <unistd.h> #include "driver/mpu6050.h" #include "driver/ak8963.h" #include "util/macro.h" #include "util/logger.h" #include "util/debug.h" #include "util/filter/sma_filter.h" //----- Configurations. #define COMPLEMENTARY_ALPHA 0.98 #define UPD...
/* * * Copyright (c) 2008, Swedish Institute of Computer Science * All rights reserved. * * Additional fixes for AVR contributed by: * * <NAME> <EMAIL> * <NAME> <EMAIL> * <NAME> <EMAIL> * <NAME> <EMAIL> * <NAME> <EMAIL> * <NAME> <EMAIL> * * All rights reserved. * * Redistribution and use in sour...
// Copyright 2012 <NAME>. Released under the MIT license. // This file has been almost completely rewritten in 2016 by <NAME>, to generate Lua code. #include <stdarg.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "8cc.h" bool dumpstack =...
/** * \file * \brief Flounder stubs */ /* * Copyright (c) 2007, 2008, 2009, 2010, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092...
#include <time.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <stdio.h> #include "vector.h" #include "io.h" #include "image.h" #include "params.h" #include "util.h" /* * Particle type. */ typedef struct particle { vec2 pos; vec2 dir; double vel; double sediment; double water; } particle; ...
/* This file contains: GetFlags4 CheckWave CheckX2D GetCheckRef4 */ # include <stdio.h> # include <c_iraf.h> # include <hstio.h> # include "../stis.h" # include "calstis4.h" # include "../stiserr.h" /* defines error codes */ # include "../stisdef.h" static int CheckWave (Hdr *, StisInfo4 *, int *, int *); stat...
/* * Copyright (C) 2014 BlueKitchen GmbH * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the follo...
/* ======================================================================== D O O M R e t r o The classic, refined DOOM source port. For Windows PC. ======================================================================== Copyright © 1993-2012 id Software LLC, a ZeniMax Media c...
#include "ufbgc.h" typedef struct{ const ufbgc_test_frame * frame; size_t frame_iterator; bool frame_iterateable; clock_t test_start; FILE * output_file; }internal_ufbgc_test_frame; static internal_ufbgc_test_frame current_test_frame = { .frame = NULL, .frame_iterator = 0, .frame_itera...
#include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "io.h" static void htcapabilities(Pcidev* pci, int cp) { u64int idr; u32int command, r; /* * Top 5 bits of command give type: * 000xx slave or primary interface * 001xx host or secondary interface * 10000 i...
/*- * Copyright (c) 2014 <NAME> <<EMAIL>> * All rights reserved. * * This software was developed by SRI International and the University of * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237) * ("CTSRD"), as part of the DARPA CRASH research programme. * * Redistribution and use in sourc...
/* ** lro_fm_crc ** ** This program calculates the CRC of a given file using the same ** algorithm as the LRO spacecraft flight software File Manager task uses. ** ** Inputs: One string containing the filename of the file for which to calculate the CRC. ** Optional decimal number of bytes to skip before st...
/**************************************************************************//** * @file main.c * @version V1.00 * $Revision: 12 $ * $Date: 18/07/19 2:21p $ * @brief Capture the PWM0 Channel 0 waveform by PWM0 Channel 2. * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2018 Nuvoton Technology Cor...
#include "memorymap.h" #include "uart.h" #include "gpio.h" #include "nvic.h" /* By default, we receive data in blocks of this size (incomplete blocks are sent with a bit delay). This value is a compromise of interrupt overhead, transmission granularity and receive buffer reserve (16 bytes total). Allowed values: 1,4...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <getopt.h> #include <sys/time.h> #include "grd.h" #include "ge_dtypes.h" #include "ge_config.h" #include "ucvm_config.h" #include "ucvm_meta_etree.h" #include "ucvm_proj_ucvm.h" /* Default config file */ #define GE_DEFAULT_CFG "grd2etree.conf" /* Te...
#include <stdio.h> #include <string.h> #include <pthread.h> #include <immintrin.h> #define LIMIT 1000000000 // use 128 bit number buffers to simplify SSE2 128-bit buffer comparison #define NUMBERSIZE 16 // 4 worker threads with load of 3M numbers per thread give best result on Core i7-7600U. YMMV #define THREAD_COUN...
/* * OS independent serial interface * * Heavily based on Pirate-Loader: * http://the-bus-pirate.googlecode.com/svn/trunk/bootloader-v4/pirate-loader/source/pirate-loader.c * */ #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #ifdef USE_WINDOWS_OS #else #include <unistd.h> // for read/write #inclu...
/* * ionice: set or get process io scheduling class and priority * * Copyright (C) 2005 <NAME> <<EMAIL>> * * Released under the terms of the GNU General Public License version 2 * */ #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <getopt.h> #include <unistd.h> #include <sys/syscall.h> #includ...
#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...
/** * @file os.h * @brief OS related stuff. */ #pragma once #include "svc.h" ///< The external clock rate for the SoC. #define SYSCLOCK_SOC (16756991u) ///< The base system clock rate (for I2C, NDMA, etc.). #define SYSCLOCK_SYS (SYSCLOCK_SOC * 2) ///< The base clock rate for the SDMMC controll...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <dirent.h> #include <sys/types.h> #include <sys/stat.h> #include <time.h> #include "make.h" #define DELIM " " /* Load a Makefile with its target, dependencies and actions * Target: can have maximum of TARGET_SIZE characters * Dependency: can have...
/* * Driver for AMS CCS811 digital gas sensor used with Azure Sphere developer * kit. * * This is a platform dependent wrapper for CCS811 driver. * * --------------------------------------------------------------------------- * * The BSD License (3-clause license) * * Copyright (c) 2019 <NAME> (https://githu...
/** Generated Main Source File Company: Microchip Technology Inc. File Name: main.c Summary: This is the main file generated using PIC10 / PIC12 / PIC16 / PIC18 MCUs Description: This header file provides implementations for driver APIs for all modules selected in the GUI. ...
/* Por Prof. <NAME> <<EMAIL>> * Em 4/4/2021 * * Um código simples de um servidor de eco a ser usado como base para * o EP1. Ele recebe uma linha de um cliente e devolve a mesma linha. * Teste ele assim depois de compilar: * * ./ep1-servidor-exemplo 8000 * * Com este comando o servidor ficará escutando por c...
/*! * Copyright (C) 2015 - 2016 Bosch Sensortec GmbH * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions a...
#include "mod.h" mt_mod* mt_mod_init(uint16_t _size, uint8_t _f_size) { mt_mod* mod = (mt_mod*) malloc(sizeof(mt_mod)); mod->ref_count = 1; mod->_size = _size; mod->len = 0; mod->bytes = (uint8_t*) malloc(_size); mod->_f_size = _f_size; mod->f_len = 0; mod->fns = (uint16_t*) malloc(siz...
/* * LIBOIL - Library of Optimized Inner Loops * Copyright (c) 2001,2002,2003,2004 <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 mu...
#include <pthread.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> #include <string.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <poll.h> #include <stdbool.h> #include <assert.h> #include "updater.h" #include "view.h" struct sockaddr_un to_paula; int to_paula_fd; exter...
#include <stdio.h> #include <omp.h> #include <time.h> #include <stdlib.h> #define MAX_THREADS 4096 #define MAX 1000000 #define bool short #define true 1 #define false 0 int vet[MAX]; //Funcao para configurar o vetor void setVetor(); //Funcoes gerais bool IsSorted(int *a); void imprimir(int *a); void copiarVetor(in...
/* * Copyright (C) 2019 BlueKitchen GmbH * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the follo...
/* * Copyright (c) 2018, LumenRadio AB All rights reserved. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. I...
#include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "kvec.h" #include "sys.h" #include "paf.h" #include "sdict.h" #include "miniasm.h" #include "kermit.h" #include "color.h" void dict_merge(sdict_t *a, sdict_t *b) { for (uint32_t i = 0; i < b->n_seq; ++i) { sd_put(a, b->seq[i]....
/* $NetBSD: ucbio.c,v 1.5 2002/01/29 18:53:12 uch Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by UCHIYAMA Yasushi. * * Redistribution and use in source and binary forms, with or without * modi...
#include "output.h" void ab_append(struct abuf *ab, const char *s, int len) { char *new = realloc(ab->b, ab->len + len); if (new == NULL) return; memcpy(&new[ab->len], s, len); /* ! */ ab->b = new; ab->len += len; } void ab_free(struct abuf *ab) { free(ab->b); } void editor_scroll() { E->rx = 0; if (...
/* Copyright 2016 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. */ #include "dcrypto.h" #include <stdint.h> /* Limit the size of long form encoded objects to < 64 kB. */ #define MAX_ASN1_OBJ_LEN_BYTES 3 /* Tag r...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <cairo.h> #include <cairo-xcb.h> // #include <cairo/cairo-xcb-xrender.h> // #include <lightdm.h> // #include <pango/pango.h> #include <pango/pangocairo.h> #include <xcb/xcb.h> #include <xcb/xcb_keysyms.h> #ifnde...
/// /// @file /// /// @brief /// /// @author <NAME> (<EMAIL>), Umeå University /// /// @internal LICENSE /// /// Copyright (c) 2019-2020, Umeå Universitet /// /// Redistribution and use in source and binary forms, with or without /// modification, are permitted provided that the following conditions are met: /// /// 1....
/* * <NAME> * <EMAIL> * * The author or authors of this code dedicate any and all copyright interest * in this code to the public domain. We make this dedication for the benefit * of the public at large and to the detriment of our heirs and successors. We * intend this dedication to be an overt act of relinquish...
/* based on: https://github.com/JoakimSoderberg/mesademos/blob/master/src/osdemos/osdemo32.c */ #include <stdio.h> #include <stdlib.h> #include <GL/osmesa.h> #include <GL/glu.h> //replaced by default header in linux #include "graph/log.h" #include "graph/Surface.h" #include "graph/Input.h" #include "die.h" #inc...
/* * The Shadow Simulator * Copyright (c) 2010-2011, <NAME> * See LICENSE for licensing information */ #include "shadow.h" #include <elf.h> #include <link.h> static Master* shadowMaster; #define INTERPOSELIBSTR "libshadow-interpose.so" static gboolean _main_checkPreloadEnvironment(gchar** envlist) { /* we ...
/* * 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...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
#include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <errno.h> #include <string.h> #include "debug.h" #include "box86context.h" #include "dynarec.h" #include "emu/x86emu_private.h" #include "tools/bridge_private.h" #include "x86run.h" #include "x86emu.h" #include "box86stack.h" #include "callback.h" #i...
/* * ESP8266 UDP functions, (mostly) related to the Wish local discovery * system */ #include <stddef.h> #include <string.h> #include "c_types.h" #include "ip_addr.h" #include "espconn.h" #include "espmissingincludes.h" #include "mem.h" #include "user_interface.h" #include "osapi.h" #include "wish_connection.h"...
/** * XMLELEMENT.C -- (Private) Method to manage XML elements. * * @file xmlElement.c * @author <NAME> and <NAME> * @date 8/03/09 * * @brief (Private) Methods to manage XML elements. */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include "xmlParseP...
// ================================================================================================= // This file is part of the CodeVault project. The project is licensed under Apache Version 2.0. // CodeVault is part of the EU-project PRACE-4IP (WP7.3.C). // // Author(s): // <NAME> <<EMAIL>> // // This example dem...
#include <inttypes.h> #include <math.h> #if !defined(M_PI) # define M_PI 3.14159265358979323846 #endif #include <string.h> #include <stdio.h> #include <stdlib.h> #include "lpclib.h" #include "bsp.h" #include "sys.h" #include "imet.h" #include "imetprivate.h" /** Context */ typedef struct IMET_C...
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in * the LICENSE file in the root directory of this source tree. An * additional grant of patent rights can be found in the PATENTS file * in the same directory. * */ #include...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <errno.h> typedef struct { uint16_t numpolys; uint16_t numverts; /* everything below is unused */ uint16_t bogusrot; uint16_t bogusframe; uint32_t bogusnorm[3]; uint32_t fixscale; uint32_t unused[3]; uint8_t padding[12]; }...
#include <stdlib.h> #include <stdio.h> #include <opencv2/core/fast_math.hpp> //Probably a bad idea, but necesarry. #include <opencv/cv.h> #include <opencv/highgui.h> #include <opencv2/videoio/videoio_c.h> #include <signal.h> #include <unistd.h> #define KEY_ESC 0x10001b #define KEY_NONE 0xffffffff #define KEY_CAM 0x101...
/* Copyright (c) 2011 Expression Analysis / <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...
// SPDX-License-Identifier: Apache-2.0 /* * Copyright IBM Corp. 2021 * * 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 req...
//the command line: valgrind --tool=lackey --trace-mem=yes ./quicksort 100 2>&1 | ./valtlb379 -p FIFO 4096 1024 #include <stdio.h> #include <stdlib.h> #include <string.h> //initial the global var int tlbsize; long pgsize; //count for hit, miss long hit = 0; long flash_hit = 0; long miss = 0; //the virt...
#include "errno.h" #include "stdio.h" #include "stdlib.h" #include "string.h" /* A simple LZ77 implementation with a 64k search window. (c)2018 <EMAIL> The output consists of token bytes optionally followed by literals. 0xxxxxxx : Offset 0, length X. 1xxxxxxx yyyyyyyy yyyyyyyy : Offset Y, lengt...
/*! * \file rtc-board.c * * \brief Target board RTC timer and low power modes management * * \copyright Revised BSD License, see section \ref LICENSE. * * \code * ______ _ * / _____) _ | | * ( (____ _____...
/* ------------------------------------------------------------------- * @doc Testing aSymbol.c functionality * @notice * * @copyright Arboreus (http://arboreus.systems) * @author <NAME> (http://alexandr.kirilov.me) * @created 02/01/2019 at 16:49 * */// ----------------------------------------------------...
/* * Bellman-Ford shortest path algorithm * ------------------------------------- * Uses adjacency matrix for storing the graph * If u and v are connected, then the adjacency matrix * will have adj-matrix[u,v] := weight. If u and v are * not connected, then adj-matrix[u,v] := infinity. * * INT_MAX defined ...
#include "render.h" static inline f32 schlick(f32 cos, f32 ref_idx) { const f32 r_0 = f32_square((1.f - ref_idx) / (1.f + ref_idx)); return r_0 + (1.f - r_0)*f32_pow((1.f-cos), 5); }; static inline bool refract(v3 v, v3 n, f32 ni_over_nt, v3 *refracted) { const v3 uv = v3_norm(v); const f32 dt = v3_dot(uv, n); co...