text
stringlengths
7.55k
41.9k
/* $Id: dcclog.c,v 1.10 2006/09/28 19:31:45 bob Exp $ * * File: arm_elf.c * Module: * Project: ARM-DCC logger expander * Author: <NAME> (<EMAIL>, <EMAIL>) * Target: * Comment: * Copyright(C) 2005-2009 <NAME>. All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it...
/* * 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 <stdio.h> #include <stdlib.h> #include <string.h> #include <curses.h> #include <time.h> #include <stdbool.h> #include <errno.h> #include <unistd.h> #include <ctype.h> #include "common.h" #define NUMCARDS 40 #define GAMENAME "kabusol" char animdash[4] = {'-','/','|','\\'}; bool won_game = 0; unsigned int wi...
/* * GUSEMU32 - bus interface part * * Copyright (C) 2000-2007 Tibor "TS" Schütz * * 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...
/* * Copyright (C) 2017 Oracle. All Rights Reserved. * * Author: <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 License, or (at your option...
/*System includes*/ #include <stdlib.h> #include <stdio.h> #include <math.h> #include <string.h> /*GSL includes*/ #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_math.h> #include <gsl/gsl_sf.h> #include <gsl/gsl_integration.h> #include <gs...
/****************** INCLUDE APPLICATION SECTION ***********************/ #include "extern.h" #include <fcntl.h> #include <sys/ioctl.h> /** Caratteri speciali del protocollo */ #define STX 0x02 #define ETX 0x03 #define ACK 0x06 #define DLE 0x10 #define NAK 0x15 #define ETB 0x17 //#define DEBUG_PRIN...
/*- * Copyright (c) 2004 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
/* sdlin.c: Reading the keyboard. * * Copyright (C) 2001-2006 by <NAME>, under the GNU General Public * License. No warranty. See COPYING for details. */ #include <string.h> #include "SDL.h" #include "sdlgen.h" #include "../defs.h" /* Structure describing a mapping of a key event to a game command. */ typedef s...
/* *----------------------------------------------------------------------------- * Filename: vmdisplay.c *----------------------------------------------------------------------------- * Copyright 2012-2018 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining * a copy of th...
#include "config.h" // VIVO file parser by A'rpi // VIVO text header parser and audio support by alex #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> /* strtok */ #include "config.h" #include "mp_msg.h" #include "help_mp.h" #include "stream/stream.h" #include "demuxer.h" #include "st...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "cut.h" #include "font.h" #include "app.h" #include "../config.h" #include "../mp_msg.h" #include "../help_mp.h" #include "mplayer/widgets.h" //#define MSGL_DBG2 MSGL_STATUS listItems * skinAppMPlayer = &appMPlayer; // --- static int ...
/* checkExp - check if retroGene aligns better to parent or retroGene */ #include "common.h" #include "linefile.h" #include "hash.h" #include "memalloc.h" #include "psl.h" #include "bed.h" #include "hdb.h" #include "axt.h" #include "dnautil.h" #include "dnaseq.h" #include "nib.h" #include "fa.h" #include "dlist.h" #inc...
#include <stdlib.h> #include <assert.h> #include "NNExtension.h" #include "dbg.h" #include "chelper.h" int conv2d(const float* __restrict data_in, const int batch, const int in_h, const int in_w, const int in_ch, const float* __restrict kernel, const ...
/* * pxp_test - V4L2 test application for the PxP * * Copyright (C) 2009-2010 Freescale Semiconductor, Inc. * Copyright 2008-2009 Embedded Alley Solutions * <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 publish...
/* * Copyright (c) 2012, 2013, 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...
/********************************************************************** Each of the companies; Qualcomm, and Lucent (hereinafter referred to individually as "Source" or collectively as "Sources") do hereby state: To the extent to which the Source(s) may legally and freely do so, the Source(s), upon submission of a ...
/* Domain definition using glocal unihit configured profiles. * Only generic, not optimized matrices are used b/c the optimized * functions make assumptions that are violated by a glocal model. * * Exegesis: * * The following is copied from p7_domaindef.c. The only difference * between this and that file (and ...
#include "osapi.h" #include "sntp.h" #include "user_interface.h" #include "c_stdint.h" #include "c_stddef.h" #include "c_stdio.h" #include "user_config.h" #include "../util/cbuff.h" #include "platform/flash_fs.h" #include "driver/rfm69_register.h" #include "driver/rfm69.h" #include "rfm.h" #include "rfm_parser.h" #i...
#include "inc.h" #include <sys/ioctl.h> #include <sys/ucred.h> #include <net/gen/in.h> #include <net/gen/ether.h> #include <net/gen/eth_io.h> #include <net/gen/arp_io.h> #include <net/gen/ip_io.h> #include <net/gen/route.h> #include <net/gen/tcp.h> #include <net/gen/tcp_io.h> #include <net/gen/udp.h> #include <net/ge...
#include <stdint.h> #include "bitbuf.h" #include "common.h" #include "enc.h" #define HOR 0 #define VER 1 #define ABS_LEVEL_IND_HP0 0// 4 #define ABS_LEVEL_IND_HP1 1// 5 #define FIRST_IND_HP_LUM 2// 8 #define FIRST_IND_HP_CHR 3// 9 #define IND_HP_LUM0 4//14 #define IND_HP_LUM1 5//15 #de...
/* * $Id: g_count.c,v 1.37 2009/07/02 15:15:12 oliver Exp $ * * This program is based on a Gromacs 2.0 g_* program * see http://www.gromacs.org * */ #include <math.h> #include <string.h> #include <stdarg.h> #include "statutil.h" #include "sysstuff.h" #include "typedefs.h" #include "smalloc.h" #include "macros.h"...
#include <tistdtypes.h> #include <coecsl.h> #include "user_includes.h" #include "math.h" // These two offsets are only used in the main file user_CRSRobot.c You just need to create them here and find the correct offset and then these offset will adjust the encoder readings float offset_Enc2_rad = -0.3834; float offse...
#include <stdio.h> #include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_system.h" #include "esp_log.h" #include "soc/soc.h" #include "soc/dport_reg.h" #include "lcd_com.h" #include "i2s_lcd_driver.h" #include "driver/gpio.h" #include "driver/adc_common.h" #define TAG "LCD_COM" #...
/* Copyright 2010-2013 SourceGear, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwar...
/* * fdrd.c - Flight Data Recorder Daemon * * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * The Universal Permissive License (UPL), Version 1.0 * * Subject to the condition set forth below, permission is hereby granted ...
#include "driver.h" static ULONG SynaPrintDebugLevel = 100; static ULONG SynaPrintDebugCatagories = DBG_INIT || DBG_PNP || DBG_IOCTL; static int rmi_set_mode(PSYNA_CONTEXT pDevice, uint8_t mode) { uint8_t command[] = { 0x00, 0x3f, 0x03, 0x0f, 0x23, 0x00, 0x04, 0x00, RMI_SET_RMI_MODE_REPORT_ID, mode }; //magic bytes ...
/* packet-ieee1722a.c * Routines for AVB-TP (Audio Video Bridging - Transport Protocol) dissection * Copyright 2014, <NAME> <<EMAIL>>, * <NAME> <<EMAIL>> * * Wireshark - Network traffic analyzer * By Gerald Combs <<EMAIL>> * Copyright 1998 Gerald Combs * * This program is free software; you can...
/* * Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC") * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED...
/* * 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 OAI Public Lic...
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <ble_conn_params.h> #include <ble_db_discovery.h> #include <ble_stack_handler_types.h> #include <nordic_common.h> #include <nrf.h> #include <nrf_error.h> #include <nrf_sdm.h> #include <softdevice_handler.h> #i...
/* * inupfin256.c * * Implements the 224 and 256 bit versions of TibInit(), TibUpdate(), TibFinal() and TibHash() * Optimized for 32 bits * Authors: <NAME> */ #include <string.h> #include "inupfin.h" /* Sizes used across all the functions */ #define STATE_WORDS TIB_STATE_WORDS_256 #define STATE_BYTES TIB_ST...
#include <stdio.h> #include <string.h> #include "jsmn.h" #include "buffer_file.h" #include "orx_parsejson.h" /**********************************************************************/ /**********************************************************************/ /*** AVL Tree handling for OJI (OpNav Report Items); lookup is...
/* * Meinberg clock support * * Copyright <NAME> <<EMAIL>> * Copyright the NTPsec project contributors * SPDX-License-Identifier: BSD-3-Clause */ #include "config.h" #include "ntp_fp.h" #include "ntp_calendar.h" #include "ntp_machine.h" #include "parse.h" #include <stdio.h> #include "ntp_stdlib.h" #include ...
/* * hostapd / EAP-FRM server * Copyright (c) 2008, <NAME> <<EMAIL>> * * 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. * * Alternatively, this software may be distribut...
/* * Buzzer.c - Functions for controlling the buzzer on the Robotis CM-510 * These function use a timer1 PWM to generate the note frequencies and * timer1 overflow interrupt to time the duration of the notes, so the * buzzer can be playing a melody in the background while the rest of * the code executes. * ...
/* * Copyright (c) 2015 Kaprica Security, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, mer...
#include <stdio.h> #include "debug.h" static short getShort(uint8_t* buffer, int offset) { return (buffer[offset] << 8) | buffer[offset + 1]; } static uint16_t getUShort(uint8_t* buffer, int offset) { return (uint16_t)((buffer[offset] << 8) | buffer[offset + 1]); } static int getInt(uint8_t* buffer, int off...
/* -*- c-file-style: "k&r"; indent-tabs-mode: nil; -*- */ /********************************************************************* * The MIT License (MIT) * * Copyright (c) 2013,2014 Genome Institute of Singapore * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and ass...
/* $Header: /cvsroot/nsnam/xgraph/init.c,v 1.2 1999/12/19 00:52:06 heideman Exp $ */ /* * init.c: xgraph initialization code * * Routines: * InitSets(); * ParseArgs(); * ReadDefaults(); * * $Log: init.c,v $ * Revision 1.2 1999/12/19 00:52:06 heideman * warning suppresion, slightly different flot ahndling *...
/* Copyright (C) 1997-2001 Id Software, 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 program is distribut...
/****************************************************************************** Copyright (C) 2013-2014 by <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 vers...
#include "defines.h" #include "helper_functions.h" #include "catching.h" #include "frontier.h" #include "build_pokemon.h" #include "multi.h" //Fix EV Setting extern u8 ClassPokeBalls[NUM_TRAINER_CLASSES]; extern void GetFrontierTrainerName(u8* dst, u16 trainerId, u8 battlerNum); extern void MultiInitPokemonOrder(voi...
/* * Copyright (c) 2003 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions an...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* $NetBSD: cpu.c,v 1.37.4.2 2002/07/29 14:42:00 lukem Exp $ */ /* * Copyright (c) 1995 <NAME>. * Copyright (c) 1995 Brini. * 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. Redistri...
/* * Author: syang2forever * Mail: <EMAIL> * Blog: syang2forever.github.io */ #include <stdio.h> #include <stdlib.h> #include <math.h> /* An implementation of 5-stage classic pipeline simulation */ /* don't count instructions flag, enabled by default, disable for inst count */ #undef NO_INSN_COUNT #include "hos...
/* softshadow2.c - by <NAME>, 3Dfx Interactive */ /* Soft shadows using a shadow texture per polygon. Based on an algorithm */ /* described by <NAME> and <NAME> of CMU; see their web site */ /* http://www.cs.cmu.edu/ph/shadow.html for details. */ /* ...
/* * Author: <NAME> <<EMAIL>> * * Last modified: Fri Dec 11 00:59:48 1998 fingon * * Original authors: * 4.8.93- rdm created * 6.16.93- jb modified, added hex_struct * Since that modified by: * '95 - '97: <NAME> <<EMAIL>> * '98 - '02: <NAME> <<EMAIL>> */ #include <stdio.h> #include <stdlib.h> #inc...
#include "apetag.h" #include "mp3gain.h" #include "rg_error.h" #include <stdlib.h> #include <stdio.h> #include <memory.h> #include <string.h> #include <fcntl.h> #ifdef WIN32 #include <io.h> #else #include <unistd.h> #endif #ifndef WIN32 #define _stricmp strcasecmp #endif /* WIN32 */ int ReadMP3ID3v1Tag(FILE *fi, unsi...
#include <sys/types.h> #include <sys/stat.h> #include <stdint.h> #include <fcntl.h> #include <termios.h> #include <ctype.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include <assert.h> #define RATE_FAST (1) #define RATE_NORMAL (2) #define RATE_SLOW (3) cha...
/* * Copyright (c) 2008, <NAME> University * This software is distributed under the terms of the * Simplified BSD License (see ipc/LICENSE.TXT) */ #include "ipc.h" unsigned long x_ipc_timeInMsecs(void); #if defined(__sgi) || defined(macintosh) || defined(__APPLE__) || defined(REDHAT_71) #include <stdlib.h>...
//========================================================= // src/InitDevice.c: generated by Hardware Configurator // // This file will be regenerated when saving a document. // leave the sections inside the "$[...]" comment tags alone // or they will be overwritten!! //================================================...
#include <string.h> #include "lanhep.h" Atomic A_RBRA, A_RCET, A_FBRA, A_FCET, A_QBRA, A_QCET, A_POINT,A_COMMA,A_SECO, A_QUOTE, A_RQUOTE, A_DQUOTE, A_QBRACET, A_FBRACET; Atom OPR_MINUS, OPR_PLUS, OPR_MLT, OPR_DIV, OPR_CARET, OPR_POW, OPR_CLNMIN, OPR_COMMA, OPR_SECO, OPR_EQSIGN, OPR_COLON, OPR_USCORE, OPR_RARROW, ...
/* ---------------------------------------------------------- * * file: revocation.c * * purpose: provide revocation related functions * * * * functions here were taken from OpenSSL ca.c and apps.c * * --------...
/* Psychtoolbox3/Source/Common/SCREENOpenMovie.c AUTHORS: mario.kleiner at tuebingen.mpg.de mk PLATFORMS: This file should build on any platform. HISTORY: 10/23/05 mk Created. DESCRIPTION: Open a named movie file from the filesystem, create and initialize a corresponding movi...
/*! \file \brief A parallel SGD matrix -factorization program using 2D distribution of the matrix \date Started 6/1/2013 \author George */ #define _LARGEFILE64_SOURCE #include <GKlib.h> #include <mpi.h> #include <sys/types.h> #include <sys/time.h> #include <sys/resource.h> #include <sys/stat.h> #include <fcnt...
/*******************************************/ /* libPhonon: -llapack -lblas -lm */ /* -lVecMat -lScalar -lIO */ /* */ /* Force constant, phonon diagonalization, */ /* and thermodynamic functions. */ /* *...
/* * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include <stdbool.h> #include <stddef.h> #include <sys/param.h> #include "esp_log.h" #include "esp_intr_alloc.h" #include "soc/soc_caps.h" #include "soc/soc_pins.h" #include "soc/gpio_periph.h" #in...
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ /* gChsqcnoesyA.c 3D C13 edited noesy with separation via the carbon of ...
// // ps2.c // PS/2 keyboard driver for the GPIO port // // PiGFX is a bare metal kernel for the Raspberry Pi // that implements a basic ANSI terminal emulator with // the additional support of some primitive graphics functions. // Copyright (C) 2020 <NAME> // Based on information from this document: https://www.avrfre...
/* Main idea: - Use the cheat-variables on MECHstruct to determine when / if to do LOS checks (num_mechs_seen) - Also, check for range (maxgunrange / etc variables in the autopilot struct) - If we have target(s): - Try to acquire a target with best BTH - Decide if it's worth shooting at ...
#include <stdio.h> #include "dotprod_viv.h" void parallel_0(short x[992], short y[992], int sum_array[62]) { // Step 2: Initialize local variables int sum_w1; int sum_w2; int temp_l83_i29_w1; int temp_l83_i28_w1; int temp_l83_i17_w1; int temp_l83_i16_w1; int sum_w3; int sum_w4; int sum_w5; int sum_w6; int temp_l83_i2...
/* Intelligent FRAC. (C) 2000 <NAME> */ /* --------------------------------------------------- */ /* See LICENSE regarding distribution policy and */ /* conditions of use. */ /* =================================================== */ #include <stdio.h> #include <stdli...
/* Demonstrate use of Helix library, embedded in to a file-based command-line cryptographic utility. Usage: `helix_c99_demo.exe [-h] [-ed] [-s string] [--port=<n>] -u string -i string [-o string] [-p string]` -h, --help display this help and exit -s, --server=string ip/DNS name of key server...
#include <stdlib.h> #include <string.h> #include <stdio.h> #include <stdarg.h> #include <limits.h> #include <zlib.h> #include <ft2build.h> #include FT_FREETYPE_H #include FT_STROKER_H #include FT_GLYPH_H typedef unsigned char uchar; typedef unsigned short ushort; typedef unsigned int uint; int imin(int a, int b) { re...
/* * adios_transforms_reqgroup.c * * All node types from the transform read request tree are implemented here. * * Note on use of PREPEND rather than APPEND when adding read requests: the ultimate * goal is to ensure all raw_read_requests are scheduled with the I/O transport layer * according to the pre-order tr...
/* Work with executable files, for GDB. Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2007, 2008 Free Software Foundation, Inc. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under th...
/** * Copyright 2020 Major League Baseball * * 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 ...
#include "draw.h" static DVLB_s *vshader_dvlb; static shaderProgram_s program; static int uLoc_projection; static C3D_Tex *glyphSheets; static textVertex_s *textVtxArray; static int textVtxArrayPos; static drawTarget_t top; static drawTarget_t bottom; static b...
/* * WPA Supplicant - driver interaction with old Broadcom wl.o driver * Copyright (c) 2004, <NAME> <<EMAIL>> * Copyright (c) 2004, <NAME> <<EMAIL>> * * 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...
/* pptp.c ... client shell to launch call managers, data handlers, and * the pppd from the command line. * <NAME> <<EMAIL>> * * $Id: pptp.c,v 1.44 2006/02/13 03:06:25 quozl Exp $ */ #include <sys/types.h> #include <sys/socket.h> #if defined(__FreeBSD__) #include <libutil.h> #elif defined(__N...
/** ****************************************************************************** * @file Display/LCD_AnimatedPictureFromSDCard/Src/main.c * @author MCD Application Team * @brief This file provides main program functions *****************************************************************************...
/* Kelompok : UAS Nama file : eksternal.c Deskripsi : Implementasi modul eksternal */ #include "eksternal.h" #include <time.h> ArrKata GetAllUserName() /* mengambil semua username dan jam kemudian dimasukkan ke arrkata index genap untuk username, index ganjil untuk jam */ { ArrKata hasil; i...
/* BalSelSims.c Simulation of balancing selection simulation with sampling (finite population effects) Selection; reproduction; mutation based on deterministic recursions, then sampling Repeats for 'Length' generations Simulation uses routines found with the GNU Scientific Library (GSL) (http://www.gnu.org/software/...
/***************************************************************************** * Copyright (c) 2019, Nations Technologies Inc. * * All rights reserved. * **************************************************************************** * * Redistribution and use in source and binary forms, with or without * modificat...
/******************************************************************************* Authors: · <NAME> - <EMAIL> · <NAME> - <EMAIL> File: minimiza.c Project: Second assignment AUTLEN Date: December 13, 2019 **************************************************************************...
#include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <signal.h> #include <sys/types.h> #include <unistd.h> #include <math.h> #include "config_manager.h" #include "rd_net.h" #include "json_parser.h" #include "misc.h" #include "sha256.h" #include...
/** * Compiler implementation of the * $(LINK2 http://www.dlang.org, D programming language). * * Copyright: Copyright (C) 1992-1998 by Symantec * Copyright (c) 2000-2017 by The D Language Foundation, All Rights Reserved * Authors: <NAME>, <NAME>, $(LINK2 http://www.digitalmars.com, <NAME>), *...
/* agfa-cl20.c * * Copyright (C) 2002-2003 by <NAME> and <NAME>, * http://cl20.poeml.de/ * * 16-Mar-2004 - Dennis - Modified as follows: * - fix compactflash detection * - fix number of picturs detection * - get rid of the heavy stack usage and use the heap instead * - fix USB do...
#include <SDL.h> #include <assert.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #define STB_DS_IMPLEMENTATION #include "stb_ds.h" #define TOP_DOWN const int SCREEN_WIDTH = 800; const int SCREEN_HEIGHT = 800; const int SITE_RECT_H = 20; const int SITE_RECT_W = 20; const int BOUNDING_BOX_XMIN = 50; cons...
#include <kernel/system.h> #include <kernel/proc.h> #include <kernel/kernel.h> #include <kernel/schedule.h> #include <mm/kalloc.h> #include <mm/kmalloc.h> #include <mm/shm.h> #include <kernel/kevqueue.h> #include <kstring.h> #include <kprintf.h> #include <queue.h> #include <kernel/elf.h> #include <kernel/core.h> #inclu...
#include <assert.h> #include <string.h> #include <stdlib.h> #include "util/common.h" #include "util/log.h" #include "traffic.h" #define TM_SIZE(p) (p->num_pairs * sizeof(struct pair_bw_t) + sizeof(struct traffic_matrix_t)) void _tmti_begin(struct traffic_matrix_trace_iter_t *iter) { iter->state = iter->_begin; }...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #ifndef NCSPIC_SEQ_FIELD #include <mpi.h> #define PS_MPI_INT MPI_INT #define PS_MPI_DOUBLE MPI_DOUBLE #define PS_MPI_FLOAT MPI_FLOAT #define PS_MPI_LONG MPI_LONG #define PS_MPI_LONG_LONG MPI_LONG_LONG #define PS_MPI_COMM_WORLD...
/** * @file * @brief Source file for software updates specific functions * * @copyright Copyright (C) 2017-2018 Wind River Systems, Inc. All Rights Reserved. * * @license Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ...
#include "internal.h" #define RGBSIZE 3 #define CENTSIZE (RGBSIZE + 1) // size of a color table entry // take (8-bit rgb value & mask) to sixelspace [0..100] static inline char ss(unsigned rgb, unsigned char mask){ return (rgb & mask) * 100 / 255; } static inline void break_sixel_comps(unsigned char comps[static R...
/* * Licensed to Systerel under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Systerel licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this * file except ...
#pragma once #include <pshpack1.h> #define USB_UnConnected_Device_Address 0 #define USB_UNCONNECTED_ADDRESS(address) (USB_UnConnected_Device_Address == (address)) #define USB_CONNECTED_ADDRESS(address) (USB_UnConnected_Device_Address != (address)) #define PID_OUT 1 #define PID_IN 9 #define PID_SOF 5 #d...
#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...
/* This file is part of telegram-client. Telegram-client 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. Telegram-c...
/** * @file main.c * @author <NAME> * @date 23 June 2015 * @brief Main Program File */ #include "board.h" #include "config.h" #include <string.h> #include <stdlib.h> #define UART_BAUD 57600 #define SPI_BAUD 500000 #define CCAN_BAUD 500000 #define UART_RX_BUF_SIZE 0x8 #define CCAN_BUF_SIZE 0x10 #define MCP_BAU...
/******************************************************************************* * * This file is part of the General Hidden Markov Model Library, * GHMM version __VERSION__, see http://ghmm.org * * Filename: ghmm/ghmm/kbest.c * Authors: <NAME>, <NAME>, <NAME> * * Copyright (C) 1998-2004 ...
/* $Id$ */ /* * Copyright (c) 2013--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" AN...
/* * This file is part of Espruino, a JavaScript interpreter for Microcontrollers * * Copyright (C) 2013 <NAME> <<EMAIL>> * * 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/...
/* * 9menu.c * * This program puts up a window that is just a menu, and executes * commands that correspond to the items selected. * * Initial idea: <NAME> * Version using libXg: <NAME> (some ideas borrowed) * This code by: <NAME> and <NAME> * * Copyright (c), <NAME> and <NAME> * * <NAME> * <EMAIL> * Octo...
/** * \file Adopted from sbl_am335x_platform_ddr.c * * \brief This file contain functions which configure EMIF and DDR. * * \copyright Copyright (C) 2013 Texas Instruments Incorporated - * http://www.ti.com/ */ /* * Redistribution and use in source and binary forms, with or without * modifica...
#include "mytools.h" #include <string.h> #define TOOLNAME_MAX 19 struct tool* fabricateTool(char* tname, uint32_t tdur){ printf("fabricateTool()\n"); struct tool* t = (struct tool*) malloc(sizeof(struct tool)); int len = strlen(tname); printf("%i\n", len); // if (len > TOOLNAME_MAX) { char te...
#include "config.h" #include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <orc/orcprogram.h> #include <orc/orcdebug.h> /** * SECTION:orcopcode * @title: OrcOpcode * @short_description: Operations */ static OrcOpcodeSet *opcode_sets; static int n_opcode_sets; static OrcTarget *...
/* * BeOS Driver for Intel ICH AC'97 Link interface * * Copyright (c) 2002, <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: * * - Redistributions of source code must ret...
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or its l...