text
stringlengths
3.12k
18.7k
/* * FILE: glx_common.c * AUTHORS: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * Copyright (c) 2005-2010 CESNET z.s.p.o. * * Redistribution...
/* * Copyright (c) 2013-2014 Apple Inc. All Rights Reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * c...
// // SIKE-Weierstrass // // InfoSec Global Inc., 2017-2019 // <NAME> <<EMAIL>> // #include <weierstrass.h> void weier_curve_init(ff_Params* p, weier_curve_t* curve) { weier_pt_init(p, &curve->P); weier_pt_init(p, &curve->Q); fp2_Init(p, &curve->a); fp2_Init(p, &curve->b); curve->ffData = p; } void weier_...
/* UDP base transport support functions */ #include <net-snmp/net-snmp-config.h> #include <net-snmp/types.h> #include <net-snmp/library/snmpUDPBaseDomain.h> #include <stddef.h> #include <stdio.h> #include <sys/types.h> #include <ctype.h> #if HAVE_STDLIB_H #include <stdlib.h> #endif #if HAVE_STRING_H #include <strin...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * pkix_pl_lifecycle.c * * Lifecycle Functions for the PKIX PL library. * */ #include "pkix_pl_lifecycle.h"...
/* Created RJudd March 17, 1999 */ /* SPAWARSYSCEN D881 */ /********************************************************************** // For TASP VSIPL Documentation and Code neither the United States / // Government, the United States Navy, nor any of their employees, / // makes any warranty, express or implied, in...
/* * Copyright 2017, Amazon.com, Inc. or its affiliates. All Rights Reserved */ #include "al_hal_common.h" #include "al_dt_parse_eth.h" #include "al_dt_parse_internal.h" /* To be used for printing 'ret' value as "(N/A)" */ #define RET_NA_VAL(ret) \ ((ret) ? " (N/A)" : "") /* To be used only inside retimers parsin...
/* Copyright 2019, 2021 Google 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * ***** BEGIN LICENSE BLOCK ***** Copyright (C) 2009-2018 <NAME> and <NAME> This file is part of CLIXON. 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...
/********************************************************************** * * PostGIS - Spatial Types for PostgreSQL * http://postgis.net * Copyright 2015 <NAME> * Modifications Copyright (c) 2017 - Present Pivotal Software, Inc. All Rights Reserved. * * This is free software; you can redistribute and/or modify it...
#include "erosion.h" #include <math.h> #include <stdbool.h> #include <stdlib.h> #include <time.h> #include <cglm/cglm.h> #include "debug/assert.h" typedef struct drop_t { vec2 pos; vec2 direction; float velocity; float water; float sediment; } drop_t; static float rand_x_position_on_terrain(terrain_t *terrain...
/* * Copyright (c) 2017-2018, Texas Instruments Incorporated * 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 * n...
/* * 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...
#include <tlm.h> static FILE *g_tlm_output_f = NULL; static const tw_optdef tlm_options [] = { TWOPT_GROUP("Transmission Line Matrix Model"), TWOPT_UINT("memory", g_tlm_optmem, "Additional memory buffers"), TWOPT_STIME("threshold", g_tlm_wave_threshold, "Wave propagation threshold"), TWOPT_END() }; void tlm_md_o...
/* * Copyright (C) 2011-2014 Intel Corporation * Copyright (C) 2008 The Android Open Source Project * * 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/lice...
#pragma once #include <dolphin/mtx.h> #include "drv/dispdrv.h" #pragma enumsalwaysint off typedef enum MarioMotion { kStay, //0x0 kWalk, //0x1 kDash, //0x2 kJump, //0x3 kJumpNPC, //0x4 kJumpSw, //0x5 kJumpStand, //0x6 kJump2, //0x7 kJump3, //0x8 kJumpSmall, //0x9 kFall, //0xA kFall2, //0xB kUpstairs, //0...
/******************************************************************************* * utest-png.c * * ADAS unit-test. Interface to save camera pictures in pngs. * * Copyright (c) 2018 Cogent Embedded Inc. ALL RIGHTS RESERVED. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of th...
#include "sys/msys.h" #include "intro.h" #include <sys/stat.h> //data #include "shader.h" #include "vertexshader.h" #include "fsh_rayt.inl" #include "vsh_2d.inl" #include "cubebg.h" #include "cubetexture.h" GLuint cubepart_bg = 0; GLuint cubescreen_tex = 0; GLuint raytexture_tex = 0; GLuint cubetexture = 0; GLuint fb...
/* Author <NAME>, <NAME>, <NAME>, Department of Biomathematics, University of Texas, Houston, Texas. Copyright (c) 2018, Sanaxn CDFLIB into a single header */ inline double algdiv ( double *a, double *b ); inline double alnrel ( double *a ); inline double apser ( double *a, double *b, double *x, double *eps ); inline ...
/* Copyright (c) 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, publish, * dis...
// This is the Pixel Knights server // // Authors: <NAME> // Date: 5.3.2015 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <netdb.h> #include <arpa/inet.h> #include <pthread.h> #include <err...
/* demo.c -- test client for pmd1208fs library * * compile: gcc demo.c -o demo -lpmd1208fs * * Copyright 2005 - 2009 <NAME> */ // Note -- The PMD device will not work through a usb(2?) hub, probably because // of the limited bandwidth of the transaction translator, and ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <math.h> #include "bitrate.h" #include "../common/log.h" #include "../common/buffer.h" #include "../common/mytime.h" int calculate_throughput(struct connection_t *conn, int frag_size) { int time_spent; double new_t...
/* Pull in all of the core REPRs. */ #include "6model/reprs/MVMString.h" #include "6model/reprs/MVMArray.h" #include "6model/reprs/MVMHash.h" #include "6model/reprs/MVMCFunction.h" #include "6model/reprs/KnowHOWREPR.h" #include "6model/reprs/P6opaque.h" #include "6model/reprs/MVMCode.h" #include "6model/reprs/MVMOSHand...
#include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <string.h> #include <stdbool.h> #include <math.h> #include <stdarg.h> #include "wasm_instr.h" #include "microio.h" #include "awsm.h" #include "awsm_internal.h" void dwarf_debug_line_state_machine_reset(dwarf_debug_line_state_machine * sm, bool address...
#include "graphics.h" int vbe_get_mode_info_AT_HOME(in_port_t mode, vbe_mode_info_t * vbe_mode) { mmap_t mem_map; reg86_t reg; // ALLOC if (lm_alloc(sizeof(*vbe_mode), &mem_map) == NULL) return 1; // MEMSET 0 memset(&reg, 0, sizeof(reg)); // CONF REG reg.intno = VBE_INTERRUPT;...
#include<stdio.h> #include<stdlib.h> #include <sys/time.h> #include <pthread.h> typedef struct state { int *resource; int *available; int **max; int **allocation; int **need; } State; int isSafeState(State*); State *initialise_State(void); State *copy_State(void); int do_request(int, int*, State*); void print_av...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> int reverse_search(char*, char, int); int is_identifier(char*); char* bracketer(char*, char, char, int); int is_keyword(char*); int is_operator(char*); int combine_and_check_for_operator(char, char); char* get_bracket_name(char); char fpeek(...
/* * Copyright 2015 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is...
#include "MSPd.h" static t_class *markov_class; #define OBJECT_NAME "markov~" typedef struct _markov { t_object x_obj; float x_f; // for markov int event_count; int maximum_length; float **event_weights; int current_event; float *values; float current_value; // for rhythm int count; int event...
/* * Copyright (C) 2019, Xilinx Inc - All rights reserved * Xilinx Lookahead XMA Plugin * * 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/licenses/LICENSE-2.0 ...
/* gfx.c - graphics engine abstraction. public domain */ /******************************************************************************* * Graphics & Audio abstraction layer ******************************************************************************/ #include <SDL2/SDL.h> #include "gl.h" #include "logging.h" #i...
/* Definitions of target machine for GNU compiler, for ARM with PE obj format. Copyright (C) 1995, 1996, 1999, 2000, 2002 Free Software Foundation, Inc. Contributed by <NAME> (<EMAIL>). This file is part of GNU CC. GNU CC is free software; you can redistribute it and/or modify it under the terms of the GNU G...
/** * \file * * \brief USART IrDA example for SAM. * * Copyright (c) 2011-2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met:...
/* File: Game.c Author: <NAME> <EMAIL> Description: Gameplay related functions for the radar-turn-based game. Date: 2016/07/28 COPYRIGHT (c) 2016 <NAME> MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "S...
//have to pass one of these in as a macro //#define VDF_MODE 0 //used for the final submission and correctness testing //#define VDF_MODE 1 //used for performance or other testing //also have to pass in one of these //#define ENABLE_ALL_INSTRUCTIONS 1 //#define ENABLE_ALL_INSTRUCTIONS 0 // // //divide table const in...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "utils.h" #include "args.h" #include "styles.h" #include "terminal.h" #include "indexer.h" #include "list.h" #include "config.h" static void begin_style(struct terminal *terminal, const struct style *style, ...
#include <stdio.h> #include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_system.h" #include "esp_log.h" #include "esp_ota_ops.h" #include "driver/uart.h" #include "lib/littlefs/lfs2.h" #if MICROPY_ESP_IDF_4 #include "esp32/rom/uart.h" #else #include "rom/uart.h" #endif #include...
/* * Copyright (c) 2014-2017 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditio...
#include "bytecode.h" #include "display.h" #include "util.h" #include <stdint.h> #include <stdio.h> #include <string.h> // nibble3 nibble2 nibble1 nibble0 static uint8_t extract_nibble(uint16_t ins, uint8_t pos) { return (uint8_t)(ins >> (pos * 4) & 0x0f); } // clang-format off /* * types : ['16-bit', '1...
/* Copyright (C) 2003-2005 <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 later version. This program is distributed in t...
/* * Image format * Copyright (c) 2000, 2001, 2002 <NAME> * Copyright (c) 2004 <NAME> * * This file is part of Libav. * * Libav is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version...
// 0x0700F3B8 - 0x0700F3D0 static const Lights1 wf_seg7_lights_0700F3B8 = gdSPDefLights1( 0x66, 0x66, 0x66, 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 ); // 0x0700F3D0 - 0x0700F4C0 static const Vtx wf_seg7_vertex_0700F3D0[] = { {{{ -96, 0, 0}, 0, { 990, 990}, {0x81, 0x00, 0x00, 0xff}}}, {{{ ...
/*- * Copyright (c) 2012-2013 <NAME> * Copyright (c) 2013 SRI International * Copyright (c) 2013 <NAME> * All rights reserved. * * This software was developed by SRI International and the University of * Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 * ("CTSRD"), as part of the DARPA C...
/* ZEsarUX ZX Second-Emulator And Released for UniX Copyright (C) 2013 <NAME> This file is part of ZEsarUX. ZEsarUX 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 th...
/* * Copyright (c) 1997-2006 <NAME> * * 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 following di...
/* * system_ruleset.c - default System Ruleset * * Copyright (c) 2008, Ueda Laboratory LMNtal Group <<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. Redist...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* * Copyright (C) 2005-2016 <NAME> (<EMAIL>). * 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 3 of the License, or * (at your option) any later ve...
#include "pusha/debug.h" #include "pusha/error.h" #include "pusha/helper.h" #include <stdio.h> #include <unistd.h> #include <string.h> #include <sys/socket.h> #include <netdb.h> #include <netinet/in.h> #include <arpa/inet.h> #include <openssl/ssl.h> #include <openssl/err.h> static void print_array(const uint8_t* pay...
/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* configfiles.c: give access to config files */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <fcntl.h> #include <dirent.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include "allnet_log.h" #include "configfiles.h" #include "util.h" #define ROOT "~/.a...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the Apache Licens...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
/** * @file spi.c * @author xiaowine (<EMAIL>) * @brief * @version 01.00 * @date 2021-07-08 * * @copyright Copyright (c) {2020} xiaowine * * @par 修改日志: * <table> * <tr><th>Date <th>Version <th>Author <th>Description * <tr><td>2021-07-08 <td>1.0 <td>wangh <td>内容 * </table> * ***********...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * ...
#include <vanilla/cpu.h> #include <vanilla/std.h> #include "common.h" #define MAGIC "3EA81233" #define PATHSIZ(a) (((a) << 1) + 18) struct header { u32int mode; u32int namesize; u64int size; }; static void store32(ctype_ioq *p, u32int x) { char tmp[4]; c_ioq_nput(p, c_uint_32pack(tmp, x), sizeof(x)); } stati...
#include "stage.h" #include "force.h" void apply_force (force_t *force, struct stage_t *stage) { /* polymorphic dispatch */ force->apply (force, stage); } void destroy_force (force_t *force) { /* polymorphic dispatch */ force->destroy (force); free (force); } force_t *create_force (void *data,...
/* * Copyright 2007 Doxological Ltd. * * 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 ag...
/* * A dummy simulator template file to illustrate the use of * HotSpot in a cycle-accurate simulator like Simplescalar. * This file contains the following sample routines: * a) Model initialization (sim_init) * b) Model use in a cycle-by-cycle power model (sim_main) * c) Model uninitialization (sim_exit) * ...
/* * Copyright (c) 2004, <NAME> <<EMAIL>> * Copyright (c) 2004, <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above...
#pragma ident "$Id: rate.c 165 2005-12-23 12:34:58Z andres $" /* -------------------------------------------------------------------- Program : Any Task : Archive Library API functions. File : rate.c Purpose : Sampling rate derivation routines. Host : CC, GCC, Microsoft Visual C++ 5.x Target : Sol...
#include "../premake_internal.h" #include <string.h> #define PREMAKE_MAIN_SCRIPT_PATH "core/host/src/_premake_main.lua" #define PREMAKE_MAIN_ENTRY_NAME "_premake_main" static int getCurrentScriptDir(lua_State* L); static const char* getScriptsPath(int argc, const char** argv); static void installModuleLoader(lu...
/* * eins - A tool for measuring network-bandwidths and -latencies. * Copyright (C) 2006 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Li...
/* The MIT License (MIT) Copyright (c) 2015 chenqi 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...
/* $NetBSD: s3c2xx0_space.c,v 1.7 2005/11/24 13:08:32 yamt Exp $ */ /* * Copyright (c) 2002 Fujitsu Component Limited * Copyright (c) 2002 Genetec Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following co...
#include "parser.h" #include <stdlib.h> #include "ast.h" #include "lexer.h" const uint8_t *src_base; static Expr * make_expr(AST *ast, int t, SourcePosition pos) { Expr *ret = mempool_alloc(&ast->pool, sizeof(Expr)); ret->t = t; ret->pos = pos; ret->type = NULL; return ret; } static Token expect(TokKind ...
/* Number of states in NFA = 4 (It stands for state q0, q1, q2, and q3) Number of symbols in NFA = 2 (It stands for symbol 0 and 1) Start State = 0 (It stands for state q0) Final States = 1 (There is only one final/accepting state, named q3) 3 Transition Function 1 0 3 0 1 2 Transition for q0 -> q0...
#include "KW_scrollbox_internal.h" #include "KW_gui.h" #include "KW_scrollbox.h" #include "KW_tilerenderer.h" #include "KW_widget.h" KW_Scrollbox * AllocScrollbox() { KW_Scrollbox * scrollbox = calloc(sizeof(*scrollbox), 1); return scrollbox; } static int imin(int i, int j) { return (i < j) ? i : j; } static int...
#include <mpi.h> #include <stdio.h> #include <stdlib.h> #include "des.h" #include "helper_descrack.h" #include "input_descrack.h" /** * Calcola l'intervallo di iterazione per la generazione delle chiavi. * * @param size dimensione del communicator * @param rank rank del processo * @param pows array contenente ...
/* * 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 ADLINK Software License Agreement Rev 2.7 2nd October * 2014 (the "License...
/* $NetBSD: scsi_tape.h,v 1.20 2001/04/25 17:53:39 bouyer Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution and use in source and binary forms, with or without * modifi...
/* 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. */ /****************************************...
/* block-sync.c * * simple slow synchronous raw disk implementation. * * (c) 2006 <NAME> and <NAME> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation; or, when distributed * se...
/*************************************************************************** cb7210_write.c ------------------- copyright : (C) 2003 by <NAME> email : <EMAIL> *******************************************************************...
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <ctype.h> #include <string.h> #include <epan/epan_dissect.h> static int print_hidden = 1; static void proto_tree_print_node(proto_node *node, gpointer data) { gchar *label_ptr; field_info *fi; char *s; fi = PITEM_FINFO(node); if (fi->hfi...
/* falab - free algorithm lab Copyright (C) 2012 luolongzhi 罗龙智 (Chengdu, China) 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 l...
/*** * * GOPHERD SERVER: A gopher server implementation * that follows rfc1436 * Copyright (c) 2019, fmount <<EMAIL>> * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <dirent.h> #include <sys/socket.h> #include "gophermap.h" g_elem * new_element(char *line, char...
/****************************************************************** * * Copyright 2018 Samsung Electronics All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/wait.h> #include <fcntl.h> /* For O_* constants */ #include <sys/stat.h> /* For mode constants */ #include <unistd.h> #include <sys/mman.h> #include <errno.h> #include <semaphore.h> #include <pthread.h> #inc...
#include <GL/glew.h> #include <assimp/cimport.h> #include <assimp/scene.h> #include <assimp/postprocess.h> #include "renderer.h" #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" void render_obj_create(render_obj_t* render_obj, mesh_t mesh); void render_objs(render_obj_t* render_obj, int count, renderer_t* rende...
/** @file fusepfi.c * mounting PFI files using FUSE: Filesystem in Userspace * * @author: autch */ /* FUSE: Filesystem in Userspace Copyright (C) 2001-2007 <NAME> <<EMAIL>> This program can be distributed under the terms of the GNU GPL. See the file COPYING. gcc -Wall `pkg-config fuse --cflags --libs...
/* * lcd.c: * Text-based LCD driver. * This is designed to drive the parallel interface LCD drivers * based in the Hitachi HD44780U controller and compatables. * * This test program assumes the following: * * 8-bit displays: * GPIO 0-7 is connected to display data pins 0-7. * GPIO 11 is the RS pin. * GPIO...
/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved. * ******************************************************************************/ /* The following is for 8723B 1ANT BT Co-ex...
/** * \file * Minimal DAQ program implemented using the mvlc-c interface. * * Uses the mvlc_readout_t abstraction with custom callbacks. * \ingroup mvlc-c * \{ */ #include <assert.h> #include <getopt.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <mesytec-mvlc-c.h> /...
/* * Copyright (c) 2004-2008 Voltaire Inc. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this source...
/* * Window management. Some of the functions are internal, and some are * attached to keys that the user actually types */ #include <stdlib.h> /* free(3), malloc(3) */ #include "estruct.h" #include "edef.h" extern void upmode (); extern void mlwrite (); extern int backpage (int f, int n); extern int forwpage (in...
/* * Note: Although these structures are internal to OpenSSL, they are defined * here, because in order to override ecc point operations with pka * API's the fields inside the structure have to be changed directly as * OpenSSL doesn't provide API's to do so. * * Care needs to be taken to ...
/* $OpenBSD: odsyntax.c,v 1.21 2010/10/08 14:26:12 sobrado Exp $ */ /* $NetBSD: odsyntax.c,v 1.15 2001/12/07 15:14:29 bjh21 Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modifica...
/* Copyright 2004,2007,2008,2010-2012,2014 IPB, Universite de Bordeaux, INRIA & CNRS ** ** This file is part of the Scotch software package for static mapping, ** graph partitioning and sparse matrix ordering. ** ** This software is governed by the CeCILL-C license under French law ** and abiding by the rules of distri...
/* * 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, ...
/** ****************************************************************************** * @file I2C/IOExpander/main.c * @author MCD Application Team * @version V3.5.0 * @date 08-April-2011 * @brief Main program body ******************************************************************************...
/* * Copyright (C) <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, publish...
/* The VDRIVER - A Classic Video Game Engine By <NAME> and Divine Entertainment (1997-2000) Support: If you find problems with this code, send mail to: <EMAIL> For additional information and updates, see our website: http://www.divent.org Distribution/Rights: I could put things here that would mak...
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * loadsF1.c * * Code generation for function 'loadsF1' * */ /* Include files */ #include "mwmathutil.h" #inc...
#include <string.h> #include "bionic.h" #include "memio.h" #include "serial.h" #include "utils.h" #include "fernvale-pmic.h" #include "fernvale-spi.h" #include "scriptic.h" extern struct scriptic set_plls; extern struct scriptic spi_run; extern struct scriptic spi_init; void usb_uart_read(void *buffer, int bytes, in...
// SPDX-License-Identifier: Unlicense #include <windows.h> #include <stdio.h> #include <stdlib.h> #include "nwinfo.h" static void PrintU8Str(PNODE pNode, LPCSTR Key, UINT8 *Str, DWORD Len) { DWORD i = 0; nwinfo_buffer[0] = '\0'; for (i = 0; i < Len; i++) snprintf(nwinfo_buffer, NWINFO_BUFSZ, "%s%c", nwinfo_buffe...
/* No copyright is claimed in the United States under Title 17, U.S. Code. All Other 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 limitat...
#include <stdio.h> #include <string.h> #include <pthread.h> #include <ctype.h> #include <stdlib.h> #include <unistd.h> #include <time.h> #include <semaphore.h> #include <errno.h> /** color output thingy */ #define KNRM "\x1B[0m" #define KRED "\x1B[31m" #define KGRN "\x1B[32m" #define KYEL "\x1B[33m" ...
/*- * Copyright (c) 2012-2018 <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...