text stringlengths 3.08k 10.5k |
|---|
/*
* Prototypes for functions in icont.
*/
void addinvk (char *name, int n);
void addlfile (char *name);
pointer alloc (unsigned int n);
void alsolink (char *name);
int blocate (word s);
struct node *c_str_leaf (int type,struct node *loc_model, char *c);
void closelog ();
void codegen (struct node *t);
vo... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team,
* check out http://www.gromacs.org for more information.
* Copyright (c) 2012,2013, by the GROMACS development team, l... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2010 The Trustees of Indiana University.
* All rights reserved.
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2019 Intel,... |
/*
* dat2h.c - resid dat file to header conversion program.
*
* 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 ... |
/*
* FIG : Facility for Interactive Generation of figures
* Copyright (c) 1989-2007 by <NAME>
*
* Any party obtaining a copy of these files is granted, free of charge, a
* full and unrestricted irrevocable, world-wide, paid up, royalty-free,
* nonexclusive right and license to deal in this software and documentat... |
//
// Created by dylan on 18/04/2017.
//
#include <pthread.h>
#include "Server.h"
#include "Game.h"
#include "SnakeMove.h"
#include "../utility/General.h"
#include "Food.h"
#include "../settings/GameSettings.h"
#include "API/SnakesAPI.h"
#include <unistd.h>
pthread_mutex_t lock;
Vector * foods;
Vector * connections;
... |
/**
* FreeRDP: A Remote Desktop Protocol Implementation
* Keyboard Localization - loading of keymap files
*
* Copyright 2009-2012 <NAME> <<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... |
#include <stdio.h>
#include "chunk.h"
#include "object.h"
#include "op.h"
#include "value.h"
int mesche_disasm_simple_instr(const char *name, int offset) {
printf("%s\n", name);
return offset + 1;
}
int mesche_disasm_const_instr(const char *name, Chunk *chunk, int offset) {
uint8_t constant = chunk->code[offse... |
/*
Copyright (C) 1997-2018 <NAME> <<EMAIL>>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commer... |
/*
* Copyright (C) 2019 <NAME>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup usbus_cdc_ecm
* @{
* @file Netdev implementation for ethernet control model
*
* @author ... |
/*
* Copyright (c) 2004, <NAME>.. All rights reserved.
* Created by: <NAME>
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that... |
/**
* \file
*
* \brief SMC PSRAM Example for SAM.
*
* Copyright (c) 2011 - 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met... |
/*
** An alternative implemtation of "strtod()" that is both
** simplier, and thread-safe.
*/
#include <pthread.h>
#include <ctype.h>
#include <math.h>
#ifdef TEST
# define strtod NewStrtod
#include <stdio.h>
#endif
static double scaler10[] = {
1.0, 1e10, 1e20, 1e30, 1e40, 1e50, 1e60, 1e70, 1e80, 1e90
};
static do... |
/*
* Header file for pwglobalalign.c
* - Imports standard, Python, and Numpy libraries
* - #defines a few constants
* - Defines structs and declares related functions
* - Declares main alignment functions
*/
// Standard libraries
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdarg.h>
#i... |
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "lift.h"
double B_integral (double xp, double yp, double zp,
double delta_x, double delta_y, double delta_z,
double xa, double ya, double za) {
/*This function returns the result of the path integral along a wire
segment, which... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <math.h>
/* libarchfpga data structures*/
#include "util.h"
#include "physical_types.h"
/* END */
/* VPR data structures*/
#include "vpr_types.h"
#include "globals.h"
#include "rr_graph.h"
#include "vpr_utils.h"
/* END */
/* mrFPGA: Xifan TANG*/
#in... |
/*
# Copyright 2021 Hewlett Packard Enterprise Development LP
#
# 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, m... |
/* $NetBSD: plumisa_machdep.c,v 1.2 2001/09/16 05:32:20 uch Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by UCHIYAMA Yasushi.
*
* Redistribution and use in source and binary forms, with or witho... |
/*
* License:The MIT License (MIT)
*
* Copyright (c) 2013,2014 <NAME>
* State Key Laboratory of Robotics and System, Harbin Institute of Technology
*
* 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 So... |
/*s: libc/9sys/tm2sec.c */
#include <u.h>
#include <libc.h>
/*s: constant [[TZSIZE]](9sys/tm2sec.c) */
#define TZSIZE 150
/*e: constant [[TZSIZE]](9sys/tm2sec.c) */
static void readtimezone(void);
static int rd_name(char**, char*);
static int rd_long(char**, long*);
/*s: global [[timezone]](9sys/tm2sec.c) */
st... |
/*
* Copyright (c) 2019, <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 ... |
/**
* This file is part of Pluto.
*
* This software is available under the MIT license. Please see LICENSE in the
* top-level directory for details.
*
* Polylib interface for PlutoConstraints.
*
*/
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/tim... |
/**
* \file
* \brief CryptoAuthLib Basic API methods for AES command.
*
* The AES command supports 128-bit AES encryption or decryption of small
* messages or data packets in ECB mode. Also can perform GFM (Galois Field
* Multiply) calculation in support of AES-GCM.
*
* \note List of devices that support this c... |
//
// Created by philip on 02.12.20.
//
#include <image.h>
#include <lauxlib.h>
#include <lualib.h>
#include <luaconf.h>
#include "luacolor.h"
#include "luakernel.h"
#include "luaimage.h"
typedef struct image_wrapper {
ImageFloat base;
/**
* if `true`, the image is subject to lua garbage collection. must... |
/* exp2.c
*
* Base 2 exponential function
*
*
*
* SYNOPSIS:
*
* double x, y, cephes_exp2();
*
* y = cephes_exp2( x );
*
*
*
* DESCRIPTION:
*
* Returns 2 raised to the x power.
*
* Range reduction is accomplished by separating the argument
* into an integer k and fraction f such that
* x ... |
//------------------------------------------------------------------------------------//
// MIT License
//
// Copyright (c) 2022 <NAME> and <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 th... |
/*
* Copyright (c) 2010 <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... |
/*----------------------------------------------------------------------
* Module name: my_iconv
* Author name: <NAME>
* Create date: 07 Sep 08
* Purpose: iconv handles
*----------------------------------------------------------------------
Changes:
* 04 Jan 10, <EMAIL>: use path specfied with -P to
* loa... |
#include "file.h"
#include <stdio.h>
#include <stdlib.h>
// GLOBALS & CONSTANTS.
static FILE * g_db_file;
Page * g_header_page;
Page * g_root_page;
// FUNCTION DEFINITIONS.
/* Open existing data file using ‘pathname’ or create one if not existed.
* If success, return 0. Otherwise, return -1.
*/
int open_db(con... |
// Copyright (c) 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, distr... |
/*****************************************************************************************
*****************************************************************************************
* File Name : merlin_tx_analog_functions.c *
* Created On : 29/04/2013 ... |
/*
* w3http.c
*
* Copyright (C) 1998 - 2000 <NAME>
* EMail: <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... |
//=======================================================
//Project Name: S.C. Operating System
//Version: 0.02
//Auther: <NAME>
//=======================================================
#include "idt.h"
#include "gdt.h"
#include "screen.h"
#include "mem.h"
#include "fdc.h"
#include "dma.h"
#include "fs.h"... |
/**************************************************************************/
/*!
@file mpl115a2.c
@author <NAME> (microBuilder.eu)
@brief Drivers for the Freescale MPL115A2 I2C Digital Barometer
@section DESCRIPTION
The MPL115A2 is an I2C absolute pressure sensor, employing a MEMS
... |
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2012-2015 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
/* Copyright (C) 1989, 1995, 1996, 1997 Aladdin Enterprises. All rights reserved.
This file is part of Aladdin Ghostscript.
Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
or distributor accepts any responsibility for the consequences of using it,
or for whether it serves any ... |
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#define GENERATE_AST_TYPE_ENUM_FUNCS 1
#include "huo_ast.h"
#undef GENERATE_AST_TYPE_ENUM_FUNCS
#include "../base_util.h"
struct huo_ast_t {
enum ast_type_e type;
size_t size;
struct Value content;
struct Value name;
huo_ast ** children;... |
/*
* Copyright 2018 NXP
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include "FreeRTOS.h"
#include "mflash_file.h"
#include "mflash_drv.h"
#include "fsl_common.h"
static mflash_file_t *g_file_table = NULL;
static bool g_mflash_initi... |
#include <stdint.h>
#include <stdarg.h>
#include "lib.h"
#include "calculator.h"
#define EPSILON 0.0001
extern void read(char * buf);
extern void write(char * buf, uint64_t count, uint64_t abajoarriba);
extern void switchScreen();
extern void time(char * buf);
extern void getCpuid(char * buf);
extern void cputemp(char... |
#include "sprite.h"
#include "base.h"
extern u8 bitmap[];
static SpriteContext defaultCtx;
static SpriteContext *ctx = &defaultCtx;
void spriteContext(SpriteContext *c) {
ctx = c ? c : &defaultCtx;
}
void spriteSetup(Sprite *s, u8 n, u8 stride) {
if (!s) return;
ctx->free = s;
ctx->active = nil;
for (u8 i = 0;... |
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
#include "SIMUL.h"
RESULTS *new_results(double performance)
{
RESULTS *results;
results = (RESULTS *) malloc(sizeof(RESULTS));
if (results == NULL)
{
printf("Couldn't allocate memory for results ! \n");
... |
/*
* swinst_rpm.c:
* hrSWInstalledTable data access:
*/
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-features.h>
#include <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HA... |
// Copyright (c) 2004-2020 Microchip Technology Inc. and its subsidiaries.
// SPDX-License-Identifier: MIT
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <linux/types.h>
#include <linux/spi/spidev.h>
#include "microchip/ethernet/switch/api.h"
#include "mi... |
#include "opus_test.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include <assert.h>
#include <esp_types.h>
#include <stdio.h>
#include "rom/ets_sys.h"
#include "esp_heap_caps.h"
#include <stdlib.h>
#include <string.h>
#include "opus.h"
#include "opusenc.h"
#incl... |
#include <stdio.h>
#include <stdlib.h>
float *profit,*weight,*p_wfrac,*solution,total_weight;
int *product,n;
void print();
void input();
void make_zeros();
void bubblesort(float *,float *,float *,int);
void swap(float *,float *,float *,int,int);
float knapsack_weight();
float knapsack_profit();
float kn... |
/* $OpenBSD: dev_hppa.c,v 1.14 2010/12/06 22:51:45 jasper Exp $ */
/*
* Copyright (c) 1998-2004 <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... |
#include "stm32l1xx_hal_rotary_encoder.h"
/*
HOW TO USE THIS DRIVER:
This driver is written to be used without CubeMX, although it can be used with.
1. According to current interrupt priority group - HAL_NVIC_SetPriorityGrouping() user must define
preemption priority and sub priority by changing values
#define ENC... |
#include <esp8266_auxrom.h>
#include <uart_dev.h>
#include <eagle_soc.h>
#include <ets_sys.h>
#include "nosdk8266.h"
extern UartDevice UartDev;
#define sys_const_crystal_26m_en 48 // soc_param0: 0: 40MHz, 1: 26MHz, 2: 24MHz
volatile uint32_t * DPORT_BASEADDR = (volatile uint32_t *)0x3ff00000;
volatile uint32_t * PIN... |
/*
* bmp.c
*
* Created on: Dec 13, 2018
* Author: Bernard
*/
#include "bmp.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* Destroys and frees memory used by the given bitmap
* Takes 1 parameter: a pointer to the bitmap to destroy
*
*/
void bmp_destroy(struct d_bmp ... |
// Copyright (c) 2019, University of Washington 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 cond... |
#pragma once
#include "../base64.h"
#include "../db.h"
#include "../db_arena.h"
#include "../db_map.h"
#include "../db_api.h"
#include "../db_object.h"
#include "../db_handle.h"
#include "../db_cursor.h"
#include "../db_frame.h"
#include <stddef.h>
#define MAX_cursor 4096
// Artree interior nodes
enum ARTNodeType {... |
/*
* Microwindows touch screen driver for G.Mate YOPY
*
* Copyright (c) 2000 Century Software Embedded Technologies
*
* Requires /dev/yopy-ts kernel mouse driver.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <math.h>
#include <sys/ioctl.h>
#include "... |
/********************************
* *
* Assassin - 6809 assembler *
* *
* <NAME> 6/11/88 *
* *
* addr.c - function module *
* *
********************************/
#include <stdio.h>
... |
#include "camera.h"
#include "legato.h"
#include "serial.h"
const unsigned char stopCaptureCMD[] = { 0x56 ,0x00 ,0x36 ,0x01 ,0x03 };
const unsigned char stopCaptureACK[] = { 0x76 ,0x00 ,0x36 ,0x00 ,0x00 };
const unsigned char captureImageCMD[] = { 0x56 ,0x00 ,0x36 ,0x01 ,0x00 };
const unsigned ch... |
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <linux/limits.h>
#include <linux/vfio.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <driver/device.h>
ssize_t MIN_DMA... |
#include "sedona.h"
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#define PORT_NAME_FORMAT "/dev/ttymxc%d"
#define HANDLE_ARRAY_LEN 128
//#define DUMP_SERIAL_DATA 1
typedef struct _SerialData {
char name[32];
int hFile;
} SerialData;
int setupPort(int fd, int baudRate, int dataBits, int stopBits,... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "kthread.h"
#include "ketopt.h"
#include "bseq.h"
#include "yak-priv.h"
typedef struct {
int k, n_threads, min_cnt, min_streak;
int64_t chunk_size;
bseq_file_t *fp;
const yak_ch_t *ch;
} ce_shared_t;
typedef struct {
int n_seq;
ce_shared_t *aux... |
//==============================================================================
//
// main_screen.c - Epson IMU sensor test application
// - This program initializes the Epson IMU and
// sends sensor output to console
//
//
// THE SOFTWARE IS RELEASED INTO THE PUBLIC DOMAIN.
// ... |
/* Copyright (C) 1999 Lucent Technologies */
/* Excerpted from 'The Practice of Programming' */
/* by <NAME> and <NAME> */
/*
* EDITOR: cols=80, tabstop=2
*
* Change History:
* DEC 2015, <NAME>
* - Pulled it all into one file (for demos)
* - Changed formatting a wee bit
*/
#include <stdio.h>
#include <string.h... |
#include <avr/io.h>
#include <util/delay.h>
#include <stdint.h>
#include "iopins.h"
#include "nsdelay.h"
#include "wsrgb.h"
#include "color.h"
#include "ws_config.h"
/* Driver code for WS2812B */
void ws_init()
{
as_output(WS_PIN);
}
/** Wait long enough for the colors to show */
void ws_show() {
delay_ns_c(WS_... |
/*
This file is part of "psdparse"
Copyright (C) 2004-9 <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) an... |
#include "aok.h"
#include <unistd.h>
Game gGame;
char lighting[][10] = {
{ 0, 4, 12, 34, -1 },
{ 0, 5, 28, -1 },
{ 2, 5, 10, 17, 21, 22, -1 }
};
uchar
GetLighting(View *view, ushort idx, int patternidx)
{
char *pattern;
uchar res, icm, pix;
if(patternidx < 0)
return 4;
pattern = lighting[patternidx];
pix =... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* raytracing.c :+: :+: :+: ... |
/*
* Copyright (c) 2020
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "iot/config.h"
#include "iot/container.h"
typedef struct iot_parsed_holder_t
{
char * parsed;
size_t size;
size_t len;
} iot_parsed_holder_t;
static const iot_data_t * iot_config_get_type (const iot_data_t * map, const... |
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "warehouse_db.h"
#include "error_checking.h"
#define equals(s1, s2) !strcmp(s1, s2)
#define BOOLEAN char
#define TRUE 1
#define FALSE 0
int max;
int... |
/* $OpenBSD: if_urtwn.c,v 1.16 2011/02/10 17:26:40 jakemsr Exp $ */
/*-
* Copyright (c) 2010 <NAME> <<EMAIL>>
* Copyright (c) 2014 <NAME> <<EMAIL>>
* Copyright (c) 2015-2016 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted,... |
/*@H
* File: ray.h
* Author: <NAME>
* Created: October 22, 2017, 16:20
* Last modified: November 2, 2017, 18:13
*/
#pragma once
#include <stdint.h>
#include <limits.h>
#include <float.h>
typedef int8_t int8;
typedef int16_t int16;
typedef int32_t int32;
typedef int64_t int64;
typedef int32 bool32;
... |
// This code is part of lua2exe
// Base executable VM
#include<lua/lua.h>
#include<lua/lualib.h>
#include<lua/lauxlib.h>
#include<zlib.h>
#include<stdio.h>
#include "lua2exe.h"
lua_State* l = NULL;
GlobalChunkInfo ginfo = {0, 0, 0};
char selfname[300] = {0};
#if defined __WIN32 || defined __WIN64
#include<windows.h>
... |
#include <stdint.h>
#include <stdio.h>
#include "ntp.h"
#include "EILog.h"
#include "nlp.h"
#include "EIHttpClient.h"
#include "base64.h"
#include "md5.h"
#if defined(UNIX)
#include "tinycap.h"
#endif
#include "vad.h"
#include <cstring.h>
#include <date.h>
#include <file.h>
#include "cJSON_user_define.h"
static cstrin... |
/*
* librd - Rapid Development C library
*
* Copyright (c) 2012-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:
*
* 1. Redistributions of source code must retain the above... |
/* GCVideo DVI Firmware
Copyright (C) 2015-2020, <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... |
#include <stdio.h>
#include <string.h>
#include <pthread.h>
#include "lwsiot.h"
#include "lws_proto_parser.h"
typedef struct _LwsClient {
ClientType type;
char device_id[DEVICE_ID_LEN];
char lws[LWS_ID_LEN];
char host[HOST_LEN];
int port;
char certs_path[CERT_PATH_MAX + 1];
void *client;
... |
/*
_StringLength cseg 00004CD2 0000001B
_StringCopy cseg 00004CED 00000034
_StringNCopy cseg 00004D21 0000003F
_StringCat cseg 00004D60 0000003C
_StringCompare cseg 00004D9C 0000002A
_String2Int ... |
/*------------------------------------------------------------------------------
*
* Copyright (c) 2011-2021, EURid vzw. All rights reserved.
* The YADIFA TM software product is provided under the BSD 3-clause license:
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... |
#ifdef BML_USE_MAGMA
#include "magma_v2.h"
#endif
#include "../../internal-blas/bml_gemm.h"
#include "../../typed.h"
#include "../bml_allocate.h"
#include "../bml_logger.h"
#include "../bml_multiply.h"
#include "../bml_parallel.h"
#include "../bml_trace.h"
#include "../bml_types.h"
#include "bml_allocate_dense.h"
#inc... |
//! @file
//!
//! @brief
//! Shell commands for experimenting with breakpoints
#include "shell/shell.h"
#include <inttypes.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dummy_functions.h"
#include "fpb.h"
#include "hal/logging.h"
... |
/*<copyright notice="lm-source" pids="" years="2017">*/
/*******************************************************************************
* Copyright (c) 2017 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ... |
/**
* \file
*
* \brief UC3-L0 Xplained demo application that reads the board temperature
* sensor and changes the color of the board RGB LED based on touch input.
*
* Copyright (c) 2011 - 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in sour... |
/* packet-text-media.c
* Routines for text-based media dissection.
*
* NOTE - The media type is either found in pinfo->match_string,
* or passed into the dissector
*
* (C) <NAME>, 2004.
*
* Refer to the AUTHORS file or the AUTHORS section in the man page
* for contacting the author(s) of this file.
*
... |
/*-
* Copyright (c) 2020 <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) 2020, ControlThings Oy Ab
*
* 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
*
* @license Apache-2.0
*/
#include <std... |
#include <stdint.h>
#include <unistd.h>
#include "boot.h"
#include "command.h"
#include "hwinfo.h"
#include "link.h"
#include "mailbox-link.h"
#include "panic.h"
#include "console.h"
#include "server.h"
#include "psci.h"
#define MAX_MBOX_LINKS 8
static struct link *links[MAX_MBOX_LINKS] = {0};
static int l... |
/*
* Power off driver for ams AS3722 device.
*
* Copyright (c) 2013, NVIDIA Corporation.
*
* Author: <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 version 2.
*
* T... |
/*
* Copyright 2020 Mavenir
*
* 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 ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <time.h>
#include <fcntl.h>
#include <signal.h>
#include <errno.h>
#include <sys/select.h>
#include "libsuperlog.h"
static const char *usage = "Collect output logs from another program\n\n"
" usage: superlog [o... |
/*
* path_utils.c
*
* Copyright (C) 2014 <NAME>
*
*
* 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 condition... |
/*
* 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... |
/*
(c) Copyright 2013 - 2016 Xilinx, Inc. All rights reserved.
This file contains confidential and proprietary information of Xilinx, Inc. and
is protected under U.S. and international copyright and other intellectual
property laws.
DISCLAIMER
This disclaimer is not a license and does not grant any rights to the ma... |
/*
* 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 (at your option) any later version.
*
* This library is distributed in the hope that it wi... |
/**
* \file
*
* \brief Touch screen interface functions for the UC3C-EK
*
* Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with ... |
#line 1 "../fortran/xsetf.f"
/* ../fortran/xsetf.f -- translated by f2c (version 20100827).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf... |
#define _SYSTEM 1
#include <minix/callnr.h>
#include <minix/com.h>
#include <minix/config.h>
#include <minix/const.h>
#include <minix/ds.h>
#include <minix/endpoint.h>
#include <minix/minlib.h>
#include <minix/type.h>
#include <minix/ipc.h>
#include <minix/sysutil.h>
#include <minix/syslib.h>
#include <minix/safecopi... |
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "common.h"
#include "fpp.h"
#include "libpush.h"
#include "sha1.h"
#include "sha1util.h"
#define BLOCKSIZE 512
static int push_chunk(struct push_context *ctx, SHA1_CTX *sha1_ctx)
{
int rv = 0;
fpp_msg_t rsp;
struct sha1 digest;
off_t... |
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <string.h>
#include <errno.h>
#include <locale.h>
#include <sys/stat.h>
#include <glib.h>
#include <glib/gi18n.h>
#include <glib/gstdio.h>
#include <hb-ot.h>
#include "language-names.h"
#ifndef ISO_C... |
/* $Id$ */
/* Copyright (c) 2017-2018 <NAME> <<EMAIL>> */
/* This file is part of DeforaOS Desktop Mixer */
/* 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 sourc... |
#include "nc.h"
static nc_shell_cmd cmds[SCMD_MAX];
static int cmd_current_code = 0;
static int current_room_sock;
static int func_cmd_help(char *cmd, nc_opts *opts);
static int func_cmd_ping(char *cmd, nc_opts *opts);
static int func_cmd_quit(char *cmd, nc_opts *opts);
static int func_cmd_connect(char *cmd, nc_opts ... |
#include "main/mtypes.h"
#include "main/macros.h"
#include "main/samplerobj.h"
#include "intel_context.h"
#include "intel_mipmap_tree.h"
#include "intel_tex.h"
#define FILE_DEBUG_FLAG DEBUG_TEXTURE
/**
* When validating, we only care about the texture images that could
* be seen, so for non-mipmapped modes we want... |
/*
Copyright 2019-2020 NetFoundry, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softw... |
/* This file is part of the YAZ toolkit.
* Copyright (C) Index Data
* See the file LICENSE for details.
*/
/** \file test.c
\brief Unit Test for YAZ
*/
#if HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#if HAVE_UNISTSD_H
#include <unistd.h>
#endif
#includ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.