text stringlengths 3.08k 10.5k |
|---|
// SPDX-License-Identifier: GPL-2.0+
/*
* Test module for the BuilderBot AVR multifunction core driver.
*
* Copyright (C) 2018 <NAME>
*/
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/kernel.h>
#include <linux/mfd/bb-avr.h>
#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/p... |
/*
* Copyright (c) 2012 <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, merge, pu... |
/**************************************************************************/
/* */
/* P1 - MI amb sockets TCP/IP - Part I */
/* Fitxer ser.c que implementa el servidor de MI sobre la capa de */
/* transpor... |
#include <math.h>
#include <stdlib.h>
#include "system.h"
#include "neighbor.h"
#include "object.h"
#include "units.h"
enum TABLE_ENUM { ARBITRARY_INTERVALS,UNIFORM_INTERVALS};
typedef struct table_element_struct
{
double x; double *a;
} TABLE_ELEMENT;
typedef struct table_struct
{
unsigned nspecies;
char **spec... |
//
// webserverconnection.c
// AirFloat
//
// Copyright (c) 2013, <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:
//
// Redistributions of source code must retain the above copyr... |
/* see LICENSE file for copyright and license details */
/* split stringport input into a string array for each token */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "region.h"
#include "stringport.h"
#include "tokenizer.h"
#include "variables.h"
#include "reporting.h"
#include "parser.h"
#inclu... |
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <pthread.h>
#include "RandomX/src/randomx.h"
#include "wrapper_randomx.h"
pthread_mutex_t _randomXMUTEX = PTHREAD_MUTEX_INITIALIZER;
bool _randomXIDsZeroed = false;
bool _randomXIDs[1024];
randomx_cache* _randomXCaches[1024];
randomx_dataset* _ra... |
#include "vfs_private.h"
#include "cx/core/error.h"
VFSFile *_vfsOpen(VFS *vfs, strref path, int flags)
{
VFSFile *ret = 0;
string rpath = 0;
VFSMount *cowmount = 0;
string cowrpath = 0;
uint32 pflags = VFS_FindCache;
// get the provider
if (flags & (FS_Write | FS_Truncate | FS_Create))
... |
#include "ColGen.h"
int *randperm (int n, int seed)
{
int *p, k, j, t;
if (seed == 0) {
return (NULL);
} /* return p = NULL (identity) */
p = malloc(n * sizeof(int)); /* allocate result */
if (!p) {
return (NULL);
} ... |
/* CREDITS: https://gist.github.com/Thelouras58/a3b04a3df0d167743084ff94442f52d8 */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include <sys/types.h>
#include "gmp.h"
gmp_randstate_t stat;
void computeNandF(mpz_t* q, mpz_t* p, mpz_t *phi, mpz_t* n) {
mp... |
#ifndef F_CPU
#define F_CPU 1000000UL
#endif
#ifndef BAUD
#define BAUD 9600UL
#endif
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/setbaud.h>
#include <util/delay.h>
#include<stdlib.h>
//Play with these 2 values a bit to determine how responsive the car is
#define HYSTERISIS 8L
#define ACCELERATION 6... |
/*
* <NAME>
* Exercicio 16 - Lab. Prog. ECP 2017-2
* Word Hunter!
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <ctype.h>
typedef enum direcao_ { horz, vert, diag } direcao;
char **alocaMatriz(int lin, int col){
char **p;
int i, j;
p = (char**)(malloc(lin * s... |
/******************************************************************************
* Copyright (c) Intel Corporation - All rights reserved. *
* This file is part of the LIBXSMM library. *
* *
... |
#include "main_suppl_funs.h"
int cont;
int solve_expr() {
cont = 0;
/*To take infinite input
* linked list is used*/
list inp;
/*To maintain token information.*/
get_info info;
init(&inp);
init_info(&info);
/*Input*/
char ch;
while ((ch = getchar()) != ... |
/* $Id$ */
/*
* %PSC_START_COPYRIGHT%
* -----------------------------------------------------------------------------
* Copyright (c) 2006-2015, Pittsburgh Supercomputing Center (PSC).
*
* Permission to use, copy, modify, and distribute this software
* for any purpose with or without fee is hereby granted, provid... |
// <NAME> - Septembre 2020
#include <stdio.h> //
#include <string.h> // pour les macros de test
#include "nombre_non_signe.h"
char tab[30];
// Macros de test des fonctions
#define testEQ(ok,res) sprintf(tab,"%u",res); printString("E:"); printString(tab); sprintf(tab,"%u",ok); printString(", F:"); printString(tab);... |
#include "../shared/azure_iot.h"
#include "../shared/globals.h"
#include "../shared/oem/board.h"
#include "../shared/peripheral.h"
#include "../shared/terminate.h"
#include "../shared/timer.h"
#include "applibs_versions.h"
#include <applibs/gpio.h>
#include <applibs/log.h>
#include <stdbool.h>
#include <stdio.h>
#incl... |
#include "config.h"
#include "pio.h"
#include "spi.h"
#include "spi_adc.h"
/* The ADS7870 is 12 bit while the ADS7871 is 14 bit. */
enum
{
ADS7870_CONVERT = 0x80,
ADS7870_REG_READ = 0x40,
ADS7870_REG_WRITE = 0x00,
ADS7870_REG_16BIT = 0x20
};
/* Register addresses. */
typedef enu... |
/*
* Copyright (c) 2017 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... |
/* Copyright (c) <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the follo... |
#include "milone.h"
struct IntList;
struct IntList;
struct IntIntTuple2_;
bool pat_or_Program_isZeroOrOne(int x_);
void pat_or_Program_simpleCase(void);
bool pat_or_Program_startsWithDoubleBits(struct IntList const* xs_);
void pat_or_Program_nestedCase(void);
bool pat_or_Program_performComplexMatching(struct In... |
/* Copyright (c) 2014 <NAME>, <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, ... |
/*
* Copyright (c) 2003-2004, <NAME>. All rights reserved.
* This file is part of KISS FFT - https://github.com/mborgerding/kissfft
*
* SPDX-License-Identifier: BSD-3-Clause
* See COPYING file for more information.
*/
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <unis... |
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdio.h>
// void transfer()
void *clientHandler(void *cs){
printf("In client handler\n");
char fileBuffer[512];
char destinationFolder[512];
int clientSo... |
/*
* Copyright [1999-2017] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
*
* 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.o... |
#include "scene_name.h"
#include "interface.h"
#include "ili/UTFT.h"
#include "ili/DefaultFonts.h"
#include "delay.h"
#include <string.h>
#include "scene_solt_calibration.h"
static const uint16_t NAME_TOP_BACK_COLOR = VGA_BLACK;
static const uint16_t NAME_TOP_BACK_COLOR_SELECTED = UTFT_COLOR(64, 64, 255);
static cons... |
/*-
* Copyright (c) 2003, 2004 <NAME> <<EMAIL>>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#include <asn_internal.h>
#include <PrintableString.h>
/*
* PrintableString basic type description.
*/
static ber_tlv_tag_t asn_DEF_PrintableString_tags[] = {
(ASN_TAG... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "config.h"
#include "evpath.h"
#include "ev_dfg.h"
#include "test_support.h"
static int status;
static EVclient test_client;
static
int
simple_handler(CManager cm, void *vevent, void *client_data, attr_list attrs)
{
simple_rec_ptr event = vevent... |
/** @file
@brief STM32F411 Nucreo 簡易キードライバ
@date 2015.09.22
@author <NAME>
@note
PC4 KEY3
PC5 KEY2
PB2 KEY1
PB12 KEY0
*/
#include "interrupt.h"
#include "device.h"
#include "sysevent.h"
#include "key.h"
#include "tkprintf.h"
#include "timer.h"
#include "stm32f4xx_hal.h"
//#define D... |
/*
* 20153230 안준홍
* 멀티프로세스/쓰레드 epoll 사용 예제
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <pthread.h>
#include <sys/socket.h>
#include <sys/epoll.h>
#include <sys/types.h>
#include <net/if.h>
#include <arpa/inet.h>
#include <errno.h>
#define SERV_PORT 8787
#define MAX_THR... |
#include "lib.h"
#include "types.h"
#include "process.h"
#include "x86_desc.h"
#include "page.h"
#include "schedule.h"
#include "interrupt_linkage.h"
#include "drivers/fs.h"
#include "drivers/rtc.h"
/* Program not loaded */
#define NOT_LOADED 0
/* Program is loaded into memory, but not scheduled to execute (ie. its ch... |
/*
* Experiment interpolation using FIR filter - Chapter 3
* interpolateTest.c
*
* Description: This is the test file for the interpolation FIR filter
*
* Created on: May 13, 2012
* Author: BLEE
*
* For the book "Real Time Digital Signal Processing:
* Fundamentals, Implementati... |
/*
* Copyright (c) 2020, <NAME> / Kalopa Research. All rights
* reserved.
*
* See the LICENSE file for more info.
*
* Thanks to <NAME> for the great advice regarding the programming of the
* ESC pulses (interleaved starts, with a single stop - trailing edge).
*
* ABSTRACT
* This is where the various inputs (... |
/*
* This code uses libdwarf to parse .eh_frame (PT_GNU_EH_FRAME)
* in an executable to retrieve the function information: Address and Size.
*
* <EMAIL> 2014
*
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <stdint.h>
#include <sys/mman.h>
#inclu... |
/*----------------------------------------------------------------------------
* Copyright (c) <2018>, <Huawei Technologies Co., Ltd>
* 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. R... |
/*
* intelmid_pvt.h - Intel Sound card driver for MID
*
* Copyright (C) 2008-10 Intel Corp
* Authors: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* This program is free software; you can redistribute it and/or mod... |
/*
* TFA-Twin-Plus-30.3049
*
* Copyright (C) 2015 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*/
/*
* Protocol as reverse engineered by https://github.com/iotzo
... |
#include <stdio.h>
#include "sound.h"
#include <math.h>
#include "screen.h"
void fillID( char *d, const char *s){
for(int i=0;i<4;i++){
*d++ = *s++;
}
}
void testTone(int c, int fl, int fr, float d)
{
if(c<1 || c>2){
printf("Wrong number of channels.\n");
return ;
}
if(fl<50 || fl>16000){
printf("frequen... |
// composeTransformations.c
// By Sumanta
// Shows composition of transformations and the relative
// transformation of one object w.r.t another.
#include <math.h>
#include <gl\glut.h>
#include <gl\gl.h>
#include <gl\glu.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#define PI 3.1415926... |
#include <string.h>
#include <math.h>
#include <mex.h>
void inv(double *a, double *b,int n){
double tem=0,temp=0,temp1=0,temp2=0,temp4=0,temp5=0;
int m=0,i=0,j=0,p=0,q=0;
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
if(i==j)
b[j*n+i]=1.0;
else
b[j*n+i]=0.0;
}
}
for(i=0;i<n;i++)
{
temp=a[i*n+i... |
/*
-Materia: SuperComputo
-Semestre: 2019-2020/I
-Nombre del alumno: <NAME>
-Clave del alumno: 250980
-Carrera: Informatica
-Nombre de tarea o programa: MPI: Funciones GatherV y ScatterV
-Periodo de evaluación: Parcial 2
-Descripción: Sumar elemento a elemento dos arreglos de igual tamaño y almacenar el resulta... |
//
// elgen - command line utility for key generation
// Part of EllipticLicense project
//
// Tested on Mac OS X and Linux (x86 and x86_64)
// Make sure to link against libcrypto 0.9.8 or later
//
// Copyright (c) 2009 <NAME>, Coding Robots
//
// Licensed under the Apache License, Version 2.0 (the "License");
//... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* backpack2.c :+: :+: :+: ... |
// Copyright 2019 Shift Cryptosecurity AG
//
// 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 ... |
#ifndef VUI_H
#include "vui.h"
#endif
#ifndef SDL_h_
#include <SDL2/SDL.h>
#endif
typedef struct _VuiSdl2InputState _VuiSdl2InputState;
struct _VuiSdl2InputState {
VuiMouseButtons mouse_buttons_pressed;
VuiMouseButtons mouse_buttons_released;
VuiInputActions actions;
float mouse_wheel_x;
float mouse_wheel_y;
ui... |
/*
* Copyright (C) 2001 <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... |
/* Copyright (c) <NAME>, 1994. */
/*
* (c) Copyright 1993, Silicon Graphics, Inc.
* ALL RIGHTS RESERVED
* Permission to use, copy, modify, and distribute this software for
* any purpose and without fee is hereby granted, provided that the above
* copyright notice appear in all copies and that both the copyright ... |
/* @(#)xdr_stdio.c 2.1 88/07/29 4.0 RPCSRC */
/*
* Copyright (c) 2010, Oracle America, 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 ... |
/*
Copyright (c) 2019, <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:
Redistributions of source code must retain the above copyright notice, this list
of conditions and the following disclaimer... |
/**********************************************************************
Core.c:
Core.c is a subroutine to calculate a nuclear Coulomb potential
or a potential modified by an error function.
Log of Core.c:
10/Dec/2002 Released by T.Ozaki
***********************************************************... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <sys/time.h>
#include <unistd.h>
#include "array.h"
#include "lex.h"
#include "parse.h"
#include "comp_unit.h"
#include "token.h"
static bool DUMP_TOK_STREAM = false;
static bool
has_suffix(const char* str, const char* suffix) {... |
#include "kiloCommander.h"
// Magic definitions.
#define PAGE_SIZE 128
#define PACKET_HEADER 0x55
#define PACKET_SIZE PAGE_SIZE + 4
#define COMMAND_STOP 250
#define OHC_BAUD 38400
// Command packet types.
enum {
PACKET_STOP,
PACKET_LEDTOGGLE,
PACKET_FORWARDMSG,
PACKET_FORWARDRAWMSG,
PACKET_BOOTPAG... |
/**
******************************************************************************
* @file main.c
* @author Ac6
* @version V1.0
* @date 01-December-2013
* @brief Default main function.
******************************************************************************
*/
#include "stm32f1... |
/*
* 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 "kernel/types.h"
//#include "kernel/stat.h"
//#include "user.h"
//#include "kernel/fs.h"
//
//
//#define PGSIZE 4096
//
//void freeOnePageTest(){
// int procAvailablePages = getFreePagesAmount();
// printf( "freeOnePageTest Start: #FreePages=%d\n", procAvailablePages);
// sbrk(PGSIZE);
// int pr... |
//-----------------------------------------------------------------------------
// Includes
//-----------------------------------------------------------------------------
#include <SI_EFM8SB1_Register_Enums.h> // SFR declarations
#include "InitDevice.h"
// $[Generated Includes]
#include "cslib_config.... |
#include "task.h"
#include <string.h>
// Every child procces reads all numbers and fixes it's running average //
// At the end every child writes in a file it's result //
int child_work(int *buffer, int array_length, int number_of_processes, int mutex_id, int full_id, int empty_id){
int* data; // ... |
/*
* Copyright (c) 2014-2016 IBM 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... |
//==============================================================================
// Includes
//==============================================================================
#include <string.h>
#include <celib/id.h>
#include <celib/macros.h>
#include "celib/memory/allocator.h"
#include "celib/log.h"
#include "celib/m... |
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <ctype.h>
#include "htslib/sam.h"
#include "htslib/kstring.h"
#include "cigar.h"
static inline void str2cigar(const char *s, i32array_t *cigar, int *n_cigar);
uint32_t cigar_get_qual(uint8_t *qual, int tdist, const uint32_t *cigar, int n_cigar)
{
... |
#include "benchtools.h"
#include "cblas.h"
#include "util.h"
#include <assert.h>
#include <float.h>
#include <math.h>
#define DDOT_NB_SAMPLES 10
#define DDOT_MIN_VEC_SIZE 50
#define DDOT_MAX_VEC_SIZE 1500000
#define DDOT_EXP_FACTOR 1.25
/*
* Checks the result of a simple ddot operation
*/
int test_ddot(const int v... |
/*D***********************************************************
* Modul: process the "commit" button
* go to detail functions (it's depending on the menu)
* if error occured make rollback of the commit
*
* Copyright: yafra.org, Basel, Switzerland
******************************************... |
#include "param_list.h"
#include "symbol.h"
#include "scope.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
extern int type_val;
/* create a param list struct */
/*
inputs
- name: name of the parameter
- type: type of the param
- next: next item in the param list
output
- p: param_list struct
*/
struct... |
/* USB Shell for interactive debugging. */
/* <NAME> <<EMAIL>> */
/* <NAME> <<EMAIL>> */
#include <errno.h>
#include <signal.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <libusb-1.0/libusb.h>
#define PKLEN 64
#define URB_TIMEOUT 100
#define debug(...) do { ... |
#include "types.h"
#include "idt.h"
#include "string.h"
#include "console.h"
extern struct idt_entry idt_entries[IDT_NUM_ENTRIES];
extern void isr0();
extern void isr1();
extern void isr2();
extern void isr3();
extern void isr4();
extern void isr5();
extern void isr6();
extern void isr7();
extern void isr8();
extern ... |
/*
* Copyright 2012 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 without limitation
* the rights to use, copy, modify, merge, publish, d... |
/* codechunks.c */
/*****************************************************************************/
/* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only */
/* */
/* AS-Portierung ... |
/*
* This file is based on a patch submitted by <NAME> <<EMAIL>>
* to ltrace project:
* https://anonscm.debian.org/cgit/collab-maint/ltrace.git/commit/?id=dfefa9f057857735a073ea655f5cb34351032c8e
*
* It was re-licensed for strace by the original author:
* https://lists.strace.io/pipermail/strace-devel/2018-March/... |
/*
* This file is part of Espruino, a JavaScript interpreter for Microcontrollers
*
* Copyright (C) 2017 <NAME> <<EMAIL>>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/... |
/*
* Copyright (c) 2009-2014, Newcastle University, UK.
* 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, ... |
/*
MIT License
Copyright (c) 2018 WigWag 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 without limitation the rights
to use, copy, mo... |
/*
* UD3
*
* Copyright (c) 2018 <NAME>
* Copyright (c) 2015 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
*... |
/*
rep movsb regression
Copyright(c) 2015 <NAME>
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.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRAN... |
/*
* GStreamer
* Copyright (C) 2019 <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 your option) any later version.
*... |
#pragma once
#include <stdint.h>
#include <stdbool.h>
// Library options --------------------------- //
#define MHZ19_PRINT 1 // ouput formatted print
#define MHZ19_LIB_ERRORS 1 // Set to 0 to disable error prints
#define MHZ19_LIB_FLASH_W_DELAY 2 // Delay when writing ... |
/*
* Copyright (c) 2018 <NAME>
*
* This file is redistributed from solo5.
* See https://github.com/Solo5/solo5
*
* The hd5 project is licensed under MIT License.
* Checkout LICENSE file in the root of source tree.
*/
#include "service.h"
#include "arp.h"
#include "config.h"
#include "icmp.h"
#include "ip.h"
#i... |
/*
* Copyright (c) 2004-2006 <NAME> <<EMAIL>>
* Copyright (c) 2006-2016 Sippy Software, Inc., http://www.sippysoft.com
* 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. Redistribution... |
#include <msp430.h>
#include <stdint.h>
#include <intrinsics.h>
#define LCDMEMS 6
volatile unsigned char* LCDP[] = {&LCDM10,&LCDM6,&LCDM4,&LCDM19,&LCDM15,&LCDM8,&LCDM8,&LCDM8,&LCDM8,&LCDM15,&LCDM19,&LCDM4,&LCDM6,&LCDM10,&LCDM10,&LCDM10};
volatile unsigned char LCD[] = { 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x40, 0x... |
/**
* (C) Copyright 2016-2021 Intel Corporation.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
#include "dfuse_common.h"
#include "dfuse.h"
#define READAHEAD_SIZE (1024 * 1024)
static void
dfuse_cb_read_complete(struct dfuse_event *ev)
{
if (ev->de_ev.ev_error == 0) {
size_t len = ev->de_iov.iov_buf_len... |
/**
* 2DConvolution.c: This file was adapted from PolyBench/GPU 1.0 test suite
* to run on GPU with OpenMP 4.0 pragmas and OpenCL driver.
*
* http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU
*
* Contacts: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#include <stdarg.h>... |
/*
* Copyright (c) 2003, 2007-11 <NAME>
* Copyright (c) 2003, 2007-11 Massachusetts Institute of Technology
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Licens... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* set_defaults.c :+: :+: :+: ... |
#include "sysinit/sysinit.h"
#include "console/console.h"
#include "os/os.h"
#include <defs/error.h>
#include <sensor/sensor.h>
#include <sensor/accel.h>
#include <kx022/kx022.h>
#define READ_SENSOR_INTERVAL (5 * OS_TICKS_PER_SEC)
#define MY_SENSOR_DEVICE "kx022_0"
#define MY_SENSOR_POLL_TIME 2000
//static struct o... |
/* This implements the CORDIC algorithm to compute sin and cos of angle theta.
The function works on a custom 32-bit integer type, that represents numbers from <-π, π).
First has weight -1, the 2nd bit has weight 2^-1, 3rd 2^-2, 4th 2^-3;
and the multiplication by π is implcit.
To convert to/from this represe... |
/*
* Some mp3 related code for Sega/Mega CD.
* Uses Libav/FFmpeg libavcodec
* (C) notaz, 2013
*
* This work is licensed under the terms of MAME license.
* See COPYING file in the top-level directory.
*/
#include <stdio.h>
#include <string.h>
#include <libavcodec/avcodec.h>
#include <dlfcn.h>
#include <pico/pic... |
#include "memctl/task_memory.h"
#include "memctl/memctl_error.h"
#include "memctl/utility.h"
#include <mach/mach_error.h>
#include <mach/mach_vm.h>
#include <mach/vm_page_size.h>
#include <mach/vm_region.h>
/*
* mach_unexpected
*
* Description:
* Generate an internal error due to the given mach call returning a... |
#include "compiler.h"
#include "soundmng.h"
#include "pccore.h"
#include "fdd_mtr.h"
#if defined(SUPPORT_SWSEEKSND)
#include "sound/pcmmix.h"
#include "fdd_mtr.res"
#endif
#if defined(SUPPORT_SWSEEKSND)
static struct {
UINT enable;
struct {
PMIXHDR hdr;
PMIXTRK trk[2];
} snd;
} mtrsnd;
void fddmtrsnd_initia... |
/**
* ,---------, ____ _ __
* | ,-^-, | / __ )(_) /_______________ _____ ___
* | ( O ) | / __ / / __/ ___/ ___/ __ `/_ / / _ \
* | / ,--´ | / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
* +------` /_____/_/\__/\___/_/ \__,_/ /___/\___/
*
* Crazyflie control firmware
*
* Copyright (... |
/*
* MIT License
*
* Copyright (c) [2018] [WangBoJing]
* 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, mod... |
/* tc-m32r.h -- Header file for tc-m32r.c.
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2007, 2009, 2011 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
GAS is free software; you can redistribute it and/or modify
it under the terms of the GNU General... |
/* bfastMafFix - Fix bfast's broken MAFs.. */
/* This file is copyright 2008 <NAME>, but license is hereby
* granted for all use - public, private or commercial. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "obscure.h"
#include "sqlNum.h"
#include "maf.h"
char *out = "... |
#include "cache.h"
#include "pack-revindex.h"
#include "object-store.h"
#include "packfile.h"
/*
* Pack index for existing packs give us easy access to the offsets into
* corresponding pack file where each object's data starts, but the entries
* do not store the size of the compressed representation (uncompressed
... |
#include <stdlib.h>
#include <stdio.h>
#include <scarab.h>
ScarabDatum *longEvent(char *name, long value, long time, void *memctx);
#define serr(srv) \
errInt( scarab_session_geterr((srv)), \
scarab_session_getoserr((srv)) \
)
#define errInt(code, oserr) \
printErr( (code), \
scarab_moderror((code)), sca... |
#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
#include <termios.h>
#include <string.h>
#include <unistd.h>
#include <stdarg.h>
#include <sys/mman.h>
#include <sys/kd.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/vt.h>
#include <sys/wait.h>
#include <er... |
/* $OpenBSD: comm.c,v 1.10 2015/10/09 01:37:07 deraadt Exp $ */
/* $NetBSD: comm.c,v 1.10 1995/09/05 19:57:43 jtc Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>.
*
* Redi... |
/*
Copyright 2011 Google 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 by applicable law or agreed to in ... |
/*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Unit tests for BLOSC_COMPRESSOR environment variable in Blosc.
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
See LICENSE.... |
/* Glauber dynamics 2D ferromagnet temperature simulation
* Usage:
* $ cc -Ofast -o magnet magnet.c -lm
* $ ./magnet | mpv --no-correct-pts --fps=60 -
* Ref: http://bit-player.org/2019/glaubers-dynamics
* Ref: https://nullprogram.com/video/?v=magnet
* Ref: https://nullprogram.com/blog/2017/11/03/
*/
#include... |
/**
* @file net_if_uip_udp.c
*
* @copyright
* Please read the Exosite Copyright: @ref copyright
*
* @if Authors
* @authors
* - <NAME> (<EMAIL>)
* - <NAME> (<EMAIL>)
* @endif
*
* @brief Net_dev_operations implementation for the UIP network stack for UDP
**/
#include <string.h>
#include <stdlib.h>
#inclu... |
/* The MIT License (MIT)
*
* Copyright (c) 2016 <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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.