text stringlengths 3.08k 10.5k |
|---|
/*
# This file is part of the Astrometry.net suite.
# Licensed under a 3-clause BSD style license - see LICENSE
*/
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <assert.h>
#include <sys/types.h>
#include <unistd.h>
#include "os-features.h"
#include "image2xy-files.h"
#include "log.h"
#include... |
#include "priority_q.h"
char **nameArray;
int total_files = 0;
//ensure that the same page will always locate to the same position in the WCP chart
void distnameArray_init(int size){
nameArray = malloc(size*sizeof(char *));
total_files = size;
for(int i = 0; i < size; i++){
nameArray[i] ... |
/**
* Seccomp Library test program
*
* Copyright (c) 2018-2020 Oracle and/or its affiliates.
* Author: <NAME> <<EMAIL>>
*/
/*
* This library is free software; you can redistribute it and/or modify it
* under the terms of version 2.1 of the GNU Lesser General Public License as
* published by the Free Software F... |
/*
Copyright (C) 2003-2005 <NAME>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in t... |
#include "i8259.h"
#include "tests.h"
#include "lib.h"
#include "rtc.h"
#include "keyboard.h"
#define Status_Register_A 0x8A
#define Status_Register_B 0x8B
#define Status_Register_C 0x0C
#define RW_P 0x71
#define RTC_PORT 0x70
#define SLAVE_IRQ 2
#define RTC_RAM 0x2F
#def... |
/*
* Part of OS4, task.c
* Author: <NAME>, miklhh
*/
#include <task/task.h>
#include <memory/memory.h>
#include <memory/paging.h>
#include <stdint.h>
#include <kstdio.h>
#include <string.h>
#define KERNEL_STACK_SIZE 8192 // 8K kernel stack per task.
#define USER_STACK_SIZE 8192 ... |
/* ------------------------------------------
* Copyright (c) 2017, Synopsys, Inc. All rights reserved.
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* 1) Redistributions of source code must retain the above copyr... |
#include <graphviz/cgraph.h>
#include <math.h>
#include <getopt.h>
#include <stdbool.h>
#include "color.h"
#include "utils.h"
// Cargo-culted from a stack-overflow answer
// (in particular, http://stackoverflow.com/questions/3018313/algorithm-to-convert-rgb-to-hsv-and-hsv-to-rgb-in-range-0-255-for-both)
static struct ... |
/*
* <NAME>
* Feb 15 2021
* Setup and understand symbol table tool functions in c
*
* Changes:
* - reformated document with clang-format
* - Moved all the prototypes and globals into symtable.h
* - Commented the .h file
* - Commented the .c file
* - Reformatted printfs to reflect wha... |
/**
* MIT License
*
* Copyright (c) 2020 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy... |
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <errno.h>
#include <time.h>
#include <unistd.h>
#include <assert.h>
#include <liblightnvm.h>
#include <liblightnvm_spec.h>
static int be_id = NVM_BE_ANY;
static int seed = 0;
static char nvm_dev_path[NVM_DEV_PATH_LEN] = "/dev/nvm... |
/**
******************************************************************************
* @file HTS221_anklabs.h
* @author <NAME>
* @brief HTS221 header driver file
* @Version 1.0
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) 2... |
#pragma once
#include <errno.h>
#include <inttypes.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include "label.h"
#include "calc.h"
#include "diagnostic.h"
/* True if debugger has been enabled */
bool debug_mode = false;
/* True if the debugger should be entered on next line */
volatile bool break_... |
/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.0.0
* svn version: exported
* Options: --check-global -s 321
* Seed: 321
*/
#include "random_runtime.h"
long __undefined;
/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
int16_t g_8 = 0x288AL;
int32_t g_10 = 1L;
... |
#include <stdlib.h> //free, calloc, NULL
#include <string.h> //str*
#include <netdb.h> //hstrerror
#include <arpa/nameser.h> //NS_PACKETSZ, ns_*
#include <resolv.h> //res_*
#include <idn2.h> //idn2_to_ascii_8z
#include "utils.h"
#include "query.h"
#define BUFFER_SIZE NS_PACKETSZ
#define DOMAIN_PREFIX "_redirect."
#def... |
/*
* CentiJSON
* <http://github.com/mity/centijson>
*
* Copyright (c) 2018 <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
... |
#include "AGR_BWE_tables_highband_coeff.h"
#include "AGR_BWE_main_FIX.h"
#include "SKP_Silk_macros.h"
#include "SKP_Silk_SigProc_FIX.h"
#include <stdio.h>
#include <math.h>
#define VERY_LARGE32 1e15f
/*
<NAME>, <NAME> and <NAME>, "Robust and Efficient Quantization of Speech LSP
Parameters Using Structur... |
// Copyright 2020-2021, <NAME>.
// Copyright 2020-2021, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief WMR Motion Controller protocol helpers implementation.
* @author <NAME> <<EMAIL>>
* @ingroup drv_wmr
*/
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "util/u_logging.h"
#... |
/**************************************************************************
* This code is licensed under the Apache License 2.0. See ../LICENSE *
* Copyright 2016 <NAME> *
* *
* c3db_query.c - Query... |
#define _GNU_SOURCE
#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h> // strlen
#if defined(__APPLE__)
#include <malloc/malloc.h>
#endif
#define FNNAME(_NAME) _NAME
#if defined(__APPLE__)
#undef FNNAME
#define FNNAME(_NAME) p##_NAME
#define MEMUSED(_P... |
/**************************************************************
* Copyright (c) Wuzhiyi
* Introduction to Algorithms
*
* 题目: Exercise 4.2-2
* 名称: STRANSSEN-ALGORITHM
* 作者: skanev
* 语言: c
* 内容摘要:
*
* 修改记录:
* 修改日期 版本号 修改人 修改内容
* -----------------------------------------------------------... |
/*
icb-servers.c : irssi
Copyright (C) 2001 <NAME>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
T... |
#include <stddef.h>
#include <stdint.h>
#ifdef VMWOS
#include "syscalls.h"
#include "vlibc.h"
#include "vmwos.h"
#else
#include <stdio.h>
#include <string.h>
#endif
#include "svmwgraph.h"
#define PCX_UNKNOWN 0
#define PCX_8BIT 1
#define PCX_24BIT 2
static int debug=1;
int vmwLoadPCX(unsigned char *image, int x_off... |
//
// EmuBoard.c
// EmuBoard
//
// Created by <NAME> on 2018/12/30.
// Copyright © 2018年 SUZUKIPLAN. All rights reserved.
//
#include "EmuBoard.h"
#include "fcs80gw.h"
#include "vgsspu_al.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
static void* emu_fcs80... |
/*
* Copyright (C) 2011 <NAME> <<EMAIL>>
*
* Based on Kirkwood support:
* (C) Copyright 2009
* Marvell Semiconductor <www.marvell.com>
* Written-by: <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
*... |
/*
hny_remove.c
Copyright (c) 2018, <NAME>
This file is part of the honey package manager
subject the BSD 3-Clause License, see LICENSE
*/
#include "hny_internal.h"
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#define... |
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include "log.h"
#include "opts.h"
/**
* The options instance.
*/
struct Options g_opts_instance;
/**
* Pointer to the options instance, as we may allocate differently in future.
*/
struct Options* g_opts = NULL;
void g_opts_init()... |
#include "timer_ticks.h"
#include "m_general.h"
#include "m_usb.h"
#include "pc_communication.h"
#include "base64.h"
static uint8_t message[MAX_MESSAGE_LENGTH];
static uint8_t *message_ptr = message;
pc_data latest_pc_data;
static bool new_data = false;
bool new_pc_data (void)
{
return new_data;
}
pc_data *get_pc_... |
#include <strings.h>
#include <stdio.h>
#include <signal.h>
#include "sds.h"
#include "cli_cmd.h"
#include "cli_err_arcci.h"
#include "cli_info_parser.h"
#define NOTUSED(V) ((void) V)
static volatile int scan_interrupted;
static dict *
getDictOfInfoRedis (arc_t * arc, sds * err, int timeout)
{
int argc;
sds *argv... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
#define MAXCHAR 1024
int Fmarker = 0;
char *chomp(char *str)
{
int i;
i = (int)strlen (str) - 1;
if (str[i] == '\n') str[i] = 0;
return str;
}
/*This is the strcasestr function; Some opeerating systems don't have it included!*/
char *f... |
/*
* Copyright (c) 2015, 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 t... |
#include "hrr_rb_lxns.h"
#define _GNU_SOURCE 1
#include <sched.h>
#include <linux/version.h>
#include <time.h>
VALUE rb_mHrrRbLxns;
VALUE rb_mHrrRbLxnsConst;
/*
* A primitive wrapper around unshare(2) system call.
* Disassociates parts of the caller process's execution context.
*
* @example
* # Disassociates u... |
#include "jd_protocol.h"
#include "jd_pipes.h"
// we don't lock and instead assume we're not running in an interrupt handler
#define LOCK() \
if (target_in_irq()) ... |
#include <stdio.h>
#include "object.h"
#include "debug.h"
typedef struct Chunk Chunk;
void chunk_disassemble(Chunk * chunk, char const * name) {
printf("== %s ==\n", name);
for (uint32_t offset = 0; offset < chunk->count;) {
offset = chunk_disassemble_instruction(chunk, offset);
}
}
static uint32_t constant_i... |
/**************************************************************************//**
* @file main.c
* @version V2.00
* $Revision: 4 $
* $Date: 15/03/19 1:12p $
* @brief Demonstrate how to use EPWM Dead Zone function.
* @note
* Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved.
*********... |
#include <stdlib.h>
#include <stdio.h>
#include "Rational.h"
// Resource: https://courses.cs.vt.edu/cs2505/spring2013/Assignments/9/C_Rational.pdf
static void normalize(int Top, int Bottom, int *arr);
static int gcd(int u, int v);
static int lcm(int u, int v);
static Rational reciprocal(Rational R);
//----------... |
/**
* Implementation for generic hash set based on GenericMap.
*
* The value must be of a single type.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "GenericSet.h"
// OOP class object.
struct gset_class gset = {
// Constructors.
.create = gset_create,
.create1 = gset_create1,
... |
/*
* $Id: stdio_openiob.c,v 1.15 2008-09-04 12:07:58 obarthel Exp $
*
* :ts=4
*
* Portable ISO 'C' (1994) runtime library for the Amiga computer
* Copyright (c) 2002-2015 by <NAME> <obarthel (at) gmx.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modificat... |
// cook data on impact of alpha on tpica models
// exmaple input
// 67 --alpha 0.00015 aa aa-bb-cc bb
// presently keeping only those column with at least 1% of the data
#include "stdio.h"
#include "string.h"
#include <stdlib.h>
#define MAX_PATTERNS 1000
#define MAX_OUT_LINES 100
struct sColumn
{
char... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/wait.h>
#include <limits.h>
#define BUFFER_SIZE 1024
#define MAX_SIZE 8
#define DELIMITER " \t\r\n\a" //delimiters of strtok
/*
* Current pid
* +
* Current Directory
*/
pid_t pid;
static char cwd[BUFFER_SIZE];
/*
*... |
/*
* Copyright (c) 2018 Qualcomm Technologies, Inc.
* All Rights Reserved.
*/
// Copyright (c) 2018 Qualcomm Technologies, Inc.
// 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 t... |
/*
* 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... |
/**
* \file
* \brief
*/
/*
* Copyright (c) 2007, 2008, 2010, 2011, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Syste... |
/*
** Copyright (C) 2001-2020 by Carnegie Mellon University.
**
** @OPENSOURCE_LICENSE_START@
** See license information in ../../LICENSE.txt
** @OPENSOURCE_LICENSE_END@
*/
/*
** rwstatslegacy.c
**
** Functions to support deprecated features of rwstats.
**
*/
#include <silk/silk.h>
RCSIDENT("$SiLK: rwstatslegacy.c... |
// Text Display API
#include "text_display.h"
#include "tock.h"
// used by the asynchronous API
static text_display_done_t *done_callback = NULL;
static void * done_callback_args = NULL;
// used by the synchronous API
typedef struct {
bool done;
statuscode_t status;
} text_display_status_t;
// As the command fu... |
/* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
* -*- mode: c, c-basic-offset: 4 -*- */
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... |
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <mbedtls/ssl.h>
#include <mbedtls/error.h>
typedef int (*get_random_function)(void *argument, unsigned char *destination, size_t length);
typedef void (*log_function)(const char *message);
//typedef int
static get_random_functio... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Monkey HTTP Server
* ==================
* Copyright 2001-2015 Monkey Software LLC <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... |
/* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2017-2018, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
*******************************************************************************/
#ifdef HAVE... |
#include <stdio.h>
#include <stdlib.h>
#include "definitions.h"
#include "cc.h"
#include "program.h"
#include "atomic.h"
#include "../src/arch/atomic.c"
#define THREADS 2
const unsigned int default_cc_num_executors = THREADS;
const unsigned int default_cc_executor_stack_size = 0;
const unsigned int default_cc_max_thr... |
#include <stdio.h>
#include <stdlib.h>
#include "hash.h"
struct Performance *newPerformance(){
//allocates sufficient memory for a Performance structure
struct Performance *newPerformance = (struct Performance*)malloc(sizeof(struct Performance));
//prints error message to standard error and exit... |
/* $OpenBSD: check_script.c,v 1.21 2017/05/28 10:39:15 benno Exp $ */
/*
* Copyright (c) 2007 - 2014 <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 app... |
/*-
* BSD LICENSE
*
* Copyright (c) Intel Corporation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyri... |
/* Shared library add-on to iptables to add simple non load-balancing SNAT support. */
#include <stdio.h>
#include <netdb.h>
#include <string.h>
#include <stdlib.h>
#include <getopt.h>
#include <xtables.h>
#include <net/netfilter/nf_nat.h>
/* For 64bit kernel / 32bit userspace */
#include <linux/netfilter_ipv4/ipt_SAME... |
// Queue for selective async event processing. Instances of this queue support a
// parent/child relationship with the following properties:
//
// - pushing a node to a child queue will push a corresponding link node to the
// parent queue
// - removing a link node from a parent queue will remove the next node
// i... |
// Copyright 2017 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include "console.h"
#include "elf.h"
struct trapframe {
uint32_t trapno;
uint32_t... |
/**
* \file
*
* \brief CRC example3 for AVR XMEGA
*
* Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip products.
*... |
/*
* Copyright © 2018,2019 IBM Corporation
*
* 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 ... |
// Esqueleto de um código de alocação de memória (novo maloc)
// Feito para a disciplina DCC065 - Sistemas Operacionais (UFMG)
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <unistd.h>
#include "a... |
/*-
* Copyright 2003-2005 <NAME>
* All rights reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted providing that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions... |
/* Spindle by lft, http://www.linusakesson.net/software/spindle/
*/
#include <err.h>
#include <getopt.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "common.h"
#include "pef.h"
struct header header;
struct ... |
/*
* 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 the Apache License, Version 2.0
* (the "License"); you... |
/*
* Copyright (c) 2016 Cisco and/or its affiliates.
* 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 applicabl... |
/* Includes ------------------------------------------------------------------*/
#include "stm32f3xx_hal.h"
#include "ringbuffer.h"
#include "retarget.h"
#include <string.h>
#include "main.h"
#include <stdlib.h>
#include <stdio.h>
/* Private variables ---------------------------------------------------------*/
UART_Ha... |
#include <sys/param.h>
#include <sys/jail.h>
#include <jail.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "output.h"
#define JP_USER 0x01000000
#define JP_OPT 0x02000000
#define PRINT_DEFAULT 0x01
#define PRINT_HEADER 0x02
#define PRINT_NAMEVAL 0x04
#define PRINT_QUOTE... |
/*
* Copyright 2018 <NAME> <<EMAIL>>
*
* 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 ... |
//
// Created by Ajay on 01-09-2017.
//
#include "input.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
/*
* takes the user input for a node(one row) in per call to it;
* in CELL structure(input.h line:24) and
* returns the pointer to the first node of linked list
* containing user input
*/
cellpt... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAXLINE 1000 // max input line length
#define NTAB 8
#define MAXTABNO 100 // maximum length of tabs list
#define ENDOFTABS 0
/* This version accept list of tabs from command line. The number zero
is used as list terminator and it is automatically add... |
#include "card.h"
#include "utils.h"
struct card* card__init(enum card_id card_id)
{
struct card *c = safe_malloc(sizeof(struct card));
c->type = card_types[card_id];
c->direction = DEFAULT_DIRECTION;
c->pos.x = INVALID_POSITION;
c->pos.y = INVALID_POSITION;
for (int i = 0; i < NB_DIRECTIONS... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
#include "asn1_ref.h"
/*
* Construct a new empty reference.
*/
asn1p_ref_t *
asn1p_ref_new(int _lineno, struct asn1p_module_s *mod) {
asn1p_ref_t *ref;
ref = calloc(1, sizeof *ref);
assert(ref);
asn1p_ref... |
//
// AlivcMacro.h
// AliyunVideoClient_Entrance
//
// Created by <NAME> on 2018/10/17.
// Copyright © 2018年 Alibaba. All rights reserved.
//
#ifndef AlivcMacro_h
#define AlivcMacro_h
#define kAlivcProductType AlivcOutputProductTypeShortVideo
//#define OPEN_LONGVIDEO_PRIVATECODE //打开长视频单独逻辑
#define kAlivcLog... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
// @file timer.c
// @brief Data and controls for timer
//
// Contains data and all functions for setting and accessing
// a timer. Also saves and loads timers between closing and reopening.
//
// @author <NAME>
// @data October 26, 2015
// @bugs No known bugs
#include "timer.h"
#include "utility.h"
#define PERSIST_VE... |
#include <stdint.h>
/* librenard */
#include "uplink.h"
#include "downlink.h"
#include "renard_phy_s2lp_hal.h"
#include "renard_phy_s2lp_rc_profiles.h"
#include "renard_phy_s2lp_protocol.h"
#include "renard_phy_s2lp.h"
/*
* See public Sigfox specifications "2.2 Frequency ranges, macro- and micro- channels",
* 4.9... |
/* $OpenBSD: ofbus.c,v 1.13 2003/10/31 04:08:10 drahn Exp $ */
/* $NetBSD: ofbus.c,v 1.3 1996/10/13 01:38:11 christos Exp $ */
/*
* Copyright (C) 1995, 1996 <NAME>.
* Copyright (C) 1995, 1996 TooLs GmbH.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification,... |
#include "Hardware_configuration.h" //for I2CBUS_MAX, USBPORT_MAX
#include "I2C_ReadWrite.h" //for I2cRead
#include "USB_PD_defines_stusb4700.h"
#include "stusb4700_defines_2.h"
#include "USB_PD_user.h"
#include "USB_PD_core.h"
#include "printf_debug.h"
extern USB_PD_I2C_PORT STUSB47DeviceConf[USBPORT_MAX];
int P... |
/**
* Copyright (C) 2017-2018, Decawave Limited, All Rights Reserved
*
* 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
*... |
#include "types.h"
#include "defs.h"
#include "spinlock.h"
#include "param.h"
#include "buf.h"
#include "stdio.h"
#include "print.h"
#include "string.h"
#include "eapp.h"
#include "print.h"
//FIXME: can remove index field of buf struct?
#define PREMAPED_SIZE (4096*2)
static uint64 __ramdisk_handle = -1UL... |
/*
* PaulStretch
*
* An implementation of the PaulStretch algorithm by <NAME>.
* This code is based off the Python Numpy/Scipy implementation of
* PaulStretch, found here: https://github.com/paulnasca/paulstretch_python
*
* This implementation has been placed in the public domain.
*/
#include <stdlib.h>
#inclu... |
/*
* File: all_native_events.c
* Author: <NAME>
* <EMAIL>
* Mods: <Your name here>
* <Your email here>
*/
/* This file hardware info and performs the following test:
Attempts to add all available native events to an event set.
This is a good preliminary way to validate native ev... |
#include <stdlib.h>
#include <string.h>
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#include "iup.h"
#include "iup_config.h"
#include "iuplua.h"
#include "iupluascripterdlg.h"
#ifdef USE_STATIC
#ifndef IUPLUA_NO_GL
#include "iupgl.h"
#include "iupglcontrols.h"
#include "iupluagl.h"
#include "iupluag... |
#pragma once
//RGB color macro
#define UIColorFromRGB(rgbValue) [UIColor \
colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
//RGB color macro with alpha
#define UIColorFromRGBWithAlpha(rgbValue,a) [UIColor \
... |
/*
* Copyright (c) 2015 FUJITSU LIMITED
* Author: <NAME> <<EMAIL>>
*
* This work is licensed under the terms of the GNU GPL, version 2 or
* later. See the COPYING file in the top-level directory.
*/
#include "qemu/osdep.h"
#include "net/filter.h"
#include "net/queue.h"
#include "qapi/error.h"
#include "qemu-com... |
#include "Options.h"
#include "String.h"
#include "ExtMath.h"
#include "Platform.h"
#include "Stream.h"
#include "Errors.h"
#include "Utils.h"
#include "Logger.h"
struct StringsBuffer Options;
static struct StringsBuffer changedOpts;
void Options_Free(void) {
StringsBuffer_Clear(&Options);
StringsBuff... |
#include "mapping.h"
#include "constants.h"
#include "defs.h"
usize *get_vpn_levels(usize vpn) {
// use static variable to avoid stack allocation
static usize res[3];
res[0] = (vpn >> 18) & 0x1ff;
res[1] = (vpn >> 9) & 0x1ff;
res[2] = vpn & 0x1ff;
return res;
}
usize pa_to_va(usize pa) { return pa + KERNE... |
// This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
/* delay.c
This file is part of a program that implements a Software-Defined Radio.
Copyright (C) 2013, 2019 <NAME>, NR0V
This program i... |
#include "common.h"
#include "image.h"
#include <jpeglib.h>
#include <png.h>
#define SBIMG_PNG_VERSION "1.6.37"
#define PNG_SIG_LENGTH 8
#define sbimg_image_num_components(image) ((image)->pixel_type == SBIMG_GRAY ? 1 : 3)
#define sbimg_image_row_size(image) ((image)->width \
* sbimg_image_num_compon... |
// ================================================================
// Katedra: Katedra za racunarsku tehniku i racunarske komunikacije
// Predmet: Osnovi racunarskih mreza 2
// Godina studija: III godina
// Semestar: Letnji (VI)
// Skolska godina: 2017/2018
// Datoteka: vezba5.c
// ====================================... |
/*------------------------------------------------------------------------------
FPDissect - floating-point format viewer (C90)
<NAME> / HXA7241 : 2013
http://www.hxa.name/tools/
License: CC0 -- http://creativecommons.org/publicdomain/zero/1.0/
-----------------------------------------------... |
/*
* Copyright 2014-2016 CyberVision, Inc.
*
* 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 o... |
/*
* Copyright (c) 2013-2015 Mellanox Technologies, Inc.
* All rights reserved.
* Copyright (c) 2015 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
... |
/****************************************************************
Copyright (C) 2015 <NAME>. All rights reserved.
> File Name: < leds.c >
> Author: < <NAME> >
> Mail: < <EMAIL> >
> Created Time: < 2015/07/31 >
> Last Changed:
> Description: C语言实现LED灯控制, LED灯API设计
... |
unsigned char mask[]={0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01};
#define tget(i) ( (t[(i)/8]&mask[(i)%8]) ? 1 : 0 )
#define tset(i, b) t[(i)/8]=(b) ? (mask[(i)%8]|t[(i)/8]) : ((~mask[(i)%8])&t[(i)/8])
#define chr(i) (cs==sizeof(int)?((int*)s)[i]:((unsigned char *)s)[i])
#define isLMS(i) (i>0 && tget(i) && !tget(i... |
/*
* File: main.c
* Author: <NAME>
*
* Created on November 17, 2015, 8:29 PM
*/
/*********************************************************************
*
* Includes
*
*********************************************************************/
#include <xc.h>
#include <p18f2480.h>
#includ... |
/*
* blogc: A blog compiler.
* Copyright (C) 2014-2019 <NAME> <<EMAIL>>
*
* This program can be distributed under the terms of the BSD License.
* See the file LICENSE.
*/
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "../common/utils.h"
#include "httpd-utils.h"
// mime types with index s... |
/*
* Copyright (c) 2011-2016 Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <ztest.h>
#include <debug/object_tracing.h>
extern void test_obj_tracing(void);
#define STSIZE (1024 + CONFIG_TEST_EXTRA_STACKSIZE)
#define N_PHILOSOPHERS 5
#define TOTAL_TEST_NUMBER 2
... |
//
// base64.c
// C-Ray
//
// Created by <NAME> on 18/03/2021.
// Copyright © 2021-2022 <NAME>. All rights reserved.
//
#include "base64.h"
#include <stdlib.h>
// Neither of these implementations are mine, but they are
// way faster than anything I could come up with, so we're using
// them here.
/*
* Base64 e... |
/* Atomic operations. ARM/Linux version.
Copyright (C) 2002-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C 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... |
/*******************************************************************************
* Project:
* "Audioprocessor"
*
* Version / Date:
* 2.3 / Jan 2018
*
* Authors:
* <NAME>
*
* File Name:
* controls.c
*
* Description:
* Updates and processes controls (buttons, encoders)
*************... |
/*
* Copyright (c) 2015-2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/types.h>
#include <stddef.h>
#include <string.h>
#include <errno.h>
#include <sys/printk.h>
#include <sys/byteorder.h>
#include <zephyr.h>
#include <settings/settings.h>
#include <bluetooth/bluetooth.h>
#in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.