text
stringlengths
5.8k
28.2k
/* * AESNI.c: AES using AES-NI instructions * * Written in 2013 by <NAME> <<EMAIL>> * * =================================================================== * The contents of this file are dedicated to the public domain. To * the extent that dedication to the public domain is not available, * everyone is grant...
// // woz_image.c // // Copyright (c) 2021 by <NAME> // #include "woz_image.h" #define CHUNK_INITIAL_BUFFER 4096 #define WOZ_HEADER_SIZE 12 // // Private routine declarations. // static void verify_writable_buffer(woz_chunk * chunk, size_t min); static size_t serialize_chunk_to_buffer(woz_chunk * chunk, uint8_t ...
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in * the LICENSE file in the root directory of this source tree. An * additional grant of patent rights can be found in the PATENTS file * in the same directory. * */ #include...
// SPDX-License-Identifier: GPL-2.0-or-later /* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2011 Intel Corporation * * */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include "src/shared/crypto.h" #include "src/shared/util.h" #include "src/shared/tester.h" #include <string.h> #incl...
/** \file * * This file contains code which scans the keyboard switch matrix. * In a nutshell, this assumes the keyboard consists of a bunch of row lines, * and a bunch of column lines, with each key attached to a row and a column * line. Pressing a key connects its row and column lines. Thus the keyboard * ...
#include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <tice.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <graphx.h> #include <keypadc.h> #include <debug.h> #include "gfx/colors.h" #include "gfx/gfx_group.h" #include "gfx/group_about.h" #include "globals.h"...
#include "cmd.h" /* cmd_init A partir d'une chaine de caractère, on cree une commande avec des redirections de fichier la commande sera composé de la commande, des arguments, redirection de fichier et backquotes */ Cmd* cmd_init(char str[]){ Cmd* cmd=(Cmd*)leash_malloc(sizeof(Cmd)); int i=0; cmd->fd_in=-1; ...
/* * This file is part of RTRlib. * * This file is subject to the terms and conditions of the MIT license. * See the file LICENSE in the top level directory for more details. * * Website: http://rtrlib.realmv6.org/ */ #include "rtrlib/bgpsec/bgpsec.h" #include "rtrlib/bgpsec/bgpsec_private.h" #include "rtrlib/...
/* The MIT License (MIT) 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...
/* * 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...
/* SSD1306 driver for the Raspberry Pi Pico C SDK ---------------------------------------------- Re-designed from the C++ lib from https://github.com/blippy/rpi/tree/master/1306/pico-sdk */ #include <string.h> #include "pico/stdlib.h" #include "hardware/i2c.h" const uint8_t ssd1306_font6x8[] = { 0x00, 0x06, 0...
/* * This file is part of the RingDecomposerLib, licensed * under BSD New license (see LICENSE in the root directory). * Copyright (c) 2016 * University of Hamburg, ZBH - Center for Bioinformatics * <NAME>, <NAME>, <NAME> * * Please cite: * * <NAME>.; <NAME>.; <NAME>. * Unique Ring Families: A Chemically Me...
/* * MIT License * Copyright (c) 2019, 2018 - present OMRON Corporation * All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without ...
/* * This application is Copyright 2012 Red Hat, Inc. * <NAME> <<EMAIL>> * * mq_open_tests 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 3. * * mq_open_tests is distributed in the hope that i...
/*****************************************************************\ * 32-bit or 64-bit BBC BASIC for SDL 2.0 * * Copyright (c) <NAME>, 2016-2019 * * * * BBCVTX.C MODE 7 (teletext / videotex) emulator...
/* * Copyright (c) 2016 - Qeo LLC * * The source code form of this Qeo Open Source Project component is subject * to the terms of the Clear BSD license. * * You can redistribute it and/or modify it under the terms of the Clear BSD * License (http://directory.fsf.org/wiki/License:ClearBSD). See LICENSE file * fo...
/* * implements file generations support for NTP * logfiles and statistic files * * * Copyright (C) 1992, 1996 by <NAME> * Friedrich-Alexander Universitaet Erlangen-Nuernberg, Germany * * SPDX-License-Identifier: BSD-2-clause */ #include "config.h" #include <stdio.h> #include <sys/types.h> #include <sys/st...
#include <assert.h> #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <sys/time.h> #define DEBUG #include "debug.h" #include "tactics/util.h" #include "timeinfo.h" /* Max net lag in seconds. TODO: estimate dynamically. */ #define MAX_NET_LAG 2.0 /* Minimal thinkin...
/* xwrap.c - wrappers around existing library functions. * * Functions with the x prefix are wrappers that either succeed or kill the * program with an error message, but never return failure. They usually have * the same arguments and return value as the function they wrap. * * Copyright 2006 <NAME> <<EMAIL>> *...
#include "jacs_internal.h" #define LOGV DMESG #define RESUME_USER_CODE 1 #define KEEP_WAITING 0 static bool handle_logmsg(jacs_fiber_t *fiber, bool print); void jacs_jd_get_register(jacs_ctx_t *ctx, unsigned role_idx, unsigned code, unsigned timeout, unsigned arg) { jd_device_service_t...
/* $Id$ */ /* * Copyright (c) 2019 <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 notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE A...
/***********************************/ /* Dump Synthesizable Veriolog */ /* <NAME>, EPFL/LSI */ /***********************************/ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include <assert.h> #include <sys/stat.h> #include <unistd.h> /* Include vpr...
//======================================================================== // GLFW 3.3 - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2016-2017 <NAME> <<EMAIL>> // // This software is provided 'as-is', without any express or implied // warranty. In no ev...
/*********************************************************************** * * The meteostation DE2 project * utlizing pressure, temperature and humidity sensors, an RTC module * two servos for solar panel manipulation, an LCD and UART communication. * ATmega328P (Arduino Uno), 16 MHz, AVR 8-bit Toolchain 3.6...
/* IP5306-I2C driver Copyright (c) 2020 Blinkinlabs 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, co...
/***************************************************************************** * meta.c: mp4 meta handling ***************************************************************************** * Copyright (C) 2001-2004, 2010, 2014 VLC authors and VideoLAN * * This program is free software; you can redistribute it and/or m...
#include <math.h> #include <pthread.h> #include <x86intrin.h> #include "sampler.h" #include "gui.h" static void alertErr(const char *msg) { GtkWidget *dialog; GtkDialogFlags flags = GTK_DIALOG_DESTROY_WITH_PARENT; dialog = gtk_message_dialog_new (GTK_WINDOW(_gui.winMain), ...
/* * Copyright (c) 2017, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * * Copyright 2017, UT-Battelle, LLC. * * LLNL-CODE-741539 * All rights reserved. * * This is the license for UnifyFS. * For details, see https://github.com/LLNL/UnifyFS. * Please rea...
/* The following routines implement all of the fitting formulae in Eisenstein \& Hu (1997) */ /* These routines have been modified by <NAME> to remove the use of pointers. It is possible to pass pointers with numpy arrays through SWIG, but it is more work that just reconfiguring the function calls to be like those in...
#ifndef lint static const char RCSid[] = "$Id: rvmain.c,v 2.17 2016/08/18 00:52:48 greg Exp $"; #endif /* * rvmain.c - main for rview interactive viewer */ #include "copyright.h" #include <signal.h> #include <time.h> #include "platform.h" #include "ray.h" #include "source.h" #include "ambient.h" #include "...
/****************************************************************************** * * THIS SOURCE CODE IS HEREBY PLACED INTO THE PUBLIC DOMAIN FOR THE GOOD OF ALL * * This program runs the entire suite of 47,250 National Institute of Standards * and Technology (NIST) AES-GCM test vectors to thoroughly verify the cor...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <sys/time.h> #include <time.h> #define PI 3.14f #define TAU 6.28f typedef int bool; #define true 1 #define false 0 #define MAX_X 16000 #define MAX_Y 9000 #define MAX_ZOMBIES 100 #define MAX_HUMANS 100 #define MAX_MOVES 100 #defi...
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_dga.c,v 1.11 2002/09/18 18:14:58 martin Exp $ */ /* * Copyright 2000 ATI Technologies Inc., Markham, Ontario, and * VA Linux Systems Inc., Fremont, California. * * All Rights Reserved. * * Permission is hereby granted, free of charge, t...
#pragma once // This header is considered tenative and is a work in progress. It contains the API // as well as notes about how the API should work. Some of these notes may eventually // be transcribed into a standards document. // Compile once. Run Everywhere. // All strings are UTF8. Assume platform is 64 bit litt...
// This is a test program for use with a low energy weather station based // around the STM32F030 and an NRF905 radio module. The sensing module is // a GY-652 (HMC5983 + BMP180) which uses an I2C interface. // The readings for this sensor will be transmitted periodically over // the radio link // The STM32F030 runs a...
/* * This file is part of Hubbub. * Licensed under the MIT License, * http://www.opensource.org/licenses/mit-license.php * Copyright 2008 <NAME> <<EMAIL>> */ #include <assert.h> #include <string.h> #include "treebuilder/modes.h" #include "treebuilder/internal.h" #include "treebuilder/treebuilder.h...
#include "serial.h" #include "modem.h" #include <stddef.h> /* For size_t, NULL */ static void pad_buffer(unsigned char * buf, size_t bufsiz, unsigned char val); /* const doesn't work due to some weird rules in C... */ /* static void set_packet_offsets(unsigned char ** packet_offsets, unsigned char * packet, unsigned ...
/* * Copyright (C) 2021, Xilinx Inc - All rights reserved * Xilinx SDAccel Media Accelerator API * * 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://www.apache.org/lice...
/* cairo - a vector graphics library with display and print output * * This file is Copyright © 2004 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it either under the terms of the GNU Lesser General Public * License version 2.1 as published by the Free Software Fou...
/* * This file is part of the coreboot project. * * 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 License. * * This program is distributed in the hope that it will be use...
/*- * Copyright (c) 2003-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 conditi...
/*- * Copyright (c) 2006 <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...
#include "quat.h" #include <quat/utils/compass_utils.h> #include <unistd.h> #include <string.h> #include <math.h> #include <geo/geo.h> #include <systemlib/conversions.h> #include "quat/utils/quat_constants.h" #include "attitude_estimator_quat_params.h" #include "aq.h" #define COMPASS_INCLINATION -64.132470167481f q...
/* * CAN module object for Freescale MCF5282 ColdFire V2 microcontroller. * * @file CO_driver.c * @author <NAME> * @author <NAME> * @copyright 2004 - 2012 <NAME> * * This file is part of CANopenNode, an opensource CANopen Stack. * Project home page is <https://github.com/CANopenNode...
/* * ssos.c "Simple SOS" common case SOSflow API wrapper, * useful for ports to additional languages. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <inttypes.h> #include <pthread.h> #ifdef __APPLE__ #include <dispatch/dispatch.h> #e...
/******************************************************************************* * Code file for Hue Control * * Copyright (c) 2015 carlosperate https://github.com/carlosperate/ * Licensed under The MIT License (MIT), a copy can be found in the LICENSE file. *************************************************************...
#include <stdio.h> #include <string.h> #include "p2image.h" #include "config.h" #include "osint.h" #ifndef TRUE #define TRUE 1 #define FALSE 0 #endif /* maximum packet size for the second-stage loader */ #define PKTMAXLEN 1024 /* size of cog image */ #define COG_IMAGE_SIZE 0x800 /* offset of signature i...
/* * Copyright (C) 2019 <NAME> * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup usbus_cdc_ecm * @{ * @file USBUS implementation for ethernet control model * * @author <...
/********************************************************************************/ /* */ /* TSS Library Independent Crypto Support */ /* Written by <NAME> */ /* <NAME> Research Center */ /* */ /* (c) Copyright IBM Corporation 2015 - 2019. */ /* */ /* All rights...
/*************************************************************************** -= Newer Seta Hardware =- driver by <NAME> (<EMAIL>) This hardware only generates sprites. But they're of various types, including some large "floating tilemap" ones. Sprites RAM is 0x40000 bytes long. All games ...
/* e_lgammaf_r.c -- float version of e_lgamma_r.c. * Conversion to float by <NAME>, Cygnus Support, <EMAIL>. */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunPro, a Sun Microsystems, Inc. business. * Permission t...
/*! \file Copyright (c) 2003, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from U.S. Dept. of Energy) All rights reserved. The source code is distributed under BSD license, see the file License.txt at the top-level directory. ...
/* ***** BEGIN LICENSE BLOCK ***** * Version: RCSL 1.0/RPSL 1.0 * * Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved. * * The contents of this file, and the files included with this file, are * subject to the current version of the RealNetworks Public Source License * Version ...
/*- * BSD LICENSE * * Copyright(c) Broadcom Limited. * 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 copyrigh...
/* * CHIC - China Hardware Innovation Camp - Todoo * https://chi.camp/projects/todoo/ * * <NAME> * <EMAIL> * 2018, January 11 * * Receive data from the Todoo android application through a Gatt server. * * The data are receive according to the following order: * 1) 1B theme * 2) 3B heure actuel [Heur] [mi...
/* ============================================================================ * Copyright (c) 2015 <NAME> (Purdue University) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistrib...
// SPDX-License-Identifier: GPL-2.0-or-later /* * Performance counter support for POWER10 processors. * * Copyright 2020 <NAME>, IBM Corporation. * Copyright 2020 <NAME>, IBM Corporation. */ #define pr_fmt(fmt) "power10-pmu: " fmt #include "isa207-common.h" /* * Raw event encoding for Power10: * * 60 ...
#include <stdio.h> /* stderr etc */ #include <stdlib.h> /* malloc free */ #include <string.h> /* strlen */ #include <ctype.h> /* isalpha etc */ #include "header.h" struct system_word { int s_size; /* size of system word */ const byte * s; /* pointer to the system word */ int code; /* it...
/* * Copyright (C) 1992-1994,2001 by <NAME>, Dresden * 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...
/* ========== test harness for shaft.c ========= */ /* * <NAME>, <EMAIL>, rev 1.1, 2/3/2000 * * See shaft.c for how to call the shaft code. */ #include <stdio.h> #include <stdlib.h> #include "shaft.h" void dumpBox( char *str, box *b ) { printf( "%s\n", str ) ; printf( "lo: %g %g %g\n",b->c[LO_X],b->c[LO_Y]...
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1996, 2016 Oracle and/or its affiliates. All rights reserved. */ /* * Copyright (c) 1990, 1993, 1994, 1995, 1996 * <NAME>. All rights reserved. */ /* * Copyright (c) 1990, 1993, 1994, 1995 * The Regents of the University of Californ...
/*- * BSD LICENSE * * Copyright (c) Intel Corporation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyri...
#include <stdio.h> #include "rpsdist.h" #include <unistd.h> #include <sys/stat.h> #include <string.h> #include <sys/types.h> #include <arpa/inet.h> #include <dirent.h> #include <fcntl.h> #include <irrd_ops.h> #include <regex.h> #include <irr_defs.h> #include <strings.h> /* bzero */ #include <pgp.h> extern trace_t *def...
/* * Copyright (C) 2010 Freescale Semiconductor, 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; either version 2 of the License, or * (at your option) any later version. * * This...
/* * @file W7500x_board.h @brief */ #ifndef __W7500X_BOARD_H__ #define __W7500X_BOARD_H__ #include <stdint.h> #include "common.h" //////////////////////////////// // Product Configurations // //////////////////////////////// /* Target Board Selector */ //#define DEVICE_BOARD_NAME WIZwiki_W75...
//========================================================================= // FILENAME : tagutils-aac.c // DESCRIPTION : AAC metadata reader //========================================================================= // Copyright (c) 2008- NETGEAR, Inc. All Rights Reserved. //==========================================...
/* $Id$ */ /* * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. * See the copyright notice in the ACK home directory, in the file "Copyright". */ /* I N T E R N A L D A T A S T R U C T U R E S O F E G O */ /* This file contains the definitions of the global data types. */ /* TEM...
#include <assert.h> #include <ctype.h> #include <sys/stat.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <linux/fs.h> #include <stdarg.h> #include "hdev.h" #include "plugin/hlogbuild.i" #define MAX_HLOG_KEY_LEN 64 struct hlogkey_t{ int logid; char name[MAX_HLOG_KEY_LEN]; ...
/* * rc-map.h - define RC map names used by RC drivers * * Copyright (c) 2010 by <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 o...
/****************************************************************************** * @file EBI_LCM_OTM3225A.c * @brief This file provides LCD drawing functions * @version 1.0.1 * @date 04, September, 2012 * * @note * Copyright (C) 2012-2014 Nuvoton Technology Corp. All rights reserved. ********...
/* drivers/net/ethernet/micrel/ks8851.h * * Copyright 2009 Simtec Electronics * <NAME> <<EMAIL>> * * KS8851 register definitions * * 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 Fou...
/****************************************************************************** * Copyright (c) 2016, Xilinx, 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. Redistribut...
/////////////////////////////////////////////////////////////////////////////// // // (C) Copyright 2021 OSR Open Systems Resources, Inc. // (C) Copyright 2019-2021 Xilinx, Inc. // (C) Copyright 2019-2021 OSR Open Systems Resources, Inc. // All Rights Reserved // // ABSTRACT: // // IOCTL interface ...
/* cke04.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__4 = 4; /* $Procedure CKE04 ( C-kernel, evaluate pointing record, type 4 ) */ /* Subroutine */ int ...
/* * File: TFT, keypad, DAC, LED, PORT EXPANDER test * With serial interface to PuTTY console * Author: <NAME> * For use with Sean Carroll's Big Board * Target PIC: PIC32MX250F128B */ //////////////////////////////////// // clock AND protoThreads configure! // You MUST check this file! ...
/* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee and The University * of Tennessee ...
/** * @file max30102.c * * @author * <NAME> * email: <EMAIL> * * * @brief * The implemetation of the processing that * will read the raw sensor data from the max30102 sensor. * */ #include <stdio.h> #include "max30102.h" #include <string.h> #include "uart_max30102.h" #define I2C_PORT I2C_NUM_0 /** * @...
/* ** Task-related edge density, main algorithm ** ** Ref: Lohmann et al (2016) PLoS One, 11(6):e0158185 ** ** G.Lohmann, MPI-KYB, Jan 2015 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_errno.h> #include <gsl/...
#include <stdlib.h> #include <stdbool.h> #include <math.h> #include <memory.h> #include <assert.h> #include "../config.h" #include "jpeg.h" #include "png.h" #include "mem.h" #include "gfximage.h" #include "types.h" #ifdef HAVE_FFTW3 #include <fftw3.h> #endif #define MOD(x,d) (((x)+(d))%(d)) gfximage_t*gfximage_new(in...
#include "ngx_conf_file.h" #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> static ngx_int_t ngx_http_upstream_init_ntlm_peer(ngx_http_request_t *r, ngx_http_upstream_srv_conf_t *us); static ngx_int_t ngx_http_upstream_get_ntlm_peer(ngx_peer_connection_t *pc, ...
//Définition des valeurs du capteur de force HX711 et codage long Etat_Capteur[2]; //Conversion valeur float du capteur en long long Etat_ReferenceCapteur; //valeur du capteur au setup #include "HX711.h" #define calibration_factor -7050.0 #define No_Pin_HX711_Data A3 #define No_Pin_HX711_Clock A4 HX711 sc...
/* hgGcPercent - Calculate GC Percentage in 20kb windows. */ #include "common.h" #include "portable.h" #include "dnautil.h" #include "dnaseq.h" #include "nib.h" #include "jksql.h" #include "hdb.h" #include "cheapcgi.h" #include "options.h" #include "twoBit.h" #include "bed.h" /* Command line switches. */ int winSize ...
/* See LICENSE file for copyright and license details. */ #include <stdarg.h> #include <stdbool.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #define GLFW_INCLUDE_ES3 #include <GLFW/glfw3.h> #include <SOIL/SOIL.h> #include "config.h" // Active GLES/GLSL version (default to 300 ES for GLES3) static...
/* Copyright (c) 2019 <NAME>, The Diamond Project * * 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, ...
/*-------------- Telecommunications & Signal Processing Lab --------------- McGill University Routine: enum AF_FT_T AFfindFtype(FILE *fp) Purpose: Identify the format of an input audio file Description: This routine tries to determine the format for an input audio file. It checks ...
/* * 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...
/** * @file normal_equation.c * @author <NAME> (<EMAIL>) * @brief Implementation of normal equation in C * @version 0.1 * @date 2021-06-17 * * @copyright Copyright (c) 2021 * */ #include "../machine_learning.h" /* Calculate the Determinant (der) of a matrix Calculate the Determinant (der) of larger scale ma...
// // Created by ed on 07.03.17. // #include "math.h" double to_radians(double degrees) { return degrees * (3.1415926535897932384 / 180.0); } const vector_t vector_zero = { 0.0, 0.0, 0.0 }; const vector_t vector_unit_x = { 1.0, 0.0, 0.0 }; const vector_t vector_unit_y = { 0.0, 1.0, 0.0 }; const vector_t vecto...
/* * Copyright 2017 Google LLC. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
// SDL-Interface-Funktionen für C / C++ // // <NAME>, 2012, vereinheitlichte Version für alle Beispiele // <NAME>, 2014, umgestellt auf SDL Version 2, mit Pixel-Array // <NAME>, 2020, Funktionen erweitert #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include "sdlinterf.h" #include "SDL2/SDL.h" // ein ...
#include <assert.h> #include <gapi.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include "mui_renderer.h" #include "atlas.inl" #define MU_RENDER_BUFFER_SIZE 16384 static mu_Rect mu_render_tex_buf[MU_RENDER_BUFFER_SIZE]; static mu_Rect mu_render_vert_buf[MU_RENDER_BUFFER_SIZE]; static mu_Color mu_ren...
#include <stdio.h> //#include "xparameters.h" #include "platform.h" #include "xil_printf.h" #include "xtmrctr.h" //#include "xil_exception.h" #include "xscugic.h" #include "xgpio.h" #include "xtime_l.h" // Defines: #define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID #define TMRCTR_DEVICE_ID XPAR_TMRCTR_0_DEVICE_ID #...
// SPDX-License-Identifier: GPL-2.0-only #include <asm/mach-rtl838x/mach-rtl83xx.h> #include "rtl83xx.h" extern struct mutex smi_lock; extern struct rtl83xx_soc_info soc_info; inline void rtl931x_exec_tbl0_cmd(u32 cmd) { sw_w32(cmd, RTL931X_TBL_ACCESS_CTRL_0); do { } while (sw_r32(RTL931X_TBL_ACCESS_CTRL_0) & (1 <...
/** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * This notice applies to any and all portions of this file * that are not...
/* * Unix SMB/CIFS implementation. * * A general tdb content validation mechanism * * Copyright (C) <NAME> 2007 * * 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 o...
/*************************************************************************** * * File : lcdReader_main-vxx.c * * Author : <NAME> * Date : July 1, 2015 * Modified : July 15, 2015 * * Description : Direct Reading of LCD * * Compiler : AVR-GCC * Hardware : ATMEGA328p * Fuse Setti...
/* packet-pw-satop.c * Routines for CESoPSN PW dissection as per RFC5086. * Copyright 2009, <NAME>, <NAME> <<EMAIL>> * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Ge...
/** * client_conf.h * * Author: * <EMAIL> * * 2017-01-06: init created * 2017-02-01: last updated */ #include "client_conf.h" static int mxml_read_configuration(mxml_node_t * node, void * param) { client_conf_t * client = (client_conf_t *) param; const char * text; mxml_node_t * subnode; ...
/* Pipe redirector. This module will try to connect to one of listed named pipes and, optionaly, redirect to it's one (server) named pipes. Server named pipes will be created when the input pipe connects and destroyed when the input pipe is disconnected. */ #include <signal.h> #include <stdio.h> #incl...
/********************************************************************* * * mame2003.c * * an updated port of Xmame 0.78 to the libretro API * *********************************************************************/ #include <stdint.h> #include <string/stdstring.h> #include <libretro.h> #include <file/file_path.h...