text
stringlengths
3.12k
18.7k
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <asvtools.h> #include <manycode.h> #include <string.h> #include <locale.h> #include <stdlib.h> #ifdef DMALLOC #include <dmalloc.h> #endif /* ---------------------------------------------------------------------- */ enum {MODE_PRINT_TRIGRAMS, MODE_TRIGRAM_STA...
#include "config.h" #include "xccl_ucx_lib.h" #include "alltoallv.h" #include "xccl_ucx_sendrecv.h" #include "utils/mem_component.h" #include <stdlib.h> #include <string.h> static inline int get_recv_peer(int group_rank, int group_size, int step, int is_reverse) { if (is_reverse) { ...
typedef void ** __builtin_va_list; typedef void ** __builtin_ms_va_list; // stdarg void* __builtin_apply_args(); void __builtin_ms_va_end(void *ap); void __builtin_ms_va_start(void *ap, ...); void* __builtin_next_arg(); int __builtin_va_arg_pack(); int __builtin_va_arg_pack_len(); void __builtin_va_copy(__builtin_va_l...
/*--------------------------------------------------------------------------- * <NAME> - Inria - 2018 *---------------------------------------------------------------------------*/ #include <assert.h> #include "fragment.h" #include "fragment_repr.c" #define DXXX(...) BEGIN_MACRO \ ...
#pragma once #include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> typedef struct { float red_; float green_; float blue_; } RGB; struct BMPHeader { // http://en.wikipedia.org/wiki/BMP_file_format char file_type_[2]; // "BM" int file_size_; // Size of file ...
/* Morph a lab image ... adjust: * * - cast * Pass in a MASK containing CIELAB readings for a neutral greyscale ... * eg. * * 3 4 * 14.23 4.8 -3.95 * 18.74 2.76 -2.62 * 23.46 1.4 -1.95 * 27.53 1.76 -2.01 * * interpolation from this makes cast corrector ... interpolate top and ...
/* * Copyright (c) 2019 <NAME>. All rights reserved. * Auther: <NAME> <<EMAIL>> */ #include <errno.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <time.h> #define MAX_NODE_VAL 0x100 #define NODE_VAL_BASE 0x80 #define BASE_NR_NODE 0x3 #define NOD...
/* * Copyright 2010-2017, Tarantool AUTHORS, please see AUTHORS file. * * 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 o...
/*- * Copyright (c) 2016 <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 * notice, this list of conditions and the followi...
/******************************************************************************* * Filename: rom_crypto.c * Revised: 2018-09-17 08:57:21 +0200 (Mon, 17 Sep 2018) * Revision: 52619 * * Description: This is the implementation for the API to the ECC functions * built into R...
/* Copyright (C) 2013 <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, distribute, sublicen...
/** **************************************************************************************** * @file rxl_hwdesc.c * * @brief Implementation of the API function used to initialize the pools. * * Copyright (C) RivieraWaves 2011-2016 ***************************************************************************...
#include <windows.h> #include "venom.h" #include "vnmfunc.h" #include "resource.h" // Globals char szFileName[MAX_PATH] = ""; int *memblock = NULL; void int2uchar(unsigned char *buf){ int address = (int)memblock; int i; for(i = 3 ; i >= 0; i--){ buf[i] = address & 0xFF; ...
// This file is free software, distributed under the BSD license. #include "hack.h" #include "extern.h" static bool far_noise; static long noisetime; // hitmm returns 0 (miss), 1 (hit), or 2 (kill) int hitmm(struct monst *magr, struct monst *mdef) { const struct permonst *pa = magr->data, *pd = mdef->data; i...
/* * JACK output plugin for DeaDBeeF * Copyright (C) 2010 <NAME> <<EMAIL>> * CopyLeft (c) 2014 -tclover <<EMAIL>> * CopyLeft (c) 2021 sot-tech <<EMAIL>> * License: MIT (see COPYING file). */ #define _GNU_SOURCE #ifdef HAVE_CONFIG_H # include <config.h> #endif #define DB_CLIENT_NAME "deadbeef" #define DB_PLUG...
/** * \file * \brief Barrelfish trace server */ /* * Copyright (c) 2007, 2008, 2009, 2010, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Haldeneggsteig 4, CH-...
/* * Written in 2013 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 received a copy of the C...
/* * Copyright (c) 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
/* * Copyright (c) 2013-2018 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 * * http://www.apache.org/license...
/** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** ** This notice applies to any and all portions of this file * that are not betwe...
/******************************** Copyright 2008 Google 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 app...
/* Copyright (c) 2011-2017 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "buffer.h" #include "base64.h" #include "ioloop.h" #include "llist.h" #include "global-memory.h" #include "stats-settings.h" #include "mail-stats.h" #include "mail-session.h" #include "mail-command.h" #define MAIL_C...
/* Copyright (c) 2017 <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 an...
/* ** Copyright 2005-2019 Solarflare Communications Inc. ** 7505 Irvine Center Drive, Irvine, CA 92618, USA ** Copyright 2002-2005 Level 5 Networks Inc. ** ** This program is free software; you can redistribute it and/or modify it ** under the terms of version 2 of the GNU General Public License ...
#include <stddef.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/epoll.h> #include <sys/timerfd.h> #include <netinet/in.h> #include <unistd.h> #include <signal.h> #include <string.h> #include "http_server.h" #include "log.h" #include <stdio.h> /////////////////////////////////////////////// // // ...
#include "u.h" #include "lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "io.h" #include "ureg.h" /* * 8253 timer */ enum { T0cntr= 0x40, /* counter ports */ T1cntr= 0x41, /* ... */ T2cntr= 0x42, /* ... */ Tmode= 0x43, /* mode port */ /* commands */ Latch0= 0x00, /* latch counter 0's ...
#define INVALID_PTN -1 #define PARTITION_TYPE_MBR 0 #define PARTITION_TYPE_GPT 1 #define PARTITION_TYPE_GPT_BACKUP 2 #define GUID_VERSION 0x00010000 #define GUID_MAGIC "EFI PART" #define GUID_RESERVED 17 /* GPT Signature should be 0x5452415020494645 */ #define GPT_SIGNATURE_1 0x5452...
/* Client-side spell stuff */ #include "c-angband.h" static void print_spells(int book) { int i, col, rows, j = 0; /* Print column */ col = 20; /* Term->wid - 68; */ rows = 20; /* Title the list */ prt("", 1, col); put_str("Name", 1, col + 5); put_str("Lv Mana Fail", 1, col + 35); /* Dump the spells */ f...
#include <stddef.h> #include <stdlib.h> #include <math.h> #include "phil.h" #include "svdcmp.h" /************************************************************************/ static double pythag (double a, double b); /************************************************************************/ stat...
/* Perceptual image hash calculation tool based on algorithm descibed in * Block Mean Value Based Image Perceptual Hashing by <NAME>, <NAME> and <NAME> * * Copyright 2014 Commons Machinery http://commonsmachinery.se/ * Distributed under an MIT license, please see LICENSE in the top dir. */ #include <stdio.h> #inc...
/* * File : emac.c * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2006-2014, RT-Thread Develop Team * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://openlab.rt-thread.com/license/LICENSE * * Change Logs: * Date Au...
// <NAME> // myShell - custom written shell program for Linux server // University of Pittsburgh #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <stdbool.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <signal.h> #include...
/** * cmake . * make test_server * ./bin/test_server */ #include "Server.h" int my_onReceive(swFactory *factory, swEventData *req); void my_onStart(swServer *serv); void my_onShutdown(swServer *serv); void my_onConnect(swServer *serv, int fd, int from_id); void my_onClose(swServer *serv, int fd, int from_id); void...
#include <stdio.h> #include <stdlib.h> #include "mpc.h" #ifdef _WIN32 // 预处理做环境判断, windows环境下使用自己实现的函数 #include <string.h> static char buffer[2048]; // 定义一个固定大小的数组缓冲区 char *readline(char *prompt) { fputs(prompt, stdout); fgets(buffer, 2048, stdin); char *cpy = malloc(strlen(buffer)+1); // 预先开辟堆区内存(size:b...
#include "oled.h" #include "stdlib.h" #include "oledfont.h" #include "delay.h" uint8_t OLED_GRAM[128][8]; /********************************************** //IIC Start **********************************************/ void IIC_Start() { OLED_SCLK_Set() ; OLED_SDIN_Set(); OLED_SDIN_Clr(); OLED_SCLK_Clr();...
/*-------------------------------------------------------------------- This source distribution is placed in the public domain by its author, <NAME>. You may use it for any purpose, free of charge, without having to notify anyone. I disclaim any responsibility for any errors. Optionally, please be nice and tell me if ...
#include <assert.h> #include <stdint.h> #include <string.h> #include "cpusupport.h" #include "crc32c_arm.h" #include "crc32c_sse42.h" #include "warnp.h" #include "crc32c.h" #if defined(CPUSUPPORT_X86_SSE42) || defined(CPUSUPPORT_ARM_CRC32_64) #define HWACCEL static enum { HW_SOFTWARE = 0, #if defined(CPUSUPPORT_X8...
/* * Copyright (c) 1999, <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...
// Copyright: sees LICENSE. (BSD-style) #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <termios.h> #include <time.h> #include <SDL2/SDL.h> #define MAXVAL 1024 static char *progname; static int sample_len = 20000;...
/** * Copyright 2010 <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 to in w...
// Copyright (c) Texas Instruments. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <stdio.h> #include <string.h> #include <stdlib.h> #include <ti/net/tls.h> #include <ti/net/http/httpcli.h> #include "azure_c_shared_utility/httpapi.h...
#include <errno.h> #include <getopt.h> #include <stdbool.h> #include <stdlib.h> // EXIT_* #include <stdio.h> // printf #include <string.h> // strcpy #include "userdata.h" #include "notification.h" #include "pulseaudio.h" #include "processmutex.h" #include "Xresources.h" #define DEFAULT_NOTIFICATION_TIMEOUT 1500 #def...
#pragma once #include "structs.h" extern Color3 C3_MAROON; extern Color3 C3_DARK_RED; extern Color3 C3_BROWN; extern Color3 C3_FIREBRICK; extern Color3 C3_CRIMSON; extern Color3 C3_RED; extern Color3 C3_TOMATO; extern Color3 C3_CORAL; extern Color3 C3_INDIAN_RED; extern Color3 C3_LIGHT_CORAL; extern Color3 C3_DARK_SAL...
#include "evfunclib.h" #include "aesocket.h" #include "event.h" #include "time.h" #ifndef WIN32 #include "sys/time.h" #endif #if(defined(WIN32)||defined(__IOS__)||defined(__MAC__)||defined(__ANDROID__)) typedef struct aeApiState { fd_set rfds, wfds; /* We need to have a copy of the fd sets as it's not safe to ...
#include <stdio.h> #include <stdlib.h> /* Gale-Shapley Algorithm The Stable Matching Problem idea: men keep proposing women status of each person: free, engaged, married male-optimal and female-pessimal stable matching is not unique For n men, n women time complexity: O(n^2) */ /* =============== Prefe...
#include <linux/types.h> #include <asm/bug.h> #include "libx.h" #ifndef MIN #define MIN(a, b) (((a) < (b)) ? (a) : (b)) #endif enum { READ_MODE, WRITE_MODE }; /* I/O abstraction layer */ typedef struct { __u32 *ptr; /* pointer to memory */ void *end; __u32 b; /* bit buffer */ size_t c; /* bit count...
#include <draw.h> SDL_Texture* getTexture(int chr, color_t back, color_t fore) { // TODO check for existence and get can be done in one operation. // Check if there is a colour entry for back if(!ptrmap_contains_key((ptrmapptr_t)gTexMap[chr], back)) { // Create it ptrmapptr_t x = ptrmap_create(500...
#include <stdio.h> #include <cxxabi.h> #include <stdlib.h> #include <string.h> #define EI_NIDENT (16) typedef u_int64_t Elf64_Addr; typedef u_int16_t Elf64_Half; typedef int16_t Elf64_SHalf; typedef u_int64_t Elf64_Off; typedef int32_t Elf64_Sword; typedef u_int32_t Elf64_Word; typedef u_int64_t Elf64_Xword; typedef in...
/*********************************************************************************************************************** * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file * will be overwritten if the respective MCUXpresso Config Tools is used to update this file. *******...
#include <sys/time.h> #include "common.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <curl/curl.h> void _ortc_exception(ortc_context *context, char *exception){ if(context->onException) context->onException(context, exception); } int _ortc_isValidUrl(ortc_context *context, char *url){ ...
#include <assert.h> #include <fcntl.h> #include <signal.h> #include <stddef.h> #include <stdio.h> #include <string.h> #include <termios.h> #include <unistd.h> #include <fsw/clock.h> #include <fsw/debug.h> #include <fsw/fakewire/link.h> //#define DEBUG #define debug_printf(lvl,fmt, ...) (debugf(lvl, "[%s] " fmt, fwl-...
/* * libalsa output driver. This file is part of Shairport. * Copyright (c) Muffinman, Skaman 2013 * 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 * r...
// options / futures utilities /////////////////////////////// #include <r.h> #define Contracts (g->asset->pContracts) #define NumContracts g->asset->numContracts #define ThisContract g->contract #define ContractAsk ((var)(ThisContract->fAsk)) #define ContractBid ((var)(ThisContract->fBid)) #define ContractVol ((var)...
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ /*------------------------------------------------------- | | | This...
// ################################################################################################# // # < Wishbone bus explorer > # // # ********************************************************************************************* # // # Manual ac...
#include "mex.h" #include <math.h> /* icdfnorm(x) : computes the inverse of the standard normal CDF. */ double erf(double x); double icdfn(double x); void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { int n; double *x, *xend; /* Error checking on inputs */ if (nrhs<1) m...
/* annoFormatTab -- collect fields from all inputs and print them out, tab-separated. */ #include "annoFormatTab.h" #include "annoGratorQuery.h" #include "dystring.h" struct annoFormatTab { struct annoFormatter formatter; char *fileName; FILE *f; boolean needHeader; // TRUE if we should print ou...
/* * GOOGLE CODE JAM - 2014 * Qualifier D * * <NAME> <<EMAIL>> * 12/14 * * ===================================================================== * * Problem * * Naomi and Ken sometimes play games together. Before they play, each * of them gets N identical-looking blocks of wood with masses between * 0.0kg...
/** * Index entities compare functions * * Copyright (c) 2015, <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTW...
/******************************************************************************* * * Intel Ethernet Controller XL710 Family Linux Driver * Copyright(c) 2013 - 2014 Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Pub...
#pragma ident "@(#)__libmcr_mm_pio2.c 1.3 04/02/25 SMI" /* ************************************************************ */ /* * Copyright (c) 2002 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that th...
/***********************************************************/ // Demo for the Serial MP3 Player Catalex (YX5300 chip) // Hardware: Serial MP3 Player *1 // Board: Arduino UNO // http://www.dx.com/p/uart-control-serial-mp3-music-player-module-for-arduino-avr-arm-pic-blue-silver-342439#.VfHyobPh5z0 // // // // Uncommen...
/* This is the source code for the IIDXIO.DLL that ships with Bemanitools 5. If you want to add on some minor functionality like a custom 16seg display or a customer slider board then see vefxio. If you want to make a completely custom IO board that handles all input and lighting then you'd be better off ...
#include <stdlib.h> #include <assert.h> #include <math.h> #include "sync.h" #include "track.h" #include "base.h" const double pi = 3.1415926535897932384626433832795; const double pi2 = 3.1415926535897932384626433832795 / 2; double cubicin(double t) { return t*t*t; } double cubicout(double t) { ...
/* * ul_s.c * * Created on: Sep 21, 2014 * Author: qwer */ #include "ul_s.h" #include "ul_math_bcd.h" u8 utf8_to_ucs2(u8 *in, u16 *out, u8 be){ u8 n = 0; u16 o; if (in[0] < 0x80){ n = 1; o = in[0]; } else if ((in[0] & 0xE0) == 0xE0){ if ((in[1] != 0) && (in[2] != 0)){ n = 3; ...
/*- * Copyright (c) 2015 xhyve developers * 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...
#include <stdio.h> #include <stdbool.h> #include <stdint.h> #include <sys/syslimits.h> #include <gc/gc.h> #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #include <SDL2/SDL_mixer.h> #define SCREEN_WIDTH 1440 #define SCREEN_HEIGHT 900 #define ALPHA_LETTERS 26 #define ASCII_CAPITAL_A 0x41 #define ASCII_CAPITAL_Z 0x...
/* * 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...
// ----------------------------------------------------------------------------- // // "00_AccelGraph" // // ----------------------------------------------------------------------------- // Copyright (c) 2014-2019 All rights reserved // ----------------------------------------------------------------------------- ...
#include "io.h" #include "derivative.h" #define PORTA_PDDR (PTA_BASE_PTR ->PDDR) #define PORTA_PDOR (PTA_BASE_PTR ->PDOR) #define PORTA_PDIR (PTA_BASE_PTR ->PDIR) #define PORTB_PDDR (PTB_BASE_PTR ->PDDR) #define PORTB_PDOR (PTB_BASE_PTR ->PDOR) #define PORTB_PDIR (PTB_BASE_PTR ->PDIR) #define PRC_V (PORT_...
/* * Crit-bit tree / binary radix tree. * * Copyright (c) 2009 <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 PRO...
/* * * Copyright 2017 Samsung Electronics 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 require...
/* * This file is part of the bayou project. * * Copyright (C) 2008 Advanced Micro Devices, Inc. * * 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. * * This program is distribu...
#include "mex.h" #include <math.h> #include "emmintrin.h" #include "xmmintrin.h" #ifdef __GNU__ #include <omp.h> #endif #ifndef MAXCORES #define MAXCORES 1 #endif void mexFunction(int nlhs, mxArray *left[], int nrhs, const mxArray *right[]) { /* Declare variables */ mwSize elem, cmplx, cmplx1,...
#include "wasm4.h" #include "splash.h" #include "parking.h" #include <string.h> #include <stdio.h> #include <stdbool.h> #define MAX_PIECES 16 #define BOARD_WIDTH 6 #define BOARD_HEIGHT 6 #define ARROW_FLASH_DURATION 6 #define NUMBER_OF_LEVELS 5 const uint8_t arrow[] = { 0b10000000, 0b11000000, 0b11100000,...
/** * Copyright 2015 by California Institute of Technology. ALL RIGHTS RESERVED. * United States Government sponsorship acknowledged. Any commercial use * must be negotiated with the Office of Technology Transfer at the * California Institute of Technology. * * This software may be subject to U...
/* * Copyright (c) 2018-2020 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish...
/* appleloader.c - apple legacy boot loader. */ /* * GRUB -- GRand Unified Bootloader * Copyright (C) 2008,2009 Free Software Foundation, Inc. * * GRUB 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...
#include <inttypes.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <unistd.h> #include "os_compat.h" #ifdef THIS_IS_WINDOWS #include <winsock.h> #else #include <netdb.h> #include <netinet/in.h> #include <sys/socket.h> #endif #include "client_conn.h" ...
#line 1 "source/main.c" /* * main.c * * Copyright (C) an0nym0us * * This software is distributed under the terms of the GNU General Public * License ("GPL") version 3, as published by the Free Software Foundation. * */ #include <stdio.h> #include <string.h> #include <malloc.h> // memalign #include <ppu-types....
// // persistence.c // rebirth // // Created by User on 25/11/2019. // Copyright © 2019 HackerHouse. All rights reserved. // #include "persistence.h" /* 11.3 apfs snapshots bash-3.2# ioreg -p IODeviceTree -l | grep boot-manifest-hash | | "boot-manifest-hash" = <cc574d249ec4457b63007116ce6cd9ab1407932e> ba...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "structs.h" #include "prototipos.h" int confere_passagem(int , int , int , int , int , int , int , int , char *, char *, TipoListaVoo *, TipoListaPacote *); void cria_pacote_turistico(TipoListaVoo *voo, TipoListaPacote *pacote, Ti...
// []--------------------------------------------------------[] // | Structure of GAME_??\CRAFT.DAT file (submarine editor) | // []--------------------------------------------------------[] struct craft { BYTE shiptype; BYTE leftammotype, leftammocount; BYTE UNK1[2], rightammotype; BYTE inventory[55];...
/** @file bleam_discovery.c * * @defgroup bleam_discovery Custom service discovery handler * @{ * @ingroup blesc_tasks * @ingroup ios_solution * * @brief Custom service discovery handler */ #include "bleam_discovery.h" #include "log.h" #include "sdk_common.h" #include "app_error.h" #define BLE_GATTC_HANDLE_ST...
/* File: URLUtils.c Package: WACServer Version: WAC_POSIX_Server_1.20 Disclaimer: IMPORTANT: This Apple software is supplied to you, by Apple Inc. ("Apple"), in your capacity as a current, and in good standing, Licensee in the MFi Licensing Program. Use of this Apple software is governe...
/* * This file is part of the coreboot project. * * Copyright (C) 2011 Samsung Electronics * Copyright 2013 Google Inc. * * 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; version 2 of the...
// Copyright (c) <NAME> <<EMAIL>> // // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT License was not distributed with this file, // You can obtain one at https://spdx.org/licenses/MIT.html. #pragma once #include "sym.h" // Interface #define SSL_ERROR_WANT_READ ...
/* * Copyright (c) 2014, Newcastle University, UK. * 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 con...
#include <stdio.h> #include <math.h> #define XMIN 0.0 #define XMAX 80.0 #define NX 1600 // number of antigenicity strains #define REC_NX_STEP 10 #define DEL_X ((XMAX-XMIN)/NX) #define DIFFUSION_COEFFICIENT_X 0.01 //#define MUT 0.01 // mutation rate #define MUT (2*DIFFUSION_COEFFICIENT_X /...
#include "fs.h" int diskfd; char *path = "/home/TU/tug15645/File_System/file.txt"; int disk_init() { /* Initialize virtual disk */ if ((diskfd = open(path, O_RDWR | O_CREAT)) == -1) { perror("error initialize disk"); return EXIT_FAILURE; } if ((ftruncate(diskfd, fsize)) == -1) { ...
#include<stdio.h> #include<math.h> #include<omp.h> #include<time.h> #include<string.h> #include<stdlib.h> int p; // Using the MONOTONIC clock #define CLK CLOCK_MONOTONIC /* Function to compute the difference between two points in time */ struct timespec diff(struct timespec start, struct timespec end); struct ti...
#include <stdio.h> #include <stdlib.h> #include <assert.h> #define true (1==1) #define false (1==0) #define bool char #define FREE_SPACE 1UL << 30 #define START_ADDR 0 #define MIN_NODE_SIZE 1UL << 15 #define ALLOCED_BLOB(n) (n->allocated && !n->left && !n->right) typedef unsigned long lvaddr_t; typedef unsigned long...
// // makeMinimumPhase.c // Minimum-phase conversion routine for real valued, 1-D lists in Mathematica. // ============================================================================== // This file is part of the 3D3A Mathematica Toolbox. // // <NAME> <<EMAIL>> // 3D Audio and Applied Acoustics (3D3A) Laboratory //...
/* * This file contains an ECC algorithm from Toshiba that detects and * corrects 1 bit errors in a 256 byte block of data. * * drivers/mtd/nand/nand_ecc.c * * Copyright (C) 2000-2004 <NAME> (<EMAIL>) * Toshiba America Electronics Components, Inc. * * $Id: nand_ecc.c,v 1.15 2005/11/07 1...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "lexer.h" #include "parse.h" void print_call_string(FILE* fp, code_t* code); void print_code_item(FILE* fp, char* tab, code_t* code, int nodefs); void print_code_list(FILE* fp, char* tab, code_t* firstcode, char* delim, int node...
/** * @brief Stellar spectra feature extraction using DWT and SWT. */ #include "libdwt.h" #include "swt.h" #include <assert.h> #include <stdlib.h> enum t_wavelet { WAVELET_CDF97 = 0, WAVELET_CDF53, WAVELET_LAST }; const char *wavelet_to_cstr(enum t_wavelet wavelet) { switch(wavelet) { case WAVELET_CDF97: r...
// See LICENSE for license details. #include "femto.h" #include "arch/riscv/csr.h" #include "arch/riscv/encoding.h" #include "arch/riscv/machine.h" static int all_csr_enums[] = { csr_fflags, csr_frm, csr_fcsr, csr_mcycle, csr_minstret, csr_mcycleh, csr_minstreth, csr_cycle, csr_tim...
/* * hifmc100_spi_mx25l25635e.c * * The Flash Memory Controller v100 Device Driver for hisilicon * * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published...
/* Copyright (c) 2012-2016 <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 any purpose, including commercial applications, and ...
#include "include/scheduler.h" #include "include/process.h" #include "interruptions.h" #include "include/videoDriver.h" #include "include/memoryManager.h" static int quantum; static ProcessSlot * current; static int cantProcesses; typedef int (*entryIdle)(); void _runProcess(uint64_t rsp); static ProcessSlot* findP...