text
stringlengths
3.08k
10.5k
/* * MBWTEST.C * * (c)Copyright 2003 <NAME>. This code is hereby placed in the public * domain. * * Attempt to figure out the L1 and L2 cache sizes and measure memory * bandwidth for the L1 and L2 cache and for non-cache memory. * * $DragonFly: src/test/sysperf/mbwtest.c,v 1.1 2003/11/13 07:10:36 di...
#include "party.h" #include <ds/list.h> #include "structure.h" // static threshold at which to run things in parallel #define PAR_REDUCE_SPLIT 400 // static threshold to run things sequentially. partys with less than 200 // known items can be fused and run sequentially with partys of size // less than PAR_REDUCE_SPLI...
// SPDX-License-Identifier: MIT #include <errno.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // need strlen() #include <unistd.h> #include "globals.h" #include "msg.h" // color_log writed to `f`, prefixing the `color` code if `f` is a tty. static void color_log(FILE* f, const cha...
/* * data_SD.c * * Created: 18-Mar-16 14:32:33 * Author: <NAME> */ #include <avr/io.h> #include <stdlib.h> #include "defines_global.h" #include "uSD_SPI.h" #include "diskio.h" #include "ff.h" #include "MMC.h" #include "Variables.h" FATFS fs; // Work area (file system object) for logical drives FIL f_orige...
/* * Copyright © 2003-2018 Acronis International GmbH. */ #include "pcs_types.h" #include "pcs_sock_conn.h" #include "pcs_sock_io.h" #include "pcs_errno.h" #include "pcs_poll.h" #include "pcs_malloc.h" #include "log.h" #include <unistd.h> #include <errno.h> #include <fcntl.h> #include <memory.h> #include <stdlib.h...
#include "libmpeg3.h" #include <stdlib.h> #include <string.h> #include <Types.h> #include <Fonts.h> #include <Memory.h> #include <Windows.h> #include <Quickdraw.h> #include <TextEdit.h> #include <Dialogs.h> #include <QDOffscreen.h> #include <Quickdraw.h> #include <Memory.h> #include <profiler.h> void * memoryAllocate(...
/* * Copyright (C) 2017 Jolla Ltd. * Contact: <NAME> <<EMAIL>> * * You may use this file under the terms of BSD license as follows: * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of...
/* vi: set sw=4 ts=4: */ /*********************************************************************** * * ppp3g.c * ***********************************************************************/ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <unistd.h> #include <fcntl.h> #include <sys/st...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "usbcommon.h" const uint16_t VENDOR_ID = 0x045e; const uint16_t PRODUCT_ID = 0x02ea; void print_libusb_version(void) { const struct libusb_version *version = libusb_get_version(); printf("libusb v%u.%u.%u.%u%s (%s)\n", ...
/* * Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com * * 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 requir...
/* * Copyright (c) 2021 Actility. 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...
/* Small standalone test program to check the existence of Capsicum syscalls */ #include <sys/types.h> #include <sys/stat.h> #include <sys/wait.h> #include <fcntl.h> #include <unistd.h> #include <sys/syscall.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <stdlib.h> #include <signal.h> #include "...
/******************************************************************************* * * COPYRIGHT(c) 2020, China Mobile IOT * * 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 th...
/*------------------------------------------------------------------------------------------------*/ /* Character Device Handler Component */ /* Copyright 2017, Microchip Technology Inc. and its subsidiaries. */ /* ...
#include "../h/gsupport.h" /* * If Bell is not defined, determine the default value for the "bell" * character. */ #ifndef Bell #define Bell '\a' #endif /* Bell */ #define CBufSize 256 /* size of buffer for file input */ /* * Identification numbers for tokens for which there are no definitions * genera...
#pragma ident "$Id: local.c,v 1.16 2016/02/12 21:56:27 dechavez Exp $" /*====================================================================== * * Process locally acquired data. Update headers as appropriate * and write to disk loop. * *====================================================================*/ #in...
/* * 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...
/** ****************************************************************************** * @file rtc.c * @brief This file provides code for the configuration * of the RTC instances. ****************************************************************************** * @attention * * <h2><center>&copy;...
/*#=========================================================================### ## ## ## Author: <NAME> <<EMAIL>> ## ## ## ###==============================...
#include "piste.h" #include <stdio.h> #include <assert.h> #include <malloc.h> #include <memory.h> run_queue_t* RUN_QUEUE = NULL; run_queue_t* BLOCKED_LIST = NULL; replicated_reader_t* REPLICATED_READERS_HEAD = NULL; replicated_reader_t* REPLICATED_READERS_END = NULL; extern int piste_entry(closure_t*); void initiali...
#include "stdio.h" /* PMSIS includes. */ #include "pmsis.h" /* PMSIS BSP includes. */ #include "bsp/bsp.h" #include "gapoc_c.h" #include "bsp/camera.h" #include "bsp/ram.h" #include "bsp/ram/spiram.h" /* gaplib includes */ #include "gaplib/ImgIO.h" /* constants */ #ifdef IMG_QVGA #define CAMERA_WIDTH ( 320 ) #def...
/* * * by <NAME> www.bristolwatch.com <EMAIL> * http://www.bristolwatch.com/rpi/i2clcd.htm * Using wiringPi by <NAME> * * * Port over lcd_i2c.py to C and added improvements. * Supports 16x2 and 20x4 screens. * This was to learn now the I2C lcd displays operate. * There is no warrenty of any kind use at your own risk. ...
/** * UART driver code. * This file is part of LUNA. */ #include <sam.h> #include <hpl/pm/hpl_pm_base.h> #include <hpl/gclk/hpl_gclk_base.h> #include <hal/include/hal_gpio.h> #include <peripheral_clk_config.h> // Hide the ugly Atmel Sercom object name. typedef Sercom sercom_t; // Create a quick reference to ...
// This macro is used when generating field types. A field type in user code // such as int__(idx) should expand to an offset counter increment and a field // type template instantiation (e.g., int_) at the computed offset. // Note: This macro must not be undefined even though it is only called within // this class. It...
/* 6502ctrl (https://github.com/kuwatay/6502cttl) * Copyright 2021 <NAME> a.k.a. morecat_lab * * 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 li...
/***************************************************************************** * boxdumper.c: ***************************************************************************** * Copyright (C) 2010-2013 L-SMASH project * * Authors: <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software ...
/* * tslib/src/testutils.c * * Copyright (C) 2001 <NAME>. * * This file is placed under the GPL. Please see the file * COPYING for more details. * * SPDX-License-Identifier: GPL-2.0+ * * * Common functions for the test programs */ #include "config.h" #include <stdio.h> #include <stdlib.h> #include <unis...
/* This code was written in response to a challenge posed by <NAME> on Google+. The challenge: Solve the partial diferential equation -Laplacian(u) = f with homogeneous Dirichlet boundary conditions on the unit square for f(x,y) = 2 pi^2 sin(pi*x) * sin(pi*y). Who can compute a solution with a...
// MIT License, Copyright (c) 2021 <NAME> #include <config.h> #include <device.h> #include <library.h> #include <log.h> #include <panic.h> #include <protocols/all.h> // Keys #define TIMEOUT "TIMEOUT" #define PATH "PATH" // Config structure static struct cfg cfg = { 0 }; // Config file contents (if found) static cha...
/**************************************************************************** * apps/graphics/pdcurses/pdc_scrdump.c * Public Domain Curses * RCSID("$Id: scr_dump.c,v 1.30 2008/07/13 16:08:18 wmcbrine Exp $") * * Copyright (C) 2017 <NAME>. All rights reserved. * Adapted by: <NAME> <<EMAIL>> * * Adapted from...
#include <lib_multicore.h> static errval_t load_and_relocate_driver(struct bootinfo *bootinfo, struct arm_core_data *core_data) { size_t retsize; // Load the cpu driver module. struct mem_region *cpu_driver_module = multiboot_find_module(bootinfo, "cpu_omap...
/* * ++Copyright++ 1985, 1993 * - * Copyright (c) 1985, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of so...
/* CF3 Copyright (c) 2015 ishiura-lab. Released under the MIT license. https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md */ #include<stdio.h> #include<stdint.h> #include<stdlib.h> #include"test1.h" int8_t x38 = -1; int8_t x296 = 3; uint16_t x474 = 0U; static int16_t x656 = INT16_MIN; int64_t x666 = INT64_MI...
#include <stdio.h> #include <stddef.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <time.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> // file I/O int64_t getFileSize(FILE* fp) { struct stat buf; int fd = fileno(fp); fstat(fd, &buf); int64_t size = buf.s...
/* * Copyright (c) 2020 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2....
/* * Copyright (c) 2020 Bouffalolab. * * This file is part of * *** Bouffalolab Software Dev Kit *** * (see www.bouffalolab.com). * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions ...
#include <stdio.h> #include <stdlib.h> #include "swapchain.h" #include "render_impl.h" #include "tools.h" // TODO static uint32_t max(uint32_t a, uint32_t b) { return a>b?a:b; } static uint32_t min(uint32_t a, uint32_t b) { return a<b?a:b; } static VkSurfaceFormatKHR choose_format(VkSurfaceFormatKHR* format...
/** @mainpage About * @author <NAME> <<EMAIL>> * @version 1.0.0 * * This program is implemented on ATmega16/32 running at 16 MHZ * CPU clock, it basically receives commands from Android companion * application via Bluetooth using the widely common HC-05 Bluetooth * Module, it acts upon the command rec...
#include "input.h" // 静态变量 ,用于记录键盘状态 static int code_with_E0; static int shift_l; static int shift_r; static int alt_l; static int alt_r; static int ctrl_l; static int ctrl_r; static int caps_lock; static int num_lock; static int scroll_lock; static int column; static KEYMAP_RESULT result; // 子函数 u8 input_keyboard_ge...
/* * Copyright (c) 2001-2004 <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 conditi...
#include "icu_common.h" extern VALUE rb_cUString; extern VALUE icu_ustr_new_set(const UChar * str, long len, long capa); /** * call-seq: * ary.to_u => anUString * * Creates UString from array of fixnums, representing Unicode codepoints. * (inversion of UString#codepoints) * * a = "поддержка".to_u.code...
/* * Copyright (c) 2005-2012 by KoanLogic s.r.l. - All rights reserved. */ #include <sys/types.h> #include <errno.h> #include <stdio.h> #include <string.h> #include <stdarg.h> #include <stdint.h> #include <signal.h> #include <unistd.h> #include <toolbox/log.h> #include <toolbox/carpal.h> #include <toolbox/misc.h> ...
/************************************************************************ Copyright (c) 2015, The Linux Foundation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code mu...
/*- * Copyright (c) 2013 <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...
#include <nSystem.h> #include "transbordo.h" int debugging= TRUE; int verificar, achacao, apargua; typedef struct { int i; /* transbordador */ int v; /* vehiculo */ nTask t; int haciaChacao; } Viaje; /* Guarda el identificador de la tarea nMain que sirve para controlar el avance del resto de las t...
#include <stdio.h> #define INF 999 void dij(int n,int v,int cost[10][10],int dist[]) { int i,u,count,w,flag[10],min; for(i=1;i<=n;i++) flag[i]=0,dist[i]=cost[v][i]; count=2; while(count<=n) { min=INF; for(w=1;w<=n;w++) if(dist[w]<min && !flag[w]) min=dist[w],u=w; flag[u]=1; count+...
/* ────────────────────────────────────────────────────────────────────────── * │ │ │ This file is part of the exercises for the Lectures on │ │ "Foundations of High Performance Computing" │...
#define _GNU_SOURCE // For asprintf #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <dirent.h> #include <sys/ptrace.h> #include <sys/user.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/signalfd.h> typedef struct { pid_t pid; } Task; int LoadTaskTraces(char* pid, Task** tasks, si...
#include "display.h" Color backgroundColor = DEFAULT_BG_COLOR; Color defaultTextColor = DEFAULT_TEXT_COLOR; char *video = (char*) 0xB8000; int screenWidth = SCREEN_WIDTH; int screenHegiht = SCREEN_HEIGHT; CursorStyle cursorStyle = CURSOR_BLOCK; int cursorI = 0; int cursorJ = 0; int backspaceLimitI = 0; int backsp...
// Some sort of noise function. // Copyright (c) 2020, <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...
#include <stdio.h> #include <assert.h> struct splay_node { int size; int value; struct splay_node *ch[2]; }; int magic_flag = 0; void splay_print(struct splay_node *r) { static int depth = 0; if (depth == 0) puts("== tree =="); ++depth; if (r != NULL) { int i; splay_print(r->ch[0]); for (i = 0; i < ...
#ifndef GLYPH_digit_dot_BPP #define GLYPH_digit_dot_WIDTH 8 #define GLYPH_digit_dot_HEIGHT 10 #define GLYPH_digit_dot_BPP 1 extern unsigned int const C_digit_dot_colors[]; extern unsigned char const C_digit_dot_bitmap[]; #ifdef OS_IO_SEPROXYHAL #include "os_io_seproxyhal.h" exter...
#include <stdlib.h> #include <assert.h> #include <stdio.h> #include <math.h> /** Binary search algorithm to find the location of the index i of the * interval containing z, x[i] < z < x[i+1]. * @param n is the number of datapoints * @param x is a pointer to array * @param z is the value to search for. **/ static...
/* file ex_aquaphy.c The Aquaphy algal model -------- ex_Aquaphy.c -> ex_Aquaphy.dll ------ compile in R with: system("gcc -shared -o Aquaphy Aquaphy") or with system("R CMD SHLIB ex_Aquaphy") */ #include <R.h> static double parms[19]; #define maxPhotoSynt parms[0] #define rMortPHY parms[1] #define ...
#include "particlefilter.h" float state_vector[4] = {0,0,0,0}; float reference_points[3][2] = {{0,0}, {10, 10}, {10, 0}}; int create_particles(){ int i; particles = (particle**)malloc(NUM_PARTICLE*sizeof(particle*)); //particles = malloc(NUM_PARTICLE * sizeof(particle)); for(i=0; i<NUM_PARTICLE; i++){ particle...
/* <NAME>, 3rd, 4th, 5th, 6th, 7th, 8th, 9th of March 2020 */ /* TODO :: match.c and match.h :: refactor (fancify) */ #include "Zprh.h" bool SHOW_DEBUG = false; bool SHOW_INFO = false; void print_help() { fprintf(stderr, "Usage: Zprh [flags] <source> [flags]\n" "\n" " --help, -h : Pr...
//****************************************************************************** //! @file $RCSfile: reduced_can_lib.c,v $ //! //! Copyright (c) 2007 Atmel. //! //! Use of this program is subject to Atmel's End User License Agreement. //! Please read file license.txt for copyright notice. //! //! @brief This file conta...
#include <MKL25Z4.h> #define MASK(X) (1UL<<X) //define intruction pins #define RS (2) //pta2 #define E (4)//ptd4 #define D0 (12)//pta12 #define D1 (4)//pta4 #define D2 (5)//pta5 #define D3 (8)//ptc8 #define D4 (9)//ptc9 #define D5 (13)//pta13 #define D6 (5)//ptd5 #define D7 (0)//ptd0 //define instructions #define CL...
/* * Functions which help add and remove mentions to Signal messages. */ #include <stdlib.h> #include <sc-collections.h> #include "internal.h" const char MENTION_PLACEHOLDER[] = { 0xEF, 0xBF, 0xBC, 0x00 }; char *mention_format(char *string, const char *prefix) { struct sc_charbuf cb; sc_cb_init(&cb, 64); sc_cb...
/* * This file and its contents are supplied under the terms of the * Common Development and Distribution License ("CDDL"), version 1.0. * You may only use this file in accordance with the terms of version * 1.0 of the CDDL. * * A full copy of the text of the CDDL should have accompanied this * source. A copy o...
/* * Copyright (c) 2007 <NAME> * * Use of this source code is governed by a MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT */ #include <string.h> #include <stdlib.h> #include <lk/debug.h> #include <lk/trace.h> #include <lk/err.h> #include "ext2_priv.h" #defi...
// // main.c // c-only-program // // #include <stdio.h> #include <string.h> #include <time.h> #include <stdlib.h> #define MAX_SOL_TO_PRINT 50 #define START_WITH_2_ALWAYS 2 /* w2 final result 85 - 46 = 39, 39 + 72 = 111 86 - 54 = 32, 32 + 79 = 111 90 - 27 = 63, 63 + 48 = 111 90 - 63 = 27, 27 + 84 = 111 9...
/* Copyright 2014, <NAME> * * This file is part of uPOSIX. * * 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 conditio...
/** \brief This program shows the use of the "radio" bsp module. Since the bsp modules for different platforms have the same declaration, you can use this project with any platform. The board running this program will send a packet on channel CHANNEL every TIMER_PERIOD ticks. The packet contains LENGTH_PACKET bytes. ...
/** * Copyright (2017) Baidu Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
#include "led.h" #include <avr/io.h> unsigned char led_data[64 * 3] = {}; unsigned char led_colors[8] = {}; volatile uint8_t* led_port = 0; u8 led_brightness = 0; void led_init(void) { for (int i = 0; i < 64 * 3; ++i) { led_data[i] = 0x00; } led_data[0] = 0x00; led_data[1] = 0x20; led_data[2] = 0x00; le...
/* input.c ECE544 Project 1 - <NAME> April 10, 2020 Created for NEXYSA7 Encompases header definitions for all things related to abstracting inputs. This includes: - Slide switches - Push buttons - Encoder state */ #include "input.h" #include "xstatus.h" #include "PmodENC.h" #include "nexys4IO.h" #include ...
#include "stm32f4xx.h" #include "stm32f4xx_rcc.h" #include "stm32f4xx_gpio.h" #include <stdio.h> #include <math.h> #include "morse_control.h" static void init_systick(); static void delay_ms(uint32_t n); extern volatile uint32_t msTicks; static volatile uint32_t ButtonPressed = 0, ButtonReleased = 0; enum ButtonStat...
#include <stdbool.h> #include <stddef.h> #include <stdint.h> #include "string.h" #include "vdp.h" #include "error.h" extern uint32_t v_err_reg[8+8]; extern uint32_t v_err_pc; extern uint32_t v_err_addr; extern uint16_t v_err_ext1; extern uint16_t v_err_ext2; extern uint16_t v_err_sr; extern uint8_t v_err_type; stati...
/* * decoder.c * This file decodes the model array encoded by encoder.py and translate the data into the configuration of layers */ #include "decoder.h" /* used to save the results of each layer and prevent data overwrite */ #pragma PERSISTENT(MODEL_ARRAY_OUTPUT) static int16_t MODEL_ARRAY_OUTPUT[MODEL_ARRAY_OUTPU...
/* File Name: Hermes.c // Compiler: GCC Author: Artic42 Description: This is library helps create log file in UNIX like systems Tested on: Raspberry Pi OS and wsl2 */ /**************************************** * Include * ****************************************/ #include <stdio...
/* systime.h - System-dependent definitions for time manipulations. Copyright (C) 1993, 1994 Free Software Foundation, Inc. This file is part of GNU Emacs. GNU Emacs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Founda...
/* * Copyright (c) 2020-21, Kalopa Robotics Limited. 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, thi...
/* * BrainFuck interpreter */ #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_STK 512 /* Maximum size for stack */ #define MAX_LEN 30000 /* Maximum length for data */ /* Read the file and give you the string buffer */ inline char *read_file(char *path, long int* read_le...
/* * 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...
#define _GNU_SOURCE #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <signal.h> #include <errno.h> #include <poll.h> #include <sys/stat.h> #include <sys/wait.h> #include <sys/ioctl.h> #include <sys/reboot.h> #include "inittab.h" #include "runlevel.h" #include "init.h" static vo...
#include "jsB_arraybuffer.h" #include <string.h> #include <stddef.h> #define M_MIN(a, b) (a < b ? a : b) #define M_MAX(a, b) (a > b ? a : b) #define M_CLAMP(v, a, b) M_MIN(M_MAX(v, a), b) #define BUFFER_MAX 0x3fffffff #define U_NAME "ArrayBuffer" #define soffsetof(x,y) ((int)offsetof(x,y)) static int normalizeIndex(...
/* Copyright 2015 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
/* * avrdude - A Downloader/Uploader for AVR device programmers * Copyright (C) 2002-2004 <NAME> <<EMAIL>> * Copyright 2007 <NAME> <<EMAIL>> * * 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 Foundat...
/* * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL licenses, (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * https://www.openssl.org/source/license.html * or in the file LICENSE in th...
/* * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/l...
//<NAME> e <NAME> - Kruskal #include<stdlib.h> #include<stdio.h> #define NIL -1 #define MAX 100 struct arestaK { int vertice_A, vertice_B, peso; struct arestaK *link; }*frente = NULL; void cria_arvore(struct arestaK arvore[]); struct arestaK *insere_aresta_peso(int vertice_A, int vertice_B, int pe...
#include <stdlib.h> #include <string.h> #include <stdio.h> #if defined(_WIN32) #include <winsock2.h> #pragma comment(lib, "Ws2_32.lib") #else #include <arpa/inet.h> #endif #include "nimiq_native.h" static inline uint16_t bswap_16(uint16_t x) { return (x>>8) | (x<<8); } static inline uint32_t bswap_32(ui...
/* * 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...
// https://developer.arm.com/documentation/ddi0595/2021-06/AArch64-Registers/ESR-EL1--Exception-Syndrome-Register--EL1- #include "utils.h" #include "exception.h" #include "sys.h" #include "printf.h" #include "sched.h" #include "memory.h" #include "uart.h" #include "mbox.h" #include "entry.h" #include "stdlib.h" #inclu...
/* * Copyright (C) 2001 - 2007 <NAME> (<EMAIL>,addto<EMAIL>) * Licensed under the GPL */ #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <termios.h> #include <unistd.h> #include <netinet/in.h> #include "chan_user.h" #include <os.h> #include "port.h" #include <um_malloc.h> struct port_chan { int...
/* mga_warp.c -- Matrox G200/G400 WARP engine management -*- linux-c -*- * Created: Thu Jan 11 21:29:32 2001 by <EMAIL> * * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and ...
/* Copyright (c) 2010 The Regents of the University of California * <NAME> <<EMAIL>> * See LICENSE for details. * * Devfs: filesystem interfaces to devices. For now, we just create the * needed/discovered devices in KFS in its /dev/ folder, and only do this for * stdin and stdout. */ #include <devfs.h> #include...
/* =========================================================================== * bas55, an implementation of the Minimal BASIC programming language. * * String constants and garbage collected dynamic strings appearing in the * BASIC program. * =======================================================================...
/* Prototypes for pa.c functions used in the md file & elsewhere. Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2010, 2011 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as pub...
#include <ultra64.h> #include <mem.h> #include <stdint.h> uintptr_t segmentTable[SEGMENT_COUNT]; void setSegment(u32 segmentIndex, void* virtualAddress) { segmentTable[segmentIndex] = (uintptr_t) virtualAddress; } void *getSegment(u32 segmentIndex) { return (void *)segmentTable[segmentIndex]; } void* segmen...
/*************************************************************************** * Copyright (C) 2007 by <NAME> * * <EMAIL> * * * * This program is free...
#include "libcflat.h" #include "processor.h" #include "msr.h" #include "isr.h" #include "vm.h" #include "apic.h" #include "desc.h" #include "smp.h" #include "atomic.h" #include "hyperv.h" #include "alloc_page.h" #define MAX_CPUS 4 static atomic_t isr_enter_count[MAX_CPUS]; static void synic_sint_auto_eoi_isr(isr_reg...
/* Gestures * #Keywords: GtkGesture * * Perform gestures on touchscreens and other input devices. This * demo reacts to long presses and swipes from all devices, plus * multi-touch rotate and zoom gestures. */ #include <gtk/gtk.h> static GtkGesture *rotate = NULL; static GtkGesture *zoom = NULL; static double s...
/* * 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...
// SPDX-License-Identifier: GPL-2.0-or-later /* * Marvell 88E6xxx System Management Interface (SMI) support * * Copyright (c) 2008 Marvell Semiconductor * * Copyright (c) 2019 <NAME> <<EMAIL>> */ #include "chip.h" #include "smi.h" /* The switch ADDR[4:1] configuration pins define the chip SMI device address * ...
#include <time.h> #include <fcntl.h> #include <termios.h> #include <pthread.h> #include <semaphore.h> #include <stdio.h> #include <stdlib.h> #include <sys/mman.h> #include <time.h> #include <unistd.h> #define NBC 2 // nombre de cabine #define NBP 4 // nombre de paniers #define CLIENT_COUNT_MAX 150 #define STATE_DEFAU...
/* * Use is subject to license terms, as specified in the LICENSE file. */ // gcc -g $QC_FLAGS test2n.c ../lua/libtest2.so -I../xgen_inc/ -I../inc/ // TODO: Write tests on cnt #include "_hmap_chk.h" #include "_hmap_chk_no_holes.h" #include "_hmap_create.h" #include "_hmap_del.h" #include "_hmap_destroy.h" #include...
/* * Copyright (c) 2004 Cucy Systems (http://www.cucy.com) * <NAME> <<EMAIL>> * * (C) Copyright 2004 * DAVE Srl * http://www.dave-tech.it * http://www.wawnet.biz * mailto:<EMAIL> * * (C) Copyright 2002-2004 * <NAME>, DENX Software Engineering, <<EMAIL>> * * (C) Copyright 2002 * Sysgo Real-Time Solutions, ...
// // Copyright 2008-2012 <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 agreed...