text stringlengths 3.08k 10.5k |
|---|
/* $Id$Revision: */
/* vim:set shiftwidth=4 ts=8: */
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
... |
#include "mpi_internal.h"
#include <string.h>
static inline unsigned recv_flit(cid_t cid, flit_t **ptr, unsigned *len)
{
flit_t f = fgmp_recv_flit(cid);
if (*len<sizeof(flit_t)) {
unsigned l = *len;
store_flit_fraction(*ptr, l, f);
*len = 0;
return l;
} else {
unal... |
/*
@file nabto_utils.c
@brief Nabto helper functions
Copyright (c) 2019 Connictro GmbH / <NAME> and Nabto ApS
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 withou... |
/*
* Copyright (c) 2009-2018 NLNet Labs.
* 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 con... |
#include <stdio.h>
#include "vga.h"
#include "types.h"
#include "tool.h"
#include "debug.h"
#include "graphic.h"
#include "thread1.h"
#include "thread2.h"
#include "global_variable.c"
VOID graphic_init_queue( )
{
// connect the command queues as a circle
DWORD i = 0;
DWORD j = 0;
for( i = 0; i < N_COMMAND_QUEUE;... |
#include<stdio.h>
#include<stdlib.h>
#include "avltree.h"
/**
Insere um elemento na árvore binária.
Retorna 1, caso tenha inserido o elemento com sucesso, e 0 caso contrário.
*/
int insertAVL_Tree(AVL_Tree *tree, int id, int tipo, void *elem) {
if (!tree)return 0;
int *h = (int*) malloc(sizeof... |
/* Private function declarations for libm.
Copyright (C) 2011-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Softwar... |
/* Copyright (c) 2014 Red Hat, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of version 2 the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRA... |
#include <stdio.h>
#include <string.h>
void Add_Tick(char *line, int count, int length);
void Print_Lines(char *line1, char *line2, char *ticks1, char *ticks2,
char *match);
int Usage(void);
char MyName[1024];
int main(int argc, char **argv) {
FILE *infile = NULL;
FILE *snp_file = NULL;
char *slash;
int fi... |
//h+//////////////////////////////////////////////////////////////////////////
/*!
// \file main.c
//
// \brief Application entry point
//
// Please connect the Pin A9(USART Tx) to the RX pin of the FTDI adapter
// and the Pin A10(USART Rx) to the TX pin of the FTDI adapter
//
// NB. Please co... |
/****************************** Lmp2arc.c ******************************
This program converts a contiguous set of LAMMPS dump (position) files
to a MSI .arc file using a .car file as the template. This enables one to
visualize a LAMMPS trajectory using Insight II.
by <NAME> & <NAME> (SGI/Cray)
curre... |
/*
[WSWS] /sha1.c , 150407 (C) 2005-2015 MF
*/
#include "crypt.h"
typedef struct
{
int index;
unsigned int digest [ 5];
unsigned char block [64];
}
ws_sha1_context_t;
static unsigned int sha1_circular_shift (unsigned int bits, unsigned int word)
{
return (((word) << (bits)) |... |
/*
* Copyright (C) 2018-2020 Alibaba Group Holding Limited
*/
#include <ipc.h>
#include <csi_core.h>
#include <aos/kernel.h>
#include "mca/mca.h"
#include "mca/mca_all.h"
#include "icore/mca_icore_internal.h"
#include "mca_icore_cp.h"
#define TAG "mca_icore_cp"
struct mca_icore_cp_priv {
#define MESSAGE_NUM (5... |
// Lines of text. Free and open source. See LICENSE.
#include "lines.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <assert.h>
// Store an array holding the position in the text just after each newline. The
// array is organised as a gap buffer from 0 to end, with the gap b... |
#include <assert.h>
#include <string.h>
#include "mgpriv.h"
#include "algo.h"
#include "kalloc.h"
#define HAVE_KALLOC
#include "ksw2.h"
static int32_t mg_fc_kmer(int32_t len, const char *seq, int32_t rid, int32_t k, mg128_t *a)
{
int32_t i, l, n;
uint64_t x, mask = (1ULL<<k*2) - 1;
for (i = l = 0, x = 0, n = 0; i <... |
#include <pthread.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#ifdef __unix__
# include <unistd.h>
#elif defined _WIN32
# include <windows.h>
#define sleep(x) Sleep(1000 * (x))
#endif
int philosophers;//count of philosophers
typedef struct philosopher_struct{//a str... |
/* Transmissão de Dados
Chat utilizando Socket TCP
Alunos:
<NAME> – 10/0018513
<NAME> - 13/0060674
<NAME> - 13/001846
*/
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <std... |
#include"imgpro.h"
/* function: char* identify_porn(img_para *img)
*
* the function to identify the porn img
*
* input: an image depiction structure
* return: a matrix depicting the handled image, with each element to be number 0 or 255, 0 for non-skin pixel and 255 for skin pixel
*/
char* identify_porn(img_... |
/* --COPYRIGHT--,BSD_EX
* Copyright (c) 2012, Texas Instruments Incorporated
* 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 c... |
#include <string.h>
#include <stdlib.h>
#include "class_strings.h"
#include "express/type.h"
const char * ClassName( const char * oldname ) {
int i = 0, j = 0;
static char newname [BUFSIZ];
if( !oldname ) {
return ( "" );
}
strcpy( newname, ENTITYCLASS_PREFIX ) ;
j = strlen( ENTITYC... |
/* Color utilities
*
* Copyright (C) 1999 The Free Software Foundation
*
* Authors: <NAME> <<EMAIL>> (original code)
* <NAME> <<EMAIL>> (cleanup for GTK+)
* <NAME> <<EMAIL>> (cleanup for GTK+)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the... |
/*
* Copyright (c) 2018-2019 <NAME>, <NAME>, <NAME>
*
* Driver for memory controller (MC)
*
* Documentation source: doc/Atmel/AT91RM9200.pdf
* Memory Controller Memory Map on page 128
* Register specifications on pages 129 - 132
*/
#include "drivers/mc.h"
#include "drivers/util.h"
#include "l... |
/*
* AU muxer and demuxer
* Copyright (c) 2001 <NAME>.
*
* This file is part of FFmpeg.
*
* FFmpeg 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 (at yo... |
/*-
* Copyright (c) 1999 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
/*
* copyright (c) 2009 <NAME>
*
* This file is part of Libav.
*
* Libav 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 (at your option) any later versio... |
/*
* lxc: linux Container library
*
* (C) Copyright IBM Corp. 2007, 2008
*
* Authors:
* <NAME> <<EMAIL>.lezcano at free.fr>
*
* 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; eit... |
// file ex07.c
// gcc -Isrc -undefined -shared -fPIC -o ex07.so src/ex07.c
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
#include <stdio.h>
#include <assert.h>
#include <malloc.h>
#include <string.h>
// See lua.h for LUA_TNONE, ... 100 will not clash w/ predefined types
#define OE_TINTEGER 100
/* OddlyEv... |
/**
\brief This program shows the use of the "sniffer" module.
\author <NAME> <<EMAIL>>, June 2015.
*/
#include "board.h"
#include "radio.h"
#include "leds.h"
#include "bsp_timer.h"
#include "scheduler.h"
#include "03oos_sniffer.h"
#include "openserial.h"
#include "idmanager.h"
#include "sixtop.h"
#include "processIE... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* CPU frequency scaling for OMAP using OPP information
*
* Copyright (C) 2005 Nokia Corporation
* Written by <NAME> <<EMAIL>>
*
* Based on cpu-sa1110.c, Copyright (C) 2001 <NAME>
*
* Copyright (C) 2007-2011 Texas Instruments, Inc.
* - OMAP3/4 support by <NAME>, <... |
/**
*
* Author: <NAME> aka sx107
*
* This software component is licensed under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
*
*/
#include <stdint.... |
/*
* NIST Sphere demuxer
* Copyright (c) 2012 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg 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 (at your... |
/* $XFree86: xc/programs/Xserver/Xi/queryst.c,v 3.6 2005/10/14 15:16:14 tsi Exp $ */
/*
Copyright 1998, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all c... |
/* console mode mouse functions */
#include "../fb.h"
#ifdef DISABLE_GPM
int fb_ConsoleGetMouse( int *x, int *y, int *z, int *buttons, int *clip )
{
return fb_ErrorSetNum( FB_RTERROR_ILLEGALFUNCTIONCALL );
}
#else
#include "../unix/fb_private_console.h"
#include "../fb_private_hdynload.h"
#include <sys/select.h>
... |
/*
* Copyright (c) <NAME>
*/
#include "jsa.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#define xmalloc malloc
#define xrealloc realloc
#define xfree free
#define JSA_MAX_SIZE 1048576
#define JSA_OK 0
#define JSA_ERROR -1
jsa_t *jsa_create() {
jsa_t... |
/*
* Copyright (c) 2002, Intel Corporation. All rights reserved.
* This file is licensed under the GPL license. For the full content
* of this license, see the COPYING file at the top level of this
* source tree.
*
* Test pthread_spin_init(pthread_spinlock_t *lock, int pshared)
*
* If the Thread Process-S... |
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/select.h>
#include "lora-ioctl.h"
/* Bit 1: 1 for ready to read, 0 for not ready
* Bit 0: 1 for ready to write, 0 for not write
*/
uint8_t ready2rw(int fd)
{
fd_set read_fds, write_fds;
struct timeval t... |
/*-
* BSD LICENSE
*
* Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
* 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 retai... |
/*
* Copyright (c) 1993-1997, 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 notice
* and this permission... |
#pragma ident "$Id: recv.c,v 1.2 2014/09/05 22:13:16 dechavez Exp $"
/*======================================================================
*
* Receive a message from the peer.
*
*====================================================================*/
#include "sbd.h"
#include "util.h"
#define NOT_LOCKED FALSE
... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
/*
* 013_I2C_SlaveTxRx.c
*
* Created on: Feb 29, 2020
* Author: nemanja
*/
#include <stdio.h>
#include <string.h>
#include <stm32f446xx.h>
#define SLAVE_ADDR 0x68
#define MY_ADDR SLAVE_ADDR
void delay(void)
{
for(uint32_t i = 0 ; i < 500000/2 ; i ++);
}
I2C_Handle_t I2C1Handle;
/* Transmitter buffer... |
/*
* isl6421.h - driver for lnb supply and control ic ISL6421
*
* Copyright (C) 2006 <NAME>
* Copyright (C) 2006 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2... |
/***************************************************************************/
/*
* linux/drivers/char/mcfwatchdog.c
*
* Copyright (C) 1999-2000, <NAME> (<EMAIL>)
* Copyright (C) 2000 Lineo Inc. (www.lineo.com)
*/
/***************************************************************************/
#include <linux/c... |
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "benchmark.h"
#include "containers/array.h"
#include "random.h"
enum { TESTSIZE = 2048 };
// flushes the array from cache
void array_cache_flush(array_container_t* B) {
const int32_t CACHELINESIZE =
computecacheline(); // 64 bytes per... |
/* ISC license. */
#include <skalibs/bytestr.h>
#include <skalibs/stralloc.h>
#include <skalibs/genalloc.h>
#include <execline/execline.h>
typedef struct elsubsu_s elsubsu_t, *elsubsu_t_ref ;
struct elsubsu_s
{
elsubst_t const *subst ;
unsigned int pos ;
} ;
typedef struct subsuinfo_s subsuinfo_t, *subsuinfo_t_r... |
/*
* Automatically Tuned Linear Algebra Software v3.10.0
* (C) Copyright 2003 <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 ret... |
/*
* io-proxy.c
*
* Copyright 2019 chehw <<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 Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Th... |
/*
* <NAME>'s public domain version of lgamma, from
* http://www.johndcook.com/stand_alone_code.html
*
* Replaces the C99 standard lgamma for stone-age C compilers like the one
* from Redmond.
*
* I removed the test cases and added the cfloat import (<NAME>. <<EMAIL>>)
*
* Translated to C by <NAME>. Input vali... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Fluent Bit
* ==========
* Copyright (C) 2015-2022 The Fluent Bit Authors
*
* 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... |
/*
* This file is part of SushiVM
* Copyright (c) 2019-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 ... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
* See COPYRIGHT in top-level directory.
*/
/* This code creates one task for each argobots xstream and each task creates
* a number of tasks. This version uses as many pools as execution streams are
* created. This number of tasks is the divis... |
/*
* Data.h
* <NAME> and <NAME>
*/
int armSRBackTol = 18;
int armSRShoulderTol = 4;
int armSRUnderTol = 30;
int armSR45BackTol = 27;
int armSR45ShoulderTol = 5;
int armSR45UnderTol = 13;
int armSR90BackTol = 12;
int armSR90ShoulderTol = 9;
int armSR90UnderTol = 15;
int armSR135BackTol = 14;
int armSR135ShoulderTol ... |
/*********************************************************************
* Copyright 1993, UCAR/Unidata
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
* $Header: /upc/share/CVS/netcdf-3/libncdap4/constraints4.c,v 1.9 2010/04/13 03:36:31 dmh Exp $
*****************************************... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <unistd.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <sys/shm.h>
#include <pthread.h>
#define MYPORT 812... |
/*-------------------------------------------------------------------------
*
* pg_dump.h
* header file for the pg_dump utility
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_dump.h,v 1.1.1.1 1996/07/09 06:22:14 scrappy Exp $
*
*--------------------------------------------------... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/xf4bpp/ppcGetSp.c,v 1.2 1998/07/25 16:59:34 dawes Exp $ */
/*
* Copyright IBM Corporation 1987,1988,1989
*
* All Rights Reserved
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted,
... |
/*
* linux/fs/proc/fd.c
*
* Copyright (C) 1991, 1992 <NAME>
*
* proc fd directory handling functions
*/
#include <asm/segment.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/proc_fs.h>
#include <linux/stat.h>
static int proc_readfd(struct inode *, struct file *, struct dirent *, int);
s... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2007-2009 coresystems GmbH
*
* 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 prog... |
#include <stdlib.h>
#include "jsmn.h"
#define TEST_LOOP_START(vec_key) \
size_t vec_pos = test_vec_pos_by_key(vec_key); \
size_t cases = test_vec_tokens[vec_pos].size; \
size_t case_pos = vec_pos + 1; ... |
#include <msp430.h>
#include <libTimer.h>
#include "lcdutils.h"
#include "lcddraw.h"
#include "draw.h"
#include "main.h"
#include "stateMachines.h"
#include "buzzer.h"
#include "switches.h"
#define LED_GREEN BIT6 // P1.6
#define LED_RED BIT0
short redrawScreen3 = 0; /* needed for spe... |
/*
* DisMan Expression MIB:
* Implementation of the object table configuration handling.
*/
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-features.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-includes.h>
#include "utilities/iquery.h"
#include "disman/expr... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <assert.h>
#include "../synth.h"
#include "../xm.h"
#include "../slide.h"
/* osc.c: sine/square/triangle/saw oscillator */
/*
Note: This uses doubles for phase and phase increment.
The old synth code used doubles in 'sine', but floa... |
//
// BREthereumAddress.c
// BRCore
//
// Created by <NAME> on 5/17/18.
// Copyright © 2018-2019 Breadwinner AG. All rights reserved.
//
// See the LICENSE file at the project root for license information.
// See the CONTRIBUTORS file at the project root for a list of contributors.
#include <stdlib.h>
#include ... |
/*
* (C) Copyright 2016
* <NAME>, DENX Software Engineering, <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 Foundation; either version 2 of
* the License, or (at your option) any later ve... |
/* Play pcm stream from tts stream, which can input chinese string
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either ... |
/*
* Temperature.c
* Description: reads temperature from devices connected to SPI.
*/
#include "Temperature.h"
#include "systemInfo.h"
#include "usb_cdc_fops.h"
#include <CAProtocol.h>
#include <CAProtocolStm.h>
#include "USBprint.h"
#include "time32.h"
#include "StmGpio.h"
#include "ADS1120.h"
// Local variables
... |
/*
* util.c -- various utilities
*
* Copyright (c) 2020-2022 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTW... |
/*
* Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... |
// Lab08_LED_Switchesmain.c
// Runs on MSP432
// Student name: <NAME>
// Date:
// Edited by Capt Beyer to include assembly implementation
// 9 Sep 2019
// Daniel and <NAME>
// February 28, 2017
/* This example accompanies the books
"Embedded Systems: Introduction to the MSP432 Microcontroller",
ISBN: 978-151... |
/*
* usbmidi_handlers.c
*
* Created on: Feb 3, 2020
* Author: <NAME>, <EMAIL>, Tucson, Arizona
* (c) 2021, please credit and copy me on use in your project!
*
* MODS:
* 2021-05-20 andy, add copyright and contact info.
*/
#include <stdbool.h>
#include <stdint.h>
#include "inc/hw_memmap.h"
#include "inc... |
#include "config.h"
#include <stdint.h>
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include "chimara-glk.h"
#include "glk.h"
#include "magic.h"
/* Parses a glk color to a GdkRGBA */
void
glkcolor_to_gdkrgba(uint32_t val, GdkRGBA *color)
{
color->red = ((val & 0xff0000) >> 16) / 255.0;
color->green = ((val &... |
/*
* blinky.c
*
* Copyright 2014 <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 Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This p... |
/**************************************************************************//**
* @file debounce.c
* @version V0.01
* $Revision: 1 $
* $Date: 16/06/08 2:28p $
* @brief Software debounce API with NUC122 Series.
* It uses GPIO interrupt with timer timeout to filter I/O bouncing.
* ... |
/* Copyright (c) 2017-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, d... |
/*
* Author: <NAME> <<EMAIL>>
*
* Copyright (c) 2012-2013 Plausible Labs Cooperative, 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 Software without
* restrict... |
#include <assert.h>
#define USE_KRONOS
#define USE_RECTIFY
#include "bedrock/bedrock.h"
#define USE_ASCII
#define USE_ASSETS
#define USE_CONFIG
#define USE_MESSAGES
#define USE_SCENES
#include "main.h"
typedef struct {
Surface *world;
Surface *overlay;
uint8_t chosen_rune;
uint32_t chosen_color;
uint32_t... |
#ifndef STIMY_H
#include <stimy.h>
#endif
#include <stdio.h>
#include <stdbool.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <xcb/randr.h>
#include <xcb/xcb_keysyms.h>
#include <xcb/xcb_icccm.h>
#include <xcb/xcb_ewmh.h>
#include <xcb/xcb_xrm.h>
#include <X11/keysym.h>
#inc... |
/* movstat/apply.c
*
* Copyright (C) 2018 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This p... |
#define _POSIX_C_SOURCE 199309L //required for clock
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <wait.h>
#include <limits.h>
#include <fcntl.h>
#include <time.h>
#include <pthread.h>
#include <inttypes.h>
#include <math.h>
long l... |
/*
* This file is part of the bladeRF project:
* http://www.github.com/nuand/bladeRF
*
* Copyright (C) 2014 Nuand 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 restr... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Mupen64plus - rdp_core.c *
* Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
* Copyright (C) 2014 <NAME> *
* ... |
/*
* Copyright 2010-2016, Tarantool AUTHORS, please see AUTHORS file.
*
* 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 lis... |
/*
* Copyright (c) 2019, 2020 National Technology & Engineering Solutions
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
* NTESS, the U.S. Government retains certain rights in this software.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
#include "punyc.h"
Type *ty_void = &(Type){TY_VOID, 1, 1};
Type *ty_bool = &(Type){TY_BOOL, 1, 1};
Type *ty_char = &(Type){TY_CHAR, 1, 1};
Type *ty_short = &(Type){TY_SHORT, 2, 2};
Type *ty_int = &(Type){TY_INT, 4, 4};
Type *ty_long = &(Type){TY_LONG, 8, 8};
Type *ty_uchar = &(Type){TY_CHAR, 1, 1, true};
Type *ty_us... |
/**
* @file
* @brief Implements udp socket function.
*
* @date 04.02.10
* @author <NAME>
* @author <NAME>
*/
#include <assert.h>
#include <errno.h>
#include <stddef.h>
#include <string.h>
#include <util/math.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include "net_sock.h"
#include <embox/net/pack.h>
#... |
/*
* Copyright 2002-2010 <NAME>.
*
* This software may be freely redistributed under the terms
* of the X11 license.
*
*/
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#define PNG_DEBUG 3
#include <png.h>
void abort_(const char * s, ...)
{
va_list ar... |
/**
* @file main.c
* @author <NAME>
* @date May 20, 2016
*
* @brief UTAustinX: UT.6.03x Embedded Systems - Shape the World
* Lab 15: SpaceInvaders
*
* @section DESCRIPTION
*
* Mandatory file containing the main routine and interrupt service routines.
*/
/**
* Required hardware I/O c... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#define STACK_MAX 256
/* This is an implementation of a Naïve mark-and-sweep garbage collector as explained by
<NAME> at http://journal.stuffwithstuff.com/2013/12/08/babys-first-garbage-collector/.
For more information you might want to also look at:
... |
/*
* Copyright (C) 2008-2020 Advanced Micro Devices, 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 ... |
/*
* Code to dump Credit Card table from Nortel Millennium Payphone
* Table 134 (0x86)
*
* www.github.com/hharte/mm_manager
*
* (c) 2020, <NAME>
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "mm_manager.h"
#include "mm_card.h"
char *standard_cd_str[] = {
"Und... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "quote.h"
#include <assert.h>
#include <limits.h>
#include <openenclave/bits/safecrt.h>
#include <openenclave/host.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/sgxtypes.h>
#include <ope... |
/*
Level loading code for 3d Software Renderer
<NAME>
<EMAIL>
2015
*/
#include <stdio.h>
#include <stdlib.h>
#ifdef __linux__
#include <SDL2/SDL.h>
#define M_PI 3.14159265358979323846
#elif _WIN32
#include <SDL.h>
#endif
#include "load_level.h"
#include "meshes.h"
Level loadLevel(char* fileName)
{
... |
#include <jinet/isr.h>
#include <jinet/ints.h>
#include <jinet/tty.h>
#include <jinet/module.h>
#include <stdint.h>
MODULE("INTERRUPTS");
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();
... |
/*
* Copyright (C) 2019 <NAME>
*
* Author: <NAME> <<EMAIL>>
*/
#include <lexbor/core/fs.h>
#include "lexbor/core/conv.h"
#include <lexbor/utils/warc.h>
#include "gzip.h"
#define FAILED(with_usage, ...) \
do { ... |
/*
* Copyright (c) 2019 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg 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 (at your option) any later vers... |
/* LocalMem.c - local memory routines.
*
* These routines are meant for the sort of scenario where
* a lot of little to medium size pieces of memory are
* allocated, and then disposed of all at once.
*
* This file is copyright 2002 <NAME>, but license is hereby
* granted for all use - public, private or commer... |
/* Load profiles as blobs.
*
* 10/1/19
* - from CMYK2XYZ.c
*/
/*
This file is part of VIPS.
VIPS 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 of the Lice... |
/* ----------------------------------------------------------------- */
/* The Speech Signal Processing Toolkit (SPTK) */
/* developed by SPTK Working Group */
/* http://sp-tk.sourceforge.net/ */
/* -----------------------------... |
/* fibers.c -- extremely simple lightweight thread (fiber) implementation
Copyright (C) 2016-2020 Free Software Foundation, Inc.
Contributed by <NAME> <<EMAIL>>
for General Processor Tech.
Copyright (C) 2015-2020 Free Software Foundation, Inc.
Contributed by <NAME> <<EMAIL>>
for General Processor Tec... |
/*
* Copyright (c) 2021 <NAME> <<EMAIL>>
* Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <ztest.h>
#include <zephyr/zephyr.h>
#include <stdlib.h>
#include <arm_math.h>
#include "../../common/test_common.h"
#include "f32.pat"
#defi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.