text stringlengths 5.8k 28.2k |
|---|
#include <THC/THC.h>
#include "cuda/dcn_v2_im2col_cuda_double.h"
#include "cuda/dcn_v2_psroi_pooling_cuda_double.h"
extern THCState *state;
// author: <NAME>
// https://github.com/torch/cunn/blob/master/lib/THCUNN/generic/SpatialConvolutionMM.cu
void dcn_v2_cuda_forward(THCudaDoubleTensor *input, THCudaDoubleTensor ... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
//#define LOG_LOCAL_LEVEL ESP_LOG_ERROR
#include "esp_event_loop.h"
#include "esp_log.h"
#include "esp_wifi.h"
#include "esp_ota_ops.h"
#include "freertos/FreeRTOS.h"
#include "freertos/event_groups.h"
#include "freertos/task.h"
#include "nvs_flash.h"
#include "rom/ets_sys.h"
#include <string.h>
#include "ota.h"
#inc... |
/*
* wslua_byte_array.c
*
* Wireshark's interface to the Lua Programming Language
*
* (c) 2006, <NAME> <<EMAIL>>
* (c) 2008, <NAME> <<EMAIL>>
* (c) 2011, <NAME> <<EMAIL>>
* (c) 2014, <NAME> <<EMAIL>>
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* This program is... |
/*
This Software is distributed with the following X11 License,
sometimes also known as MIT license.
Copyright (c) 2010 <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
restric... |
//
// Created by akatsarakis on 07/03/19.
//
#include <spacetime.h>
#include <util.h>
//////////////////////////////////////////////////
//////////////////// Chain Replication / CRAQ KVS
//////////////////////////////////////////////////
//////////////////////////////////////////////////
//////////// Helper func... |
/*
* 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, copy, modify, merge, pu... |
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "util/common.h"
#include "util/log.h"
#include "predictors/rotating_ewma.h"
#define TO_E(p) struct predictor_rotating_ewma_t *pe = (struct predictor_rotating_ewma_t *)(p)
#define INDEX(p, j) (p)%(j)
#define EWMA(... |
/*
** $Id: cn07c.c,v 1.8 2010-03-15 22:49:23 haley Exp $
*/
/***********************************************************************
* *
* Copyright (C) 1995 *
* University Corporation for ... |
/*************************************************************************
* Copyright (C) 2008 <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, includi... |
/* parprouted: ProxyARP routing daemon.
* (C) 2008 <NAME> <<EMAIL>>
*
* This application 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.
*
* This software is... |
#include <gtk/gtk.h>
#include "lsystem.h"
#include "lsystem_scanner.h"
#include "lsystem_parser.h"
#include "colormap_vga1.h"
struct Tab {
char* name;
cairo_surface_t *surface;
GtkWidget* notebook;
GtkWidget* drawing_area;
int pageno;
struct Line* lines;
double min_x;
double max_x;
... |
// FAT32 file recovery
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <math.h>
#include <ctype.h>
#include <stdbool.h>
#define DEBUG 0
// This macro is to read 4 bytes in little endian order at address a
#defin... |
/***********************************************************************
* グラフィック処理 (システム依存)
*
* 詳細は、 graph.h 参照
************************************************************************/
/*----------------------------------------------------------------------*
* Classicバージョンのソースコードの大部分は、 ... |
/******************************************************************************
* replay.c
*
* Replay the log output of search-structure runs.
* Must build set_harness.c with DO_WRITE_LOG defined.
*
* Copyright (c) 2002-2003, <NAME>
*
* All rights reserved.
*
* Redistribution and use in source and binary ... |
// Generated by HLC 4.2.1 (HL v4)
#define HLC_BOOT
#include <hlc.h>
#include <_std/EReg.h>
#include <hl/types/ArrayObj.h>
#include <hl/natives.h>
extern String s$g;
hl__types__ArrayObj String_split(String,String);
extern String s$;
String hl_types_ArrayObj_join(hl__types__ArrayObj,String);
extern hl_type t$_i32;
Strin... |
/**
* A probably broken ymodem implementation.
*
* Based on the documentation in XMODEM/YMODEM PROTOCOL REFERENCE
*
* http://www.blunk-electronic.de/train-z/pdf/xymodem.pdf
*
* Tested against MINICOM's implementation, for receive only. This implementation supports 1024-byte blocks, batch
* transfers, an... |
/*
* Copyright (c) 2011 Intel Corporation. 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 restriction, including
* without limitation the rights to use, ... |
/**
* Author: <NAME>
*
* Description: MPI (parallel) version of jacobi_seq.c
*
* If you use this code for academic work, please also reference:
* <NAME>, <EMAIL>.
*/
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <sys/time.h>
#include <mpi.h>
#include <omp.h>
#include <string.h>... |
/* -*- Mode: C ; indent-tabs-mode: nil ; c-file-style: "stroustrup" ; column-number-mode: t -*-
Project: YAHA, DNA alignment tool designed to find optimal split-read mappings on single-end queries.
Author: <NAME> (<EMAIL>)
File: FragsClumps.c Includes code for fragment and clump manipulation.
... |
/*
* =====================================================================================
*
* Filename: gmm.c
*
* Description: using EM algorithm to figure out gaussion mixture models
*
* Version: 1.0
* Created: 03/12/2019 18:52:18
* Revision: none
* Compiler: gcc
*
... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86MiscExt.c,v 1.16 2003/11/03 05:11:02 tsi Exp $ */
/*
* Copyright (c) 1999-2003 by The XFree86 Project, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
... |
/*
# Family Name: Cakmak
# Given Name: Ege
# Student Number: 215173131
# CSE Login: cakmake
*/
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <unistd.h>
#include <math.h>
#include <errno.h>
#include "sch-helpers.h"
typedef int bool;
#define true 1
#define false 0
#define numberOfProcessors 4... |
/* Boilerplate C file providing an interface to the RADAU5 solver.
Provides functions for allocating and initialising the memory
used in arguments to the Fortran code, and for releasing it
again. This interface provides many fewer options than the
RADAU5 function itself, but should also be a lot easier to
... |
/*
Copyright (c) 2012, <NAME> <<EMAIL>>
Copyright (c) 2013- <NAME> <<EMAIL>> and <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:
* Redistributions of source code must retain the ab... |
#define WIN32_EXTRA_LEAN
#include "typedefs.h"
#include <stdio.h>
#include "main.h"
#include <windows.h>
#include "new3d.h"
#include "quat.h"
#include "main.h"
#include <dplay.h>
#include "CompObjects.h"
#include "bgobjects.h"
#include "Object.h"
#include "mydplay.h"
#include "file.h"
#include "Triggers.h"
#include "Tr... |
//
// main.c
// Forks
//
// Created by <NAME> on 2/15/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
#include "definitions.h"
int main(int argc, char **argv){
// If arguemnt is greater than 1
if(argc > 1)
//Batch file being the only argument taken is set to true
batch=1;
//Bre... |
#include "oss_media_hls_stream.h"
static int16_t oss_media_get_digit_num(int32_t value)
{
int16_t digit_num = 0;
do {
value = value / 10;
digit_num++;
} while (value > 0);
return digit_num;
}
static char *oss_media_create_new_ts_file_name(
const oss_media_hls_stream_options_t ... |
/*
* _____ ____ _____ _ __ _____ _______ _____ ______ _____ _____
* / ____|/ __ \ / ____| |/ // ____|__ __| __ \| ____|/ ____|/ ____|
* | (___ | | | | | | ' /| (___ | | | |__) | |__ | (___ | (___
* \___ \| | | | | | < \___ \ | | | _ /| __| \___ \ \___ \
* ____) | ... |
/* pru1_statemachine_arbitration.c: state machine for INTR/DMA arbitration
Copyright (c) 2018, <NAME>
<EMAIL>, www.retrocmp.com
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 restri... |
/* $OpenBSD$ */
/*
* Copyright (c) 2008 <NAME> <<EMAIL>>
* Copyright (c) 2016 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
... |
/* Copyright (C) 2001-2021 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
implied.
This software is distributed under license and may not be copied,
modified or distributed except as expressly authorized under the terms
of the license ... |
/******************** (C) COPYRIGHT 2011 **************************************
* File Name : ad7799_filter.c
* Hackerees : deh
* Date First Issued : 07/18/2011
* Board : STM32F103VxT6_pod_mm
* Description : ad7799 filtering
********************************************************... |
/* Driver for the SHT21 Relative Humidity and Temperature Sensor */
#include <minix/ds.h>
#include <minix/drivers.h>
#include <minix/i2c.h>
#include <minix/i2cdriver.h>
#include <minix/chardriver.h>
#include <minix/log.h>
#include <time.h>
/*
* Device Commands
*/
/*
* The trigger commands start a measurement. 'H... |
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "../include/lowmc.h"
#include "../include/lowmc_mpc.h"
#include "../include/picnic.h"
#include "../include/picnic_hash.h"
uint32_t picnic_signature_max_size(picnic_params_t* params) {
return params->challenge_size + PICNIC_SALT_SIZE + params->mpc_r... |
/*
* authors : <NAME>, <NAME>
* logins : <EMAIL>, <EMAIL>
* group : 1.4
*
*/
#include "mem.h"
void * findMalloc(tList *l, size_t tam) {
for (int i = 0; i < l->count; i++) {
if (l->nodo[i].mem_type==MMALLOC && l->nodo[i].size==tam)
return l->nodo[i].address;
i++;
}
return NULL;
}
void Malloc... |
//
// btree.c
// hfsinspect
//
// Created by <NAME> on 11/26/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#include <search.h>
#include "memdmp/memdmp.h" // memdmp
#include "hfs/btree/btree.h"
#include "hfs/btree/btree_endian.h"
#include "hfs/unicode.h"
#include "volumes/utilities.h" // ... |
/***************************************************************
Author: <NAME>
Section: 502
Date: 4/11/2015
Description:This is the source code for the final project application for ECEN210.
This is a Phonebook application designed to create,store,copy,delete,search and display list of contacts.
Further explanation o... |
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <time.h>
#define LINESIZE 1024
#define NUMLINES 100
#define NUMPARTITIONS 4
#define TOTALMEMORY 1000
static int PARTITIONS[4] = {500, 250, 150, 100};
//the struct that keeps track of a process
typedef struct pcb {
int pid... |
/*
** EPITECH PROJECT, 2021
** get_csfml_keys (Workspace)
** File description:
** display_sprite.c
*/
// #include <SFML/Graphics.h>
#include <SFML/Graphics/RenderWindow.h>
// #include <SFML/Graphics/Sprite.h>
// #include <SFML/Graphics/Texture.h>
#include <stdlib.h>
#include "include/my_window.h"
#include "include/my_... |
#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define DEFAULT_RUNS 10
#define MAX_OBJ 1000
// Individuo (solucao)
typedef struct individual chrom, *pchrom;
struct individual{
// Solucao (objetos que estao dentro da mochila)
int ... |
/*
* this file is part of shus.
*
* Copyright (c) 2015, 2017 <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... |
/******************** (C) COPYRIGHT 2016 ANO Tech ***************************
* 作者 :匿名科创
* 文件名 :ANO_IMU.c
* 描述 :姿态解算函数
* 官网 :www.anotc.com
* 淘宝 :anotc.taobao.com
* 技术Q群 :190169595
*****************************************************************************/
#include "Ano_Imu.h"
#include "Ano_Math.h"... |
#include <math.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include "spectrum.h"
double AN();
double AHeIIN();
double AHminus2();
double Hmff();
double he1op_av(double nu,double T,double Ne);
double *dvector();
double dmin();
double poly();
double cutoff();
double pcutoff();
double lcutoff();
float *ve... |
#include <laurelang.h>
#include <predpub.h>
#include <laureimage.h>
#include <math.h>
#include <builtin.h>
#define DOC_each "Array enumerating predicate\n```each(array) = element```\nFrom @/array pkg"
#define DOC_by_idx "Predicate of idx to element relation in array\n```array by_idx idx = element```\nFrom @/array pkg"... |
/*
* Copyright(C) 2012 <NAME>. All Rights Reserved.
*
* This file is part of the YARD-ICE.
*
* 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 3.0 of the License,... |
/* $Id$ */
/*--------------------------------------------------------------------*/
/*; Copyright (C) 2006,2019 */
/*; Associated Universities, Inc. Washington DC, USA. */
/*; */
/*; This ... |
/*
* Copyright (c) 1983, 1988, 1993
* The Regents of the University of California. 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... |
#include "canvas.h"
#include <math.h>
#include <ctype.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
Chunk *createChunk(int x, int y)
{
Chunk *c = malloc(sizeof(Chunk));
c->x = x;
c->y = y;
for (int i = 0; i < 8; ++i)
c->around[i] = NULL;
c->count = 0;
c->current = malloc(sizeof(bool) * CHUNK_S... |
/*
* Copyright (c) 2020 Bouffalolab.
*
* This file is part of
* *** Bouffalolab Software Dev Kit ***
* (see www.bouffalolab.com).
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* 1. Redistributions ... |
#include "renderer.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
renderer *init_rend()
{
renderer *r = (renderer *)malloc(sizeof(struct renderer));
r->win = init_xwin();
int gl3attr[] = {
GLX_CONTEXT_MAJOR_VERSION_ARB, 3,
GLX_CONTEXT_MINOR_VERSION_ARB, 0,
GLX_CONTEXT_PR... |
/*
* MIPS MSA optimizations for libjpeg-turbo
*
* Copyright (C) 2016-2017, Imagination Technologies.
* All rights reserved.
* Authors: <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 ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
enum TimeDiv{tpb, fps};
int processOperation();
int processValue();
struct list *processLocation();
int processOperation_label();
int processValue_label();
struct list *processLocation_label();
//Setup for Chords
///////////////////////////... |
/*
* malloc lab:
* 1. baesed on the implement on csapp book
* 2. segregated free list
* 3. immediate coalescing
* 4. implicit free list
* 5. a little optimization for traces
* 6. mm_check added
*/
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unis... |
/* Copyright (c) 2017, <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... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
#include <stdint.h>
#include "test/cpucycles.h"
#include "params.h"
#include "fq.h"
#include "ntt.h"
#include "poly.h"
#ifdef DBENCH
extern const unsigned long long timing_overhead;
extern unsigned long long *tred, *tadd, *tmul, *tinv, *tsample, *tpack;
#endif
void poly_reduce(poly *a) {
unsigned int i;
DBENCH_ST... |
#include <stdio.h> // printf()
#include <stdlib.h> // atoi()
#include <pthread.h> // threads
#include <structs.h> // router
#include <settings.h> // message len
#include <sys/socket.h> // socket()
#include <arpa/inet.h> // IPPROTO_UDP
#include <semaphore.h> //
#include <time.h> // timespec
#inc... |
/*
* @Author: HanwGeek
* @Github: https://github.com/HanwGeek
* @Description: Tranlate abysn to IR module.
* @Date: 2019-10-31 21:34:35
* @Last Modified: 2020-03-07 17:55:27
*/
#include "translate.h"
#include "absyn.h"
#include "frame.h"
#include "tree.h"
#include "temp.h"
#include "util.h"
typedef struct patchL... |
/*
* Copyright (C) 2011 Freescale Semiconductor, Inc.
* <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/crm_regs.h>
#include <asm/arch/clock.h>
#include <asm/arch/iomux-mx53.h>
#incl... |
/*
* Marvell Wireless LAN device driver: management IE handling- setting and
* deleting IE.
*
* Copyright (C) 2012-2014, Marvell International Ltd.
*
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "Li... |
/*
* contrib/pgstattuple/pgstattuple.c
*
* Copyright (c) 2001,2002 <NAME>
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose, without fee, and without a
* written agreement is hereby granted, provided that the above
* copyright notice and this paragraph and... |
/*----------------------------------------------------------------------------
* Copyright (c) <2013-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... |
/* SSDP responder
*
* Copyright (c) 2017-2021 <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 SOFTWARE IS PROVIDED "... |
/*
Basic HTTP and WebDAV methods
Copyright (C) 1999-2021, <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 opti... |
/*
* --- ZyXEL header format ---
* Original Version by <NAME> <<EMAIL>>
* C implementation based on generation-script by <NAME> <<EMAIL>>
*
* The firmware image prefixed with a header (which is written into the MTD device).
* The header is one erase block (~64KiB) in size, but the checksum only convers the
* fir... |
// SPDX-License-Identifier: GPL-2.0+
/*
* EAP-FAST authentication method (RFC4851)
*
* Copyright 2012 - 2017 Red Hat, Inc.
*/
#include "nm-default.h"
#include "nma-private.h"
#include <ctype.h>
#include <string.h>
#include "eap-method.h"
#include "wireless-security.h"
#include "utils.h"
#include "helpers.h"
#de... |
// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
/*
* Copyright (c) 2018 Hisilicon Limited.
*/
#include <rdma/ib_umem.h>
#include <rdma/hns-abi.h>
#include "hns_roce_device.h"
#include "hns_roce_cmd.h"
#include "hns_roce_hem.h"
void hns_roce_srq_event(struct hns_roce_dev *hr_dev, u32 srqn, int event_type)
{
str... |
/**
* \file sbl_nand.c
*
* \brief NAND Initialization functions. And a function to copy data from
* NAND to the given address.
*/
/**
* \copyright Copyright (C) 2013 Texas Instruments Incorporated -
* http://www.ti.com/
*/
/*
* Redistribution and use in source and binary forms,... |
/*
* (C) 2012-2014 by <NAME> <<EMAIL>>
* (C) 2013 by <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later ve... |
// TABLE.H -- contains tables used by lexer and parser
//
// Copyright (c) 1988-1990, Microsoft Corporation. All rights reserved.
//
// Purpose:
// This include file contains parser tables and lexer tables.
//
// Revision History:
// 04-Dec-1989 SB Add proper proto's for PFV fn's which actions[] refers to
... |
#include <nginx.h>
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include "htmldoc.h"
typedef enum {
INPUT_TYPE_FILE = 0,
INPUT_TYPE_HTML,
INPUT_TYPE_URL
} ngx_http_htmldoc_input_type_t;
typedef enum {
OUTPUT_TYPE_PDF = 0,
OUTPUT_TYPE_PS
} ngx_http_htmldoc_output_type_t;
typ... |
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
* Copyright (c) 2015, Linaro Limited
* 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. Redistrib... |
/*
* Copyright (c) 2017, Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <string.h>
#include <misc/printk.h>
#include <xtensa-asm2.h>
#ifdef CONFIG_MULTITHREADING
#error Disable multithreading for this unit test!
#endif
/* Just random numbers intended to whiten the regis... |
/*
* GStreamer
* Copyright (C) 2005 <NAME> <<EMAIL>>
* Copyright (C) 2005 <NAME> <<EMAIL>>
* Copyright (C) 2015 <NAME> <rgewebppc at gmail.<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 i... |
/* 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/MPL/2.0/. */
#ifdef FREEBL_NO_DEPEND
#include "stubs.h"
#endif
#include "blapi.h"
#include "secerr.h"
#include "secitem.h"
#in... |
/** fcom interfaces.
Copyright (c) 2017 <NAME> */
#pragma once
#include <FF/array.h>
#include <FF/data/conf2-scheme.h>
#include <FF/sys/taskqueue.h>
#include <FF/sys/timer-queue.h>
#include <FFOS/file.h>
/*
CORE
LOG
COMMAND
FOPS
FSYNC
*/
/** THE CORE - manage modules, provide runtime helper functions. */
#define F... |
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... |
/*
* File : main.c
*
* Author : <NAME>
*
* Date : 23 July 2020
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/time.h>
#include <math.h>
#include <pthread.h>
#include "queue.h"
#include "timer.h"
void *producer(void *arg);
void *consumer(void *arg);
void *work(void *arg);
void *stop(... |
#define PAGEMASK MASK(PAGELOG)
#define PAGE_L0_3_DESC_VALID 0x1
#define PAGE_L0_2_DESC_TABLE 0x2 /* vs block */
#define PAGE_L1_4K_BLOCK_DESC_OUT_ADDR_SHIFT 30
#define PAGE_L1_4K_BLOCK_DESC_OUT_ADDR_BITS 18
#define PAGE_L2_4K_BLOCK_DESC_OUT_ADDR_SHIFT 21
#defin... |
#include <zebra.h>
#include <math.h>
#include "log.h"
#include "memory.h"
#include "prefix.h"
#include "table.h"
#include "command.h"
#include "vty.h"
#include "thread.h"
#include "linklist.h"
#include "if.h"
#include "ospf6_proto.h"
#include "ospf6_lsa.h"
#include "ospf6_lsdb.h"
#include "ospf6_route.h"
#include "o... |
/* ==== EXECUTABLE FILE DELIVERY AND EXECUTION ====
*
* Copyright 2013 Ravenbrook Limited <http://www.ravenbrook.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.... |
/* version 3.696.
Written by <NAME>, <NAME>, <NAME>, <NAME>,
<NAME>, and <NAME>.
Copyright (c) 1993-2014, <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 ... |
#define _POSIX_C_SOURCE 199309L
#ifdef __APPLE__
#define _DARWIN_C_SOURCE
#endif
#include <stdio.h>
#include <ctype.h>
#include <unistd.h>
#include <signal.h>
#include <errno.h>
#include <inttypes.h>
#include <limits.h>
#include <math.h>
#include <assert.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <libsrs... |
/*
* Phoenix-RTOS
*
* Virtqueue interface
*
* Copyright 2020 Phoenix Systems
* Author: <NAME>
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/list.h>
#include <sys/mman.h>
#include <sys/threads.h>
#include... |
/*
* Vortex OpenSplice
*
* This software and documentation are Copyright 2006 to TO_YEAR ADLINK
* Technology Limited, its affiliated companies and licensors. All rights
* reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file e... |
/* Configuration file for an m68k OpenBSD target.
Copyright (C) 1999 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC 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, or (at... |
/*
* Copyright (C) 2016 BlueKitchen GmbH
*
* 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... |
/*
* (C) 2004-2009 <NAME> <<EMAIL>>
*
* Licensed under the terms of the GNU GPL License version 2.
*/
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <getopt.h>
#include "cpufreq.h"
#include "helpers/sysfs.h"
#include "helpers/hel... |
/*
* Demonstration program for Nano-X graphics.
* Portions Copyright (c) 2002 by <NAME>.V.
*/
#include <stdio.h>
#include <stdlib.h>
#define MWINCLUDECOLORS
#include "nano-X.h"
#if DOS_TURBOC
unsigned _stklen = 32768;
#endif
/*
* Definitions to make it easy to define cursors
*/
#define _ ((unsigned) 0) /* off b... |
/*
* Copyright 2018 Digital Media Professionals 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
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applica... |
/*===-- timeit.c - LLVM Test Suite Timing Tool ------------------*- C++ -*-===*\
|* *|
|* The LLVM Compiler Infrastructure *|
|* ... |
/*
* Copyright 2013-2014 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
/* getfnm.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__3 = 3;
static integer c__1 = 1;
/* $Procedure GETFNM ( Get a filename from standard input ) */
/* ... |
/*
* Copyright 2014-2015 <NAME>
* Copyright 2013 <NAME>
* Copyright 2013 bitfury
*
* 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 opti... |
#include "libabl.h"
#include "time.h"
#include "stdio.h"
typedef struct {
double velocity;
float2 pos;
int id;
bool isFinished;
} Point;
static const type_info Point_info[] = {
{ TYPE_FLOAT, offsetof(Point, velocity), "velocity", false },
{ TYPE_FLOAT2, offsetof(Point, pos), "pos", true },
{... |
//
// kazmath_cl.h
// Sakura GL Toy
//
// Created by <NAME> on 2014-07-01.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
typedef struct quat
{
float x,y,z,w;
}quat;
typedef struct vec
{
float x,y,z;
}vec;
typedef struct vec4
{
float x,y,z,w;
}vec4;
typedef struct mat4
{
float m[16];
}m... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "freertos/event_groups.h"
#include "esp_log.h"
#include "lwip/err.h"
#include "lwip/sockets.h"
#include "lwip/sys.h"
#include "lwip/netdb.h"
#include "lwip/dns.h"
#in... |
/*************************************************************************
> File Name: main.c
> Author: <NAME>
> Mail: <EMAIL>
> Created Time: 2021年01月16日 星期六 16时14分40秒
************************************************************************/
/* MIT License
Copyright (c) 2021 Joker2770
Permission ... |
/*
* DAQ
*
* Author: <NAME> <<EMAIL>>
* Date:
*/
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <avr/wdt.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <avr/pgmspace.h>
#include "shsctrl.h"
#include "scc.h"
#include "io.h"
#include ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.