text stringlengths 3.12k 18.7k |
|---|
/*
Copyright 2020 <NAME>, <NAME>
<EMAIL>
<EMAIL>
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 applicab... |
#include "deca_device_api.h"
#include "dw1000-util.h"
#include <math.h>
/**
* Estimate the transmission time of a frame in nanoseconds
* dwt_config_t dwt_config Configuration struct of the DW1000
* uint16_t framelength Framelength including the 2-Byte CRC
* bool only_rmarker Option to compute on... |
/*
* fnv_64 - 64 bit Fowler/Noll/Vo hash of a buffer or string
*
* @(#) $Revision: 1.5 $
* @(#) $Id: fnv64.c,v 1.5 2001/05/30 15:34:30 chongo Exp $
* @(#) $Source: /usr/local/src/cmd/fnv/RCS/fnv64.c,v $
*
***
*
* usage:
* fnv064 [-b bcnt] [-m [-v]] [-s arg] [arg ...]
* fnv0_64 [-b bcnt] [-m [-v]] [-s arg] [a... |
/*
* Copyright (c) 2013-2015, Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the ... |
/*
** Copyright (C) 2019-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, modify, merg... |
#include "tween.h"
#include "config.h"
#include <math.h>
#pragma region Tween Functions
f32 tween_linear(f32 t, f32 i, f32 f, f32 d) {
return (f - i) * t / d + i;
}
f32 tween_start_value(f32 t, f32 i, f32 f, f32 d) {
return i;
}
f32 tween_end_value(f32 t, f32 i, f32 f, f32 d) {
return f;
}
f32 tween_ea... |
#include "minimal_opencv.h"
#include "linmath.h"
#include "os_generic.h"
#include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
void print_mat(const CvMat *M) {
for (int i = 0; i < M->rows; i++) {
for (int j = 0; j < M->cols; j++) {
printf("%f,\t", cvmGet(M, i, j));
}
printf("\n");
}
... |
void admin_menu();
// CREATE FUNCTION
void create() {
char temp[2];
int n = 5, i, j;
char prod_names[5][20] = {
"Corn Flakes",
"Lays",
"Monster Energy",
"Heinz Can of Beans",
"Pepsi"
};
char prod_description[5][100] = {
"Nourishing and Tasty ready-2-ea... |
/************************************************************
Very Advanced Snake on Very Small Display
A game by <NAME> and <NAME>, developed in the KTH
course IS1200 during spring 2021.
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ai.c ~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kalle is the main author of ai.c
The AI mode is essenti... |
/* $OpenBSD: spc.c,v 1.8 2004/08/30 17:01:43 miod Exp $ */
/* $NetBSD: spc.c,v 1.2 2003/11/17 14:37:59 tsutsui Exp $ */
/*
* Copyright (c) 2003 <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... |
/*-
* Copyright (c) 2007 <NAME>
* Copyright (c) 2007 <NAME>
* Copyright (c) 2007 <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 t... |
/**
* @author <NAME>
* @file phonebook.c
* @name Phonebook
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
/*
1) help x
2) print x
3) inserimento x
4) cancelazzione con compattazione x
5) modifica contatto x
6) ordinamento x
7) ... |
/******************************************************************************
*
* Copyright (C) 2009 - 2014 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... |
/*
* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the
* disclaimer below) provided that the following conditions are met:
*
* * Redistributions of source ... |
/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferab... |
/*
* Copyright 2018-2021 Redis Labs Ltd. and Contributors
*
* This file is available under the Redis Labs Source Available License Agreement
*/
#include "proc_pagerank.h"
#include "../RG.h"
#include "../value.h"
#include "../util/arr.h"
#include "../query_ctx.h"
#include "../util/rmalloc.h"
#include "../graph/graphcon... |
/*
* Copyright (c) 2018. Uniquid Inc. or its affiliates. All Rights Reserved.
*
* License is in the "LICENSE" file accompanying this file.
* See the License for the specific language governing permissions and limitations under the License.
*/
/*
* mqtt_transport.c
*
* Created on: 18/nov/2016
* Author: <... |
#pragma once
typedef size_t gdf_size_type;
typedef gdf_size_type gdf_index_type;
typedef unsigned char gdf_valid_type;
typedef int64_t gdf_date64;
typedef int32_t gdf_date32;
typedef int32_t gdf_category;
/* --------------------------------------------------------------------------*/
/**
* @Synopsis These enums in... |
/*
* @filename: ir.c
* @Author : nghiaphung
*/
/******************************************************************************/
/**! INCLUDE */
/******************************************************************************/
#include "stm32f0xx_gpio.h... |
#include "morse.h"
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#ifdef MORSE_MAIN
#include <unistd.h>
#endif // MORSE_MAIN
#define OFFSET 48
#define MAX_CHAR 'Z'
// --------------------------------------------------------------------
vo... |
// Run this program with :
// gcc -Wall -lm density.c && ./a.out <density.txt >density.sh
//
// The input to it is a list of OO Calc expressions (sums)
// Only the ranges are extracted. The actual calculations are ignored.
// First it will output the osmosis command for generating the extracts
// Then it will output a... |
/****************************************************************/
/* */
/* de.h */
/* */
/* Definitions for the "Disk editor". */
/* */
/****************************************************************/
/* origination 1989-Jan-15 <NAME> */
/*********************************... |
#include "sr-main.h"
#include <sys/resource.h>
#define HOST_NAME_SIZE 64
static int init_sockaddr_in(struct sockaddr_in *sa_in, char *host, char *port) {
struct hostent *he = gethostbyname(host);
if (he == NULL || he->h_addr_list == NULL || (he->h_addr_list)[0] == NULL ) {
log_msg(ERROR, "%s: gethost... |
/*
* OpenHMD - Free and Open Source API and drivers for immersive technology.
* Copyright (C) 2013 <NAME>.
* Copyright (C) 2013 <NAME>.
* Distributed under the Boost 1.0 licence, see LICENSE for full text.
*/
/* OpenGL Test - GL Helper Functions Implementation */
#include "gl.h"
#include <string.h>
#include <mat... |
/* ldHgGene - load a set of gene predictions from GFF or GTF file into
* mySQL database. */
/* Copyright (C) 2011 The Regents of the University of California
* See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
#include "common.h"
#include "options.h"
#include "hash.h"
#include "dyst... |
/*
* soundmmos2.c - Implementation of the MMOS2 sound device
*
* Written by
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General... |
/*
owltsim.c: one-way light time delay simulator.
Author: <NAME>, JPL
Copyright (c) 2008, California Institute of Technology.
ALL RIGHTS RESERVED. U.S. Government Sponsorship
acknowledged.
*/
#include "platform.h"
#include "lyst.h"
#include "ion.h"
#define MAX_DATAGRAM 65535
typedef struct
{
char ... |
/* $OpenBSD: m8820x.c,v 1.16 2014/06/03 12:11:19 aoyama Exp $ */
/*
* Copyright (c) 2004, <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 copyrig... |
// Slowly show a single sample, frame by frame. Used for exporting to movie.
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include <string.h>
#include <pthread.h>
#include <libhackrf/hackrf.h>
#include <GLFW/glfw3.h>
#include "easypng.h"
const int SAMPLES_STEP = 1... |
// Copyright 2012 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 copyright notice, this
// list of conditio... |
// SPDX-License-Identifier: Apache-2.0
/*
* NVRAM Format as specified in PAPR
*
* Copyright 2013-2019 IBM Corp.
*/
#include <skiboot.h>
#include <nvram.h>
struct chrp_nvram_hdr {
uint8_t sig;
uint8_t cksum;
be16 len;
char name[12];
};
static struct chrp_nvram_hdr *skiboot_part_hdr;
#define NVRAM_SIG_FW_... |
/*
i2cdetect.c - a user-space program to scan for I2C devices
Copyright (C) 1999-2004 <NAME> <<EMAIL>>, and
<NAME> <<EMAIL>>
Copyright (C) 2004-2012 <NAME> <<EMAIL>>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Gen... |
/* $Source: bitbucket.org:berkeleylab/gasnet.git/tests/testcudauva.c $
* Copyright (c) 2021, The Regents of the University of California
*
* Description: test of GEX_MK_CLASS_CUDA_UVA
*
* This test verifies correctness of gex_MK_Create() for the device class
* GEX_MK_CLASS_CUDA_UVA. This includes checking the ex... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "simple_system_common.h"
int putchar(int c) {
DEV_WRITE(SIM_CTRL_BASE + SIM_CTRL_OUT, (unsigned char)c);
return c;
}
int puts(const char *str) {
while ... |
/* The CPM2 internal interrupt controller. It is usually
* the only interrupt controller.
* There are two 32-bit registers (high/low) for up to 64
* possible interrupts.
*
* Now, the fun starts.....Interrupt Numbers DO NOT MAP
* in a simple arithmetic fashion to mask or pending registers.
* That is, interrupt 4... |
/* channel_rawfile
*
* World's simplest host file access: responds to messages to open a file,
* access blocks, and close the file.
*
* Supports basic file type mapping (using filename suffixes in the host FS).
*
* 1 Oct 2021 ME
*
* MIT License
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby grant... |
/*
* Copyright 2016-2021 NXP
* 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 list
* of conditions and th... |
/****************************************************************************
*
* Copyright (c) 2017-2018 <NAME> <<EMAIL>>
*
* This file is part of Zeroconf-Lookup.
* Project home: https://www.railduino.de/zeroconf-lookup
* Source code: https://github.com/railduino/zeroconf-lookup.git
*
* Permission is hereby ... |
/**************************************************************************
*
* Copyright (C) 2006 <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, incl... |
/**
* Copyright (2017) Baidu Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... |
#include <pic18f46k80.h>
#include <xc.h>
#include "CAN_CMT.h"
extern unsigned char data1[8], data2[8];
void CAN_Initialise()
{
/*CAN needs to be in CONFIG mode to edit the following settings.
* We do that by editing CANCONbits.REQOP (Bits 7-5).*/
CANCON = 0b10000000;
/*To ensure we do... |
//#include <stdlib.h>
//#include <stdio.h>
#include <string.h>
#include "types.h"
#include "smartconfig/sc_decode.h"
#define IEEE80211_ADDR_LEN 6
typedef struct mac_frame{
uint8_t i_fc[2];
uint8_t i_dur[2];
uint8_t i_addr1[IEEE80211_ADDR_LEN];
uint8_t i_addr2[IEEE80211_ADDR_LEN];
uint8_t i_addr3[IEEE80211_... |
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-09-17 MurphyZhao first implementation
*/
#include <rtthread.h>
#include <stdint.h>
#include "iotb_event.h"
#include "iotb_lcd_process.h"
#include "i... |
/**
* @file main.c
* @author <NAME>
* @date 25/8/2016
* @brief Program to interact with scales and solenoids
*
* This program uses C to interact with the hardware in
* gravimetrics, using standard C commands that will compile
* on most systems, although aimed primarily for the Raspberry Pi
*
* @see https://... |
/* rts/src/arch/$ARCH/arch_code.c
*
* Functions for recognising and manipulating architecture-specific code
* sequences.
*
* Copyright 2013 Ravenbrook Limited <http://www.ravenbrook.com/>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
#include <stdio.h>
#include <unistd.h>
#include <sys/wait.h>
#include <stdlib.h>
#include <string.h>
#include <ncurses.h>
#include <magic.h>
#include <errno.h>
#include <sys/ioctl.h>
#include "run.h"
#include "entry.h"
#include "w3m.c"
#define LEN(x) sizeof(x)/sizeof(*x)
char* terminal[] = {"st", "-e"};
char* fileop... |
/*
* CC_DICTIONARY.C
*
* This file is part of the CCollections library.
*
* CCollections is licensed under the BSD-2-Clause License (FreeBSD).
* Copyright (c) 2012, <NAME> and <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted ... |
/*
FMIPT.c .MEX file to perform a forward
median-interpolating pyramid transform (MIPT)
on an input data sequence
The calling syntax is:
wc = FMIPT(x,L,D)
*/
/* If x is a data sequence of length n=3^J, then the output is a sequence of
length 2.n, ... |
//Program Information//////////////////////////////////////////////////////////////////////////////
/*
* @file StringUtils.c
*
* @version 1.00
* <NAME> (22 January 2019)
* Initial Program Build.
*/
#include "StringUtils.h"
// global constants
const int MAX_STR_LEN = 200;
const int STD_STR_LEN ... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
* This is GNU Go, a Go program. Contact <EMAIL>, or see *
* http://www.gnu.org/software/gnugo/ for more information. *
* *
* Copyright 1999, 2000, 2001, 2002, 2003... |
/*
* ESPRESSIF MIT License
*
* Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
*
* Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case,
* it is free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in th... |
/*
* Copyright 2014-2018, 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 ... |
#include <assert.h>
#include <string.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include "asl.h"
#include "mod.h"
#include "modloader.h"
// This memory is managed in main.c...
char* modloader_modpath = NULL;
// This isn't, but is used by main.c
asl_iv_t modloader_gfx_rotation = {0, NULL};
// ---- ... |
//-----------------------------------------------------------------------------
// roadway.c
//
// Project: EPA SWMM5
// Version: 5.1
// Date: 08/05/15 (Build 5.1.010)
// 03/14/17 (Build 5.1.012)
// Author: <NAME>
//
// Roadway Weir module for SWMM5
//
// Computes flow overtopping ... |
/*
Copyright 2009, UCAR/Unidata
See COPYRIGHT file for copying and redistribution conditions.
This program tests netcdf-4 performance with some AR-4 3D data.
$Id: tst_ar4_3d.c,v 1.1 2010/01/11 19:28:28 ed Exp $
*/
#include <nc_tests.h>
#include <time.h>
#include <sys/time.h>
#include <unistd.h>
#define MEGABYTE 10... |
/*
* Copyright (c) 2019, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <common/debug.h>
#include <devapc.h>
#include <drivers/console.h>
#include <lib/mmio.h>
static void set_master_transaction(uint32_t master_index,
enum TRANSACTION transaction_ty... |
/*******************************************************************************
* - FILE: f_index.h
* - DESC: F_INDEX Object. Indexes HMM and FASTA files for fast lookup.
*******************************************************************************/
/* imports */
#include <stdio.h>
#include <unistd.h>... |
// SPDX-License-Identifier: GPL-2.0
/*
* ACRN: Memory mapping management
*
* Copyright (C) 2020 Intel Corporation. All rights reserved.
*
* Authors:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#include <linux/io.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include "acrn_drv.h"
static int modify_region(stru... |
/* Copyright (c) 2008-2009, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... |
/*
===============================================================================
This source file is part of libextant
libextant is made available under the MIT License.
Copyright (c) 2016-2020 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated docum... |
/*
* Copyright(c) 2017 Intel Corporation.
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 o... |
/**
* \file demoRaster.c
*
* \brief This file contains Raster related functions.
*
*/
/*
* Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
*/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
/*
Original code from <NAME>
https://codereview.stackexchange.com/questions/175113/multithreaded-matrix-multiplication-on-unix-in-c
Adapted for OAC - 2021-1
gcc -pthread AxBpthreads.c -o AxBpthreads
./AxBpthreads
To change number of threads for experiments, change the line
#define NTHREADS X
*/
//matrix.h
#include ... |
/* PPF_Print.c */
/* <NAME> -- 23 Oct 96 */
/* Prototype parallel print function */
/*
* Copyright (c) 1996-1998 The Regents of the Univerity of California
* and Lawrence Livermore National Laboratory
* All rights reserved.
*/
/* Modification history */
/*
* 31 Oct 96 johnmay Accept NULL as input string... |
#include "timer_intern.h"
#include "residents.h"
// Include our Protos
#include "exec_interface.h"
//#include "timer.h"
static char DevName[] = "timer.device";
static char Version[] = "\0$VER: timer.device 0.1 ("__DATE__")\r\n";
#define TIMER_INT_PRI 0
#define TICK 128
#define IRQ_CLK 0
#define IRQ_RTC 8
#pragma ... |
/**
* dht11.c:
* Read temperature and humidity from a dht11 sensor on a Raspberry pi,
* then send it to the RunAbove IoT lab opentsdb server via a telnet session on a TLS connection
* the metrics used are <metric.prefix>.temp and <metric.prefix>.hum with the current timestamp
*
* You need the libraries libss... |
/*
* Copyright (c) 2014 <NAME>
* See the file LICENCE for copying permission.
*/
#include <xc.h>
#include <plib/delays.h>
#include <plib/usart.h>
#include <plib/i2c.h>
#include <plib/pwm.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "config_bits.h"
#include "hmc5883l.h"
#include "sn754410.h"
#i... |
/*
* TI OMAP processor's Multichannel SPI emulation.
*
* Copyright (C) 2007-2009 Nokia Corporation
*
* Original code for OMAP2 by <NAME> <<EMAIL>>
*
* 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 ... |
/**
* @file
*
* @copyright
* Copyright 2017 <NAME>
* <BR>
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* <BR>
* 1. Redistributions of source code must retain the above copyright notice,
* this list of con... |
// Code partly taken from the GPU_FFT release 3.0 from
// http://www.aholme.co.uk/GPU_FFT/Main.htm
/*
BCM2835 "GPU_FFT" release 3.0
Copyright (c) 2015, <NAME>.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are ... |
#include "paths.h"
#include "config.h"
#include <string.h>
#include "ibm.h"
#define safe_strncpy(a,b,n) do { strncpy((a),(b),(n)-1); (a)[(n)-1] = 0; } while (0)
char default_roms_paths[4096];
char default_nvr_path[512];
char default_configs_path[512];
char default_logs_path[512];
char default_screenshots_p... |
/*
G N O K I I
A Linux/Unix toolset and driver for the mobile phones.
This file is part of gnokii.
Copyright (C) 1999-2000 <NAME> & <NAME>.
Copyright (C) 1999-2000 <NAME>, <NAME>
Copyright (C) 1999-2006 <NAME>
Copyright (C) 2000-2002 <NAME>, <NAME>, <NAME>
Copyright (C) 2001 <NAME>, <NAME>... |
// Advent of Code 2021 - Day 15
// Written by <NAME>
// I like to think this program turned out long because I also made it easy to understand, but I'm not sure. I think
// the logic is quite simple, although there's lot of math being done on the spot. You have to comprehend how the data
// is organized beforehand.
#... |
#include <ctype.h>
#include <string.h>
#include <limits.h>
#include "hexdump.h"
#include "layout.h"
#include "decoder/decoder.h"
#include "list.h"
#include "monitor.h"
#define HD_LIST_VIEW 0
#define HD_WINDOW 1
#define HD_NORMAL_LEN 76
#define HD_WIDE_LEN 75
#define HD_ASCII_IDX 60
#define BUFSZ 1024
// TODO: Remove ... |
/* Licensed under BSD-MIT - see LICENSE file for details */
#include <ccan/net/net.h>
#include <ccan/noerr/noerr.h>
#include <poll.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <netinet/in.h>
#include <assert.h>
struct addrinfo *net_c... |
/*! \file bcma_bcmlt_util.c
*
* Functions based on bcmlt library.
*/
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
#include <bsl/bsl.h>
#include <shr/shr_err... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#ifndef NOMPI
#include <mpi.h>
#endif
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/file.h>
#include <unistd.h>
#include <gsl/gsl_rng.h>
#include "allvars.h"
#include "proto.h"
/*! \file restart.c
* \brie... |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include "yunit/yunit.h"
#include "yunit/yts.h"
#include <aos/kernel.h>
#include <ulog/ulog.h>
#include <network/websoc/librws.h>
#define TAG "websoc_yts"
#define TEST_SCHEME "ws"
#define TEST_HOST "demos.kaazing... |
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD
// All rights reserved.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <esp_log.h>
#include <esp_wwe.h>
#include <i2s_stream.h>
#include <audio_board.h>
#include ... |
/*
eclso_ext.c
Author: <NAME> (<EMAIL>)
Project Supervisor: <NAME> (<EMAIL>)
Co-author of HSLTP extensions: <NAME> (<EMAIL>)
Copyright (c) 2016, Alma Mater Studiorum, University of Bologna
All rights reserved.
This file implements protocol adapter extension for HSLTP mode
* */
#include <stdio.h>
#include <sys/... |
/*-
* Based on BSD-licensed source modules in the Linux iwlwifi driver,
* which were used as the reference documentation for this implementation.
*
* Driver version we are currently based off of is
* Linux 4.7.3 (tag id d7f6728f57e3ecbb7ef34eb7d9f564d514775d75)
*
*************************************************... |
/*
Copyright (c) 2016 <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,
sub... |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2018 MediaTek Inc.
* Author: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#include <linux/clk-provider.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include "clk-mtk.h"
#include "clk-gate.... |
/*
* PostScript driver Type1 font functions
*
* Copyright 2002 <NAME> for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (a... |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file dw_dmac_mux.c
* @brief CSI Source File for DMAC MUX Driver
* @version V1.0
* @date 16. September 2010
*****************************************************... |
// SPDX-License-Identifier: GPL-2.0
/* Copyright 2019 Collabora ltd. */
#include <linux/clk.h>
#include <linux/devfreq.h>
#include <linux/devfreq_cooling.h>
#include <linux/platform_device.h>
#include <linux/pm_opp.h>
#include "panfrost_device.h"
#include "panfrost_devfreq.h"
static void panfrost_devfreq_update_util... |
#include <u.h>
#include <libc.h>
#include <auth.h>
#include <fcall.h>
#include <thread.h>
#include <9p.h>
/*
* To avoid deadlock, the following rules must be followed.
* Always lock child then parent, never parent then child.
* If holding the free file lock, do not lock any Files.
*/
struct Filelist
{
File *f;
F... |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// BK driver loader project. Version 2.
//
// module: pesup.h
// description:
// BK helper library. PE-structure support routines.
#include "..\bkgen\main.h"
#include "pesup.h"
#include "crtsup.h"
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <GL/gl.h>
#include <zbuffer.h>
#include <soso.h>
#ifndef M_PI
# define M_PI 3.14159265
#endif
int __errno = 0;
/*
* Draw a gear wheel. You'll probably want to call this function when
*... |
/****************************************************************************
*
* Copyright (C) 2005 - 2012 by Vivante Corp.
*
* 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 ... |
/*
Copyright (C) 1997, 1998, 1999 Hewlett-Packard Company
ALL RIGHTS RESERVED.
The enclosed software and documentation includes copyrighted works
of Hewlett-Packard Co. For as long as you comply with the following
limitations, you are hereby authorized to (i) use, reproduce,... |
/**
Author: <NAME> and <NAME>
Description: Runs the client, draw graphics and handle inputs.
Created: 13 april 2012
*/
#include <SDL.h>
#include <SDL_opengl.h>
#include <stdlib.h>
#include <stdio.h>
#include "includes/graphics/structure.h"
#include "includes/network/udp_protocol.h"
#include "includes/cbuffer.h"... |
/* *INDENT-OFF* */
/*INDENT OFF*/
/* Description: C source code for random number functions
*/
/******************************************************************************
* This software is covered by the zlib/libpng license.
* The zlib/libpng license is a recognized open source license by
* the Open Source Initiat... |
#include <stdint.h>
#include "kernel/interrupt.h"
#include "driver/ioport.h"
#include "driver/vga.h"
#include "driver/keyboard.h"
#define lo16(addr) (uint16_t)((addr) & 0xffff)
#define hi16(addr) (uint16_t)(((addr) >> 16) & 0xffff)
// ports:
// 0x20 primary PIC (PIC1) command and status register
#define PIC1_CTRL 0x2... |
#include "hb-example.h"
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
typedef unsigned int uint;
typedef unsigned long ulong;
#include <ft2build.h>
#include FT_FREETYPE_H
#include <freetype/ftadvanc.h>
#include <freetype/ftsnames.h>
#include <freetype/tttables.h>
#include <harfbuzz/hb.h>
#include <ha... |
#include "chip8.h"
static void disassemble_invalid(Chip8Opcode* opcode, FILE* f) {
(void) opcode;
fprintf(f, "Invalid Opcode 0x%04x", opcode->opcode);
}
static void disassemble_cls(Chip8Opcode* opcode, FILE* f) {
(void) opcode;
fprintf(f, "CLS");
}
static void disassemble_ret(Chip8Opcode* opcode, FIL... |
/*
* usb packet capture
*
* Copyright (c) 2021 <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 "hw/usb.h"
#define PCAP_MAGIC 0xa1b2c3d4
#define PCAP_MAJOR ... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "vmtype.h"
#include "vmsystem.h"
#include "vmthread.h"
#include "vmchset.h"
#include "vmfs.h"
#include "vmpwr.h"
#include "vmgsm_sim.h"
#include "vmtimer.h"
#include "vmdcl.h"
#include "vmdcl_gpio.h"
#include "vmdcl_sio.h"
#include "log.h"
#include "re... |
/**
*
* \file
*
* \brief This module contains NMC1000 bus wrapper APIs implementation.
*
* Copyright (c) 2016 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 t... |
/*
* Copyright (c) 2013-2015, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.