text
stringlengths
5.8k
28.2k
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (C) 1996 * <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 a...
// tjunc.c #include "bsp5.h" typedef struct wvert_s { vec_t t; struct wvert_s *prev, *next; } wvert_t; typedef struct wedge_s { struct wedge_s *next; vec3_t dir; vec3_t origin; wvert_t head; } wedge_t; int numwedges, numwverts; int c_tjuncs; int c_tjuncfaces; int c_rotated; int c_degenerateEdges; int c...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <inttypes.h> #include <time.h> #include <assert.h> #include <sys/types.h> #include <unistd.h> #include <fcntl.h> #include "libzdb.h" #include "libzdb_private.h" static char *__zdb_api_types[] = { "ZDB_API_SUCCESS", "ZDB_API_FAILURE", "ZDB_...
/* * Copyright 2016, 2017 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 ap...
#pragma once #include <dolphin/types.h> #include "battle/battle.h" #include "battle/battle_status_effect.h" #include "battle/battle_status_icon.h" #include "drv/effdrv.h" //TODO: better name typedef enum BattleUnitToken_Flags { kChargeExpended = (1 << 3), //0x8 kConfusedAction = (1 << 4), //0x10 kCurrentlyActing =...
#include "config.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <inttypes.h> #include "mp_msg.h" #include "img_format.h" #include "mp_image.h" #include "vf.h" //===========================================================================// #define uint32 unsigned long #define uint16 unsigned ...
/* * Vortex OpenSplice * * This software and documentation are Copyright 2006 to TO_YEAR ADLINK * Technology Limited, its affiliated companies and licensors. All rights * reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file e...
/* Python extension module for linear algebra functions. * * Copyright (C) 2021 <NAME> and others * SPDX-License-Identifier: MIT */ #include "Python.h" #include "math.h" #include "stdio.h" #include "dd_arith.h" #include "dd_linalg.h" #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #include "numpy/ndarraytypes.h...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <gsl/gsl_linalg.h> typedef struct Vortex { double x, y; double vorticity; int active; } Vortex; /* possibly should be replaced with one function? */ double Qfield_x(double x, double y) { double r = x*x+y*y; re...
/* * ***** BEGIN GPL LICENSE BLOCK ***** * * 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 program is ...
// // decode.c // Aldo // // Created by <NAME> on 2/3/21. // #include "decode.h" #define UDF {IN_UDF, AM_IMP} const int BrkOpcode = 0x0; // Decoding table for all official MOS6502 // and unofficial Ricoh 2A03 opcodes. const struct decoded Decode[] = { {IN_BRK, AM_BRK}, // 00 - BRK {IN_ORA, AM_INDX}, /...
#include "imu_sensor_fusion.h" #include "imu_sensor.h" #include "math.h" #include "app.h" #define GYROSCOPE_SENSITIVITY 4.375 #define ACCELERATOR_SENSITIVITY 0.061 #define GYRO_DEGREE_OFFSET 3.0 #define ACC_1_G 1000.0 #define M_PI 3.1415926 #define dt 0.00125 // 1.25 ms sample ra...
/* lregex.cpp */ #include "util.h" #include "ustring.h" #define TYPE_REGEX "far_regex" typedef struct PluginStartupInfo PSInfo; typedef struct { HANDLE hnd; } TFarRegex; TFarRegex* CheckFarRegex(lua_State *L, int pos) { TFarRegex* fr = (TFarRegex*)luaL_checkudata(L, pos, TYPE_REGEX); luaL_argcheck(L, fr->hnd...
//************************************************************************** //** //** p_spec.h : Heretic 2 : Raven Software, Corp. //** //** $RCSfile: p_spec.h,v $ //** $Revision: 1.38 $ //** $Date: 96/01/06 18:37:35 $ //** $Author: bgokey $ //** //*********************************************************************...
#include "ui.h" #define UI_RENDER_SCALE_FACTOR 600 #define UI_RENDER_SCALE (ui->window.w < UI_RENDER_SCALE_FACTOR ? 1 : ui->window.w / UI_RENDER_SCALE_FACTOR) Ui* createUi(SDL_Renderer* renderer) { Ui* ui = malloc(sizeof(Ui)); if (ui == NULL) { return NULL; } // Get font ui->font = createFont(renderer,...
/* Input parser for Bison Copyright (C) 1984, 1986, 1989, 1992, 1998, 2000, 2001, 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Genera...
// Port of go/src/text/tabwriter/tabwriter.go (October 2021 for playsys) // // Copyright (c) 2009 The Go Authors. 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 ...
/* * $Xorg: editresP.h,v 1.4 2001/02/09 02:05:29 xorgcvs Exp $ * Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both t...
/* * This file is used to take care of building the AC Trie and running the AC algorithm. * * Building the AC trie consists of three build steps: Building the Trie structure, * building the Fail traces into the structure, and building the output structure into each node * of the Trie structure. Output building is ta...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <alloca.h> #include <stdbool.h> #include <getopt.h> #include "../spreden.h" #include "../dstruct/list.h" enum command { COMMAND_ANALYZE = 1, COMMAND_HELP, COMMAND_PREDICT, COMMAND_RANK, COMMAND_VERSION, /* error */ COMMAND_ERROR }; enum opti...
/* * Copyright (c) 2011-2012, Freescale Semiconductor, 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: * * o Redistributions of source code must retain the above copyright notice, this...
#include "tap.h" #include "timestamp.h" #include <string.h> const struct test_t { timestamp_t ts; int precision; const char *exp; } tests[] = { { { INT64_C(-62135596800), 0, 0 }, 0, "0001-01-01T00:00:00Z" }, { { INT64_C(-62135683140), 0, 1439 }, 0, "0001-01-01T00:00:00+23:59" }, { { INT64_C(-62135510460), ...
/* Copyright (C) 2008 <NAME> <<EMAIL>> Copyright (C) 1998 Monty <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 3 of the License, or (at your option) any later vers...
/* * Oracle Linux DTrace. * Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved. * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. * * The Statically Defined Tracepoint (SDT) provider for DTrace. * * SDT probes are exposed by the ke...
/* $License: Copyright (C) 2011 InvenSense Corporation, 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) any later versi...
#include <stdio.h> #include <stdint.h> #include <string.h> #include "bashtypes.h" #include "shell.h" #include "builtins.h" #include "common.h" // Let X <<< s denote the 32-bit value obtained by circularly // shifting (rotating) X left by s bit positions. #define ROTATE(X, s) ((X) << (s) | (X) >> (32 - (s))) typedef...
/*===---- cpuid.h - X86 cpu model detection --------------------------------=== * * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * *===----------------------...
#include <sys/wait.h> #include <err.h> #include <errno.h> #include <sys/stat.h> #include <fcntl.h> #include <signal.h> #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <sys/types.h> #include <unistd.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/XF86keysym.h> // More info: https://st...
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <SDL2/SDL.h> #include <SDL2/SDL_mixer.h> #include <SDL2/SDL_image.h> #include "blitter.h" #include "mywidgets.h" #include "db16.h" #include "font.h" #include "screen.h" #include "state.h" static struct ProgramState pstate = { .state = IDLE, .measu...
/* Copyright (c) 2020 M.A.X. Port Team * * 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, publi...
// Copyright (c) 2021 <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, distri...
/* * Copyright 2020 Makani Technologies LLC * * 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 <errno.h> #include <limits.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <ibcrypt/rsa_util.h> #include <ibcrypt/rand.h> #include <ibcrypt/sha256.h> #include <ibcrypt/zfree.h> #include <libibur/endian.h> #include "client_handler.h" #include "c...
/* * Copyright (c) 1999 <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, di...
/* zzckcv04.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__2 = 2; static integer c__6 = 6; /* $Procedure ZZCKCV04 ( Private --- C-kernel segment coverage, type...
/* Copyright 1998 <NAME>. -*- indent-tabs-mode: nil -*- * * $Id$ * * Larceny run-time system -- variable-sized stop-and-copy young heap. * * Contract: * - The stack cache lives in the heap; the stack pointer is the * heap limit and the heap pointer is the stack limit, all within * the current heap...
#include <stdio.h> #include<string.h> #include <stdlib.h> #include <windows.h> #define tam 41 // Autores:<NAME> e <NAME> typedef struct liv { char ISBN[14],title[50],author[50],year[5]; int next; } Livro; typedef struct ind { int RRN,NEXT; char ISBN[14]; }INDEX; typedef struct aut{ char NAME[...
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nsc/panel/gx2_9211.c,v 1.2 2002/12/11 22:51:02 dawes Exp $ */ /* * $Workfile: gx2_9211.c $ * * This header file defines the pneumonics used when calling Durango routines. * This file is automatically included by gfx_rtns.h * * NSC_LIC_ALTERNATIVE_PREAMBLE * *...
/***************************************************************************** * This file is part of Kvazaar HEVC encoder. * * Copyright (c) 2021, Tampere University, ITU/ISO/IEC, project contributors * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * ...
/** * * @copyright &copy; 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der * angewandten Forschung e.V. All rights reserved. * * BSD 3-Clause License * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. R...
/* Copyright (c) 2003-2009 <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, merge, publ...
/* * Nework adaptor for the MRF24WG0MA * * Revision History: * 5/31/2013(KeithV): Created */ #include "MRF24GAdaptor.h" extern WFMRFD wfmrf24; static t_wpaKeyInfo wpaKeyInfoG; static bool IsInitialized(IPSTATUS * pStatus) { // we ONLY DO THIS ONCE static bool fInitSetup = false; AssignStatusSaf...
#include "defs.h" #include <sys/sendfile.h> #include <arpa/inet.h> #include <sys/poll.h> #include <sys/wait.h> #include <stdint.h> #include <fcntl.h> #include <time.h> #include <utmp.h> #include <grp.h> //---------------------------------------------------------------------- static void QuitSignal (int sig); static v...
/* * mclock.c - graphical clock for Plan 9 using draw(2) API * * Graphical image is based on a clock program for Tektronix vector * graphics displays written in PDP-11 BASIC by <NAME> at the * University of Delaware in the 1970s. * * 071218 - initial release * 071223 - fix window label, fix redraw after hide, a...
/* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.in by autoheader. */ /* Define if account management tools should be installed setuid and authenticate the callers */ /* #undef ACCT_TOOLS_SETUID */ /* Define to 1 if translation of program messages to the user's ...
// // BSD 3-Clause License // // Copyright (c) 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: // // 1. Redistributions of source code must retain the abov...
/*** scale.c -- calendar scales * * Copyright (C) 2016-2020 <NAME> * * Author: <NAME> <<EMAIL>> * * This file is part of echse. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of so...
/***************************************************************************/ /* */ /* ftccache.c */ /* */ /* Th...
/** * \file dart_synchronization.c * * Synchronization operations. */ #include <dash/dart/base/logging.h> #include <dash/dart/base/assert.h> #include <dash/dart/base/mutex.h> #include <dash/dart/if/dart_types.h> #include <dash/dart/if/dart_globmem.h> #include <dash/dart/if/dart_team_group.h> #include <dash/dar...
#include <time.h> #include <sched.h> #include <fcntl.h> #include <errno.h> #include <stdio.h> #include <dirent.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <sys/stat.h> #include <sys/wait.h> #include <sys/mount.h> #include "util.h" #include "md5/md5.h" #include "envparse.h" #include "namespac...
/* * Copyright 2016-2018 NXP * * SPDX-License-Identifier: BSD-3-Clause * * Author <NAME> <<EMAIL>> */ #include <platform_def.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <debug.h> #include <errno.h> #include <io.h> #include "ddr.h" #include "dimm...
/* * Acess2 Window Manager v3 * - By <NAME> (thePowersGang) * * render/richtext.c * - Formatted Line Editor */ #include <common.h> #include <wm_renderer.h> #include <wm_messages.h> #include <richtext_messages.h> #include <stdio.h> // sscanf #include <string.h> // memcpy #include <unicode.h> // ReadUTF8 #include <...
// // pnicorr_io.c // pni_correlation_service // // Created by <NAME> on 10/15/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <string.h> #include <zlib.h> #include <float.h> #include <assert.h> #include "pnicorr_debug...
/* * $Id: stdlib_math.c,v 1.0 2006-01-08 12:04:25 clib2devs Exp $ * * Math function used in C library duplicated to avoid to link * against libm */ #ifndef _STDLIB_HEADERS_H #include "stdlib_headers.h" #endif /* _STDLIB_HEADERS_H */ #ifndef _MATH_HEADERS_H #include "math_headers.h" #endif /* _MATH_HEADERS_H *...
/* * Copyright 2003, 2004 PathScale, Inc. All Rights Reserved. */ /* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. 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 as published by the Free Softwar...
/* * nbestrescore.c -- Alpha (forward algorithm) rescoring of N-best lists. * * ********************************************** * CMU ARPA Speech Project * * Copyright (c) 1996 Carnegie Mellon University. * ALL RIGHTS RESERVED. * ********************************************** * * HISTORY * * 11-Nov-96 <NA...
/* RetroArch - A frontend for libretro. * Copyright (C) 2011-2017 - <NAME> * Copyright (C) 2014-2017 - <NAME> * Copyright (C) 2016-2019 - <NAME> * Copyright (C) 2019 - <NAME> * * RetroArch is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License a...
/*hw2.c *Solution to Generator Operator Problem *Extended case of the Producer-Consumer Problem *Using Ptheads, a mutex and condition variables *<NAME> */ /* There are 3 generators, and each produces a unique kind of material independently. All these materials are stored in an input buffer with size 10 befo...
/* * 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...
#pragma once #include "../Stdafx.h" #include "TH/THTensor.h" #include "torch/torch.h" #include "Utils.h" // API. // Creates 1-D tensor of size [(end - start) / step] with values from interval [start, end) with common // difference step starting from start. EXPORT_API(Tensor) THSTensor_arange( const Scalar star...
/* * Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is * located at * * http://aws.amazon.com/apache2.0/ * * or in the "licen...
// ------------------------------------------------------------------------------------------------ // CS536 - Data Communication and Computer Networks // Fall 2015 // Lab 6: Overlay Network Routing and Turbo Charged Data Transport // // <NAME> (ispo) // // // overlayrouter.c // // Please refer to problem description f...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/*D*********************************************************** * Modul: DBI - database select * Arrangement * * Copyright: yafra.org, Switzerland **************************************************************...
void FUNC_SSE(kf_bfly2)(kfft_cpx* Fout, const uint32_t fstride, const kfft_plan_cpx* st, uint32_t m) { kfft_trace_core(st->level, "[BFLY2 (SSE2)] fstride - %u | m - %u\n", fstride, m); kfft_cpx* Fout2 = Fout + m; uint32_t twidx = 0; do { __m128d t; __m128d mf = _mm_load_pd((double*)Fout...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <assert.h> #include <gsl/gsl_math.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_sort.h> #include "cosmocalc.h" static double deltaTm[9] = {200.0, 300.0, 400.0, 600.0, 800.0, 1200.0, 1600.0, 2400.0, 3200.0}; static do...
// sha2_rv32_cf512.c // 2020-03-08 <NAME> <<EMAIL>> // Copyright (c) 2020, PQShield Ltd. All rights reserved. // FIPS 180-4 SHA2-384/512 compression function for RV32 #include <string.h> #include "sha2_wrap.h" // bitmanip (emulation) prototypes here #include "bitmanip.h" // RV32I base SLTU emulation uint32...
/* Copyright (C) 2015 <NAME> */ /* All rights reserved. */ /* This file is part of phonopy. */ /* 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 cop...
/* (c) Copyright 2015, 2016. <NAME> <<EMAIL>> All Rights Reserved. */ #include "video.h" #include "audio.h" #include "stdinc.h" uint32_t pixels[WIDTH * HEIGHT]; SDL_Window *window = NULL; SDL_Surface *logo = NULL; SDL_Surface *logo_recording = NULL; SDL_Renderer *renderer = NULL; SDL_Texture *texture = NULL...
/* * outputs/test_spmp_ok_u1_rw1_x1_s0_sum0_match0.c * Generated from gen_spmp_test.cc and test_spmp_ok_1.cc_skel. * * This test program is expected to start executed from M mode. * That will be easier for us to deal with spmp/pmp exception for test. * * Remarks: * - Shared regions are not covered and will b...
/* hgEncodeScheduler - a chron job that runs ENCODE pipeline load jobs * that are ready for scheduling. It reads the encpipeline database * looking for projects with status == "shedule loading". * It starts the load job, records the process id, changes the status * to "loading" and looks for old processes...
/* * dwmac-sti.c - STMicroelectronics DWMAC Specific Glue layer * * Copyright (C) 2003-2014 STMicroelectronics (R&D) Limited * Author: <NAME> <<EMAIL>> * Contributors: <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License...
/* Boolector: Satisfiability Modulo Theories (SMT) solver. * * Copyright (C) 2007-2021 by the authors listed in the AUTHORS file. * * This file is part of Boolector. * See COPYING for more information on using this software. */ #include "btorslvaigprop.h" #include "aigprop.h" #include "btorabort.h" #include ...
#include <fs/load.h> #include <graphics/vesa.h> #include <lib/stdio.h> #include <lib/stdlib.h> #include <memory/alloc.h> #include <memory/paging.h> #include <system.h> void vbe_error() { log("Error in VESA detection script!"); warn(RED "Melvix can't work without VESA Support!" RES); halt_loop(); } void vbe_set_mod...
/* * Copyright (C) 2019 GreenWaves Technologies * * 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 l...
#include <stdlib.h> #define GL_GLEXT_PROTOTYPES #include <GL/glut.h> #include <math.h> #include <sys/time.h> #include "glchk.h" #include "perfmeter.h" extern unsigned char firefox_start[]; struct vertex { float s,t; float nx,ny,nz; float x,y,z; }; static const struct light { GLfloat diffuse[4]; GLfloat spec...
/* Copyright (c) 2012, Broadcom Europe 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 conditions and t...
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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 <kheap.h> #include <paging.h> #include <memory.h> #include <debug.h> #include <util.h> #include <serial.h> Block_t * head = NULL; // First memory block Block_t * tail = NULL; // Last memory block Block_t * freelist = NULL; // All the memory blocks that are freed bool kheap_enabl...
/** * (C) Copyright 2016-2020 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.0 * * Unless required by applicable l...
/********************************************************************** Motorola 6845 CRT controller emulation **********************************************************************/ #include "driver.h" #include "crtc6845.h" #define LOG (0) typedef struct _crtc6845_state crtc6845_state; struct _crtc6845_st...
#include "window.h" #include "SDL_ttf.h" #include <stdio.h> #include <vld.h> void createWindow(struct WindowApp* windowApp) { SDL_Init(SDL_INIT_VIDEO); windowApp->window = SDL_CreateWindow("Chess", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, BOARD_SIZE + 2 * FRAME, BOARD_SIZE + 2 * FRAME, 0); windowAp...
#include "cache.h" #include "config.h" #include "commit.h" #include "diff.h" #include "revision.h" #include "list-objects.h" #include "list-objects-filter.h" #include "list-objects-filter-options.h" #include "object.h" #include "object-store.h" #include "pack.h" #include "pack-bitmap.h" #include "builtin.h" #include "l...
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ #include "dyn_core.h" #include "dyn_server.h" #include "dyn_dnode_client.h" #include "dyn_dict_msg_id.h" #include "dyn_response_mgr.h" static void dnode_client_ref(struct conn *conn, voi...
/* * Copyright 2013 Red Hat Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, d...
/****************************************************************************** NAME: fetch_prc - Reader routines for DLR precision orbit files SYNOPSIS: DESCRIPTION: EXTERNAL ASSOCIATES: NAME: USAGE: --------------------------------------------------------------- FILE REFERENCES: NAME: ...
// Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <li...
/* * Copyright 2014-2017 <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 ...
/* $OpenBSD: makemap.c,v 1.73 2020/02/24 16:16:07 millert Exp $ */ /* * Copyright (c) 2008 <NAME> <<EMAIL>> * Copyright (c) 2008-2009 <NAME> <<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 not...
/* * 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 program is distributed in the hope that it will be use...
/* * Copyright (C) <NAME> * Copyright (C) 2007 <NAME> (<EMAIL>) * Copyright (C) 2010 Phusion * * 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) 1993-1996 Id Software, Inc. // Copyright(C) 2005-2014 <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 ...
/* $XConsortium: CrCmap.c,v 1.6 94/04/17 20:15:53 rws Exp $ */ /* $XFree86: xc/lib/Xmu/CrCmap.c,v 3.0 1994/10/20 06:05:50 dawes Exp $ */ /* Copyright (c) 1989 X Consortium Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software...
/* resize an image ... up and down resampling. * * 13/8/14 * - from affine.c * 18/11/14 * - add the fancier algorithm from vipsthumbnail * 11/11/15 * - smarter cache sizing * 29/2/16 * - shrink more affine less, now we have better anti-alias settings * 10/3/16 * - revise again, using new vips_reduce() c...
// SPDX-License-Identifier: GPL-2.0 /* CAN bus driver for Microchip 25XXFD CAN Controller with SPI Interface * * Copyright 2019 <NAME> <<EMAIL>> */ /* Known hardware issues and workarounds in this driver: * * * There is one situation where the controller will require a full POR * (total power off) to recover ...
#include <stdio.h> #include <unistd.h> #include <string.h> #include <stdlib.h> #include <errno.h> #include <netdb.h> #include <errno.h> #include <signal.h> #include <sysexits.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/time.h> #include <time.h> #include <modbus.h> #define CHECK_BIT...
#include <stddef.h> #include <stdint.h> #include "params.h" #include "indcpa.h" #include "polyvec.h" #include "poly.h" #include "ntt.h" #include "symmetric.h" #include "randombytes.h" //----------------------------------Modified-------------------------------------------- #include <string.h> #include <stdio.h> // ---...
/* Copyright 2013-present Barefoot Networks, 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 la...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...