text stringlengths 3.12k 18.7k |
|---|
#include "perf_count.h"
#include <linux/perf_event.h>
#include <sys/types.h>
#include <sys/syscall.h>
#include <unistd.h>
#include <assert.h>
#include <stdlib.h>
struct perf_count_ctx
{
int num_groups;
int num_events;
struct perf_event_attr *events;
int *fds;
uint64_t *counters;
};
static const struct perf_eve... |
/* Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. */
// This file contains code copied mostly from main.c of Azure Sphere sample code,
// AzureIoT. This includes code to establish connection with Azure IoT Hub
// and to send data to IoT Hub periodically.
#inclu... |
#include <stdio.h>
#include <stdlib.h>
#include "project.h"
#include "hyatt.h"
#include <FS.h>
uint16_t hyattFileBufferLen;
char hyattFileBuffer[FILEBUFFERLEN];
char *hyattFileBufferPtr;
FS_FILE *file;
uint32_t fileSize;
char filelist[CONTROLPANEL_SELECTIONCOUNTMAX][FILENAMEMAX];
uint8_t fileSelectIndex;... |
/*
* libwebsockets-test-client - libwebsockets test implementation
*
* Copyright (C) 2011 <NAME> <<EMAIL>>
*
* 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:
* version 2.1 of t... |
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 200
// STATUS
#define A_FAZER 1
#define FAZENDO 2
#define CONCLUIDO 3
// GERENTE
#define MARIA 1
#define MARCOS 2
#define JOANA 3
#define RODRIGO 4
// URGENCIA
#define URGENTE 1
#define N_URGENTE 2
// CIDADE
#define CURITIBA 1
#... |
/*
* map_resize.c
*
* Created on: 2010-08-04
* Author: wino
*/
#include <stdio.h>
#include <allegro.h>
#include "fpge.h"
#include "map_resize.h"
#include "unitutil.h"
char current_x[64];
char current_y[64];
char edit_x[64];
char edit_y[64];
char edit_off_x[64];
char edit_off_y[64];
char info[128];
int le=... |
/*
* 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... |
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <exec/types.h>
#include <exec/memory.h>
#include <intuition/intuition.h>
#include <proto/exec.h>
#include <proto/dos.h>
#include <dos/dos.h>
#include <dos/filehandler.h>
#include "pfs3.h"
#include "doctor.h"
enum mode mode = rep... |
#include <stdio.h>
#include "raylib.h"
#define BOOL char
#define TRUE 1
#define FALSE 0
#define SCREEN_WIDTH 800
#define SCREEN_HEIGHT 450
#define SNAKE_LENGTH 256
#define CELL_SIZE 31
typedef struct Snake {
Vector2 position;
Vector2 size;
Vector2 velocity;
Color color;
} Snake;
typedef struct Foo... |
// 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... |
/* $OpenBSD: code.c,v 1.2 2008/04/11 20:45:52 stefan Exp $ */
/*
* Copyright (c) 2008 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all c... |
/*
* Copyright (c) 2015 <NAME>
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
#include <lk/err.h>
#include <string.h>
#include <stdlib.h>
#include <lk/trace.h>
#include <lk/pow2.h>
#include <arch/ops.h>
#include... |
/**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/ ... |
/*
* Driver drop database string helper
* Copyright (C) by <NAME> <<EMAIL>>
* Converts a series of strings into Tritech device database format
* This is a speedup utility for tt_build_dev_db
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "version.h"
#define MAXLEN 102... |
/* Shared library add-on to ip6tables to add Dst header support. */
#include <stdbool.h>
#include <stdio.h>
#include <netdb.h>
#include <string.h>
#include <stdlib.h>
#include <getopt.h>
#include <errno.h>
#include <xtables.h>
#include <linux/netfilter_ipv6/ip6t_opts.h>
#include <sys/types.h>
#include <sys/socket.h>
#i... |
/*====================================================================*
- Copyright (C) 2001 Leptonica. 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 c... |
#include "vp_tree.h"
#include "core.h"
#include "defn_impl.h"
#include "index.h"
#include "vp_utilities.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define NUM_OF_ENTRIES_MAX_DEPTH 0
// VP UTILITIES
// Find the vantage point and the median
int Find_Vp_Median(Entr... |
/*
sign4j.c: a simple utility to sign executables created by Launch4j
Copyright (c) 2012 [TODO]
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 t... |
/*-
* Copyright (C) 2012-2013 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list... |
/*
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <common/debug.h>
#include <lib/mmio.h>
#include <lib/psci/psci.h>
#include <platform_def.h>
#include <services/std_svc.h>
... |
/*
* Copyright (C) 2018, Xilinx Inc - All rights reserved
* Xilinx SDAccel Media Accelerator API
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LIC... |
/*
* split_data_parallel.c
*
* Created on: August 14, 2014
* Author: <NAME>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "matutils.h"
#include <mpi.h>
#define MAPI_USER_ABORT 999
#define MASTER 0 /* taskid of... |
/**
******************************************************************************
* @file adc.c
* @author YANDLD
* @version V2.6
* @date 2015.6.21
* @brief www.beyondcore.net http://upcmcu.taobao.com
******************************************************************************
*/
#include ... |
/*
Copyright (C) 2000, 2001, Silicon Graphics, Inc. All Rights Reserved.
This program 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 Foundation.
This program is distributed in the hope th... |
// Copyright 2019 SoloKeys Developers
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according t... |
#include <inttypes.h>
#include "mjd.h"
#include "driver/timer.h"
/**
* Logging
*/
static const char TAG[] = "myapp";
/*
* KConfig: LED, WIFI
*/
static const int MY_LED_ON_DEVBOARD_GPIO_NUM = CONFIG_MY_LED_ON_DEVBOARD_GPIO_NUM;
static const int MY_LED_ON_DEVBOARD_WIRING_TYPE = CONFIG_MY_LED_ON_DEVBOARD_WIRING_TY... |
/*
Copyright (c) 2010-2020 <NAME> <<EMAIL>>
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
and Eclipse Distribution License v1.0 which accompany this distribution.
The Eclipse Public License is available at
https://www.eclipse.... |
/****************************************************************************
* arch/arm/src/str71x/str71x_lowputc.c
*
* Copyright (C) 2008-2009 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provide... |
/* 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 may not... |
/**************************************************************************************************
Copyright (c) 2008-2009, Motorola, 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:
- Redistributio... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <stdlib.h>
#include <math.h>
#define CHAR_0 48
#define CHAR_1 49
#define intervalo_treinamento 12
#define N_HISTORICO 4
#define N_ESTATISTICAS (1<<N_HISTORICO)
#define DEBUG_PRINT(x) printf(x);
int estatisticas[N_ESTATISTICAS];
... |
/*-
* Copyright (c) 2008 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions an... |
/*-------------------------------------------------------------------------
*
* instrument.c
* functions for instrumentation of plan execution
*
*
* Portions Copyright (c) 2006-2009, Greenplum inc
* Portions Copyright (c) 2012-Present Pivotal Software, Inc.
* Copyright (c) 2001-2012, PostgreSQL Global Developm... |
/********************************************************************************************************************
* final assignment for system software
* created by <NAME> R0650257
*************************************************************... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
#include <stdio.h>
#include "../config.h"
#include "../include/asm/ns16550.h"
#define COM_BASE 0xbfe88000 //com1 for 1D
#define NS16550_LSR 5
#define NS16550_DATA 0
#define LSR_TXRDY 0x20
#define LSR_RXRDY 0x01
#define writeb(val, addr) (*(volatile unsigned char*)(addr) = (val))
#define readb(addr) (*(volatile uns... |
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include "intinc/stdio.h"
FILE __stderr;
FILE* stderr;
FILE __stdout;
FILE* stdout;
FILE __stdin;
FILE* stdin;
int fclose(FILE* stream){
int err = fflush(stream);
__free_buffer(&stream->buffer);
if (__IS_HASBUFFER(stream->fflags)){
for (size_t i=0; i<_... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2018 NXP
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm/io.h>
#include <errno.h>
#include <asm/io.h>
#include <asm/arch/ddr.h>
#include <asm/arch/imx8mq_pins.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/clock.h>
#include <asm/... |
/******************************************************************************
* Copyright 1998-2019 Lawrence Livermore National Security, LLC and other
* HYPRE Project Developers. See the top-level COPYRIGHT file for details.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
**************************************... |
/*******************************************************************************
* Copyright (C) 2016 Maxim Integrated Products, 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"),
*... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"
#define Image IMAGE
#include <draw.h>
#include <memdraw.h>
#include <cursor.h>
#include "screen.h"
/*
* IBM RGB524.
* 170/220MHz High Performance Palette DAC.
*
* Assumes hooked up to an S3 Vision... |
/*
* Copyright © 2006-2009 <NAME>
* Copyright © 2012 <NAME>
* Copyright © 2014-2015 Red Hat, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including witho... |
/* crc32.c -- output crc32 tables
* Copyright (C) 1995-2006, 2010, 2011, 2012, 2016, 2018 <NAME>
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include <stdio.h>
#include <inttypes.h>
#include "zbuild.h"
#include "deflate.h"
#include "crc32_p.h"
static uint32_t crc_table[8][256];
stati... |
/*
* bthidd.c
*/
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2006 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of s... |
/*
* FreeRTOS Kernel V10.2.1
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. 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 without restriction, includ... |
/* Copyright (c) 2013-2014, The Linux Foundation. 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 o... |
/* librist. Copyright 2019 SipRadius LLC. All right reserved.
* Author: <NAME> <<EMAIL>>
* Author: <NAME>, Ph.D. <<EMAIL>>
*/
#include "common/attributes.h"
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#ifndef _WIN32
#include "log-private.h"
#endif
#ifdef _WIN32
#if !defined(UNDER... |
/*
* Copyright (c) 2020, <NAME> (TU Wien)
* 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... |
#include <stdio.h>
#include <proc/readproc.h>
#include <assert.h>
#include <malloc.h>
#include <sys/types.h>
#include <signal.h>
#include <sched.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <getopt.h>
#include <sys/ptrace.h>
/* Compile this with option -lprocps. It needs libprocps-dev packa... |
/*
* zone.c -- zone compiler.
*
* Copyright (c) 2001-2006, NLnet Labs.
*
* Modified Work Copyright (c) 2018 The TIGLabs Authors.
*
*/
#include <stdlib.h>
#include <stdio.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include "zone.h"
#include "dns.h"
#include "kdns.h"
#include "domain_store.h"
#define IP6... |
/**
* collectd - src/uuid.c
* Copyright (C) 2007 Red Hat 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; only version 2 of the License is applicable.
*
* This program is distribu... |
/*
*
* Copyright 2015, 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 condi... |
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/select.h>
#include <signal.h>
#include <time.h>
#include <setjmp.h>
#include <errno.h>
#include <pthread.h>
pthread_mu... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/accel/agx/agxBCach.c,v 3.16 1996/12/23 06:32:26 dawes Exp $ */
/*
* Copyright 1993 by <NAME>. Oxford University
* Copyright 1994 by <NAME>, Sunnyvale, California.
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any pur... |
/*
* Copyright (c) 2008, Google Inc.
* All rights reserved.
* Copyright (c) 2009-2010, The Linux Foundation. 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 ... |
/* Copyright 2001, 2019 IBM Corporation
*
* 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 d... |
/* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* ====================================================================
* Copyright (c) 1999-2004 Carnegie Mellon University. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided ... |
/* lnkfsl.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__0 = 0;
/* $Procedure LNKFSL ( LNK, free sublist of a list ) */
/* Subroutine */ int lnkfsl_(integer *... |
/*############################################################################
# Copyright 2016-2017 Intel 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
#
# ht... |
/* $OpenBSD: rlphy.c,v 1.23 2006/05/16 02:24:45 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* <NAME> <<EMAIL>>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions ... |
/*
* dns.c
*
* Created on: Apr 26, 2016
* Author: jiaziyi
*/
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<arpa/inet.h>
#include<netinet/in.h>
#include<stdbool.h>
#include<time.h>
#include "dns.h"
void send_dns_query(int sockfd, char *dns_server, char *host_nam... |
/* C1ChirpFilt() - A C function created to isolate the C1 Chirp Filter
function found in the AN Model C source code model_IHC_BEZ2018 in order to
verify Simulink functionality
C1filterout = C2ChirpFilt(x, tdres, cf, n, taumax, rsigma)
The filter takes in either the signal output from the Middle Ear Filter,... |
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include "utils.h"
#include "mem.h"
/* pool_t */
#define ALIGN sizeof(void*)
#define PNEXT(x) *((void**)(x))
static void make_free_list(void **ptr, void **end, int elem_size)
{
while (ptr != end)
{
void **next = (void**)(((char*)ptr) + elem_size... |
//========================================================================
// GLFW 3.3 POSIX - www.glfw.org
//------------------------------------------------------------------------
// Copyright (c) 2002-2006 <NAME>
// Copyright (c) 2006-2017 <NAME> <<EMAIL>>
//
// This software is provided 'as-is', without any ... |
/* $XConsortium: pcnst.c,v 1.5 94/04/17 20:33:42 rws Exp $ */
/* $XFree86: xc/programs/Xserver/XIE/dixie/process/pcnst.c,v 3.1 1996/08/20 12:21:39 dawes Exp $ */
/**** module pcnst.c ****/
/******************************************************************************
Copyright (c) 1993, 1994 X Consortium
Permission... |
/*
* Copyright (C) 2005 <NAME>
* Copyright (C) 2010 Google Inc.
*/
#include "cache.h"
#include "diff.h"
#include "diffcore.h"
#include "xdiff-interface.h"
#include "kwset.h"
#include "commit.h"
#include "quote.h"
typedef int (*pickaxe_fn)(mmfile_t *one, mmfile_t *two,
struct diff_options *o,
regex_t *rege... |
/*--------------------------------------------------------------------
Copyright(c) 2015 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 ret... |
/*
* Copyright (c) 2016-present <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, pub... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
#include <hal/thread.h>
#include <fsw/debug.h>
#include <fsw/fakewire/exchange.h>
#include "test_common.h"
struct packet_chain {
uint8_t *packet_data;
size_t packet_len... |
/*s: assemblers/5a/obj.c */
#include "a.h"
/*s: function [[zname]](arm) */
/// outcode -> <>
void
zname(char *n, int symkind, int symidx)
{
Bputc(&obuf, ANAME);
Bputc(&obuf, symkind); /* type */
Bputc(&obuf, symidx); /* sym */
while(*n) {
Bputc(&obuf, *n);
n++;
}
Bputc(&obuf, '... |
/* $Id: initterm-r0drv-solaris.c $ */
/** @file
* IPRT - Initialization & Termination, Ring-0 Driver, Solaris.
*/
/*
* Copyright (C) 2006-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can re... |
/*
american fuzzy lop++ - globals declarations
-------------------------------------------
Originally written by <NAME>
Now maintained by <NAME> <<EMAIL>>,
<NAME> <<EMAIL>> and
<NAME> <<EMAIL>>
Copyright 2016, 2017 Google Inc. All rights reserved.
Cop... |
/*
* Written by Dr <NAME> (<EMAIL>) for the OpenSSL project
* 2004.
*/
/* ====================================================================
* Copyright (c) 2004 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provi... |
/*********************************************************************************************************
* Software License Agreement (BSD License) *
* Author: <NAME> <<EMAIL>> *
* *
* Copyright (c) 2010, Teraoka Laboratory, Keio Univer... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... |
/* ----------------------------------------------------------------------- *
*
* Copyright 1996-2009 The NASM Authors - All Rights Reserved
* See the file AUTHORS included with the NASM distribution for
* the specific copyright holders.
*
* Redistribution and use in source and binary forms, with or withou... |
/*------------- Telecommunications & Signal Processing Lab -------------
McGill University
Routine:
void RSintFilt(double Sratio, double Soffs, const struct Fspec_T *Fspec,
struct Fpoly_T *PF, double *FDel, FILE *fpinfo)
Purpose:
Read or design an interpolating filter
... |
// mpicc -lm -o mpi mpi.c && mpirun -np 2 mpi img/input1.png img/output1.png 8
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <unistd.h>
#include <sys/time.h>
#include <assert.h>
#include <mpi.h>
#include "sod/sod.h"
char* IMAGEN_ENTRADA;
char* IMAGEN_SALIDA;
int ARG;
float ... |
/**
* \file
*
* \brief Common Sensor Service Proximity Sensor Calibration Example
*
* Copyright (C) 2012-2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... |
/*
* Copyright (c) 2010-2012, Freescale Semiconductor, 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:
*
* o Redistributions of source code must retain the above copyright notice, this... |
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2014 Couchbase, 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
*
* ht... |
/**
* Copyright (c) 2013-2021 UChicago Argonne, LLC and The HDF Group.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "na_ip.h"
#include "na_error.h"
#include <ctype.h>
#include <errno.h>
#include <ifaddrs.h>
#include <net/if.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>... |
/*
* BSD 3-Clause License
*
* Copyright (c) 2020, Northern Mechatronics, 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 c... |
/*
* SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <assert.h>
#include <errno.h>
#include <internal/alloc.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <twz/_err.h>
#include <twz/alloc.h>
#include <twz/obj.h>
#define MIN_SIZE 16
#inc... |
/* $Xorg: efaxg42d.c,v 1.3 2000/08/17 19:46:41 cpqbld Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992 <NAME>ler
* Copyright (c) 1991, 1992 Silicon Graphics, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, p... |
/*************************************************************************
> File Name: farword_port.c
> Author: ziqiang
> Mail: <EMAIL>
> Created Time: Wed 24 May 2017 05:57:51 PM CST
************************************************************************/
#include <stdlib.h>
#include <stdio.h>
#include <unist... |
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#include <linux/videodev2.h>
#include <chiasm.h>
bool ch_codec_registered = false;
inline uint32_t
... |
#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 main.c
* @brief This project demonstrates the slave configuration of the EFx32xG21 I2C
* peripheral. Two EFx32xG21 modules are connected together, one running the
* master project, the other running the slave project. The maste... |
/*
cabi - Compress Arduboy Image
A command line program to read a PNG file containing a bitmap image, compress
it using RLE encoding and convert it to C/C++ code suitable for use with the
Team A.R.G. drawCompressed() function. This function is included in the
Arduboy2 library.
Written by zep
https://www.lexaloffle.co... |
#include <windows.h>
#include <stdatomic.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include "bemanitools/ddrio.h"
#include "mm/mm.h"
#include "util/cmdline.h"
#include "util/defs.h"
#include "util/log.h"
#include "util/mem.h"
struct ddr_bittrans {
uint32_t mm;
uint32_t p3io;
};
stati... |
/*
* ME331 FALL2020 Term Project Group 7
* Author: Cem
* Version: 1.47
*
* Created on 28.1.2021, 21:44
*/
//#define READING
#define LOGGING
#define MOVEMENT
#define SERIAL
// Serial
#ifdef SERIAL
#define PRINT(X) Serial.print(X)
#define PRINTLN(X) Serial.println(X)
#else
#define PRINT(X)
#define PRINTLN(X)
#end... |
/* $OpenBSD: sdl.c,v 1.18 2007/11/03 19:16:07 beck Exp $ */
/*
* Copyright (c) 2003-2007 <NAME>. All rights reserved.
*
* 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 ap... |
#include <pbm.h>
#include "config.inc.h"
#include "filters.h"
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "logger.h"
#define ICM_DEFAULT_BETA 1
#define ICM_DEFAULT_GAMMA 2
#define ICM_DEFAULT_RADIUS 1
#define ICM_DEFAULT_WEIGHT_METHOD ICM_WEIGHT_FLAT
#define ICM_LOOP_LIMIT 100
/**
* いわゆるbeta値... |
/* $NetBSD: globals.c,v 1.19 2003/08/07 09:37:02 agc Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
... |
#include <stdbool.h>
#include <string.h>
#include "adc.h"
#include "adt7476a_fan_controller.h"
#include "adt7476a_fan_controller_defs.h"
#include "can.h"
#include "can_transmit.h"
#include "can_unpack.h"
#include "delay.h"
#include "gpio.h"
#include "gpio_it.h"
#include "i2c.h"
#include "interrupt.h"
#include "log.h"
... |
/*
* Copyright (c) 2012, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include "pool.h"
#include "repo.h"... |
/*
***************************************************************************
* Copyright 2007,2008 Impinj, 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://... |
// The MIT License (MIT)
//
// Copyright (c) 2016, 2017, 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
// t... |
/*
* Copyright (C) 2021 Liquidaty and zsv contributors. All rights reserved.
*
* This file is part of zsv/lib, distributed under the MIT license as defined at
* https://opensource.org/licenses/MIT
*/
#include <zsv.h>
#include <zsv/utils/writer.h>
#include <zsv/utils/signal.h>
#include <zsv/utils/arg.h>
#include <... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.