text stringlengths 3.12k 18.7k |
|---|
/*
Program: mysar, File: utils.c
Copyright 2007, <NAME> <<EMAIL>>
This file is part of mysar.
mysar 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.
mysar is distributed in the hope that it will... |
#include "serial_loader.h"
#include "conflash.h"
#include "util.h"
#define APPLOADER_CTRL ((volatile unsigned int *)0x00A8)
#define APPLOADER_DATA ((volatile unsigned int *)0x00AA)
#define SERIAL_LINE_MODE_WAIT_PROG 0
#define SERIAL_LINE_MODE_PROG 1
#define SERIAL_LINE_MODE_CRC 2
#define MA... |
#pragma once
#include <i2c.h>
#define BMI160_I2C_ADDRESS 0x68
#define BMI160_CHIP_ID 0xD1
#define BMI120_CHIP_ID 0xD3
enum {
BMI160_REG_CMD = 0x7E,
BMI160_REG_STEP_CONF_1 = 0x7B,
BMI160_REG_STEP_CONF_0 = 0x7A,
BMI160_REG_STEP_CNT_1 = 0x79,
BMI160_REG_STEP_CNT_0 = 0x78,
BMI160_REG_OFFSET_6 = 0x77,
BMI1... |
#include "wifi_smartconfig.h"
#define SMARTCONFIG_NAMESPACE "nvs_smartconfig"
#define SC_SSID_USER "SC_SSID_USER"
#define SC_PASSWD_USER "SC_PASSWD_USER"
// 注意:这里约定最大的 SSID 和密码长度为33和65字节。与IDF保持一致。
static const char *TAG = "smartconfig_example";
/**
* @brief 初始化 NVS,来记录 SSID和密码
*/
static v... |
#include <stdint.h>
#include <stdio.h>
#include "htab.h"
#include "lines.h"
#include <regex.h>
#include <string.h>
#include <stdlib.h>
#include "subprojects/xxHash-0.6.5/xxhash.h"
/* read bags into a growable slice */
/* set its hash */
/* set references to this hash */
typedef struct {
size_t count;
char * ba... |
#include <tamtypes.h>
#include <kernel.h>
#include <loadfile.h>
#include <stdio.h>
#include <sifrpc.h>
#include <gs_privileged.h>
#include <libpad.h>
#include <string.h>
#define DEBUG_BGCOLOR(col) *((u64 *) 0x120000e0) = (u64) (col)
static char* padTypeStr[] = { "Unsupported controller", "Mouse", "Nejicon",
"<N... |
/**
************************************************************************************
* Hong Xin Integrated Circuit, INC.
*
* Copyright (c) 2018 Hong Xin IC. All Rights Reserved.
*
* File Name : H103_USART_Test_Program01.c
* By : <NAME>
* Create Date: 2018-5-16
* Version : 1.0
*... |
/*
* Copyright (C) 2002 <NAME> <<EMAIL>>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of... |
#include <rtgui/dc.h>
#include <rtgui/widgets/menu.h>
#include <rtgui/rtgui_theme.h>
static rt_bool_t rtgui_menu_on_deactivate(struct rtgui_object *object, rtgui_event_t *event);
const static rt_uint8_t right_arrow[] = {0x80, 0xc0, 0xe0, 0xf0, 0xe0, 0xc0, 0x80};
static void _rtgui_menu_constructor(rtgui_menu_t *menu)... |
#include"bibliotecas_montador.h"
void pre_processa(char nome_arq[]){
FILE* arq;
TabelaEQU * tabela = NULL;
//REMOVE OS COMENTARIOS E PASSA TODO O TEXTO PARA CAIXA BAIXA
arq = fopen(nome_arq,"r");
if(existe_arquivo(arq)){
remove_desnecessarios(arq);
fclose(arq);
}el... |
/*
* Copyright (c) 2006-2010 by Cisco Systems, Inc.
* All rights reserved.
*/
#include "test_vqec_utest_main.h"
#include "test_vqec_utest_interposers.h"
#include "../add-ons/include/CUnit/CUnit.h"
#include "../add-ons/include/CUnit/Basic.h"
#include "vqec_ifclient_defs.h"
#include "vqec_tuner.h"
#include <assert.h... |
/*
* 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... |
/*
* 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... |
/** linkedList.c - Linked list implementation.
Copyright (c) 2021 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy,... |
/***************************************************************************
* This file is part of NUSspli. *
* Copyright (c) 2019-2020 Pokes303 *
* Copyright (c) 2020-2022 V10lator <<EMAIL>> *
* ... |
/*
Copyright (C) 1995-2001 Activision, 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 distribu... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 <NAME> <hugo.guiroux at gmail dot com>
* UPMC, 2010-2011, <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* ... |
/*!
\file i2c.c
\brief I2C configuration file
\version 2020-07-16, V1.0.0, firmware for GD32F1x0
\version 2020-09-21, V3.3.0, firmware update for GD32F1x0(x=3,5,7,9)
*/
/*
Copyright (c) 2020, GigaDevice Semiconductor Inc.
Redistribution and use in source and binary forms, with or without... |
/*
* Copyright 2014-21 <NAME> / KSS Technologies (Pty) Ltd.
*/
#include "x_time.h"
#include "printfx.h"
#include "x_string_general.h"
#include "x_errors_events.h"
#include <string.h>
#define debugFLAG 0xC000
#define debugTIMING (debugFLAG_GLOBAL & debugFLAG & 0x1000)
#define debugTRACK (debugFLAG_GLO... |
/* Starry Night - a Monte Carlo code to simulate ferroelectric domain formation
* and behaviour in hybrid perovskite solar cells.
*
* By <NAME>
* University of Bath
*
* File begun 16th January 2014
*/
#include <math.h>
#include <limits.h>
#include <time.h>
#include <stdio.h>
#include <string.h>
#include <stdlib... |
/*
* Driver interaction with Linux nl80211/cfg80211 - Android specific
* Copyright (c) 2002-2014, <NAME> <<EMAIL>>
* Copyright (c) 2007, <NAME> <<EMAIL>>
* Copyright (c) 2009-2010, Atheros Communications
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
... |
/**
******************************************************************************
* @file Templates/TrustZoneEnabled/Secure/Src/main.c
* @author MCD Application Team
* @brief Main secure program body
******************************************************************************
* @attention
*
* <... |
/*
* Copyright 2018 High Performance Computing Center, Stuttgart
*
* 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 appl... |
/*
* 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... |
#include <stdlib.h>
#include <stdio.h>
#include <parc/algol/parc_Memory.h>
#include <parc/algol/parc_SafeMemory.h>
#include "patricia.h"
typedef struct {
void *value;
int refCount;
void (*valueDestructor)(void **valueP);
} _PatriciaNodeValue;
static _PatriciaNodeValue *
_patriciaNodeValue_Create(void *i... |
#include "geminc.h"
#include "gemprm.h"
#include "clocmn.h"
extern CLO_t clo;
void clo_ddenc ( char *type, int format, float lat, float lon, char *str,
int *iret )
/************************************************************************
* clo_ddenc *
* ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <dirent.h>
#include "options.h"
#include "level0.h"
#include "odinlib.h"
static char rcsid[] = "$Id$";
#define WORDSIZE sizeof(unsigned short)
typedef unsigned short UWORD;
static char pdcfile[MAXNAMLEN+1] = "";
static char heapf... |
/*
* led.c
*
* Copyright (C) 2019-2020 <NAME>
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#include <stdbool.h>
#include <stdint.h>
#include "config.h"
#include "led.h"
struct ledda_ip {
uint32_t _rsvd0;
uint32_t pwrr; /* 0001 LEDDPWRR - Pulse Width Register Red */
uint32_t pwrg; /* 0010 LEDDPWRG - Pu... |
/*!
* p25519.h - p25519 field element for libtorsion
* Copyright (c) 2020, <NAME> (MIT License).
* https://github.com/bcoin-org/libtorsion
*
* Parts of this software are based on floodyberry/curve25519-donna:
* Placed into the public domain by <NAME>.
* https://github.com/floodyberry/curve25519-donna
*/
#i... |
#include <stdio.h>
#include "game/scenes/mainmenu/menu_video.h"
#include "game/scenes/mainmenu/menu_video_confirm.h"
#include "game/gui/gui.h"
#include "game/utils/settings.h"
#include "video/video.h"
#include "plugins/plugins.h"
struct resolution_t {
int w; int h; const char *name;
} _resolutions[] = {
{3... |
/*
Copyright (C) 1995-2001 Activision, 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 distribu... |
/* SPDX-License-Identifier: MIT OR Apache-2.0 */
/*
* Copyright (C) 2019, 2020 <NAME> <<EMAIL>>
*/
#define MIKU_INDVFS 1
#include "miku.h"
rt_uint16_t target_shadow_freq[NUM_CORE];
rt_uint8_t current_core_scale[NUM_CORE];
rt_uint32_t core_scale_last_bump[NUM_CORE];
rt_uint8_t current_pll_level;
rt_uint8_t target_p... |
/*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-│
│vi: set et ft=c ts=8 tw=8 fenc=utf-8 :vi│
╚──────────────────────────────────────────────────────────────────────────────╝
│ ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "montador.h"
int contaInstrucoes(FILE* arquivo){
/* Contador de linhas do arquivo = Numero de instruções */
char c;
int numInstrucao=0;
do{
c = fgetc(arquivo);
if(c == '\n'){
numInstrucao = numInstrucao+1;
... |
/**
******************************************************************************
* @file video_player_win.c
* @author MCD Application Team
* @brief video player functions
******************************************************************************
* @attention
*
* <h2><center>© Copyright ... |
/*
* Phoenix-RTOS
*
* PCF85363A i2c RTC driver
*
* Copyright 2021 Phoenix Systems
* Author: <NAME>
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/msg.h>
#include <s... |
/**
*
* @file
*
* PLASMA is a software package provided by:
* University of Tennessee, US,
* University of Manchester, UK.
*
* @generated from /home/luszczek/workspace/plasma/bitbucket/plasma/compute/pzgetrf.c, normal z -> s, Fri Sep 28 17:38:11 2018
*
**/
#include "plasma_async.h"
#include "plasma_contex... |
/*
* Copyright (c) 2010,2011,2015,2016,2017,2018 Apple Inc. All rights reserved.
*
* corecrypto Internal Use License Agreement
*
* IMPORTANT: This Apple corecrypto software is supplied to you by Apple Inc. ("Apple")
* in consideration of your agreement to the following terms, and your download or use
* of this ... |
/*
Copyright (C) 2015 <>< <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, dist... |
#include "flexTimer.h"
#include "devices.h"
#include "simpleshell.h"
#include "dateTime.h"
#include "myerror.h"
#include "svc.h"
#include <stdio.h>
#include <string.h>
//MS-DOS epoch is 00:00 Jan 1 1980
long long curTime;
struct months allMonths[] = {{"January", 0, 31},
{"February", 1, 28},
{"March", 2, 31},... |
#include "HardwareSerial.h"
#include <avr/wdt.h>
#include <EEPROM.h>
/// Defaults
// change this whenever the saved settings are not compatible with a change
// it force a load from defaults.
#define SETTINGS_VERSION 4
// LED
#define NUM_LEDS 288
#define MIN_LEDS 60
#define MAX_LEDS 1000
#define B... |
/*
* Hardware break point test
* Copyright (C) 2021 <NAME>
*/
#include <psp2kern/kernel/modulemgr.h>
#include <psp2kern/kernel/threadmgr.h>
#include <psp2kern/kernel/proc_event.h>
#include <psp2kern/kernel/sysclib.h>
#include <psp2kern/kernel/sysroot.h>
#include <psp2kern/kernel/debug.h>
#include <psp2kern/kernel/d... |
/**************************************************************/
/* ********************************************************** */
/* * * */
/* * DIMACS2DFG * */
/* * ... |
#include <stdlib.h>
#include <pthread.h>
#include "tagger.h"
#include "shared/blockingqueue.h"
#include "shared/buffpack.h"
#include "shared/messagetype.h"
#include "netref.h"
#include "pbmanager.h"
#include "sender.h"
#include "../src-disl-agent/jvmtiutil.h"
static jclass THREAD_CLASS = NULL;
static jclass STRING... |
/*
* Copyright 2019 Huawei Technologies Co.,Ltd.All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... |
/*
* datetime.c - parameter and command interface to date and time utilities
*
* This file is part of zsh, the Z shell.
*
* Copyright (c) 2002 <NAME>, <NAME>
* All rights reserved.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distr... |
/*******************************************************************************
Copyright (c) 2016 NVIDIA Corporation
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 restr... |
#include <stdint.h>
#include "cmsis.h"
#include "ntt612.h"
extern int jump512divsteps(int minusdelta, int *M, int *f, int *g);
extern int jump128divsteps(int minusdelta, int *M, int *f, int *g);
extern int jump64divsteps(int minusdelta, int *M, int *f, int *g);
extern int jump32divsteps(int minusdelta, int *M, int *f,... |
#include "cogmatrix3.h"
#include <math.h>
#include <stdio.h>
////////////////////////////////////////////////////
// Constructors
////////////////////////////////////////////////////
CogMatrix3 CogMatrix3Identity(void) {
CogMatrix3 ret;
CogMatrix3SetIdentity(&ret);
return ret;
}
CogMatrix3 CogMatrix3Rotation3D... |
/*************************************************************************\
* Copyright (c) 2014 ITER Organization.
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\**********************************************************************... |
// Copyright (C) 2017-2018 <NAME>
//
// This is a raytracer written in C. The code is verrrry much based
// on examples from www.scratchapixel.com
#include <assert.h>
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string... |
/* $NetBSD: progressbar.c,v 1.21 2009/04/12 10:18:52 lukem Exp $ */
/*-
* Copyright (c) 1997-2009 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
* ... |
#include "krad_dirac.h"
void krad_dirac_encoder_destroy (krad_dirac_t *krad_dirac) {
schro_encoder_free (krad_dirac->encoder);
schro_frame_unref (krad_dirac->frame);
free (krad_dirac->format);
free (krad_dirac->fullpacket);
free (krad_dirac);
}
krad_dirac_t *krad_dirac_encoder_create (int width, int height,... |
/* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the license.txt file.
*/
/*
* See README.md for a description of the application.
*/
#include <stdint.h>
#include <string.h>
#include "nordic_common.h"
#include... |
#include "snapconfig.h"
/*
$Log: testspec.c,v $
Revision 1.8 2004/03/05 02:27:41 ccrook
Updated calculation of tests of specifications - probability distributions were
not being calculated correctly! How was this never spotted?
Revision 1.7 2003/11/23 23:05:19 ccrook
Updated iteration output to displ... |
/*
* Copyright 2012, <NAME> <<EMAIL>>
*/
#include "blake2b.h"
#define UNROLL 0
#define UNROLL_OPT 1
static const uint64_t blake2b_IV[8] = {
0x6a09e667f3bcc908ULL, 0xbb67ae8584caa73bULL,
0x3c6ef372fe94f82bULL, 0xa54ff53a5f1d36f1ULL,
0x510e527fade682d1ULL, 0x9b05688c2b3e6c1fULL,
0x1f83d9abfb41bd6bULL, 0x5be0... |
// The MIT License (MIT)
//
// Copyright (c) 2013 <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 limitation the rights
// to use, ... |
/* *********************************************************************
* Broadcom Common Firmware Environment (CFE)
*
* Xilinx programming commands File: ui_xilinx.c
*
* Some routines to program on-board xilinxes.
*
* Author: <NAME> (<EMAIL>)
*
**********************... |
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <ck_pr.h>
#include <evhttp.h>
#include <math.h>
#include <stdint.h>
#include <string.h>
#include <time.h>
#include <stdio.h>
#include "common/an_handler.h"
#include "common/an_md.h"
#include "common/an_monitor.h"
#include "common/an_syslog.h"
#include "common/an... |
#include "fagen.h"
char *FagenCountSymbols(char *str, int *len)
{
char *string = str;
char *wordBegin;
*len = 0;
while (string[0] == ' ') {
string++;
}
wordBegin = string;
while ((string[0] != ' ') && (string[0] != '*')) {
string++;
(*len)++;
}
return wor... |
/*
* Copyright 2018 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
/* See LICENSE for licence details. */
#include "../yaft.h"
#include "../conf.h"
#include "../util.h"
#include "x.h"
#include "../terminal.h"
#include "../ctrlseq/esc.h"
#include "../ctrlseq/csi.h"
#include "../ctrlseq/osc.h"
#include "../ctrlseq/dcs.h"
#include "../parse.h"
void sig_handler(int signo)
{
extern volat... |
#include <stdbool.h>
#include <string.h>
#include "regex_light.h"
#include "common.h"
#define REGEX_ALLOC(size) mmrbc_alloc(size)
#define REGEX_FREE(ptr) mmrbc_free(ptr)
typedef enum {
RE_TYPE_TERM, // sentinel of finishing expression
RE_TYPE_LIT, // literal
RE_TYPE_DOT, // .
RE_TYPE_QUES... |
/* (c) <NAME>.
* Stamp: <NAME>
*/
#pragma once
#include "c_rt_lib.h"
#include <stdbool.h>
#include "ptd.h"
#include "nast.h"
#include "tct.h"
typedef ImmT nlasm0args_type0type;
typedef INT nlasm0label_t0type;
typedef ImmT nlasm0reg_access_type_t0type;
typedef ImmT nlasm0use_index_t0type;
typedef ImmT nlasm... |
/*
* Copyright (c) 2014-2018 Cesanta Software Limited
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the ""License"");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
#include "mutebot.h"
#include "tdutils.h"
#include "handlers.h"
#include <stdio.h>
#include <td/telegram/td_c_client.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <limits.h>
#include <pthread.h>
#include <signal.h>
#include <stdatomic.h>
struct td_callback {
struct td_callback *next;
... |
#include <refuse/allocator.h>
#include <stdio.h>
typedef unsigned char byte;
typedef struct _alloc_chunk alloc_chunk;
typedef struct{
alloc_chunk** table;
size_t size;
size_t asize;
} reference_table;
reference_table*
reference_table_new(){
reference_table* table = malloc(sizeof(reference_table));
table->... |
#include "main.h"
bool isManualControl = true; // Whether or not to use manual controls
bool clawClosed = true; // Whether or not the claw is closed
bool fourBarUp = false; // Was the four bar last up or down
bool runAuton = false; // Should the robot run auton (used for remote start)
bool liftLastDir = f... |
#include "common.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <pthread.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <ctype.h>
#include <stdio.h>
static struct {
int fd;
int port;
req_fun_t func;
} net;
static void *Ru... |
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Id$ */
/* U S E R O P T I O N - <NAME> N <NAME> G */
#include <stdlib.h>
#include <string.h>
#include "lint.h"
#include "botch_free.h"
#include <all... |
/**
* \file
* \brief Local memory allocator for init till mem_serv is ready to use
*/
#include "mem_alloc.h"
#include <mm/mm.h>
#include <aos/paging.h>
/// MM allocator instance data
struct mm aos_mm;
void test1(void);
void test2(void);
void test3(void);
void test4(void);
void test5(void);
static errval_t aos_r... |
/*
Copyright (C) 2004 - 2009 rt2x00 SourceForge Project
<http://rt2x00.serialmonkey.com>
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... |
/* hardware_monitor.c -- Monitors and controls CPU stall state
Copyright(C) 2010 <NAME> <<EMAIL>>
This file was part the advanced debug unit / bridge. It coordinates
the CPU stall activity for the RSP server, the JSP server, and anything
else that wants to stall the CPU, or know when it's running.
Thi... |
/*
* Copyright (c) 2009-2012 Oak Ridge National Laboratory. All rights reserved.
* Copyright (c) 2009-2012 Mellanox Technologies. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
/* Recursive doubling blocking barrier */
#include "ompi_config.h"
#include "ompi/constant... |
/* Copyright 2016 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Power and battery LED control for Coral
*/
#include "battery.h"
#include "charge_state.h"
#include "chipset.h"
#include "ec_commands.h"
#include... |
/**
* Copyright (C) 2011-2012 <NAME>
*
* 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 ... |
/* yuvsplittoppm.c - construct a portable pixmap from 3 raw files:
** - basename.Y : The Luminance chunk at the size of the Image
** - basename.U : The Chrominance chunk U at 1/4
** - basename.V : The Chrominance chunk V at 1/4
** The subsampled U and V values are made by arithmetic mean.
**
** If ccir601 is defined, t... |
/*
* 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... |
/*
* Copyright (c) 2017, newnix
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the disclaimer
* below) provided that the following conditions are met:
*
* * Redistributions of source code must retain th... |
/* Copyright (c) 2009, Igalia
* 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 conditions and... |
/*
Copyright 2014 <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 and the following di... |
// SPDX-License-Identifier: GPL-2.0
/*
* Support for Intel Camera Imaging ISP subsystem.
* Copyright (c) 2015, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free So... |
#include "logfsos.h"
#include "logfs.h"
#include "local.h"
#include "fcall.h"
typedef struct PathEnt {
ulong path;
long block;
} PathEnt;
typedef struct GenInfo {
long start;
long end;
int gaps;
} GenInfo;
static int
dataorder(ulong p1, ulong p2)
{
int o;
o = dataseqof(p1) - dataseqof(p2);
if(o != 0)
retu... |
/*
Copyright (C) 2014, The University of Texas at Austin
This file is part of libflame and is available under the 3-Clause
BSD license, which can be found in the LICENSE file at the top-level
directory, or at http://opensource.org/licenses/BSD-3-Clause
*/
#include "FLAME.h"
FLA_Error FLA_Hess_UT_un... |
/*
** Smc frontend.
** Copyright (C) 2014 <NAME>.
**
** Major portions taken verbatim or adapted from the LuaJIT interpreter.
** Copyright (C) 2005-2014 <NAME>. See Copyright Notice in luajit.h
**
** Major portions taken verbatim or adapted from the Lua interpreter.
** Copyright (C) 1994-2008 Lua.org, PUC-Rio. See Copy... |
/*
Copyright (C) 2000 <NAME> <<EMAIL>>.
This file is part of the yampp system.
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 opti... |
#define _POSIX_C_SOURCE 200809L
#include <ctype.h>
#include <errno.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <assert.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
typedef struct Type Type;
typedef struct H... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "sst.h"
#include "sst_test.h"
#if CONFIG_AOS_SUPPORT
#define TEST_BASIC_KEY "./data/.sst/kc_test_basic_key"
#define TEST_LONG_NAME "./data/.sst/5kjdaoasdfjasoidfjoasidfjasidofiasodfisaodifaosdijfosajfdaoisfdoasifdaosdfiasofdiasdfoa... |
/*
sim_vcd_file.c
Implements a Value Change Dump file outout to generate
traces & curves and display them in gtkwave.
Copyright 2008, 2009 <NAME> <<EMAIL>>
This file is part of simavr.
simavr is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publ... |
/*
* Copyright © 2018 Red Hat
*
* 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, dist... |
/*
* SPDX-License-Identifier: NCSA
*
* news(1) - print news items
* (as according to System V Release 4 documentation)
*
* Copyright 2020 <NAME>.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
... |
#pragma once
#include "defines.h"
#include "ffconf.h"
#define TCHAR char
typedef unsigned short WCHAR; //-V677
#define AM_RDO 0x01 /* Read only */
#define AM_HID 0x02 /* Hidden */
#define AM_SYS 0x04 /* System */
#define AM_DIR 0x10 /* Directory */
#define AM_ARC 0x20 /* Archive */
#define FA_READ 0x01
#define... |
#include "../inc/platforms.h"
//creates string filled with stars
char *stars_string(int len) {
char *str = (char *) malloc(sizeof(char) * (len + 1));
for (int i = 0; i < len; i++)
str[i] = '*';
str[len] = '\0';
return str;
}
//creates string filled with spaces (to erase platform)
char *space_s... |
//Our own header
#ifndef _unp_h
#define _unp_h
#endif //this added by me
#include "config.h" //configuration options for current OS
// "../config.h" is generated by configure
/*if anything changes in the following list of #includes, must change acsite.m4 also, for configure's tests. */
#include <sys/types.h> //bas... |
#pragma once
///
/// The base names for the device objects created in \Device
///
#define PUSH_DEVICE_DIR_NAME L"\\Device"
#define PUSH_DEVICE_BASE_NAME PUSH_DEVICE_DIR_NAME L"\\Push"
///
/// The symlinks to the device objects created in \DosDevices
///
#define PUSH_DOSDEV... |
/* json.c
*
* COPYRIGHT (c) 2008 The Manticore Project (http://manticore.cs.uchicago.edu)
* All rights reserved.
*/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "json.h"
#include "JSON_parser.h"
typedef enum {
START,
IN_OBJ,
IN_ARR
} ParseState_t;
/* extra t... |
/*
* send_data.c
*
* Takes care about transmitting data over the network.
*
* The `send_task_function` tries to send data from the associated queue over the network.
* For all four data types (see connection.h) gets an own queue and task to handle
* the different payloads:
* The FFT task gives huge amounts of d... |
// 2fh: Convert anything FFMPEG eats into a farbherd stream.
//
// Written in 2018 by 20kdc <<EMAIL>>, vifino <<EMAIL>> and contributors.
//
// To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide.
// This softwar... |
/*
* Copyright (c) 2021, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Copyright 2021, UT-Battelle, LLC.
*
* LLNL-CODE-741539
* All rights reserved.
*
* This is the license for UnifyFS.
* For details, see https://github.com/LLNL/UnifyFS.
* Please rea... |
/**
******************************************************************************
* @file mdr32f8_ebc.c
* @author Milandr Application Team
* @version V1.4.0
* @date 20/07/2015
* @brief This file provides all the ADC firmware functions.
************************************************************... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.