text stringlengths 3.12k 18.7k |
|---|
/**
* \file
*
* \brief WAV player
*
* 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.
* It is your resp... |
/*
* Copyright (c) <2008 - 2020>, University of Washington, Simon Fraser University
* 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 ab... |
/* e_rem_pio2f.c -- float version of e_rem_pio2.c
Copyright (C) 2011-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by <NAME> <<EMAIL>>, 2011
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General P... |
/*
* Copyright (c) 2017 <NAME>
* Distributed under the MIT software license, see the accompanying
* file COPYING or http://www.opensource.org/licenses/mit-license.php.
*/
#include "psys_debug.h"
#include "psys_constants.h"
#include "psys_helpers.h"
#include "psys_opcodes.h"
#include "psys_state.h"
#include "util/u... |
/*
* mpu6050.c
*
* Created on: Nov 13, 2019
* Author: <NAME>
*
* Contact information
* -------------------
*
* e-mail : <EMAIL>
*/
/*
* |---------------------------------------------------------------------------------
* | Copyright (C) <NAME>,2019
* |
* | This program is free software: you ca... |
/* Copyright (c) 2002, 2004, 2006 MySQL AB
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; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ... |
/**
* (C) Copyright 2020-2022 Intel Corporation.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
#define D_LOGFAC DD_FAC(tests)
#include "daos_test.h"
#include <daos/checksum.h>
#include <gurt/types.h>
#include <daos_prop.h>
struct dedup_test_ctx {
/** Pool */
daos_handle_t poh;
/** Container */
daos_ha... |
//------------------------------------------------------------------------------
// blend-glfw.c
// Test blend factor combinations.
//------------------------------------------------------------------------------
#define HANDMADE_MATH_IMPLEMENTATION
#define HANDMADE_MATH_NO_SSE
#include "HandmadeMath.h"
#define GLFW_... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <omp.h>
#include "md5.h"
// *******************************
// Funções de tempo
// *******************************
struct timeval start, stop;
unsigned diffsec, diffusec;
int a[2];
void compute_time_and_flush();
void time_log_start() {
gettimeofda... |
/*
Copyright (c) 2008, chenDongSheng
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted, provided
that the above copyright notice and this permission notice appear
in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
WARRANT... |
/*
* tpa6130.c
*
* Created on: 31 Jul 2021
* Author: alex
*/
#include "pico/stdlib.h"
#include "hardware/i2c.h"
#include <stdio.h>
#define TPA_I2C_PORT i2c0
#define TPA_I2C_SDA 12
#define TPA_I2C_SCL 13
#define TPA_I2C_ADDR 0x60
#define TPA6130_TWI_ADDRESS 0x60
#define TPA6130_VOL_MIN ((int8_t)( 0... |
/*
* main.c
*
* Created on: Jul 6, 2021
* Author: igor
* N1 sends a message(led number) using Data Frame for every 1sec to N2
* After the reception of message(led number) N2 has to glow the corresponding LED
* N1 also sends a Remote frame to request 2 bytes of data for every 4secs
* N2 upon receiving the ... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// SECDED encode code generated by
// util/design/secded_gen.py from util/design/data/secded_cfg.hjson
#include "secded_enc.h"
#include <stdbool.h>
#include <stdint.... |
/*
* Copyright (c) 1996-1999
* HD Associates, 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 copyright
* notice, this li... |
/********************************************************************
* FileName: SymbolTime.c
* Dependencies: SymbolTime.h
* Processor: PIC18, PIC24, PIC32, dsPIC30, dsPIC33
* tested with 18F4620, dsPIC33FJ256GP710
* Complier: Microchip C18 v3.04 or higher
* Microchip C30 v2.03 or higher
... |
/*
* Originally written by <NAME>, Lake Stevens Instrument Division
*
* Contributed by HP Systems
*
* Modified for Linux/MIPS (and MIPS in general) by <NAME>
* Send complaints, suggestions etc. to <<EMAIL>>
*
* Copyright (C) 1995 <NAME>
*
* Copyright (C) 2003 MontaVista Software Inc.
* Author: <NAME>,... |
/*
** Copyright 2008, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by app... |
/* spkr03.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__2 = 2;
static integer c__6 = 6;
/* $Procedure SPKR03 ( Read SPK record from segment, type 3 ) */
... |
#include <stdio.h>
#include <stdlib.h>
#include <CL/cl.h>
// name of the file which contais the kernel function
#define PROGRAM_FILE "matrix_multiply.cl"
// name of the kernel function
#define KERNEL_FUNC "multiply_matrix"
// number of lines of the first matrix
#define LM1 50
// number of columns of the first matrix a... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Amlogic Meson-AXG Clock Controller Driver
*
* Copyright (c) 2016 Baylibre SAS.
* Author: <NAME> <<EMAIL>>
*
* Copyright (c) 2018 Amlogic, inc.
* Author: <NAME> <<EMAIL>>
*/
#include <linux/clk-provider.h>
#include <linux/platform_device.h>
#include <linux/reset-controll... |
/* Copyright 2012,2014 IPB, Universite de Bordeaux, INRIA & CNRS
**
** This file is part of the Scotch software package for static mapping,
** graph partitioning and sparse matrix ordering.
**
** This software is governed by the CeCILL-C license under French law
** and abiding by the rules of distribution of free softw... |
/*
loop_test.c
Tests the multi-channel audio driver API.
Copyright 1999, Be Incorporated. All Rights Reserved.
This file may be used under the terms of the Be Sample Code License.
*/
#include <stdio.h>
#include <OS.h>
#include "multi_audio.h"
#define MAX_CHANNELS 32
char dev_name_1[] = "/dev/audio/multi/sonor... |
/*****************************************************************************\
** **
** FILE: msgnum.c **
** AUTHORS: Alexios **
**... |
/** ***************************************************************************
* @file UserAlgorithm.c
*
* THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
* ... |
#include "sms.h"
#include "sms_defines.h"
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#ifdef __ANDROID__
#include <android/log.h>
#endif
#define THIS_FILE "sms.c"
#define DO_TRACE 0
static void LOCAL_TRACE(const char* format, ...)
{
if (DO_TRACE) {
va_list argptr;
va_start(arg... |
/**
* @file compress.c
* @brief Compress functions.
* @date 2014-2015
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*/
#include "compress.h"
/* Global vars */
const char *separators = "\n\t\r ?!.;,:+-*/";
/**
* Compress a given text file using an algorithm similar to the LZ77/LZ78.
* @param source_filename fi... |
#include "messages.h"
#include "object_pools.h"
#include "physical_allocator.h"
#include "process.h"
#include "registers.h"
#include "scheduler.h"
#include "text_terminal.h"
#include "thread.h"
#include "virtual_allocator.h"
// The maximum number of messages that can be queued.
#define MAX_EVENTS_QUEUED 1024
// Magi... |
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#ifndef _GLX_server_h_
#define _GLX_server_h_
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
** Software License B, Version 1.1 (the "License"), the contents of t... |
/* $OpenBSD: ka49.c,v 1.9 2008/08/18 23:05:38 miod Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden.
* 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... |
/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 only,
* as published by the Free Software Foundation.
*
* This program is distributed... |
#include<stdio.h>
#include<stdlib.h>
void preOrder(struct node* root);
// An AVL tree node
struct node {
int key;
struct node* left;
struct node* right;
struct node* parent;
};
// global root for the entire tree
struct node* root = NULL;
// struct node* root1 = NULL;
// struct node* root2 = NULL;
// Helpe... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
* Author: <NAME> <<EMAIL>>
*/
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc.h>
#include <drm/drm_panel.h>
#include <drm/drm_probe_helper.h>
#include "omap_drv.h"
/*
* connector funcs
... |
/* @(#) Find the horizontal and vertical projections of an image, ie. the sum
* @(#) of pixels in each row and column. Two output images, 1xheight and
* @(#) widthx1, with the largest required bandfmt.
* @(#)
* @(#) int im_project( in, columns, rows )
* @(#) IMAGE *in;
* @(#) IMAGE *columns, *rows;
* @(#)
* @... |
#define F_CPU 16000000UL //Says to the compiler which is our clock frequency, permits the delay functions to be very accurate
#include <avr/io.h> //General definitions of the registers values
#include <util/delay.h> //This is where the delay functions are located
#include <avr/interrupt... |
/* SPDX-License-Identifier: GPL-2.0 */
#define FDOMAIN_REGION_SIZE 0x10
#define FDOMAIN_BIOS_SIZE 0x2000
enum {
in_arbitration = 0x02,
in_selection = 0x04,
in_other = 0x08,
disconnect = 0x10,
aborted = 0x20,
sent_ident = 0x40,
};
/* (@) = not present on TMC1800, (#) = not present on TMC1800 and TMC18C50 */
#d... |
#include "Windows.h"
#include "Win95/WinIdk.h"
#include "Platform/wuRegistry.h"
#include "Win95/Window.h"
#include "Win95/stdGdi.h"
#include "Platform/stdControl.h"
#include "Win95/stdDisplay.h"
#include "Main/jkRes.h"
#include "Main/jkHud.h"
#include "Main/jkMain.h"
#include "Main/jkStrings.h"
#include "jk.h"
#includ... |
/*
TSL2591 for ChibiOS/RT - Copyright (C) 2016 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... |
#include "config.h"
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <uv.h>
#include <unistd.h>
#include "util.h"
#include "server.h"
#include "logo.h"
#define LISTEN_BACKLOG 128
#define PATH_SIZE 1024
struct server_client_t {
struct server_t * server;
uv_tcp_t client;
... |
/* Copyright (c) 2020 <NAME>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.... |
//
// Copyright (c) 2020 Nat!, <NAME>
//
#define _GNU_SOURCE
#include "mulle-js-math.h"
#include "include-private.h"
#include "mulle-js-private.h"
#include <math.h>
#include <string.h>
#include <stdlib.h>
/*
* Math
*/
#define define_math_function_1( functionname) \
static void Math_prototype_ #... |
/****************************************************************
test_io.c
=============================================================
Copyright 1996-2020 <NAME>. All rights reserved.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
... |
/* -*- mode:c; tab-width:8; c-basic-offset:8; indent-tabs-mode:nil; -*- */
/*
Copyright (C) 2018 by <NAME> <<EMAIL>>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either versio... |
/*
*
* 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... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2004 Xilinx, Inc. All rights reserved.
//
// Xilinx, Inc.
// XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A
// COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS
// ONE POSSIBLE ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <sys/shm.h>
#include "processes.h"
#define SHMSIZE 2048
void sem_down(int sem_id, int sem_number) {
struct sembuf sem_oper;
sem_oper.sem_... |
#include "kmeans.h"
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "mpi.h"
#define threshold 0.001
//double threshold = 0.01;
double euclidean_distance(double *v1, double *v2, int length){
int i = 0;
double dist = 0;
for(i=0; i<length; i++){
dist += (v1[i] - v2[i])*(v... |
/***********************************************************
Copyright (c) 1993, Oracle and/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 restrict... |
/*------------------------------------------------------------------------------
* MDK Middleware - Component ::USB:Device
* Copyright (c) 2004-2016 ARM Germany GmbH. All rights reserved.
*------------------------------------------------------------------------------
* Name: USBD_User_CDC_ACM_UART_0.c
* Purpose... |
/*
* This file is part of TISEAN
*
* Copyright (c) 1998-2007 <NAME>, <NAME>, <NAME>
*
* TISEAN 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... |
// Tool to extract unigram counts
//
// GloVe: Global Vectors for Word Representation
// Copyright (c) 2014 The Board of Trustees of
// The Leland Stanford Junior University. All Rights Reserved.
//
// Modification copyright (c) 2016 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// ... |
/*
* Mach Operating System
* Copyright (c) 1991,1990,1989 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of th... |
/*****************************************************************************
** Copyright (C) 1998-2001 <NAME> & <NAME>
** This file is part of the g2 library
**
** 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... |
// meta2tile.c
// written by <NAME> <<EMAIL>>
// License: GPL because this is based on other work in mod_tile
#define _GNU_SOURCE
#include <stdio.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <dirent.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <fcntl.h>
#... |
/*
* Copyright 2019 GoPro Inc.
*
* 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, Vers... |
#define _GNU_SOURCE
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/mman.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <string.h>
#include <stdio.h>
#include <stdatomic.h>
#include "xmalloc.h"
#include "hashmap.h"
typedef struct block {
struct block* next;
} block;
typed... |
/*
* ---- The Unbalanced Tree Search (UTS) Benchmark ----
*
* Copyright (c) 2010 See AUTHORS file for copyright holders
*
* This file is part of the unbalanced tree search benchmark. This
* project is licensed under the MIT Open Source license. See the LICENSE
* file for copyright and licensing i... |
// Copyright 2015 Astex Therapautics Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
//median filter for [m,n] window
#include "mex.h"
#include <stdio.h>
#include <stdlib.h>
void medianfilter(double *data, int fsize1, int fsize2, double *fdata, int mrows, int ncols)
{
int m, n, i, j, k;
int fsize1h = fsize1/2;
int fsize2h = fsize2/2;
int fsizesq;
double *edata;
double *rdata, ... |
// SPDX-License-Identifier: GPL-2.0
/*
* Hibernation support for x86
*
* Copyright (c) 2007 <NAME> <<EMAIL>>
* Copyright (c) 2002 <NAME> <<EMAIL>>
* Copyright (c) 2001 <NAME> <<EMAIL>>
*/
#include <linux/gfp.h>
#include <linux/smp.h>
#include <linux/suspend.h>
#include <linux/scatterlist.h>
#include <linux/kdebug... |
#include "common.h"
#include "ctl.h"
#include <stdio.h>
#include "../argz/argz.h"
static void
gt_path_print(struct mud_path *path, int status, int term)
{
const char *statestr = NULL;
char bindstr[INET6_ADDRSTRLEN];
char publstr[INET6_ADDRSTRLEN];
char peerstr[INET6_ADDRSTRLEN];
char beatstr[32];... |
/*! \file beepchannel.c
* \brief The Implementation of the BEEP Channel object
*
* \author <NAME> <<EMAIL>>
* \date 2003-08-04
*
* \date 2003-08-07
* - added support for the session's channel linked lies.
*
* Copyright 2002-2014
* <NAME> and Adiscon GmbH. All Rights Reserved.
... |
// SPDX-License-Identifier: GPL-2.0+
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/regmap.h>
#include <linux/regulator/driver.h>
enum fan53880_regulator_ids {
FAN53880_LDO1,
FAN53880_LDO2,
FAN53880_LDO3,
FAN53880_LDO4,
FAN53880_BUCK,
FAN53880_BOOST,
};
enum fan53880_registers {
FAN53880_PROD... |
/* Teensy Simple Gamepad
* A Gamepad device with one 2-axis D-pad and 1 or more buttons
* Copyright (C) 2013 <NAME>, <EMAIL>
*
* Derived from keyboard and serial examples for Teensy USB Development Board
* http://www.pjrc.com/teensy/usb_keyboard.html
* http://www.pjrc.com/teensy/usb_serial.html
* Copyright (c) 2... |
/*
* Copyright (c) 2017-2019 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 appl... |
#include "base.h"
#include "usb_lib.h"
#include "usb_desc.h"
#include "led.h"
#include "vcp.h"
uint8_t USART_Rx_Buffer [USART_RX_DATA_SIZE];
uint32_t USART_Rx_ptr_in = 0;
uint32_t USART_Rx_ptr_out = 0;
uint32_t USART_Rx_length = 0;
uint8_t USB_Tx_State = 0;
LINE_CODING g_vcp_linecoding = {
115200, /* baud rate... |
/**
* @file
* @brief
*
* @author <NAME>
* @date 25.06.2020
*/
#include <config/custom_config_qspi.h>
#include <hw_cpm.h>
#include <hw_usb.h>
#include <assert.h>
#include <string.h>
#include <util/log.h>
#include <util/array.h>
#include <util/math.h>
#include <kernel/irq.h>
#include <embox/unit.h>
#include ... |
/*
* libwebsockets - small server side websockets and web server implementation
*
* Copyright (C) 2010 - 2019 <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... |
/*
* run_sim.c
*
* Code generation for function 'run_sim'
*
*/
/* Include files */
#include "rt_nonfinite.h"
#include "run_sim.h"
#include "time_trajj.h"
#include "local.h"
#include "controller.h"
#include "run_sim_data.h"
/* Variable Definitions */
static emlrtRSInfo emlrtRSI = { 13, "run_sim",
"F:\\aerospace... |
/*
* The 3-Clause BSD License:
* Copyright (c) 2020 <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
* notic... |
/**
* main.c
*
* Copyright (c) 2013 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include "fsck.h"
... |
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
typedef short int16_t;
#define ARRAY_CREATE(array, init_capacity, init_size) {\
array = malloc(sizeof(*array)); \
array->data = malloc((init_capacity) * sizeof(*array->data)); \
assert(array->data != NULL); \
array->capacity ... |
#define CL_TARGET_OPENCL_VERSION 220
#include <CL/cl.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define CHECK(functionName, ...) validate(__FILE__, __LINE__, #functionName, functionName(__VA_ARGS__))
#define CHECK_CODE(functionName, errorCode) validate(__FILE__, __LINE__, #functionName, errorCode)
vo... |
/* Copyright (c) 2010 - 2020, Nordic Semiconductor ASA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* l... |
/*******************************************************************************
* Copyright (c) 1991, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... |
#include "vednnConvolutionBackwardData.h"
#include "vednn-def.h"
#include <stdint.h>
#include <stdio.h> // stderr, fprintf
static inline vednnError_t
vednnConvolutionBackwardData_wrapper(
vednnConvBackwardData_t pFunc,
VEDNN_CONVBKD_ARGS )
{
#ifndef VEDNN_USE_OPENMP
return pFunc(VEDNN_CONVBKD_ARGS_... |
/* Copyright (c) 2010 - 2020, Nordic Semiconductor ASA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* l... |
#include "wsock.h"
wsock_t* wsock_open(const char* url) {
wsock_t* conn = malloc(sizeof(wsock_t));
if(url_parse(url, &(conn->url)) < 0) {
free(conn);
return NULL;
}
if(conn->url.proto != KMJ_URL_PROTO_WS &&
conn->url.proto != KMJ_URL_PROTO_WSS)
{
free(conn);
... |
//
// Use USART serial communication between ATmega168 and PC
// Use external interrupt INT0 and INT1 on ATmega168
// Use Interrupt Service Routine (ISR)
//
// Connecting ATmega168 with PC use USB serial adaptor (for Mac)
// 1. In terminal, type: ls /dev/*usbserial*
// 2. Find: cu.usbserial-XXXX
// 3. conne... |
/*
=============================================================================
Copyright (c) 2013, Institute for Microelectronics, TU Wien
http://www.iue.tuwien.ac.at
-----------------
ViennaWD - The Vienna Wigner Decoherence Algorithms
Ensembl... |
/* $OpenBSD: asc7621.c,v 1.4 2007/10/31 20:46:17 cnst Exp $ */
/*
* Copyright (c) 2007 <NAME>
* Copyright (c) 2007 <NAME>
*
* 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 notic... |
/*
* Copyright 2013-2017 Guardtime, Inc.
*
* This file is part of the Guardtime client SDK.
*
* 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/LICENS... |
#include "kmeans.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL.h>
#define N_CLUSTERS 2
#define N_FEATURES 3
const char* DISPLAY_NAMES[] = {
"Original",
"Threshold",
};
typedef enum {
SHOW_ORIGINAL,
SHOW_THRESHOLD
} DisplayMode;
struc... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <pthread.h>
#include <jansson.h>
#include "log.h"
#include "args.h"
#include "json_get.h"
#include "parse_glist.h"
#include "index_set.h"
#include "exec_glist.h"
static ARGS_T *args;
s... |
/**
* \file
*
* \brief Unit tests for AFEC driver.
*
* Copyright (c) 2013-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 the following conditions are met:... |
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <time.h>
#include <stdio.h>
#include <stdint.h>
#include "main.h"
#define CREATE_TIMER 1
#define UPDATE_TIMER 0
extern struct rte_ring *cdr_ring;
typedef struct session {
uint64_t session_id;
time_t ts;
struct session *next;
struct session *la... |
/* $OpenBSD: ecp_nist.c,v 1.9 2014/07/12 16:03:37 miod Exp $ */
/*
* Written by <NAME> for the OpenSSL project.
*/
/* ====================================================================
* Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with... |
// This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
#include <scheduler.h>
#include <buddyMM.h>
#include <consoleManager.h>
#include <simpleMM.h>
#include <lib.h>
#include <sysCall.h>
#include <defs.h>
#include <st... |
/*
* SpanDSP - a series of DSP components for telephony
*
* lpc10_placev.c - LPC10 low bit rate speech codec.
*
* Written by <NAME> <<EMAIL>>
*
* Copyright (C) 2006 <NAME>
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser... |
/*
* 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”), to deal in the Software
* without restriction, including without limitation the rights to use, copy, modify, merge,
* publish, distribute, ... |
/** @file
Implements various helper functions to handle repositories.
*/
#include "repository.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdbool.h>
#include <inttypes.h>
#include "CRegion/alloc-growable.h"
#include "safe-math.h... |
/*
command-line tool to merge several PIC16F1454 Intel Hex files
Copyright (C) 2015 <NAME>
say you want to send a single Intel Hex file to production that
combines both a bootloader and your upgradeable application
this utility performs such a merging operation
PIC config bits are cher... |
#include <time.h>
#include "mtwister.h"
#define MAX_UINT32_I (4294967295) // 2^32 - 1 -- as an integer
#define MAX_UINT32_P1_I (4294967296) // 2^32 -- as an integer
#define MAX_UINT32_D ((double) MAX_UINT32_I) // 2^32 - 1 -- as a double
#define MAX_UINT32_P1_D ((double) MAX_... |
/*-
* Copyright (c) 2009 <NAME> <<EMAIL>>
* Copyright (c) 2010 <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
... |
/**
* Copyright (c) 2008 <NAME>
* All rights reserved. See LICENSE and/or COPYING for details.
*
* vim: shiftwidth=4
*/
#include "amalgalite3.h"
#include <stdio.h>
extern VALUE mA;
VALUE cAR;
VALUE cARB;
VALUE eARB_Error;
/*
* cleanup the datatbase and statment values if they are currently open and then
* ... |
/*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
* In jurisdict... |
/******************************************************************************
*
* Copyright (C) 2009 - 2017 Xilinx, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Softw... |
// SHA-1 code Copyright 2007 <NAME> <<EMAIL>>
// license LGPL
// based on public domain SHA-1 code by <NAME> <<EMAIL>>
#include "common.h"
#include "sha1.h"
typedef struct AVSHA1 {
uint64_t count;
uint8_t buffer[64];
uint32_t state[5];
} AVSHA1;
#define rol(value, bits) (((value) << (bits)) | ((value) >>... |
/*
Author: <NAME> <<EMAIL>>
Copyright (c) 2015 Cromulence LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, m... |
/* GStreamer
*
* unit test for GstBitReader
*
* Copyright (C) <2008> <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at... |
/*
Copyright (C) 2020 <NAME>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.