text
stringlengths
3.12k
18.7k
/* * Copyright (c) International Business Machines Corp., 2002 * * 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 ver...
/** * Marlin 3D Printer Firmware * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
/* * Copyright (C) 2008-2018 by <NAME>. * Copyright (C) 2009-2018 by <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...
/* * vim:ts=4:sw=4:expandtab * * i3 - an improved dynamic tiling window manager * © 2009 <NAME> and contributors (see also: LICENSE) * * i3-msg/main.c: Utility which sends messages to a running i3-instance using * IPC via UNIX domain sockets. * * This (in combination with libi3/ipc_send_message.c and * libi3/...
/* * Copyright (C) <NAME> * Copyright (C) Nginx, Inc. */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #if (NGX_HTTP_UPSTREAM_CHECK) #include "ngx_http_upstream_check_module.h" #endif typedef struct { /* the round robin data must be first */ ngx_http_upstream_rr_peer_data_t rrp; ...
/** * \defgroup WHEELS Wheel Management Functions * * \brief These functions handle the wheel driving process, including the * thermal model and thermal throttling. * * @{ */ #include "wheels.h" #include "adc.h" #include "control.h" #include "encoder.h" #include "error.h" #include "hall.h" #include "motor.h" #in...
/* * Copyright 2005-2016 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * * In applying this licence, ECMWF does not waive the privileges and immunities granted to it by * virtue of its status as an int...
/* PipeWire * * Copyright © 2019 <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, pu...
/*- * Copyright (c) 2012 NetApp, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2020 <NAME> for Adafruit Industries * Copyright (c) 2020 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated doc...
/* $OpenBSD: evp_err.c,v 1.25 2019/03/18 05:34:29 tb Exp $ */ /* ==================================================================== * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided tha...
/* * Interface MIB architecture support * * $Id$ */ #include <net-snmp/net-snmp-config.h> #include <net-snmp/net-snmp-includes.h> #include "mibII/mibII_common.h" #include <net-snmp/agent/net-snmp-agent-includes.h> #include <net-snmp/data_access/route.h> /**--------------------------------------------------------...
/* jbig2dec Copyright (C) 2001-2005 Artifex Software, Inc. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license contained in the file LICENSE in this distribution. For further licensing info...
#include "f2c.h" #include "blaswrap.h" /* Table of constant values */ static integer c__3 = 3; static integer c__1 = 1; static integer c__4 = 4; static integer c__6 = 6; static integer c__20 = 20; /* Subroutine */ int cchkbk_(integer *nin, integer *nout) { /* Format strings */ static char fmt_9999[] = "(1x,\...
/// MentOS, The Mentoring Operating system project /// @file kernel.h /// @brief Kernel generic data structure and functions. /// @copyright (c) 2019 This file is distributed under the MIT License. /// See LICENSE.md for details. #pragma once #include "elf.h" #include "stddef.h" #include "stdint.h" ...
#include "tm4c123gh6pm.h" #include "stdint.h" #include "stdlib.h" #include "stdio.h" #include "math.h" // Accelerometer IMU 10 DOF // Accelerometer Registers #define CRL_REG1_A 0x20 #define CRL_REG2_A 0x21 #define CRL_REG3_A 0x22 #define CRL_REG4_A 0x23 #define OUT_X_L_A 0x28 #define OUT_X_H_A 0x29 #define OU...
/*- * Copyright (c) 2014-2016 MongoDB, Inc. * Copyright (c) 2008-2014 WiredTiger, Inc. * All rights reserved. * * See the file LICENSE for redistribution information. */ #include "wt_internal.h" /* * __wt_bt_read -- * Read a cookie referenced block into a buffer. */ int __wt_bt_read(WT_SESSION_IMPL *session,...
// * credits: NetBSD //#bugbug //sei que existe um máximo, mas não sei se existe mínimo. //#define MINGDTSIZ 512 //#define MAXGDTSIZ 8192 //??8191 ??? e a NULL ??? //#define MINGDTSIZ PAGE_SIZE //#define MAXGDTSIZ 65536 //?? //índices na gdt #define GNULL_SEL 0 /* Null descriptor */ #define GCODE_SEL 1 /* Kern...
/* * Copyright (C) 2014 BlueKitchen GmbH * * 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 follo...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2019 <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 reta...
/* * OF helpers for IOMMU * * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file stm32l4xx_it.c * @brief Interrupt Service Routines. ****************************************************************************** * @attention * * <h2><center>&copy; Copyri...
#include <errno.h> #include <fcntl.h> #include <stdio.h> #include <string.h> #include <stdio.h> #include <unistd.h> #include <anon-pass/debug.h> #include "agent-util.h" #define DEFAULT_MODE 0 #define LOGIN_MODE 1 enum {PARAMS, REG, REG_IN, LOGIN, REUP, MAX_TIMER}; make_timer(full, MAX_TIMER); struct service_conf { ...
/* X11Helper.c -- This "helper" process, forked off by the magic process, * looks like a kludge (and is), but is the only way to ensure that X11 * is able to run its event-driven protocol (through calls to XNextEvent) * while magic runs its interrupt-driven protocol (through calls to * select()). Both are...
/* * Copyright 2015-2017, 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 ...
/* * VICE -- Video Instructions Chess Engine * (C) 2013 <NAME> * * This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as published by...
/* HTTP Restful API Server This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <string....
/*- * Copyright (c) 2000-2004 <NAME> Murray * 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 ...
/* * 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 ...
/* * @file * @brief Demonstrates the various low power modes. * * @details Iterates through the various low power modes, using either the RTC * alarm or a GPIO to wake from each. #defines determine which wakeup * source to use. Once the code is running, you can measure the * curren...
/* * (C) Copyright <NAME> 2006. * Use, modification and distribution are subject to the * Boost Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) */ #include "mconf.h" #include "_c99compat.h" static double find_inverse_s(double, double); sta...
/* * ow_ampmetr.c * * Created: 28.04.2017 21:18:33 * Author: Александр */ #define F_CPU 9600000UL #include "avr/io.h" #include <avr/interrupt.h> #include "util/delay.h" #define SPIN(data, pin) (data |= (1<<pin)) #define CPIN(data, pin) (data &= ~(1<<pin)) #define GPIN(data, pin) (data & (1<<pin)) #define MEA...
/* -- translated by f2c (version 20000121). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Common Block Declarations */ struct sccsdnrm2_1_ { char sccsid[80]; }; #define sccsdnrm2_1 (*(struct sccsdnrm2_1_ *) &sccsdnrm2_) /* Initialized data *...
/* * OpenSplice DDS * * This software and documentation are Copyright 2006 to TO_YEAR PrismTech * 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 except in complia...
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2012 Invensense, Inc. */ #include <linux/module.h> #include <linux/slab.h> #include <linux/err.h> #include <linux/delay.h> #include <linux/sysfs.h> #include <linux/jiffies.h> #include <linux/irq.h> #include <linux/interrupt.h> #include <linux/poll.h> #include...
/* * Copyright (c) 2004, <NAME>.. All rights reserved. * Created by: <NAME> * 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 Software Foundation. * * This program is distributed in the hope that...
/* ** Copyright 2012-2016 by Kvaser AB, Molndal, Sweden ** http://www.kvaser.com ** ** This software is dual licensed under the following two licenses: ** BSD-new and GPLv2. You may use either one. See the included ** COPYING file for details. ** ** License: BSD-new ** ===============...
/******************************************************************************* * * * Permission to use this software is granted for non-commercial use only, * * provided that this statement is retained. ...
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) // Copyright (c) 2021 <NAME> // // Based on tcpsynbl(8) from BCC by <NAME>. // 19-Dec-2021 <NAME> Created this. #include <argp.h> #include <stdio.h> #include <signal.h> #include <unistd.h> #include <time.h> #include <bpf/libbpf.h> #include <bpf/bpf.h> #include ...
//--------------------------------------------------------------------------------------- // Smile Programming Language Interpreter // Copyright 2004-2019 <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 obta...
/* * * This code is a part of Raspberry Pi 6502 Processor Hat project * and implements an Apple 1 replica using a real 6502 processor * where the Raspberry Pi acts as the memory, I/O bus and * system clock for the CPU. * * This file is Copyright 2022 <NAME>, all rights reserved. * * Code is provided AS ...
/**The MIT License (MIT) Copyright (c) 2015 by <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, publi...
/* * Copyright (c) 2013-2017 Cisco Systems, Inc. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ #include "opal_config.h" #include <errno.h> #include <string.h> #include <unistd.h> #include "opal/util/output.h" #include "opal/class/opal_hotel.h" #include "btl_usnic.h"...
#include <math.h> #include <time.h> #include "stm32l0xx.h" #include "utilities.h" #include "delay.h" #include "board.h" #include "timer.h" #include "systime.h" #include "gpio.h" #include "sysIrqHandlers.h" #include "lpm-board.h" #include "rtc-board.h" // sub-second number of bits #define N_PREDIV_S ...
#include "ESP_UART.h" esp_uart esp_rx; esp_uart esp_tx; //temp #include "COMM_UART.h" #include "stdio.h" char DEBUG1[100]; char string_buffer[200]; /************************************* * USART 2 For Communicating with ESP * PA2 -> TX * PA3 -> RX * Baud Rate -> 115200 ******************************...
/* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2020 The University of Tennessee and The University * of Tennessee Resea...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <math.h> #include <sys/time.h> #include "orp.h" #define ERROR(...) do{fprintf(stderr,__VA_ARGS__); exit(1);}while(0) #define MAX_FILENAME_LENGTH 256 #define NOT_DEFINED -1 #define DEFAULT_SEED 0 #define DEFAULT_NCALCS 10000 extern d...
#ifdef __GNUG__ # pragma implementation #endif #include "Vector.h" /*#include <malloc.h>*/ #include <stdlib.h> /*************** ARRAY DIMENSIONING CONSTANTS *********************** NFACE, - NUMBER OF FACES OF POLYHEDRON. THE COORDINATES OF THE CENTRE ORDER OF EACH TRIANGULAR FACE ARE STORED IN ARRAY P, ...
#include <stdio.h> #include <time.h> #include <stdlib.h> #include "linenoise/linenoise.h" #include "api.h" #include "queue.h" #include "syard.h" #include "rpn_calc.h" #include "hashmap.h" #include "run_function.h" static char *libm_funcs[] = { "sin", "cos", "tan", "asin", "acos", "atan", "atan2", "exp", "exp2", ...
/* * xfrm6_input.c: based on net/ipv4/xfrm4_input.c * * Authors: * <NAME> @USAGI * <NAME> @USAGI * <NAME> <<EMAIL>> * YOSHIFUJI Hideaki @USAGI * IPv6 support */ #include <linux/module.h> #include <linux/string.h> #include <linux/netfilter.h> #include <linux/netfilter_ipv6.h> #include <net/ipv6.h> #include ...
// // Copyright (c) 2016 <NAME>. <<EMAIL>> // #include <pebble.h> #include "clock.h" #include "utils.h" #include "animation.h" // #define DEBUG extern Layer *seconds_layer; static Layer *window_layer = 0; static Layer *outline_layer = 0; static Layer *minutes_dial_layer = 0; static Layer *seconds_dial_layer = 0; st...
// libmylcd - http://mylcd.sourceforge.net/ // An LCD framebuffer library // <NAME> // <EMAIL> // Copyright (c) 2005-2009 <NAME> // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU LIBRARY GENERAL PUBLIC LICENSE // as published by the Free Software Foundat...
/* * NAND boot for Freescale Integrated Flash Controller, NAND FCM * * Copyright 2011 Freescale Semiconductor, Inc. * Author: <NAME> <<EMAIL>> * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <asm/io.h> #include <fsl_ifc.h> #include <linux/mtd/nand.h> #ifdef CONFIG_CHAIN_OF_TRUST #include <...
/* $NetBSD: atapi_base.c,v 1.18 2001/11/15 09:48:16 lukem Exp $ */ /*- * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>; by <NAME> of the Numerical Aerospace * Simulation Facility, NASA Ames Resea...
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ #include <math.h> #include <float.h> #include <stdio.h> #include <stdint.h> typedef union { float f; int32_t i; } FLOAT; void __a...
/** * Subroutines used in the "aXe_AF2PET.c" for the task aXe_AF2PET */ #include <stdarg.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_nan.h> #include <gsl/gsl_sys.h> #include "spc_wl_calib.h" #include "aXe_grism.h" #include "aXe_errors.h" #include "disp_conf.h" /** * The function performs a wavelength calib...
/* $NetBSD: mdsetimage.c,v 1.25 2020/06/14 18:24:21 tsutsui Exp $ */ /* * Copyright (c) 1996, 2002 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source ...
#include <string.h> #include "sr.h" #include "ar.h" #include "const.h" #include "sixs_runs.h" #include "read_level1_qa.h" /* !Revision: * * revision 1.2.1 3/22/2013 <NAME>, USGS * - writing UL and LR corners to the output metadata to be able to detect * ascending scenes or scenes where the image is flipped Nort...
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include "stdint.h" #include "aos/hal/usbd.h" #include "usb_device_hid.h" #include <assert.h> static hid_report outputReport; static uint8_t output_length = 64; static uint8_t input_length = 64; static uint16_t reportLength; #define OUTPUT_LENGTH 8 #...
/* ** $Id$ ** ** win_test.c: Test case for tip window and menu of Feynman PMP solution. ** ** Copyright (C) 2007 Feynman Software, all rights reserved. ** ** Use of this source package is subject to specific license terms ** from Beijing Feynman Software Technology Co., Ltd. ** ** URL: http://www.minigui.com ** ** Curr...
#include <stdbool.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include <math.h> /* * Dynamic array */ typedef struct { void *values; size_t len; size_t cap; } dyn_array; #define DYN_ARRAY_INIT_CAPACITY 128 #define DYN_ARRAY_CREATE_FIXED(elem_type, len) \ dyn_array_create_fixed(sizeof(elem_t...
/* * Copyright (c) 2022 <NAME> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <unistd.h> #include <ctype.h> #include <zlib.h> #include <time.h> /*Copyright [2012] EMBL - European Bioinformatics Institute Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in complia...
// deco16 tilemap routines extern UINT16 *deco16_pf_control[2]; extern UINT8 *deco16_pf_ram[4]; extern UINT8 *deco16_pf_rowscroll[4]; extern UINT16 deco16_priority; extern INT32 deco16_y_skew; // used in vaportrail void deco16_set_bank_callback(INT32 tmap, INT32 (*callback)(const INT32 bank)); void deco16_set_color...
/* * Copyright (C) 2009-2011 by <NAME> (<EMAIL>) * * Released under the MIT license, see LICENSE.txt */ /* * The script builds a cactus tree representation of the chains and flowers. * The format of the output graph is dot format. */ #include <assert.h> #include <limits.h> #include <stdio.h> #include <string.h>...
/***************************************************************************** * ugBASIC - an isomorphic BASIC language compiler for retrocomputers * ***************************************************************************** * Copyright 2021-2022 <NAME> (<EMAIL>) * * Licensed under the Apache Licens...
/* * SPDX-License-Identifier: BSD-2-Clause * * Copyright 2021, Tarantool AUTHORS, please see AUTHORS file. */ #include <assert.h> #include <limits.h> #include <string.h> #include <stdbool.h> #include <time.h> #define DT_PARSE_ISO_TNT #include "c-dt/dt.h" #include "datetime.h" #include "trivia/util.h" #include "tz...
/******************************************************************************* <NAME> <EMAIL> *****************************************************************************/ /*----------------------------------------------------------------------------*/ #include <gui/drivers/PCF_8548_driver.h> #in...
/* Function return value location for IA64 ABI. Copyright (C) 2006-2010, 2014 Red Hat, Inc. This file is part of elfutils. This file is free software; you can redistribute it and/or modify it under the terms of either * the GNU Lesser General Public License as published by the Free Software Fo...
/* ncftpls.c * * A non-interactive utility to list directories on a remote FTP server. * Very useful in shell scripts! * * NOTE: This is for demonstration only -- an up-to-date version of this * program comes with the NcFTP Client 3.0 distribution. This version * will most likely have a subset of features and ...
/* ** Copyright 2005-2017 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 ...
/* Copyright (c) <NAME>, 1994. */ /** * (c) Copyright 1993, 1994, Silicon Graphics, Inc. * ALL RIGHTS RESERVED * Permission to use, copy, modify, and distribute this software for * any purpose and without fee is hereby granted, provided that the above * copyright notice appear in all copies and that both the cop...
#include "kms_message/kms_response_parser.h" #include "kms_message_private.h" #include "kms_message_private.h" #include <limits.h> #include <stdio.h> #include <stdlib.h> /* destroys the members of parser, but not the parser itself. */ static void _parser_destroy (kms_response_parser_t *parser) { kms_request_str_de...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> /* case is sensitive in R6 and R7 */ #ifndef bool typedef enum {false, true} bool; #define bool bool #endif typedef unsigned int uint; #define SCHEME_VER "v0.6" /* NULLOBJ for the empty list type */ typedef enum { NULLOBJ, BOOLE...
/* R U L E R . H */ #ifdef DEBUG #ifdef PCJ /* #define DBGRUL */ #endif /* PCJ */ #endif /* DEBUG */ /* Misc Constants */ #define xpRulerScroll (vsci.dxpMinScroll) #define dyScale 7 #define dyMark 8 #define dxMark 8 #define dyMajorTick 7 #define dyMinorTick 3 #define dyTinyTick 1 ...
/* SPDX-License-Identifier: Zlib */ #include "adjustment.h" #include "utils.h" #include <math.h> double page_calc_height_width(zathura_document_t* document, double height, double width, unsigned int* page_height, unsigned int* page_width, bool rotate) { g_return_val_if...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * ...
#define _GNU_SOURCE #include "quo.h" #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <sched.h> #include <mpi.h> #include <omp.h> /* Heavily modified from xthi.c code */ /* xthi.c code is used in examples for hybrid MPI/OpenMP affinity from a few HPC sites */ /* xthi.c origina...
/* * Marvell Wireless LAN device driver: station RX data handling * * Copyright (C) 2011-2014, Marvell International Ltd. * * This software file (the "File") is distributed by Marvell International * Ltd. under the terms of the GNU General Public License Version 2, June 1991 * (the "License"). You may use, redi...
/* * Promizer_18a.c Copyright (C) 1997 Asle / ReDoX * Modified by <NAME> * * Converts PM18a packed MODs back to PTK MODs * thanks to Gryzor and his ProWizard tool ! ... without it, this prog * would not exist !!! * * claudio's note: this code asks for heavy optimization. maybe later */ #incl...
/* SPDX-License-Identifier: 0BSD or CC0-1.0 or MIT-0 or Unlicense */ // MD5 implemetation, transform only // Copyright (c) 2021, <NAME>, No Rights Reserved #include <stdint.h> #include <endian.h> #include "../../../macros.h" // Mixing functions #define F(x, y, z) (z ^ (x & (y ^ z))) //#define G(x, y, z) (y ^ (z ...
/*------------------------------------------------------------------------- * * main.c * Stub main() routine for the postgres executable. * * This does some essential startup tasks for any incarnation of postgres * (postmaster, standalone backend, or standalone bootstrap mode) and then * dispatches to the prop...
/* OX: Open-Channel NVM Express SSD Controller * * - OX-App Flash Translation Layer (Physical Page Address I/O) * * Copyright 2018 IT University of Copenhagen * * Written by <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance ...
/* SPDX-License-Identifier: CC0-1.0 */ #include "../src/render.h" #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <testconfig.h> extern int errno; int test_files_match(char *example_name, char *expected_file_path, char *got_file_path) { char expected_line...
/* * slip.c - Slip specific code in diald. * * Copyright (c) 1994, 1995, 1996 <NAME>. * All rights reserved. Please see the file LICENSE which should be * distributed with this software for terms of use. */ #include "diald.h" static int dead = 1; static int waiting_for_bootp = 0; static int have_local, have_rem...
/* * SPDX-License-Identifier: BSD-3-Clause * * example_02-StructOfArrays-Naive-Omp.c : * Example of SPH Density Calculation using a * naive implementation of the main density loop, * no neighbours earch, and Struct of Arrays (SoA) * data layout and OpenMP parallelization. * * (C) Copy...
/***************************************************************************** * libvlcjni-util.c ***************************************************************************** * Copyright © 2010-2013 VLC authors and VideoLAN * * This program is free software; you can redistribute it and/or modify it * under the t...
/*************************************************************************/ /* */ /* SNU-RT Benchmark Suite for Worst Case Timing Analysis */ /* ===================================================== */ /* ...
#include "main.h" #include "math.h" // TODO Configure values /* ** Constants to configure movement of intake */ #define INTAKE_BIAS_THRESH 5 // How far sides need to be off to correct #define INTAKE_BIAS_CORRECT_P 1.5 // P term to use when correcting offset #define INTAKE_TARGET_THRESH 200 // How far from target...
static char* perms(int p, char *buf) { buf[0] = p & 04 ? 'r' : '-'; buf[1] = p & 02 ? 'w' : '-'; buf[2] = p & 01 ? 'x' : '-'; return buf; } static void createdirtable(lua_State *L, Dir *d) { #define set(t, k, v) do { \ lua_pushstring(L, (k)); \ lua_push##t(L, (v)); \ lua_rawset(L, -3); \ } while(0) lua_...
/*===================================================================*/ /* */ /* Mapper 245 : <NAME> */ /* */ /*===========================================...
#include "mupdf/pdf.h" static fz_image *pdf_load_jpx(fz_context *ctx, pdf_document *doc, pdf_obj *dict, int forcemask); static fz_image * pdf_load_image_imp(fz_context *ctx, pdf_document *doc, pdf_obj *rdb, pdf_obj *dict, fz_stream *cstm, int forcemask) { fz_stream *stm = NULL; fz_image *image = NULL; pdf_obj *obj...
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
// // testCBScript.c // cbitcoin // // Created by <NAME> on 22/05/2012. // Copyright (c) 2012 <NAME> // // This file is part of cbitcoin. It is subject to the license terms // in the LICENSE file found in the top-level directory of this // distribution and at http://www.cbitcoin.com/license.html. No part of //...
/* ---------------------------------------------------------------------- * Project: CMSIS DSP Library * Title: arm_vlog_q31 * Description: Q31 vector log * * $Date: 19 July 2021 * $Revision: V1.10.0 * * Target Processor: Cortex-M and Cortex-A cores * ------------------------------------...
#pragma once // aux mat m_scale; mat m_position; mat m_rotation; mat m_model; mat m_normal; mat m_mvp; shader* sh; shader* last_shader; cam* cm; i32 lasttex = -1; i32 lastvbo0 = -1; i32 lastvbo1 = -1; i32 lastvbo2 = -1; f32 lasttime = -1; size lastresolution = { 0, 0 }; vec3 lastreference = { 0, 0, 0 }; f32 r_time ...
#include <dlfcn.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <getopt.h> #include <assert.h> #include <dirent.h> #include <ctype.h> #include <locale.h> #include <sys/wait.h> #include <unistd.h> #ifdef MCHECK_SUPPORT #include <mcheck.h> #endif #include <fcntl.h> #include "unittest/unittest.h" /...
/* <https://github.com/rafagafe/base64> Licensed under the MIT License <http://opensource.org/licenses/MIT>. SPDX-License-Identifier: MIT Copyright (c) 2016-2018 <NAME> <<EMAIL>>. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentati...
/* IBM device driver utility functions. Author: <NAME> * 7 Dec 1995 * Entry point: * partition: partition a disk to the partition table(s) on it. */ #include <minix/blockdriver.h> #include <minix/drvlib.h> #include <unistd.h> /* Extended partition? */ #define ext_part(s) ((s) == 0x05 || (s) == 0x0F) s...
/* $OpenBSD: if_urtwn.c,v 1.16 2011/02/10 17:26:40 jakemsr Exp $ */ /*- * Copyright (c) 2010 <NAME> <<EMAIL>> * Copyright (c) 2014 <NAME> <<EMAIL>> * Copyright (c) 2015-2016 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted,...