text
stringlengths
5.8k
28.2k
/* ** task_explorer.c ** ** ** PREFIX: explorer ** ** 10-11-2014 dlb adapted from prob_rwd task ** */ #include "../toys.h" /* Defines a number of public constants, public macros, etc */ #include "../task.h" /* Defines a number of public data structures */ #include "../task_utilities.h" /* Defines and enumerates a numbe...
/* * Copyright 2019 International Business Machines * * 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 applicab...
/* * Copyright (c) 2009-2021, Redis Ltd. * 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 c...
/* vcfquery.c -- Extracts fields from VCF/BCF file. Copyright (C) 2013-2021 Genome Research Ltd. Author: <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restric...
#include "ssd1306.h" #include <math.h> #include <stdlib.h> #include <string.h> // For memcpy #include "cmsis_os2.h" #if defined(SSD1306_USE_I2C) void ssd1306_Reset(void) { /* for I2C - do nothing */ } // Send a byte to the command register void ssd1306_WriteCommand(uint8_t byte) { while(SSD1306_I2C_PORT.Sta...
/* Copyright (c) 2012, <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 and ...
/*- * Copyright (c) 1999,2000 <NAME> * All rights reserved. * # Derived from the original IDA Compaq RAID driver, which is * Copyright (c) 1996, 1997, 1998, 1999 * <NAME> and <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted pro...
/* $OpenBSD: if_le.c,v 1.6 2008/08/18 23:20:44 miod Exp $ */ /* $NetBSD: if_le.c,v 1.6 2000/05/20 13:30:03 ragge Exp $ */ /* * Copyright (c) 1997, 1999 Ludd, University of Lule}, Sweden. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted prov...
//**********************************************************************; // Copyright (c) 2016, Intel Corporation // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of s...
#include "pixz.h" #include <archive.h> #include <archive_entry.h> #pragma mark TYPES typedef struct io_block_t io_block_t; struct io_block_t { lzma_block block; uint8_t *input, *output; size_t insize, outsize; }; #pragma mark GLOBALS #define LZMA_CHUNK_MAX (1 << 16) double gBlockFraction = 2.0; sta...
/* utility functions for data API business */ #include "dataApi.h" /* when measureTiming is used */ static long processingStart = 0; void startProcessTiming() /* for measureTiming, beginning processing */ { processingStart = clock1000(); } void apiFinishOutput(int errorCode, char *errorString, struct jsonWrite *jw)...
// // FFT // N=16, 8, 5, 4, 3, 2. // // <NAME> // // 20160420-20160515 // #include <math.h> #include "dft.h" // get_cos(), get_minus_sin() #include "sci.h" // SCIprintf() #include "stack_var_adrs.h" //-------------------------------------------------------------------------------- ...
/* geometry.c Copyright (C) 2003 <NAME> This file is part of paparazzi. paparazzi 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) any later version. paparazzi ...
/* * Copyright © 2020 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pub...
#include <kogata/region_alloc.h> #include <kogata/debug.h> #include <kogata/mutex.h> // we cannot include sys... #define PAGE_SIZE 0x1000 #define PAGE_MASK 0xFFFFF000 #define PAGE_ALIGNED(x) ((((size_t)(x)) & (~PAGE_MASK)) == 0) #define PAGE_ALIGN_DOWN(x) (((size_t)(x)) & PAGE_MASK) #define PAGE_ALIGN_UP(x) ...
/* * avl_tree.c * * Copyright 2020 <NAME> <<EMAIL>> * * The MIT License (MIT) * * 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 Apache Software License, Version 1.1 * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the ...
/* encoding: UTF-8 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #if !defined(_WIN32) && !defined(WIN32) #include <sys/time.h> #define TIME_TEST #endif #include "hash.h" void Hash_display(HASH * exists_hash) { uint32_t i; HASH_ELEMENT * element; float...
/* Copyright (c) 2011 The Regents of the University of California * <NAME> <<EMAIL>> * See LICENSE for details. * * Userspace utility functions for receiving events and notifications (IPIs). * Some are higher level than others; just use what you need. */ #include <ros/event.h> #include <ros/procdata.h> #include ...
/* This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <stdio.h> #include <stdlib.h> #incl...
/*------------------------------------------------------------------------- * ORION 2.0 * * Copyright 2009 * Princeton University, and Regents of the University of California * All Rights Reserved * * * ORION 2.0 was...
#include <stdio.h> #include<stdlib.h> #include "libusb.h" libusb_device* open_kb(uint16_t vendor, uint16_t product); libusb_device_handle* hand_kb(libusb_device* dev_found); void send_color(libusb_device_handle* dev_hand, unsigned char endAddr, unsigned char color_data[6][64], int* transed, int index); void set_color(...
/* * Copyright (c) 2009 The Regents of the University of California * <NAME> <<EMAIL>> * See LICENSE for details. */ #include <arch/x86.h> #include <arch/arch.h> #include <smp.h> #include <arch/console.h> #include <arch/apic.h> #include <arch/perfmon.h> #include <time.h> #include <bitmask.h> #include <atomic.h> #...
// SPDX-License-Identifier: Apache-2.0 /* * Copyright 2013-2019 IBM Corp. */ #include <config.h> #include <stdlib.h> #include <assert.h> #include <sched.h> #include <stdlib.h> #include <stdint.h> #include <unistd.h> #include <stdio.h> #include <stdbool.h> #include <sys/types.h> #include <sys/wait.h> #include <skibo...
#include <x86.h> #include <mmu.h> #include <memlayout.h> #include <assert.h> #include <kernel/env.h> #include <kernel/monitor.h> #include <kernel/syscall.h> #include <kernel/cpu.h> #include <kernel/spinlock.h> #include <kernel/sched.h> #include <kernel/pmap.h> #include <kernel/picirq.h> #include <kernel/console.h> #inc...
/* * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use th...
#include "grid_model.h" #include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> //#define NDEBUG #include <assert.h> #include "dSFMT/dSFMT.h" /* This is the state object from the dSFMT random number generator */ dsfmt_t rng_state; void init_fg(int nthreads, long rng_seed) { ...
/* Test program for semaphore simulation */ /* On raspberry pi compile with: gcc -o test test-semaphore.c -Wall -lbcm2835 */ /* On test system (e.g. Linux): gcc -o test test-semaphore.c */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <malloc.h> #include <time.h> /* IO test for semaphore; set ...
/****************************************************************\ * * * Simple Alphabet Object * * * * <NAME>.. mailto:<EMAIL> * *...
#define _rotl_KAZE(x, n) (((x) << (n)) | ((x) >> (32-(n)))) #define HaystackThresholdSekirei 961 // Quadruplet works up to this value, if bigger then BMH2 takes over. #define NeedleThresholdBIGSekirei 12+40 // Should be bigger than 'HasherezadeOrder'. BMH2 works up to this value (inclusive). #define HashTableSizeSek...
////////////////////////////////////// // <NAME>, NASA JPL/Caltech // Copyright 2017 ////////////////////////////////////// //update: add default value azpos_off = 0.0; 12-DEC-2019 //update: normalization of resampling kernals. 12-DEC-2019 #include "resamp.h" #define SWAP4(a) (*(unsigned int *)&(a) = (((*(unsigned i...
/* * Amanda, The Advanced Maryland Automatic Network Disk Archiver * Copyright (c) 1991-1998, 2000 University of Maryland at College Park * All Rights Reserved. * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided t...
/* * This source code is public domain. * * Authors: <NAME> <<EMAIL>>, * <NAME> <<EMAIL>> (endian and char fixes for PPC) */ #include "libmodplug.h" ////////////////////////////////////////////////////////// // ProTracker / NoiseTracker MOD/NST file support void CSoundFile_ConvertModCommand(CSound...
/****************************************************************************** * Copyright © 2014-2018 The SuperNET Developers. * * * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * ...
/*- * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
// 0x0700CD88 - 0x0700CDA0 static const Lights1 ttm_seg7_lights_0700CD88 = gdSPDefLights1( 0x7f, 0x7f, 0x7f, 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 ); // 0x0700CDA0 - 0x0700CDB8 static const Lights1 ttm_seg7_lights_0700CDA0 = gdSPDefLights1( 0x4c, 0x4c, 0x4c, 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 ); // 0x070...
#include <unistd.h> #include <stdlib.h> #include <time.h> #include <string.h> #include "corvus.h" #include "client.h" #include "mbuf.h" #include "socket.h" #include "logging.h" #include "event.h" #define CMD_MIN_LIMIT 64 #define CMD_MAX_LIMIT 512 /********************************** * * Corvus Client工作逻辑: * 1. 当客户端...
/* * Copyright (c) 2021 HopeBayTech. * * This file is part of Tera. * See https://github.com/HopeBayMobile for further info. * * 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 * * ...
/* * This program calculates all-to-all kNN of a set X that is given by a .csv as an argument. * This version uses mpi to "split" the workload to processes that are connected in a ring topology. * An assumption is made, for learning purposes, that the X input set cannot be read by every process. * For this reason t...
/* * WPA Supplicant - Driver interaction with Atmel Wireless LAN drivers * Copyright (c) 2000-2005, ATMEL Corporation * Copyright (c) 2004-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 version 2 as * publishe...
/* Dia -- an diagram creation/manipulation program * Copyright (C) 1998 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any ...
/* * BSD LICENSE * * Copyright (c) 2011-2018 Broadcom. All Rights Reserved. * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * ...
#include "snd.h" /* ---------------- HELP MONOLOG ---------------- */ static GtkWidget *help_dialog = NULL; static void dismiss_help_dialog(GtkWidget *w, gpointer context) { gtk_widget_hide(help_dialog); } static gint delete_help_dialog(GtkWidget *w, GdkEvent *event, gpointer context) { gtk_widget_hide(help_...
#include <aos/aos.h> #include <aos/coreboot.h> #include <spawn/multiboot.h> #include <elf/elf.h> #include <string.h> #include <barrelfish_kpi/arm_core_data.h> #include <aos/kernel_cap_invocations.h> #include <aos/cache.h> #define ARMv8_KERNEL_OFFSET 0xffff000000000000 extern struct bootinfo *bi; struct mem_info { ...
// Copyright (c 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "bench.h" enum Order { SEQUENTIAL, RANDOM }; enum DBState { FRESH, EXISTING }; /* ...
/* * This file is part of the TREZOR project, https://trezor.io/ * * Copyright (c) SatoshiLabs * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at...
/** * miniSphere JavaScript game engine * Copyright (c) 2015-2020, <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 c...
#include <stdio.h> #include <sys/time.h> #include <sys/types.h> #include <unistd.h> #include <stdlib.h> #include <poll.h> #include <string.h> #include <time.h> #include <errno.h> #include "ae.h" #include "zmalloc.h" #include "config.h" /** 包括本系统所支持的最佳多路复用层以下应按性能降序排列 */ // linux下可以使用select和epoll // macos下可以使用...
/* * Copyright (c) 2012 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* * NaCl Service Runtime memory allocation code */ #include "native_client/src/include/portability.h" #include "native_client/src/inclu...
/*********************************************************************** * log.c: Handles the system calls that create files and logs them. *********************************************************************** * This file is derived from log.c in porg. * For more information for porg. visit http://porg.sourceforg...
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include <stdio.h> #include <string.h> #include <unistd.h> #include "activation.h" #include "ulog/ulog.h" #include "aos/kernel.h" #include <wifi.h> #include <devices/driver.h> #if defined(RT_USING_SAL) #include <netdb.h> #include <sys/socket.h> #else #inc...
// Copyright (c) 2015, <NAME> // For conditions of distribution and use, see the accompanying LICENSE and README files // This file is part of the benchmarks for the AUMA machine learning based auto tuning application // developed at the Norwegian University of Science and technology #include <stdio.h> #include <std...
/*-------------------------------------------------------------------------- File : uart_lpc11uxx.h Author : <NAME> Oct. 26, 2014 Desc : LPC11Uxx UART implementation Copyright (c) 2014, I-SYST inc., all rights reserved Permission to use, copy, modify, and distribute this software for any purpose with o...
/*****************************************************************************\ ** ** ** FILE: read.c ** ** AUTHORS: Alexios ** **...
/*********************************************************************************************************************** * Copyright [2015] Renesas Electronics Corporation and/or its licensors. All Rights Reserved. * * The contents of this file (the �contents�) are proprietary and confidential to Renesas Electron...
/* Copyright 2008 The Android Open Source Project */ #include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <unistd.h> #include <fcntl.h> #include <sys/mman.h> #include "binder_impl.h" #define MAX_BIO_SIZE (1 << 30) #define TRACE 0 void bio_init_from_txn(struc...
/*********************************************************************************\ ; BMCP v1.0 ; ;---------------------------------------------------------------------------------; ; A tribute to chess programming community ...
//////////////////////////////////////////////////////////////////////// // // Copyright (c) Electropix 2007. // All rights reserved. Reproduction in whole or in part is prohibited // without the written consent of the copyright holder. // ...
//----------------------------------------------------------------------------- // <NAME> - August 2012 // // This code is licensed to you under the terms of the GNU GPL, version 2 or, // at your option, any later version. See the LICENSE.txt file for the text of // the license. //--------------------------------------...
#include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <math.h> #include <string.h> #include "alloc.h" #include "gsgp.h" struct gsgp_tree { enum { FUNCTION, SPLIT, FEATURE, REGION } type; union { struct { struct gsgp_tree *arg0; struct gsgp_tree *arg1; }...
/* $RCSfile$ Copyright (C) 2003 <NAME> Copyright (C) 2003 <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Th...
#include "sensors.h" static int ncpu; static GtkWidget *ld[MAXNCPU][6]; /* array of gtk_labels with refreshing data */ static long cp_last[MAXNCPU*CP_STATES]; /* saved kern.cp_times values */ static gboolean window_hidden; /* main window status */ static GtkStatusIcon **iconp; /* pointer to icon object */ ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <stdbool.h> #ifdef _WIN32 #include <windows.h> #include <conio.h> #endif // Height of the field #define HEIGHT 25 // Width of the field #define WIDTH 60 // Drawings per second #define FPS 6 // Sleeps for a given period of milli...
/** @file HL_sys_main.c * @brief Application main file * @date 11-Dec-2018 * @version 04.07.01 * * This file contains an empty main function, * which can be used for the application. */ /* * Copyright (C) 2009-2018 Texas Instruments Incorporated - www.ti.com * * * Redistribution and use i...
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) #include "decl.h" double rtclock() { stru...
#define TEST_GAME_ITERATIONS (5000) void reference_gravity(state *s) { assert(NUM_FLOORS == 2); puyos_t all[NUM_FLOORS]; get_state_mask(s, all); for (int i = 0; i < WIDTH; ++i) { int pile_size = 0; for (int j = 0; j < TOTAL_HEIGHT; ++j) { int scanner_floor = 1; i...
/* $Cambridge: exim/exim-src/src/functions.h,v 1.47 2009/11/16 19:50:37 nm4 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * *************************************************/ /* Copyright (c) University of Cambridge 1995 - 2009 */ /* See the file NOTICE f...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <openssl/sha.h> #include <openssl/rsa.h> #include <openssl/evp.h> #include <openssl/objects.h> #include <openssl/x509.h> #include <openssl/err.h> #include <openssl/pem.h> #include <openssl/pkcs12.h> #include <op...
/* * Copyright 2017 Rockchip Electronics 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...
//======================================================================= // Project Polyphony // // File: // hwdep.c // // Abstract: // CPU dependent routines // // Created: // 2 February 2009 // // Copyright (c) 2008 <NAME>, All rights reserved. // //===================================...
// Copyright 2020 Fuzhou Rockchip Electronics Co., Ltd. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <assert.h> #include <fcntl.h> #include <getopt.h> #include <signal.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h>...
/** * @file Power_public.c * @author <NAME> (<EMAIL>/<EMAIL>) * @brief Power Application public implementation * * Task ref: [UT_2.11.6] * * @version 0.1 * @date 2021-02-23 * * @copyright Copyright (c) 2021 */ /* ------------------------------------------------------------------------- * INCLUDES * ...
#define _POSIX_C_SOURCE 199309L // Otherwise nanosleep is not included #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <pthread.h> #include <immintrin.h> #include "blake2/blake2.h" #include "pbkdf2.h" #include "tigerkdf.h" struct TigerKDFCommonDataStruct { uint32_t *mem; u...
#include <stdlib.h> #include <stdint.h> #include <string.h> #include "fors.h" #include "utils.h" #include "utilsx4.h" #include "hash.h" #include "hashx4.h" #include "thash.h" #include "thashx4.h" #include "address.h" static void fors_gen_skx4(unsigned char *sk0, unsigned char *sk1, ...
/* this code needs to become a CPU-centric emulation design. and when the CPU is fetching memory, it needs to be within one function where the memory I/O and event code is called from the CPU "step" function. */ /* FIXME: This program emulates the 8088, yet you call it "testemu8086.c"?!? */ #include "minx86d...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c)...
/* * * xmlconf.c * * Author: <NAME> <<EMAIL>> * * Copyright: * Copyright (c) 2002-2005 SFNT Finland Oy. * All rights reserved. * * XML conformance testing tool for OASIS XML testsuite. * */ #include "sshincludes.h" #include "sshgetopt.h" #include "ssheloop.h" #include "sshxml.h" #in...
/** * Copyright (c) 2017 <NAME> * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ #include "registry.h" #include <stdint.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <types.h> typedef enum { CPUID_FEAT_ECX_SSE3 = 1 << 0, CPUID_FEAT_EC...
/* ==================================================================== * Copyright (c) 1999-2004 Carnegie Mellon University. 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. Redi...
/* modelmaking.c * Tue Oct 4 15:33:21 1994 * * Bring together common elements of the model construction process. * Also, provides EasyModelmaker() for making a model given a structure. * * All model makers have in common that they construct a "master" traceback * for the alignment, specifying which columns ar...
#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "memory.h" #include "io_regs.h" #include "screen.h" #include "keypad.h" #include "rom.h" #include "timer.h" // temporary #include <assert.h> #include "lr35902.h" static uint8_t mm[MEM_SIZE]; static uint8_t *bio...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <errno.h> #include <fcntl.h> #include <unistd.h> #include <time.h> #define COLUMN_TASK_SIZE 32 #define COLUMN_DATE_SIZE 32 #define sizeOfAttribute(Struct, Attribute) sizeof((Struct*)0)->Attribute // arbitrary l...
/*! \file bcmpc_lth_port_status.c * * Logical Table Custom Handlers for PC_PORT_STATUS. */ /* * Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to * Broadcom Limited and/or its subsidiaries. * * Broadcom Switch Software License * * This license governs the use of the accompanying Broadc...
/* =========================================================================== * Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005 * * Use of this software is controlled by the terms and conditions found in * the license agreement under which this software has been supplied. * ==============...
/* * Copyright (c) 2001-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 use, copy, modify, merge, publis...
/**************************************************************************** * * Copyright (c) 2021 PX4 Development Team. All rights reserved. * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
/* ** mouse:~ppr/src/lprsrv/uprint_argv_ppr.c ** Copyright 1995--2005, Trinity College Computing Center. ** Written by <NAME>. ** ** 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...
#include "nclr.h" #include "g2dfile.h" #include <stdio.h> LPCWSTR paletteFormatNames[] = { L"Invalid", L"NCLR", L"Hudson", L"Binary", L"NTFP", NULL }; void nclrFree(OBJECT_HEADER *header) { NCLR *nclr = (NCLR *) header; if (nclr->colors != NULL) free(nclr->colors); nclr->colors = NULL; if (nclr->idxTabl...
/* $OpenBSD: if_axenreg.h,v 1.5 2015/07/16 00:17:40 yuo Exp $ */ /* * Copyright (c) 2013 <NAME> <<EMAIL>>. All right reserved. * */ /* * Definitions for the ASIX Electronics AX88179 to ethernet controller. */ #define AXEN_PHY_ID 0x0003 #define AXEN_MCAST_FILTER_SIZE 8 /* unit: KB */ #define AXEN_BUFSZ_LS 8 #d...
/* sha3.c - TinyCrypt SHA-3 crypto hash algorithm implementation */ /* * Copyright (C) 2019 by Intel Corporation, All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions o...
#include "stdio.h" #include "stdint.h" #include "string.h" volatile uint32_t pc; volatile uint32_t last_pc; uint8_t last_rd; uint32_t pc_end; int32_t regs[] = { 2201, 2202, 2203, 2204, 2205, 2206, 2207, 2208, 2209, 2210, 2211, 2212, 2213, 2214, 2215, 2216, 2217, 2218, 2219, 222...
/* * Copyright (C) <NAME>. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "mln_md5.h" static inline void mln_md5_calc_block(mln_md5_t *m); static mln_u32_t s[4][4] = { {7, 12, 17, 22}, {5, 9, 14, 20}, {4, 11, 16, 23}, {6, 10, 15, 21} }; static mln_u32_t ti[4][16] = { {0x...
/* * Copyright (C) 2014 <NAME> <<EMAIL>>. * 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...
/* crc.c - Cyclic redundancy checks. * Copyright (C) 2003 Free Software Foundation, Inc. * * This file is part of Libgcrypt. * * Libgcrypt 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 v...
/*********************************************************************** ** ** REBOL [R3] Language Interpreter and Run-time Environment ** ** Copyright 2012 REBOL Technologies ** REBOL is a trademark of REBOL Technologies ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this...
/*------------------------------------------------------------------------- * * catalog.c: backup catalog opration * * Copyright (c) 2009-2011, NIPPON TELEGRAPH AND TELEPHONE CORPORATION * *------------------------------------------------------------------------- */ #include "pg_probackup.h" #include <dirent.h...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2009, <NAME> <<EMAIL>> * Copyright (c) 2013, <NAME> <<EMAIL>> * Copyright (c) 2013 The FreeBSD Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2018-2019 Hisilicon Limited. */ #include <rte_ethdev_driver.h> #include <rte_io.h> #include "hns3_ethdev.h" #include "hns3_regs.h" #include "hns3_logs.h" #include "hns3_intr.h" #include "hns3_rxtx.h" #define HNS3_CMD_CODE_OFFSET 2 static const struct errno_...
#pragma once /////////////////////////////////////////////////////////////////////////////////// // Platform #define GLM_PLATFORM_UNKNOWN 0x00000000 #define GLM_PLATFORM_WINDOWS 0x00010000 #define GLM_PLATFORM_LINUX 0x00020000 #define GLM_PLATFORM_APPLE 0x00040000 //#define GLM_PLATFORM_IOS 0x0008000...