text
stringlengths
3.08k
10.5k
/*! @file EfiCommon.h @brief EFI specific implementation of common things across the project. @author <NAME> @copyright Copyright (c) 2020 - , <NAME>. All rights reserved. */ #pragma once #include <Uefi.h> #include <Library/UefiLib.h> #include <Library/DebugLib.h> #include <Library/BaseMemoryLib.h> ...
/*- * Copyright (c) 2008 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
/* Copyright (c) 2016 Cromulence LLC Authors: <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, ...
/* * Copyright (c) 2014, Texas Instruments Incorporated - http://www.ti.com/ * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copy...
/* * QEMU PCI VGA Emulator. * * Copyright (c) 2003 <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...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <argp.h> #include <unistd.h> #include <errno.h> #include "numamma.h" #define ONLINE_ANALYSIS -1 // todo : make better string length checks, for now this is not safe from buffer overflows #define STRING_LENGTH 4096 // CMake .c.in here const char pre...
/* * 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...
/* include/aconfig.h. Generated from aconfig.h.in by configure. */ /* include/aconfig.h.in. Generated from configure.ac by autoheader. */ /* directory containing alsa configuration */ #define DATADIR "/usr/share/alsa" /* Define to 1 if translation of program messages to the user's native language is requested....
/* invstm.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static integer c__6 = 6; static integer c__3 = 3; /* $Procedure INVSTM ( Inverse of state transformation matrix) */...
/* File: lexer.c */ /* Creation Date: 2016-12-11 */ /* Creator: <NAME> <<EMAIL>> */ /* Description: */ /* The lexical analyser */ #include "core/compiler/lexer/lexer.h" #include "err.h" #include "lib/macros.h" #include "lib/str_stream.h" #include "lib/types.h" #include "lib/util.h" #include "lib/xmalloc.h" #include...
/* ****************************************************************************** ** CarMaker - Version 8.1.1 ** Vehicle Dynamics Simulation Toolkit ** ** Copyright (C) IPG Automotive GmbH ** Bannwaldallee 60 Phone +49.721.98520.0 ** 76185 Karlsruhe Fax ...
/*================================================================= * mexpp.c * * starting a locfit interface. * * $Revision: 1.5 $ */ #include "mex.h" #include "lfev.h" extern void lfmxdata(), lfmxevs(); design des; lfit lf; /* int lf_error; */ extern int lf_error; void mexFunction(int nlhs,mxArray *plhs[],in...
// polystep.c #include "m_pd.h" static t_class *polystep_class; typedef struct _polystep { t_object x_obj; t_inlet *in_notes, *in_aux, *in_knob_playmode, *in_knob_recordmode, *in_ppn; t_outlet *out_notes, *out_B, *out_messages; } t_polystep; //Reset the count to start at 0 void polystep_...
// Copyright (c) 2017 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...
// **************************************************************************** /// \file main.c /// /// \brief main module /// /// \details Main module with the main, where the user code starts /// /// \author <NAME> /// /// \version 1.0 /// /// \date 27102020 /// /// \copyright Copyright 2020 Re...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <glib.h> #include <unistd.h> #include <fcntl.h> #include <sys/wait.h> #include "libqtest.h" #include "libqos/libqos.h" #include "libqos/pci.h" /*** Test Setup & Teardown ***/ /** * Launch QEMU with the given command line, * and then set up interru...
/****************************************************************************** * Copyright (C) 2017 Broadcom. The term "Broadcom" refers to Broadcom Limited * and/or its subsidiaries. * * This program is the proprietary software of Broadcom and/or its licensors, * and may only be used, duplicated, modified or...
#define __nocast __attribute__((nocast)) typedef unsigned long __nocast ulong_nc_t; extern void use_val(ulong_nc_t); extern void use_ptr(ulong_nc_t *); /* use address */ static void good_use_address(void) { ulong_nc_t t; use_ptr(&t); } static ulong_nc_t *good_ret_address(void) { static ulong_nc_t t; return &t;...
/*- * Copyright (c) 2000 <NAME> <<EMAIL>> * All rights reserved. * * Copyright (c) 1997 <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 r...
/*- * Copyright (c) 2012 <NAME> * 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 source and bina...
/*! @header Programming problem 9.40. Producer process. */ #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <errno.h> #include <sys/mman.h> #include <fcntl.h> #include <unistd.h> #include "unix_shm.h" /*! @defined MAX_SEQUENCE_STR_SIZE @discussion -1 to account for the terminating '\0'. */ #...
/* * Copyright (C), 2000-2004 by the monit project group. * All Rights Reserved. * * 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) a...
/* * * Copyright (C) 2019-2021, Broadband Forum * Copyright (C) 2018-2021 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 ...
/************************************************************************** * * Copyright (C) 2006 <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...
/*- * Copyright (c) 2003 Silicon Graphics International Corp. * 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 * not...
#include "soarkernel.h" #include "sysdep.h" #if !defined(__SC__) && !defined(THINK_C) && !defined(WIN32) && !defined(MACINTOSH) #include <sys/time.h> /* used for timing stuff */ #include <sys/resource.h> /* used for timing stuff */ #endif /* !__SC__ && !THINK_C && !WIN32 */ /* ...
#include "chunk.h" #include "marching_cubes.h" #include "threadpool.h" #include <stdlib.h> struct UpdateArgs { Chunk *chunk; SDF f; float isolevel; }; static UpdateArgs *UpdateArgs_make(Chunk *c) { UpdateArgs *args = malloc(sizeof *args); args->chunk = c; args->f = NULL; args->isolevel =...
/* Copyright 2016 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 ...
/************************************************************************/ /* */ /* Name: FM.H */ /* Project: Football Manager Remake */ /* Purpose: Include file (generic) */ /* Author: <NAME> */ /* Created: 7th December 2001 */ /* Updated: 7th Decembe...
// Copyright 2022 Blues Inc. All rights reserved. // Use of this source code is governed by licenses granted by the // copyright holder including that found in the LICENSE file. #include "main.h" #include "framework.h" #include "radio.h" // Global radio data bool wireReceiveSignalValid = false; int8_t wireReceiveRSS...
/* * Copyright (c) 2016 Hisilicon Limited. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this source tree, or the * OpenI...
/* * disk/pang.c * * Custom format as used on Pang by Ocean. * * Written in 2022 by <NAME> * * RAW TRACK LAYOUT: * u16 0x4489 Sync (TRKTYP_pang_b) * u16 0x5041, 0x0000 : (PA_SIG | (uint16_t)tracknr/2 << 8) | ((tracknr % 2 == 0) ? 0xff : 0) * u32 dat[6304/4] * u32 checksum * * u16 0x4124 Sync (TRKTYP_...
/** @file * @brief BAS Service sample */ /* * Copyright (c) 2016 Intel Corporation * * 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....
/* $NetBSD: scsipi_cd.h,v 1.7 2003/09/07 22:11:24 mycroft Exp $ */ /* * Written by <NAME> (<EMAIL>) * for TRW Financial Systems. * * TRW Financial Systems, in accordance with their agreement with Carnegie * Mellon University, makes this software available to CMU to distribute * or use in any manner that they see...
/* * Copyright 2016, Intel Corporation * * 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 f...
/* 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 ...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief Demonstrate Timer PWM Complementary mode and Dead-Time function. * * @copyright SPDX-License-Identifier: Apache-2.0 * @copyright Copyright (C) 2020 Nuvoton Technology Corp. All rights r...
// // breakout.c // // Computer Science 50 // Problem Set 3 // // standard libraries #define _XOPEN_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <time.h> // Stanford Portable Library #include <spl/gevents.h> #include <spl/gobjects.h> #include <spl/gwindow.h> // hei...
/********** Copyright 1990 Regents of the University of California. All rights reserved. Author: 1985 <NAME> **********/ #include "spice.h" #include "cktdefs.h" #include <stdio.h> #include "sperror.h" #include "trandefs.h" #include "util.h" #include "suffix.h" extern SPICEanalysis *analInfo[]; extern int ANALmaxnum;...
// This program is a part of NITAN MudLIB // youming.c 幽冥鬼影 #include <ansi.h> inherit F_SSERVER; string name() { return "幽冥鬼影"; } int perform(object me, object target) { int skill; if (! target) { me->clean_up_enemy(); target = me->select_opponent(); ...
/* Copyright (C) 2017, iZotope, Inc. All Rights Reserved * Released under the BSD-3 license (see COPYING.BSD-3) */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <fcntl.h> #include <sys/mman.h> #include <syslog.h> #include <sys/reboot.h> #include <unistd.h> /* This is a gener...
/* * This file is part of the Soletta (TM) Project * * Copyright (C) 2015 Intel Corporation. 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.a...
// metadoc CHash copyright <NAME> 2009 // metadoc CHash license BSD revised // metadoc CHash notes Suggestion to use cuckoo hash and original implementation // by <NAME> #define CHASH_C #include "CHash.h" #undef CHASH_C #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> CHash *CHash_new(vo...
// This program is free software: you can use, modify and/or redistribute it // under the terms of the simplified BSD License. You should have received a // copy of this license along this program. If not, see // <http://www.opensource.org/licenses/bsd-license.html>. // // Copyright (C) 2011, <NAME> <<EMAIL>> // All ri...
/************************************************************************** * Copyright (c) 2001 by <NAME>. All rights reserved. * * * * Redistribution and use in source and binary forms, with or without * * modification, are permi...
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ *...
/* _PDCLIB_load_lc_monetary( const char *, const char * ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. */ #ifndef REGTEST #include <locale.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #incl...
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <esp_log.h> #include "ed25519.h" #include "iosdevice.h" #include "nvs.h" #include "hap_internal.h" #define ACCESSORY_ID_COMPACT_LEN 12 struct iosdevice_pairings { char id[ACCESSORY_ID_COMPACT_LEN]; int nr_iosdevices; ...
#pragma once #include <math.h> #include <stdio.h> #include <string.h> #include <stdbool.h> #include <time.h> #include "mixed.h" #ifdef __RDRND__ #include <cpuid.h> #include <immintrin.h> #endif #ifndef thread_local # if __STDC_VERSION__ >= 201112 && !defined __STDC_NO_THREADS__ # define thread_local _Thread_local # el...
/* Copyright (c) 2014, <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: * Redistributions of source code must retain the above copyright notice, this lis...
#include <value.h> #include <vm.h> #include <gc.h> #include <exception.h> #include <string.h> #include "lib.h" #include "console.h" static VAL VM; static VAL VM_prototype; static js_vm_t* get_vm(js_vm_t* vm, VAL this) { if(js_value_get_type(this) != JS_T_OBJECT || js_value_get_pointer(js_value_get_pointer(thi...
#include <pthread.h> #include <stdio.h> // Define Bool type typedef enum { false, true } Bool; // Global variables int g_puzzle[9][9]; Bool g_columnValidity[9]; Bool g_rowValidity[9]; Bool g_subgridValidity[9]; // Define Parameters structure typedef struct { int topRow; int bottomRow; int leftColumn; int...
#include <math.h> #include <stdlib.h> #include "quac.h" #include "operators.h" #include "solver.h" #include "dm_utilities.h" #include "petsc.h" PetscErrorCode ts_monitor(TS,PetscInt,PetscReal,Vec,void*); FILE *f_pop; int main(int argc,char **args){ PetscInt N_th,num_phonon,num_nv,init_phonon,steady_state_solve,step...
/* * Copyright (c) 2018-2021 The Forge Interactive Inc. * * This file is part of The-Forge * (see https://github.com/ConfettiFX/The-Forge). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional in...
/* * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #define CC_PAL_LOG_CUR_COMPONENT CC_LOG_MASK_SECURE_BOOT /************* Include Files ****************/ #include "secureboot_error.h" #include "secureboot_basetypes.h" #include "securebo...
/* Code to create an extended X.509 certificate with OpenSSL. */ #include <assert.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <sgx_uae_service.h> #include <openssl/rsa.h> #include <openssl/x509.h> #include "ra-attester.h" #include "ra.h" #include "ra_private.h" #include "ra-challenger_pri...
#include "headers.h" #include "command.h" #include "prompt.h" int is_bg = 0; char *delBg(pid_t pid){ char *proc; proc = (char *)malloc(200 * sizeof(char)); for(int i=0; i < bgCnt; i++) { if(bgP[i].pid == pid) { strcpy(proc, bgP[i].name); for(...
// AOC 2021 solution in C // @chadsy // Copyright (C) 2021 <NAME> // MIT License https://opensource.org/licenses/MIT // // Day 10 - Syntax Scoring // The one about reading a bunch of matched pair characters. // // It's all about matching [], (), <>, and {}. A 'corrupt' line is one where // one of the enclosures closes ...
#include <ctype.h> #include <err.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/un.h> #include <unistd.h> #include <ei.h> #define MIN_SEND_SIZE 8192 extern char **environ; struct beam_notify_options { char *path; int encode_environment; }; static void en...
String parseHomePage(); String parseConfigurePage(); String getAlarmTemplate(); String parseAlarmPage(String alarm); String footer = "<!-- Footer -->" "<footer class='w3-bottom w3-center w3-black w3-padding-small w3-opacity w3-hover-opacity-off'>" "<div class='w3-xlarge'>" ...
#include <stdio.h> #include <winsock.h> #include <windows.h> #include <locale.h> #include <unistd.h> WSADATA data; SOCKET winsock; SOCKADDR_IN sock; int bytes; const int MAX_HITS = 1; int c1hits = 0; int c2hits = 0; char boardc1[100]; char boardc2[100]; char buffer[5]; int main(){ if(WSAStartup(MAKEWORD...
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #ifndef DEBUG #define NDEBUG #endif #include <assert.h> char z_rbf[BUFSIZ], z_wbf[BUFSIZ], z_bf[41]; char *z_rp = &z_rbf[BUFSIZ], *z_wp = z_wbf, *z_bp; #define z_gc() \ (z_rp == &z_rbf[BUFSIZ] ? \ (z_rp = z_rbf, fread(z_rp, BUFSIZ, 1, stdin), *z_rp++) : \ ...
/* * Copyright (c) 2009-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: * * Redistributions of source code must retain the above copyright * notice, this list of conditions...
/* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2019, STMicroelectronics * 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 ...
#include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include "frame.h" #ifndef MIN #define MIN(a, b) (((a) < (b) ? (a) : (b))) #endif #ifndef MAX #define MAX(a, b) (((a) > (b) ? (a) : (b))) #endif #ifndef ABS #define ABS(a) ((a) < 0 ? -(a) : (a)) #endif #ifndef FLOOR #define FLOOR(a) (...
/** * @file test_atecc608a.c * @brief */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdarg.h> #include <stddef.h> #include <setjmp.h> #include "ockam/error.h" #include "ockam/vault.h" #include "ockam/memory.h" #include "ockam/memory/stdlib.h" #include "ockam/vault/atecc608a.h" #incl...
/* * RTSP muxer * Copyright (c) 2010 <NAME> * * This file is part of FFmpeg. * * FFmpeg 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 2.1 of the License, or (at your option) ...
/** * @file unicode.c Unicode character coding * * Copyright (C) 2010 Creytiv.com */ #include <ctype.h> #include <re_types.h> #include <re_fmt.h> static const char *hex_chars = "0123456789ABCDEF"; /** * UTF-8 encode * * @param pf Print function for output * @param str Input string to encode * * @return ...
/* * spi_rx_tx_arduino.c * * Created on: 06-Nov-2021 * Author: pro */ #include <stdio.h> #include <stdint.h> #include <string.h> #include "stm32f407xx.h" #include "stm32f407xx_gpio_driver.h" #include "stm32f407xx_spi_driver.h" // pb15as mosi // pb 14 as miso // pb13 as sclk // pb12 as nss // Alt fun...
#include <fcntl.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <string.h> #include <SDL2/SDL.h> #include "level.h" #include "sdl_utils.h" char *level_names[] = {"resources/levels/level1.lvl", "resources/levels/level2.lvl", "resources/levels/level3.lvl", NULL}; struct level level_init(SDL_Ren...
/* * Z80SIM - a Z80-CPU simulator * * Copyright (C) 2019 by <NAME> * * This module provides host file I/O using a BDOS-like interface. * Presently, functionality is limited to those features required * to move files between the host and CP/M file systems. * * Use OPENF to open a host file for reading. Use MA...
/* scsi-idle * Copyright (C) 19?? <NAME> * Copyright (C) 1999 <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...
/* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved. This software is licensed as OpenSource, under the Apache License, Version 2.0. This license is available at: http://opensource.org/licenses/Apache-2.0. */ /* * Font merging support. */ #include "absfont.h" #if PLAT_SUN4 #in...
#include "grid.h" extern int local_cell_blocks; extern int local_edge_blocks; #include "memory.h" #include "component.h" #include "io.h" #include <stdint.h> void com2_init(GRID * g); void com2_compute(GRID * g); void com2_io(GRID * g); double com2_flops(GRID * g); double com2_memory(GRID * g); uint64_t com2_checksum(G...
// Netstick - Copyright (c) 2021 <NAME>. See LICENSE.txt // for more details. #include <stdbool.h> #include <stdint.h> #include <stddef.h> #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <arpa/inet.h> #include <netinet/in.h> #...
// Copyright 2018 Schibsted #include <unistd.h> #include <sys/socket.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <sys/un.h> #include <errno.h> #include <string.h> #include <stdarg.h> #include <stdlib.h> #include <stdio.h> #include <netdb.h> #include <sys/uio.h> #include "sock_util.h" #include "memall...
#include "entry.h" static int get_file_flags(const Janet *argv, int32_t n) { static const int flags[] = { UV_FS_O_APPEND, UV_FS_O_CREAT, UV_FS_O_DIRECT, UV_FS_O_DIRECTORY, UV_FS_O_DSYNC, UV_FS_O_EXCL, UV_FS_O_EXLOCK, UV_FS_O_NOATIME, UV_FS_O_N...
/* * korad.c * * Copyright 2022 <NAME> <<EMAIL>> * * SPDX: WTFPL */ #define _GNU_SOURCE 1 #include <fcntl.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <errno.h> #include <time.h> #define DIE(code,...) do { fprintf(stderr, __VA_ARGS__); exit(code...
/** * rtp.c * * Created on: 29/06/2016 * * ========================================================================= * Copyright (C) 2012-2019, <NAME> (<EMAIL>) * Copyright (C) 2016, <NAME> (<EMAIL>), QXIP BV * Copyright (C) 2018, <NAME> (<EMAIL>) * * Permission is hereby granted, free of charge, to any pe...
/* * Copyright (C) 2010-2020 Arm Limited or its affiliates. All rights reserved. * Copyright (c) 2019 Nuclei 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. ...
#include "ahci.h" #include "types.h" #include "defs.h" #include "x86.h" //AHCI implementation. //See Intel reference docs @ https://www.intel.com/content/dam/www/public/us/en/documents/technical-specifications/serial-ata-ahci-spec-rev1-3-1.pdf static const struct { uint16 vendor; uint16 device; const char...
/* * Copyright (C) 2010-2015 Alibaba Group Holding Limited */ #include <ngx_http_tfs_timers.h> #include <nginx.h> static void ngx_http_tfs_timeout_handler(ngx_event_t *event); ngx_http_tfs_timers_lock_t * ngx_http_tfs_timers_init(ngx_cycle_t *cycle, u_char *lock_file) { u_char *shar...
#include "spmc_producer.h" // ... #include <pthread.h> #include "liblfds611.h" // liblfds #include <stdio.h> // printf struct producer_struct { bool more_items; size_t consumer_count; size_t consumers_dequeing; void* structure; struct lfds611_queue_state* queue; producer_func_t* producer_func; pthread_t p...
//--------------------------------------------------------------------------- // Copyright (C) 2001 Dallas Semiconductor 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 dea...
/* * Copyright (c) 2019 Nordic Semiconductor ASA * Copyright (c) 2021 Conexio Technologies, Inc. * * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause */ #include <zephyr.h> #include <stdio.h> #include <string.h> #include <drivers/sensor.h> #include <spinlock.h> #include "env_sensors.h" #include <devicetree.h>...
#include "c99.h" #include "name.h" #include "types.h" #if !defined(USE_CBLAS) #define tensor_dot PREFIXED_NAME(tensor_dot ) #define tensor_mtxm PREFIXED_NAME(tensor_mtxm) /* Matrices are always column-major (FORTRAN style) */ double tensor_dot(const double *a, const double *b, uint n) { double sum = 0; for(;n;...
/* * * Copyright 2015, Google 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: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
/* * Copyright (C) 2018-2019 <NAME> */ #include <vtf.h> #include <string.h> #include <vtm/core/error.h> #include <vtm/crypto/crypto.h> #include <vtm/net/nm/nm_stream_client.h> #include <vtm/net/nm/nm_stream_server.h> #include <vtm/util/latch.h> #include <vtm/util/thread.h> extern void test_nm_prepare_request(vtm_d...
/* * (C) 2014 DTS, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
/* _______ ____ __ ___ ___ * \ _ \ \ / \ / \ \ / / ' ' ' * | | \ \ | | || | \/ | . . * | | | | | | || ||\ /| | * | | | | | | || || \/ | | ' ' ' * | | | | ...
/******************************************************************************/ /* */ /* Copyright (c) 2013-2015, <NAME>, KAIST */ /* All rights reserved. */ /* ...
/* * Orginal copyright from libpng example code * * Copyright 2002-2011 <NAME> and contributors. * * This software may be freely redistributed under the terms * of the X11 license. * */ #include <stdlib.h> #include <stdio.h> #include <math.h> #include <png.h> #include "imagecon.h" static void _wrapjmp(png_s...
/* * LibGtoint: an analytical GTO integral library for C and Fortran. * * Copyright (c) 2020-2021 <NAME>. 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...
#include <console/console.h> #include <device/pci.h> #include <device/pci_ids.h> #include <string.h> #include <stdint.h> #if CONFIG_LOGICAL_CPUS #include <cpu/amd/multicore.h> #endif #include <cpu/amd/amdk8_sysconf.h> #include <stdlib.h> // Global variables for MB layouts and these will be shared by irqtable mptable ...
/* errchk.c -- infix arithmetic expression error checking */ /* works by looking at the next character and determines * if it's expected or not * also, translates unary operators to internal representation */ #include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <ctype.h>...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_RULES 128 #define MAX_SIZE 65536 #define STEPS 10 struct Polymer { size_t length; char data[MAX_SIZE]; }; struct Rule { char from[2]; char to; }; int rule_cmp(const void *va, const void *vb) { const struct Rule *ra = (struct Rule*)va; con...
#include <stdlib.h> #include "hw_types.h" #include "timer_control.h" #include "hw_types.h" #include "hw_memmap.h" #include "prcm.h" #include "systick.h" #include "gpio_if.h" #include "gpio_control.h" #include "interrupt.h" TIMER_HANDLE TIMER_Handle; static BaseType_t xHigherPriorityTaskWoken; unsigned l...
/* * guess-unwinder.c - Best-guess unwinder * * Copyright 2011 Sony Network Entertainment * * By <NAME> <<EMAIL>> * * How hard can it be to write an unwinder from scratch, using * guesswork and heuristics on the stack and code?... */ #include <sys/ptrace.h> #include <asm/ptrace.h> #include "utility.h" #includ...
/** * @file TestRomFile.c * RomFile class for Test */ #include <assert.h> #include <stdlib.h> #include <memory.h> #include "bolib/memory/bmem.h" #include "bolib/file/TestRomFile.h" /* this header isn't read from anything other */ /* than inherited object. */ #include "RomFile.protected.h"...
/* Circle Pad example made by <NAME> for ctrulib Please refer to https://github.com/smealum/ctrulib/blob/master/libctru/include/3ds/services/hid.h for more information This code was modified for the last time on: 12/13/2014 2:20 UTC+1 This wouldn't be possible without the amazing work done by: -Smealum -fincs -...