text
stringlengths
3.12k
18.7k
/* Cache handling for host lookup. Copyright (C) 2004-2019 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by <NAME> <<EMAIL>>, 2004. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published ...
/*- * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2019 <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * not...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <string.h> #include <irq.h> #include <uart.h> #include <time.h> #include <generated/csr.h> #include <generated/mem.h> #include <console.h> #include <system.h> #include "sdemu.h" #include "fat.h" #include "sdtimer.h" #include "gue...
/* * Copyright (c) 2014 NVIDIA 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, ...
/* * Copyright (c) 2011, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions a...
#include "../../Libraries/util/magi.c" #include "../../Libraries/defense/str_guard.c" #include "../../Libraries/defense/int_guard.c" #include "../../Libraries/util/util_string.c" #include "../../Libraries/random/rand.c" #include <unistd.h> #include <string.h> #include "prologue-Day05.h" #include "ex00.c" ...
/* System capability. Implementation partially from https://gist.github.com/macton/4dd5fec2113be284796e */ /* INCLUDES */ #include "cpuid.h" #include <io.h> #include <memory.h> #include <internal/syscall/syscalls.h> #include <internal/cpu/cpuid.h> /* FUNCTIONS */ void print_topology() { // Retrieve processor cou...
#include <stdint.h> #include <immintrin.h> #include <arpa/inet.h> #include <string.h> #include <assert.h> #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #define AVXROR(x, y) _mm256_or_si256(_mm256_srli_epi32((x), (y)), _mm256_slli_epi32((x), 32 - (y))) static uint32_t digest[8] = {0x6A09E667U, 0xBB6...
/* ======================================================================== $File: $ $Date: $ $Revision: $ $Creator: <NAME> $ $Notice: (C) Copyright 2015 by Molly Rocket, Inc. All Rights Reserved. $ ======================================================================== */ #define ASSET_MAX_PLATE_DI...
/* * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use...
/* * | precision | sign | exponent | mantissa | bias | exp range | * | --------- | ---- | -------- | -------- | ---- | ------------ | * | half | 1 | 5 | 10 | 15 | -14 ~ 15 | * | single | 1 | 8 | 23 | 127 | -126 ~ 127 | * | double | 1 | 11 | 52 |...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the program and library */ /* SCIP --- Solving Constraint Integer Programs */ ...
#include "wifi.h" #define WIFI_CONNECTED_BIT BIT0 #define WIFI_FAIL_BIT BIT1 static EventGroupHandle_t s_wifi_event_group; static int wifi_retry_num = 0; static void wifi_event_handler(void *arg, esp_event_base_t event_base, int32_t event_id, void *event_data) { if (event_base == WIFI_EVENT && event_...
/* * Copyright (c) 2018 int16h <<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 DISC...
// Copyright (c) 2017 <NAME> // // This program is free software; you can redistribute it and/or modify it // under the terms of the MIT License. See LICENSE for more details. #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <ctype.h> #include <signal.h> #include "modules/network...
/* $Header: /kernel/kersrc/i286/RCS/tab.c,v 1.1 92/07/17 15:21:34 bin Exp Locker: bin $ */ /* (lgl- * The information contained herein is a trade secret of <NAME>ams * Company, and is confidential information. It is provided under a * license agreement, and may be copied or disclosed only under the * terms of...
#include <string.h> #include "headers.h" /* TODO: this file does not work with unicode yet!!! */ /* TODO: no way of escaping charactercodes!!! */ /* Strings are based on incomplete structs as described in http://www.informit.com/guides/content.aspx?g=cplusplus&seqNum=288 */ String *string_create_from_substr(cha...
#include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "aux.h" #include "chess.h" #include "endgame.h" #include "input.h" #include "movement.h" bool is_movement_valid(square board[][BOARD_SIZE], History *history, Player player){ if(!is_the_squares_valid(player.move)) puts("\nYou'v...
/*! \file \brief A parallel samplesort program \date Started 4/20/2013 \author George */ #include <GKlib.h> #include <mpi.h> #include <sys/types.h> #include <sys/time.h> #include <sys/resource.h> #include <unistd.h> /**************************************************************************/ /*! Sorts a distributed...
/* This is a really evil C program that installs a SIGILL handler in order to make the "opcodes" 0x06 and 0x07 (which normally just make your program crash) dump the current CPU registers on stderr. This blithely assumes that nothing else is going to try to use SIGILL for anything, which is obviou...
// TFS_LIB // Written 2019 by <NAME>, <EMAIL> // To the extent possible under law, the author(s) have dedicated all copyright and related // and neighboring rights to this software to the public domain worldwide. This software is // distributed without any warranty. Please see CC0 Public Domain Dedication. #include <p...
#define thisprog "xe-hist1" #define TITLE_STRING thisprog" v 14: 9.November.2018 [JRH]" #define MAXLINELEN 1000 /* <TAGS>signal_processing stats</TAGS> v 14: 9.November.2018 [JRH] - update variable name conventions - resolve some "uninitialized variable" warnings v 14: 10.October.2016 [JRH] - bugfix: adjustment f...
/* FNA3D - 3D Graphics Library for FNA * * Copyright (c) 2020 <NAME> * * This software is provided 'as-is', without any express or implied warranty. * In no event will the authors be held liable for any damages arising from * the use of this software. * * Permission is granted to anyone to use this software for...
/** * Copyright (c) 2016 - 2017, Nordic Semiconductor ASA * * 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...
/*---------------------------------------------------------------------- File : tabscan.c Contents: table scanner management Author : <NAME> History : 1998.01.04 file created 1998.03.11 additional character flags enabled 1998.08.12 function ts_copy() added 1998.09.01 seve...
/* *amlogic USB HOST XHCI Controller * * <NAME> <<EMAIL>> * * SPDX-License-Identifier: GPL-2.0+ */ /* * This file is a conglomeration for DWC3-init sequence and further * exynos5 specific PHY-init sequence. */ #include <common.h> #include <libfdt.h> #include <malloc.h> #include <usb.h> #include <watchdog.h> ...
/** * @file layer3.c * @author <NAME> * @date 2020/01/31 * @brief This file contains the Implementation for the third layer */ /* * Copyright (C) 2020 ETH Zurich. All rights reserved. * * Author: <NAME>, ETH Zurich * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (...
/* ** Copyright (C) 2001-2003 <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 Foundation; either version 2 of the License, or ** (at your option) any later version. ** ** This prog...
/* Copyright (c) 2011, 2012, <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 DISCLAIMS ALL WARRANTIE...
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, A...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "memory.h" #include "bdd.h" #include "hash.h" bdd_node_t yes = { "1", NULL, NULL, NULL }; bdd_node_t no = { "0", NULL, NULL, NULL }; static int bdd_compact_r(bdd_node_t *cur, hash_t *h, bdd_t *outbdd, bdd_node_t **out); static void dump_bdd_r(bd...
/****************************************************************************** ppmsvgalib ******************************************************************************* Display a PPM image on a Linux console using Svgalib. By <NAME>, San Jose CA 2002.01.06. Contributed to the...
/********************************** (C) COPYRIGHT ******************************* * File Name : main.c * Author : WCH * Version : V1.0.0 * Date : 2019/10/15 * Description : Main program body. **************************************************************************...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ui_command.c :+: :+: :+: ...
/* =============================================================================== Name : Mct_A3.c Author : <NAME>, <NAME> Version : 1.0 Copyright : Unlicense Description : Rechenmaschine =============================================================================== */ #ifdef __USE_CMSIS #i...
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2015 RDK Management * * 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 ...
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <string.h> #define NUM_DATA_POINTS 64 #define CUTOFF 1.6 #define START_WEIGHTS 0.2 #define NUM_ITEMS 32 /* * Represents an image for the perceptron to analyze */ struct img { int pix[NUM_DATA_POINTS]; int true_direction; double line_sco...
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2019 <NAME> <<EMAIL>> * * Description: * Testcase to check the basic functionality of futex(FUTEX_CMP_REQUEUE). * futex(FUTEX_CMP_REQUEUE) can wake up the number of waiters specified * by val argument and then requeue the number of waiters limited by...
#include <stdarg.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <string.h> #include <sys/epoll.h> #include <assert.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <errno.h> #include <time.h> #include "sha256.h" #include <arpa/inet.h> /* #define BITCOIN_PORT 8333 /...
/* Title: Huffman Coding for files URL: htts://github.com/TheniL/huffman Date_start: 25/11/2014 OC 1: 01/12/2014 Author: niLesh */ /* TODO: handle Codewords longer than MAX TODO: Use free() to deallocate memory TODO: sort linked list in non-increasing order, at genCode(). TODO: Store code in bit array form(...
#include <stdio.h> #include <stdlib.h> #include <CL/cl.h> #include <math.h> #include <sys/time.h> #include <unistd.h> #include <string.h> #define move 10 #define threashold 250 #define CHECK_ERROR(err)\ if(err!=CL_SUCCESS){\ printf("[%s:%d] OpenCL error %d\n", __FILE__, __LINE__, ...
/* * showmount.c -- show mount information for an NFS server * Copyright (C) 1993 <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 Foundation; either version 2, or (at your option) ...
/* * rinks -- tournament planner for curling * (c) 2014 <NAME> (see also: LICENSE) * */ #include <glib/gprintf.h> #include <stdlib.h> #include "ui-dialog-results.h" #include "ui.h" #include "tournament.h" #include "encounters.h" #include "teams.h" #include "application.h" GtkWidget *ui_dialog_results = NULL; Ui...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <signal.h> #include <X11/Xlib.h> #define LENGTH(X) (sizeof (X) / sizeof (X[0])) #define STR_EQ(str1, str2) !strcmp((str1), (str2)) #define OUTPUT_SIZE 64 #define STATUS_SIZE 256 typedef struct BlockPre { char *command; uint inte...
#ifndef _GNU_SOURCE #define _GNU_SOURCE 1 #endif #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include <sysexits.h> #include <string.h> #include "./logger/logger.h" #include "./localsdk/localsdk.h" #include "./localsdk/init.h" #include "./configs/c...
#include <jni.h> #include <android/log.h> #include <stdint.h> #include <stdlib.h> #include <math.h> #include <sys/time.h> #include <GLES2/gl2.h> #include "debug.h" #include "native_main.h" #include "engine.h" #include "matrix.h" #include "shaders.h" #include "gamearea.h" #include "foe_tanker_fuseball.h" #include "foe...
#include "log.h" #include "utarray.h" #include "utstring.h" #include "unity.h" #include "s7.h" /* we need both APIs for test validation */ #include "sealark.h" #include "sunlark.h" #include "validators.h" /* **************************************************************** */ /* validates this, used in BUILD.packages...
/** * collectd - src/utils_format_graphite.c * Copyright (C) 2012 <NAME> * Copyright (C) 2012 <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; only version 2 of the License is a...
/* * Lua RTOS, ping utility * * Copyright (C) 2015 - 2017 * IBEROXARXA SERVICIOS INTEGRALES, S.L. & CSS IBÉRICA, S.L. * * Author: <NAME> (<EMAIL> / <EMAIL>) * * All rights reserved. * * Permission to use, copy, modify, and distribute this software * and its documentation for any purpose and without fee is he...
/* * Copyright (c) 2021 Huawei Device Co., 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 ...
#include <assert.h> #include <stdint.h> #include <string.h> #include "protocol/vcdu.h" #include "rs.h" #include "utils.h" static int fix_block(uint8_t *data); static uint8_t gfmul(uint8_t x, uint8_t y); static uint8_t gfdiv(uint8_t x, uint8_t y); static uint8_t gfpow(uint8_t x, int exp); static void poly_deriv(uint8_...
/*- * Copyright (c) 2012-2015 <NAME> * * 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 following...
/* Check LICENSE file for copyright and license details. */ /* * CPU instruction codes and helper macros */ #define OPC(i) (((i) & 0xFC000000)) #define FUNC(i) ((i) & 0x3F) #define TF(i) ((i) & 0x100) #define SHROT(i) ((i) & 0x200000) #define SHROTV(i) ((i) & 0x40) #define SA(i) (((i) & 0x7C0)) #define IMM(i) ((...
#include "ngspice/ngspice.h" #include "ngspice/iferrmsg.h" #include "ngspice/evt.h" #include "ngspice/evtproto.h" static void Evt_Node_destroy(Evt_Node_Info_t *info, Evt_Node_t *node); static void Evt_Node_Data_destroy(Evt_Ckt_Data_t *evt, Evt_Node_Data_t *node_data); static void Evt_Msg_Data_destroy(Evt_Ckt_Data_t ...
/* * PPC64 processor support * * Copyright 2011 <NAME> <<EMAIL>>, IBM Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. */ #include "kvm/kvm-cpu.h" #include "kvm...
#include "call_iteration.h" #include "constant.h" #include "condition.h" #include "cons.h" #include "cons_list.h" #include "declare.h" #include "symbol.h" /* * do / do* */ static int do_expand_common(addr *ret, constindex let_const, constindex setq_const, addr var, addr end, addr result, addr decl, addr body) { ...
#include "types.h" #include "stat.h" #include "user.h" #include "fs.h" #include "fcntl.h" char bufcat[512]; void cat(int fd) { int n; while((n = read(fd, bufcat, sizeof(bufcat))) > 0) { if (write(1, bufcat, n) != n) { printf(1, "cat: write error\n"); exit(); } } if(n < 0){ printf(1, "c...
#include <inttypes.h> #include <poll.h> #include <stdlib.h> #include <sys/mman.h> #include <time.h> #include <drm_fourcc.h> #include <xf86drm.h> #include "dp.h" #include "util.h" #include <stdio.h> static bool running = true; // Pick the CRTC with the maximum number of planes static void pick_crtc(struct connector...
/* Copyright (c) 2019-2022 <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, d...
#include <stdlib.h> #include <limits.h> #include <stdio.h> #include <string.h> #include <time.h> typedef struct LE{ int v; struct LE* next; } ListElement; typedef struct List{ ListElement* head; ListElement* tail; } List; List* makeList(void){ List* l = malloc(sizeof(List)); l->head = l->tail...
#include "isr.h" #include "logging.h" #include <core/idt.h> #include <core/port.h> #include <core/register.h> #include <kernel/panic.h> #include <stdio.h> #include <stdlib.h> #include <string.h> void breakpoint_handler(isr_stack_t* stack); void page_fault_handler(isr_stack_t* stack); static const char* exception_mess...
// (C) Copyright <NAME> 2019. All rights reserved. #include "combuf.h" #include "buf.h" #include "sys.h" #include "error.h" #include "const.h" #include "util.h" // convert a state to a string static char*state2string(enum combuf_state state){ static char*st2str[]={"CBREAD","CBWRITE"}; if(state==CBREAD)return st2st...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2018 NXP * */ #include <common.h> #include <errno.h> #include <asm/io.h> #include <asm/arch/ddr.h> #include <asm/arch/clock.h> #include <asm/arch/ddr.h> #include <asm/arch/lpddr4_define.h> #include <asm/arch/sys_proto.h> void lpddr4_cfg_umctl2(struct dram_cfg_param ...
/* $Id: parse_uri.c,v 1.2 2007/01/17 20:55:48 aaron Exp $ */ /* Copyright 2000-2005 The Apache Software Foundation or its licensors, as * applicable. * Copyright 2006-2007 Codemass, Inc. All rights reserved. * Use is subject to license terms. * * Licensed under the Apache License, Version 2.0 (the "License"); * ...
/* * clientGet.c: A very, very primitive HTTP client for console. * * To run, prepare config-cg.txt and try: * ./clientGet * * Sends one HTTP request to the specified HTTP server. * Prints out the HTTP response. * * For testing your server, you will want to modify this client. * * When we...
/* * Copyright (c) 2015, Intel Corporation * Author: <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, *...
#include <stdlib.h> #include <stdio.h> #include <string.h> #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> #endif #include "lk_common.h" /* #include "utf8proc.h" */ #include "lk_file.h" #include "lk_dict.h" #include "lk_tree.h" int skip_failed_pkg = 1; #include "unittest.h" int tests_run = 0; int tes...
/* * $Id: putshell.c,v 4.18 2007/02/04 17:44:12 bkorb Exp $ * Time-stamp: "2007-01-13 10:29:39 bkorb" * * This module will interpret the options set in the tOptions * structure and print them to standard out in a fashion that * will allow them to be interpreted by the Bourne or Korn shells. */ /* * ...
#include "drally.h" extern byte * ___243d80h; // MEASURE: min=-240, max=437 #define OFFSET 0x190 // 0x190 + 0x258 static int ___5a86ch[0x3e8]; // 0x3e8 static int ___5b80ch[0x3e8]; // 0x3e8 static int ___5c7ach[0x3e8]; // 0x3e8 static int ___5d74ch[0x3e8]; // 0x3e8 sta...
#include "ants.h" #include <GL/glut.h> #include <stdio.h> #define RGB_GRAY 0.5f, 0.5f, 0.5f #define RGB_MOREGRAY 0.7f, 0.7f, 0.7f #define RGB_GREEN 0.0f, 1.0f, 0.0f #define RGB_LIGHTRED 0.9f, 0.5f, 0.5f #define RGB_RED 0.9f, 0.0f, 0.0f #define RGB_LIGHTGRAY 0.94f, 0.94f, 0.94f float period = TICK_MS; float steps_per...
#include "db.h" #include "thumbnails.h" #include "core/log.h" #include "stringpool.h" #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <dirent.h> #include <stdlib.h> #include <string.h> #include <time.h> void dt_db_init(dt_db_t *db) { memset(db, 0, sizeof(*db)); db->current_imgid = -1u; ...
// Copyright 2016 <NAME> // MIT licensed (see LICENSE for details) #include <stdlib.h> #include <string.h> #include <async/http/status.h> #include "util/strext.h" #include "util/url.h" #include "page.h" #include "db.h" #include "common.h" #include "errors.h" #include "config.h" #include "queue.h" static TemplateRef ...
/* * The MIT License (MIT) * * Copyright (c) 2015 <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 us...
/* ************************************************************************************************ * Emulation of 74HC595 8 bit shift register with parallel output * * state: Not tested * * Copyright 2013 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without modif...
/* * allocator.c * Implementation of malloc/free/realloc/calloc functions * All allocated blocks size is increased by * header which will make sngly linked list of memory blocks. * * Author: <NAME> <<EMAIL>> * Licence: MIT https://opensource.org/licenses/MIT * * Github: https://github.com/lucidm * */ #inclu...
/* * CGlib * * A Low-Level GPU Graphics and Utilities API * * Copyright (C) 2007,2008,2009 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...
/** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** ** This notice applies to any and all portions of this file * that are not betwe...
/* fluxstyle - Fluxbox theme creator Written in 2016 by <NAME> <EMAIL> To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. You should have rece...
/*! * @section LICENSE * * (C) Copyright 2011~2015 Bosch Sensortec GmbH All Rights Reserved * * (C) Modification Copyright 2018 <NAME> 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 c...
#include <ruby.h> #include <ruby/util.h> #include <stdbool.h> #include <stdint.h> #include <limits.h> #include <math.h> #include <pcg_variants.h> #include "pcg_random.h" #include "pcg_seed.h" #include "pcg_rng.h" VALUE rb_cPCGRandom; static void pcg_random_mark(void *ptr); static void pcg_random_free(void *rand_data...
// Copyright (c) 2015, <NAME>. All rights reserved. Use of this // source code is governed by a BSD-style license that can be found in // the LICENSE file. #include <fcntl.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <termios.h> #include <unistd.h> #include "optical_eye_utils.h" void fail(ch...
/* * @file read_ptp.c * @date 22 July 2018 * @author <NAME> * @brief Test access a PTP clock as a POSIX clock. * @details This is to look at the overhead in reading a PTP clock, as opposed to trying to check the synchronisation * accuracy of the PTP clock. * For comparison, also measures CLOCK_...
/* This extension Defines a new type of Scheme data: a two-dimensional matrix of bits. A client using this extension would look something like this: (load-extension "bitmatrix.so") (define bm (make-bit-matrix 1000 1000)) ... (bit-matrix-set! bm 500 500 #t) ... (if (bi...
/* * (c) Copyright IBM Corporation 2020 * * 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 wr...
/*- * Copyright (c) 2002 <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 ...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "render.h" #include "RenderTabs.h" #include "debug.h" extern int debug; //extern unsigned char A, X, Y; //extern unsigned char mem44; extern unsigned char speed; extern unsigned char pitch; extern int singmode; extern unsigned c...
/** * Copyright (C) 2013 Netronome Systems, Inc. All rights reserved. * * @file run.c * @brief Example code for packet egress, interactiving with the simulator * */ #include <errno.h> #include <fcntl.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #incl...
/* hgYeastRegCode - Load files from the regulatory code paper * (large scale CHIP-CHIP on yeast) into database. */ /* Copyright (C) 2011 The Regents of the University of California * See README in this or parent directory for licensing information. */ #include "common.h" #include "linefile.h" #include "hash.h" #in...
// RFC3261 20.10 Contact (p167) // Contact: "Mr. Watson" <sip:<EMAIL>>;q=0.7; expires=3600,"Mr. Watson" <mailto:<EMAIL>> ;q=0.1 // The compact form of the Contact header field is m (for "moved"). // m: <sips:bob@192.0.2.4>;expires=60 // 25.1 Basic Rules // HCOLON = *( SP / HTAB ) ":" SWS // LWS = [*WSP CRLF] 1*WSP ; l...
/* $Id: code.c,v 1.7 2004/12/09 17:25:13 prs Exp $ */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "node.h" #include "y.tab.h" #include "tabid.h" #define pfI386GAS #include "postfix.h" #define MAIN "__main" static int lbl; static void eval(Node *p); static FILE *out; static char ...
/* * Program for finding M & N values for DPLLs * To be run on Host PC * * (C) Copyright 2010 * Texas Instruments, <www.ti.com> * * <NAME> <<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...
/* * Copyright (C) 2018 Arm Limited or its affiliates. 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/l...
/****************************************************************************** * @file main.c * @version V1.00 * $Revision: 5 $ * $Date: 18/07/16 3:09p $ * @brief Show how a slave receives data from a master. * This sample code needs to work with USCI_I2C_Master. * @note * SPDX-License-Identi...
#include "snapconfig.h" /* Code to draw a background to a plot. Background consists of a series of data files containing lines id x y Start of feature on layer id 0 x y continuation of feature Any line not containing this is ignored. The command file specifies the coordinate system of the ba...
#include <stdio.h> #include <stdint.h> #include <stdbool.h> #include "nordic_common.h" #include "app_error.h" #include "app_uart.h" #include "app_trace.h" #include "ble_db_discovery.h" #include "app_timer.h" #include "app_util.h" #include "bsp.h" #include "bsp_btn_ble.h" #include "boards.h" #include "ble.h" #include "b...
/* ** EPITECH PROJECT, 2017 ** 101pong ** File description: ** pong */ #include <SFML/Graphics/RenderWindow.h> #include <SFML/Config.h> #include <SFML/Graphics.h> #include <SFML/Graphics/Sprite.h> #include <SFML/Graphics/Texture.h> #include <SFML/Window/Keyboard.h> #include <SFML/System.h> #include <stdlib.h> #include ...
/* * Copyright (c) 2019, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * * Copyright 2019, UT-Battelle, LLC. * * LLNL-CODE-741539 * All rights reserved. * * This is the license for UnifyFS. * For details, see https://github.com/LLNL/UnifyFS. * Please rea...
/** * Pontificia Universidade Catolica de Minas Gerais * Ciencia da Computacao - Algoritmos e Estrutura de Dados II * * TP04 - Questao 07 - Hash Indireta com Lista Simples em C * * @author - <NAME> * @version - 0.1 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time...
/***************************************************************************** * * * Mixed-mode OpenMP/MPI MicroBenchmark Suite - Version 1.0 * * * * ...
/* / _____) _ | | ( (____ _____ ____ _| |_ _____ ____| |__ \____ \| ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| \__)_____)\____)_| |_| (C)2013 Semtech Description: SX1276 driver specific target board functions implementat...