text
stringlengths
3.12k
18.7k
/***************************************************************************** * * * Copyright Intel Corporation. * * * ***...
/******************************************************************************* PIC32MZW1 PMU MLDO TRIMMING File Name: sys_pmu_mldo_trim.c Summary: PIC32MZW1 boot time PMU MLDO mode Configuration. Description: This interface helps configure the PMU in MLDO only mode and also trim the voltage...
#include <u.h> #include <libc.h> #include <ip.h> #include "dat.h" #include "protos.h" enum { /* RR types */ Ta= 1, Tns= 2, Tmd= 3, Tmf= 4, Tcname= 5, Tsoa= 6, Tmb= 7, Tmg= 8, Tmr= 9, Tnull= 10, Twks= 11, Tptr= 12, Thinfo= 13, Tminfo= 14, Tmx= 15, Ttxt= 16, Trp= 17, Tsig= 24, Tkey= 25, Taaaa= 28, ...
#include <stdio.h> #include <stdlib.h> //#define USE_MATH_DEFINES #include <math.h> #ifdef M_PI #undef M_PI #endif /*M_PI*/ //#define M_PI 3.14159265358979323846 #define M_PI 3.141592653589793238462643383279502884197169399375105820974944 // -------------------------------------------------------------- // m...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the program and library */ /* SCIP --- Solving Constraint Integer Programs */ ...
/* * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <stdbool.h> #include <arch.h> #include <arch_helpers.h> #include <common/debug.h> #include <lib/mmio.h> #include <lib/psci/psci.h> #include <gpc.h> #include <imx8m_psci.h> #inclu...
#pragma once #include "slabclass.h" #include "time/time.h" #include <cc_bstring.h> #include <cc_metric.h> #include <cc_queue.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> /* * Every item chunk in the cache starts with a header (struct item) * followed by item data. An item is essentially a chun...
/* * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. * See the copyright notice in the ACK home directory, in the file "Copyright". */ /* $Id$ */ /* PREPROCESSOR DRIVER */ #include <stdlib.h> #include <stdio.h> #include <system.h> #include <alloc.h> #include "input.h" #include "obufs...
#include "automaton.h" #include "alloc.h" #include "fnv.h" #include <assert.h> struct state_table { state_id *states; uint32_t *state_hashes; uint32_t *state_indexes; bool *used; uint32_t available_size; uint32_t used_size; }; static uint32_t append_to_action_path(struct state_table *table, ...
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/testing/flash_ctrl_testutils.h" #include <assert.h> #include <stdbool.h> #include <stdint.h> #include "sw/device/lib/base/mmio.h" #include "sw/...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include "debugger.h" #include "memory.h" #include "lr35902.h" #include "linenoise/linenoise.h" //#define MEM_SIZE 0x10000 typedef struct { char name[16]; int arg_a, arg_b; } command_t; typedef enum { DBG_IDLE, DBG_CONT, DBG_STEP } d...
/* * Copyright (c) 2012 <NAME> * * This file is part of FFmpeg. * * FFmpeg 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 la...
/* * * Copyright 2019 <NAME> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writin...
#include "server.h" #include <fcntl.h> #include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "log.h" #include "prg.h" #define PORT 8000 #define BUFFER_LENGTH (100 * 1024 * 1024L) void encryp...
/* * This program is one of the genome analysis tools. * This program calculates the nucleotide composition in the specified reigons. * See usage for detail. */ #include "parse_chr.h" #include "write_tab.h" #include "argument.h" #include "sort_list.h" #include "ga_my.h" #include <stdio.h> #include <stdlib.h> #inc...
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2018 Chelsio Communications. * All rights reserved. */ #include "mps_tcam.h" static inline bool match_entry(struct mps_tcam_entry *entry, const u8 *eth_addr, const u8 *mask) { if (!memcmp(eth_addr, entry->eth_addr, RTE_ETHER_ADDR_LEN) && !memcmp(mask, e...
/** @file SSL post test client @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under t...
/* CF3 Copyright (c) 2015 ishiura-lab. Released under the MIT license. https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md */ #include<stdio.h> #include<stdint.h> #include<stdlib.h> #include"test1.h" static int16_t x180 = INT16_MIN; volatile uint8_t x603 = 1U; static volatile int32_t t6 = -1; int32_t x854 = -...
#include "tc_iot_device_config.h" #include <sys/stat.h> #include "tc_iot_device_logic.h" #include "../ota/tc_iot_ota_logic.h" #include "tc_iot_export.h" /* anis color control codes */ #define ANSI_COLOR_RED "\x1b[31m" #define ANSI_COLOR_GREEN "\x1b[32m" #define ANSI_COLOR_YELLOW "\x1b[33m" #define ANSI_COLOR_B...
#include <sys/types.h> #include <sys/socket.h> #include <assert.h> #include <err.h> #include <errno.h> #include <getopt.h> #include <netdb.h> #include <netinet/in.h> #include <stdarg.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include <syslog.h> #include <unis...
/* $Id$ */ /* * %GPL_START_LICENSE% * --------------------------------------------------------------------- * Copyright 2015-2016, Google, Inc. * Copyright (c) 2008-2015, Pittsburgh Supercomputing Center (PSC). * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it ...
/* CATHEX */ /* */ /* Copyright (C) 2017, <NAME> */ /* All Rights Reserved */ /* This utility concatenates a number of intel HEX files into */ /* a single one, sequentially. This is used to put together */ /*...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "ai.h" #include "board.h" #include "analysis.h" #define DFS_MAX_DEPTH 2 // int DFS_MAX_DEPTH = 2; #define MAX_SCORE 100000000 int AIDfs(int depth, int role, int * p_next_xx, int * p_next_yy, int alpha, int beta); int countScore(in...
#include <math.h> #include "matrix.h" const Mat4 MAT4_IDENTITY = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 }; void vec3_addmul( float out[3], float const a[3], float const b[3], float bs ) { out[0] = a[0] + bs * b[0]; out[0] = a[1] + bs * b[1]; out[0] = a[2] + bs * b[2]; } void vec3_sub( float out[3], ...
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> /******************************************************************************* Program: iss2isc.c Purpose: Reads single- or multiple-page ISS text files(s) and writes directly to ISC 96-byte format Options: -C: write comment ca...
#include <aiv_opengl.h> #include <stdio.h> #include <stdlib.h> #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> #include <mesh.h> #include <light.h> GLuint aiv_compile_shader(char *, char *); aiv_opengl_context_t context; int main(int argc, char *argv[]) { context.width = 800; context.height = 800; ...
#include <stdio.h> #include <stdlib.h> #include <string.h> /** * genre enum and string */ enum GenreEnum { action, adventure, rpg, simulation }; const char *GenreString[] = { "Action game", "Text adventure game", "Role-playing action game", "Construction and management simulation" }; typedef enum GenreEnum ...
#define TRACE_ON #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <Windows.h> #include "window.h" #ifndef TRACE_ON #define TRACE 0 #else #define TRACE 1 #endif #define AXIS_X_MARGIN_LEFT 30 #define AXIS_X_MARGIN_RIGHT 10 #define AXIS_Y_MARGIN_TOP 10 #define AXIS_Y...
/* SPI flash driver example * * This sample code is in the public domain. */ #include <stdint.h> #include <sys/types.h> #include <unistd.h> #include <string.h> #include <esp8266.h> #include <esp/uart.h> #include <spiflash.h> #include <FreeRTOS.h> #include <task.h> #include <stdlib.h> #include <espressif/esp_common....
/* * Copyright 2014 <NAME> * * 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 the following disclaimer. * *...
/* coherent noise function over 1, 2 or 3 dimensions */ /* (copyright <NAME>) */ #include "noise.h" #define NOISE_B 0x100 #define NOISE_BM 0xff #define NOISE_N 0x1000 #define NOISE_NP 12 /* 2^N */ #define NOISE_NM 0xfff static int p[NOISE_B + NOISE_B + 2]; static float g3[NOISE_B + NOISE_B + 2][3]; static float g...
/* * Copyright (c) 2013-2015, Xerox Corporation (Xerox) and Palo Alto Research Center, Inc (PARC) * 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 r...
/* Copyright 2012, Google 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: * * * Redistributions of source code must retain the above copyright * notice, this list of conditi...
/* * auok190xfb.c -- FB driver for AUO-K1900 controllers * * Copyright (C) 2011, 2012 <NAME> <<EMAIL>> * * based on broadsheetfb.c * * Copyright (C) 2008, <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 * publ...
/* * * Copyright (c) International Business Machines Corp., 2001 * * 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 l...
/* This file is part of the YAZ toolkit. * Copyright (C) Index Data * See the file LICENSE for details. */ /** * \file * \brief ISO 5426 decoding * * MARC-8 reference: * http://www.loc.gov/marc/specifications/specchariso8.html * * ISO 5426 reference (in German) * Zeichenkonkordanz MAB2-Zeichensatz - ISO/IEC...
/* ------------------------------------------------------------------------------- Copyright (C) 1999-2006 Id Software, Inc. and contributors. For a list of contributors, see the accompanying CONTRIBUTORS file. This file is part of GtkRadiant. GtkRadiant is free software; you can redistribute it and/or modify it und...
/* SPDX-License-Identifier: Apache-2.0 */ /* * Copyright (C) 2015-2017,2019,2021 Micron Technology, Inc. All rights reserved. */ /* * pscan - the simplest possible client to scan prefixes * * Search for MAIN to get to the interesting logic. */ #define USE_EVENT_TIMER #include <errno.h> #include <getopt.h> #in...
/* kwsearch.c - searching subroutines using kwset for grep. Copyright 1992, 1998, 2000, 2007, 2009-2020 Free Software Foundation, 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; eith...
/* $Id: qvfb.c 12490 2010-01-28 09:25:09Z houhuihua $ ** ** qvfb.c: Qt virtual FrameBuffer based video driver implementation. ** ** Copyright (C) 2003 ~ 2007 Feynman Software. ** Copyright (C) 2001 ~ 2002 <NAME> */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include "common.h" #ifdef __ECOS__ /* for e...
/* * Based on linux-perf/git scm * * Some modifications and simplifications for util-linux * by <NAME> <<EMAIL>> - March 2012. */ #include "pager.h" #include <err.h> #include <signal.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> ...
/* IP85HI_OpenDevice - description * * Purpose: Open an I/O channel to the DeAnza display device * * Written by: <NAME> * Date: June 17, 1988 * * Calling Sequence: * * STATUS = IP85HI_OpenDevice(Unit, dummylun) * * Parameter List: * Unit: Display device unit number * dummylun: DeAnza logical unit nu...
#include "portable.h" #include "AESround.h" #include "SHA3api_ref.h" #define ExternalRounds512 16 #define NonLinExpansion512(rk,counter,x0,x1,x2,x3,y0,y1,y2,y3,round_index)\ {\ x0 = rk[1];\ x1 = rk[2];\ x2 = rk[3];\ x3 = rk[0];\ roundAESnokey(x0,x1,x2,x3,y0,y1,y2,y3);\ ...
/* * 1602 LCD I2C Driver * * LCD COMMANDS http://www.dinceraydin.com/lcd/commands.htm * HD44780 DATASHEET https://www.makerguides.com/wp-content/uploads/2019/02/HD44780-Datasheet.pdf * PCF8574 DATASHEET https://www.makerguides.com/wp-content/uploads/2019/02/PCF8574-Datasheet.pdf * PCF8574T to HD44780 PINOUT http...
/* ---------------------------------------------------------------------------- * Copyright 2011-2019 T-frog 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.apac...
/********************************************************************* * SEGGER Microcontroller GmbH & Co. KG * * Solutions for real time microcontroller applications * ********************************************************************** * ...
/* C/Invoke Source Code File Copyright (c) 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 ...
#include "game.h" #include "message.h" #include <ncurses.h> #include <string.h> #include <stdlib.h> int hasColor; typedef struct DrawTile { char symbol; int colorPair; // for curses color int attr; // bold, etc. } DrawTile; #define COLOR_PAIR_DEFAULT 1 #define COLOR_PAIR_GREEN 2 #define CO...
/**************************************************************************//** * @file main.c * @version V0.10 * @brief Show hard fault information when hard fault happened. * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved. ***********************...
/************************************************************************** * * Copyright 2003 VMware, Inc. * 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 w...
#pragma once #include <stdio.h> #include <stdint.h> #include <stdbool.h> #define println(fmt, ...) printf(fmt "\n", ##__VA_ARGS__) #define eprintf(...) fprintf(stderr, __VA_ARGS__) #define eprintln(fmt, ...) fprintf(stderr, fmt "\n", ##__VA_ARGS__) typedef uint8_t u8; typedef uint16_t u16; typedef int8_t i8; typedef...
/* * Copyright (C) 2017-2020 Alibaba Group Holding Limited */ /******************************************************* * @file rtc_alg.c * @brief source file for rtc driver * @version V1.0 * @date 22. June 2020 * ******************************************************/ #include "rtc_alg.h" stati...
#include "cp/exact/bac/bac.h" #include "op-solver.h" cp_exact_bac_stats * cp_create_exact_bac_stats(void) { cp_exact_bac_stats *stats = malloc(sizeof(cp_exact_bac_stats)); stats->total = stats_create("CP Branch-and-Cut"); stats->sep_loop = stats_create("Separation Loop"); stats->s...
// Copyright 2018 IBM. // // 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,...
#include "audio.h" #include "common.h" #include <memory.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <soundio/soundio.h> int Fs; long long starttime, samples_played; struct SoundIoOutStream *outstream; struct SoundIo *soundio; struct SoundIoDevice *device; struct SoundIoRingBuffer *ring_buf...
/* ** Splint - annotation-assisted static program checker ** Copyright (C) 1994-2003 University of Virginia, ** Massachusetts Institute of Technology ** ** 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 Sof...
#include <stdio.h> #ifdef WIN32 #define true 1 #define false 0 #else #include <stdbool.h> #endif #ifdef WIN32 #pragma warning(disable: 4005) #pragma warning(disable: 4244) #include <time.h> #include <Windows.h> #define INT64_MIN LLONG_MIN #define UINT64_MAX ULLONG_MAX #elif __APPL...
/** * PS Move API - An interface for the PS Move Motion Controller * Copyright (c) 2012 <NAME> <<EMAIL>> * Copyright (c) 2012 <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...
/******************************************************************************************** * Game Name: Game of Life (Version: 01) * Developer: <NAME> (<EMAIL>) * Date: 16.September.2013 * Brief Description: It is an imitation of the famous program called "The Game Of Life" developed by a mathematician at * ...
// MIT License // // Copyright (c) 2018 <NAME> <<EMAIL>>, // <NAME>, <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 lim...
#include "../base64.h" #include "../db.h" #include "../mvcc.h" #include "btree2.h" #include "btree2_slot.h" uint16_t btree2InstallSlot (Btree2Page *page, Btree2Slot *source, uint8_t height); bool btree2LinkTower(Btree2Set *set, uint16_t *tower, uint8_t *bitLatch, uint8_t idx); void btree2FillTower(Btree2Page *page, u...
/* * AC-3 Audio Decoder * This code was developed as part of Google Summer of Code 2006. * E-AC-3 support was added as part of Google Summer of Code 2007. * * Copyright (c) 2006 <NAME> (bhattkm at gmail dot com) * Copyright (c) 2007-2008 <NAME> <<EMAIL>> * Copyright (c) 2007 <NAME> <<EMAIL>> * * This file is ...
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<unistd.h> #include<sys/types.h> #include<sys/stat.h> #include<sys/socket.h> #include<sys/wait.h> #include<arpa/inet.h> #include<netdb.h> #include<signal.h> #include<fcntl.h> #include "json.h" #include "lwa.h" #include "config.h" #define CONNMAX 1000 #def...
#include "draw.h" // store in mem the minimum and maximum value of x for a given y // mem must be initialized to -1 at the begining of the drawing // for a given y, mem[2*y] is the minimum value of x drawn // for a given y, mem[2*y+1] is the maximum value of x drawn // points on line y with x coordinate between mem[2*...
/* * name.c * * mangle names w/ and w/o commas * * Copyright (c) <NAME> 2004-8 * * Source code released under the GPL * */ #include <stdio.h> #include <ctype.h> #include <string.h> #include "is_ws.h" #include "newstr.h" #include "fields.h" #include "lists.h" #include "name.h" static void check_case( char *sta...
/* * Licensed to Cloudkick, Inc under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Cloudkick licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file ex...
/* koto-utils.c * * Copyright 2021 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
/* storage.c @author <NAME> This file is part of libsqrl. It is released under the MIT license. For more details, see the LICENSE file included with this package. **/ #include "../sqrl_internal.h" void idlock_test() { uint8_t iuk[32] = {0}; uint8_t ilk[32]; uint8_t rlk[32] = {0xff}; uint8_t suk[32]; uint8_t...
/* * $Id: file_panels.c 40395 2011-09-20 13:41:43Z nazgul $ * * ***** BEGIN GPL LICENSE BLOCK ***** * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, o...
/******************************************************************************* * Copyright (c) 2010, <NAME> - www.xs-labs.com * Distributed under the Boost Software License, Version 1.0. * * Boost Software License - Version 1.0 - August 17th, 2003 * * Permission is hereby granted, free of charge, to any perso...
#include "tengine_ir.h" #define ADDR_ALIGN(a) ((a + 3) & (~0x3)) struct packed_tensor { int32_t size; uint16_t idx; int16_t producer; /* node idx: -1 means no producer */ int16_t consumer[MAX_CONSUMER_NUM]; /* idx of node */ uint8_t consumer_num; uint8_t tensor_type; /* const, input, var, de...
#include <math.h> #include <stdio.h> #include "fceu-types.h" #include "sound.h" #include "x6502.h" #include "fceu.h" #include "filter.h" #include "fcoeffs.h" static uint32 mrindex; static uint32 mrratio; void SexyFilter2(int32 *in, int32 count) { #ifdef moo static int64 acc = 0; double x, p; int64 c; x = 2 * ...
/*****************************************************************************/ /* FILE NAME: adc_Z4_1.c COPYRIGHT (c) NXP Semiconductors 2016 */ /* All Rights Reserved */ /* PLATFORM: DEVKIT-MPC5748G */ /* DESCRIPTION: Initializes ADC1_CH9...
/* ** HVL2WAV ** */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "types.h" #include "replay.h" uint32 max_frames = 10 * 60 * 50; uint32 framelen; uint32 mix_freq = 44100; uint32 subsong = 0, smplen = 0; uint32 stereosep = 0; BOOL autogain = FALSE; BOOL use_songend = TRUE; c...
/* $OpenBSD: scsi_ioctl.c,v 1.52 2016/03/12 15:16:04 krw Exp $ */ /* $NetBSD: scsi_ioctl.c,v 1.23 1996/10/12 23:23:17 christos Exp $ */ /* * Copyright (c) 1994 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the follow...
/* * 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...
#define DEBUG 0 #include <stdbool.h> #include <stdint.h> #include "arm.h" #include "command.h" #include "console.h" #include "dma.h" #include "float.h" #include "gic.h" #include "gtimer.h" #include "hwinfo.h" #include "intc.h" #include "mailbox-link.h" #include "mailbox-map.h" #include "mailbox.h" #include "panic.h" ...
#include <jni.h> #include <android/log.h> #include <stdint.h> #include <stdlib.h> #include <math.h> #include <sys/time.h> #include <GLES2/gl2.h> #include "debug.h" #include "native_main.h" #include "engine.h" #include "matrix.h" #include "shaders.h" #include "gamearea.h" #include "foe_ufo.h" #include "foe_ufo_fire.h"...
#include "pierrors.h" #include "pigpio.h" typedef struct { int error; char * str; } errInfo_t; static errInfo_t errInfo[] = { { PI_INIT_FAILED, "pigpio initialisation failed" }, { PI_BAD_USER_GPIO, "gpio not 0-31" }, { PI_BAD_GPIO, "gpio not 0-53" }, { PI_BAD_MODE, "mode not 0-7" }, { PI_BAD_LEVEL, "level ...
// finds a line that fits within thresh and returns the end word index and the actual line width double find_line_for_thresh(vector_font_t *font, const uint8_t *string, word_stats_t ws, const int mode, double thresh, int iw_start, int *iw_end) { double line_length=0., ret=0.; int iw; for (iw=iw_start; line_length <...
/** * @file panel.c Video-info filter -- panel * * Copyright (C) 2010 - 2015 Creytiv.com */ #include <re.h> #include <rem.h> #include <baresip.h> #include "vidinfo.h" static void rrd_append(struct panel *panel, uint64_t val) { if (!panel) return; panel->rrdv[panel->rrdc++] = val; panel->rrd_sum += val; i...
// // group.c // // Disk filesystem group routines // // Copyright (C) 2002 <NAME>. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // 1. Redistributions of source code must retain the abo...
/* 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/. */ #ifdef SOLARIS #define RF_INLINE_MACROS 1 #endif static const double TwoTo16 = 65536.0; static const double TwoTo...
/* A school timer which displays time to the end of lesson/break. Microcontroller: AVR ATtiny24A Fuse bits: Low:0xFF High:0xD5 Ext:0xFF Clock: 8 MHz Crystal */ #include <avr/io.h> #include <avr/interrupt.h> #include "dcf.h" #include "display.h" #include "menu.h" /* Ports configuration */ #define DCF_DDR DDRA ...
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <string.h> #include <hidapi.h> #include "../command.h" #include "../encoding.h" #include "../util.h" #include "../macro.h" #include "../buttons_globals.h" static char* defaults[] = {"click", "menu", "middle-button", "forward", "backward", "dpi-up", "d...
/********** EDF ARINC SCHEDULE ENTRY SIMULATOR ******** * Author: <NAME> * Developed @ RT-LAB @ UNIVERSITY OF HOUSTON * Month/Year: Apr/2020 * ****************************************************/ /************ ASSUMPTIONS ************ Update: This Schedule entry simulator assumes partitions to follow implicit-de...
/* * Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the zlib License. * You may obtain a copy of the License at * * https://www.zlib.net/zlib_license.html * * This program is distrib...
/* Copyright (c) 2002-2004, <NAME> Part of Radeon accelerant Hardware cursor support. */ #include "radeon_accelerant.h" #include "GlobalData.h" #include "generic.h" #include "mmio.h" #include "crtc_regs.h" static void moveOneCursor( accelerator_info *ai, int crtc_idx, int x, int y ); // set standard foregr...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the program and library */ /* SCIP --- Solving Constraint Integer Programs */ ...
/* * HT handling * * Copyright 2003, <NAME> <<EMAIL>> * Copyright 2002-2005, Instant802 Networks, Inc. * Copyright 2005-2006, Devicescape Software, Inc. * Copyright 2006-2007 <NAME> <<EMAIL>> * Copyright 2007, <NAME> <<EMAIL>> * Copyright 2007-2008, Intel Corporation * * This program is free software; you can...
/* * 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...
/* * Copyright (C) 2004-2008 <NAME> * * This program 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 pr...
#include <stdlib.h> #include <stdio.h> #include <assert.h> #include <string.h> #include <unistd.h> #include <stdint.h> #include <fcntl.h> #include <sys/socket.h> #include <sys/param.h> #include <err.h> #include <errno.h> #include "glean.h" #include "set.h" #include "word.h" #include "fname.h" #include "eta.h" #include...
/* ################################################################### ** Filename : main.c ** Project : AudioBoot ** Processor : MKL02Z32VFM4 ** Version : Driver 01.01 ** Compiler : GNU C Compiler ** Date/Time : 2016-11-12, 18:36, # CodeGen: 0 ** Abstract : ** ...
#include <stdint.h> #include "fft.h" /* All data are fixed-point short integers, in which -32768 to +32768 represent -1.0 to +1.0 respectively. Integer arithmetic is used for speed, instead of the more natural floating-point. For the forward FFT (time -> freq), fixed scaling is performed to prevent arithmetic o...
/*========================================================================* * Mined.h * *========================================================================*/ #include <sys/types.h> #include <fcntl.h> #include <stdlib.h> #include <termcap.h> #include <unistd.h> #include <limits.h> #include <stdio.h> ...
#include "lib.h" // ### Writing ### // String is prefixed by its length void writeStringToBin(char *str, FILE *fr) { unsigned length = strlen(str); // Write the length if (fwrite(&length, sizeof(unsigned), 1, fr) != 1) { if (!feof(fr)) { perror("Read error"); exit(EXIT_FAIL...
/* * Copyright (C) 2013 Glyptodon LLC * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publi...
/** * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA * * 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, th...