text stringlengths 3.12k 18.7k |
|---|
#include "graph_defs.h"
#include "balloon.h"
#include "prefetcher.h"
typedef struct sim_metadata_st {
double p1_old;
double p1_new;
double p2_old;
double p2_new;
unsigned long degree;
volatile unsigned long list1_next;
volatile unsigned long list2_next;
char inl1;
char inl2;
} sim_metadata_t;
stati... |
/*############################################################################
# Copyright 2017-2018 Intel Corporation
#
# 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.apach... |
// Options: --no-argc --no-arrays --no-bitfields --checksum --concise --no-consts --no-float --no-inline-function --max-array-dim 3 --max-array-len-per-dim 10 --max-block-depth 5 --max-block-size 4 --max-expr-complexity 2 --max-funcs 1 --max-pointer-depth 2 --no-pointers --no-structs --no-unions --no-volatiles --no-b... |
/**
* @file stun/ctrans.c STUN Client transactions
*
* Copyright (C) 2010 Creytiv.com
*/
#include <string.h>
#include <re_types.h>
#include <re_fmt.h>
#include <re_mem.h>
#include <re_mbuf.h>
#include <re_sa.h>
#include <re_udp.h>
#include <re_tcp.h>
#include <re_list.h>
#include <re_tmr.h>
#include <re_md5.h>
#in... |
/*
* net/dccp/ccid.c
*
* An implementation of the DCCP protocol
* <NAME> <<EMAIL>>
*
* CCID infrastructure
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* o... |
/*
* Copyright (c) 2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the h... |
/* ------------------------------------------------------------ */
/*
HTTrack Website Copier, Offline Browser for Windows and Unix
Copyright (C) 1998-2015 <NAME> and other contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published... |
/******************************************************************************/
/* */
/* CONV (converter) for Agrif (Adaptive Grid Refinement In Fortran) */
/* ... |
// BAR CODE SCANNER: http://stackoverflow.com/a/29956584
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <dirent.h>
#include <linux/input.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/select.h>
#include <sys/time.h>
#include ... |
/*
* Copyright (c) 2010, Swedish Institute of Computer Science.
* 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
* n... |
#include "main.h"
//#include "define.h"
//#include "tcpip.h"
#define UIP_HEAD 6
u8 tcp_server_databuf[300]; //??????
u8 tcp_server_sta; //?????
//[7]:0,???;1,????;
//[6]:0,???;1,???????
//[5]:0,???;1,???????
u8 update_firmware;
u8 tcp_server_sendbuf[500];
u16 tcp_server_sendlen;
void Set_transaction_ID(U8_... |
/******************** basics.c ********************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "basics.h"
/***** open a file and get the pointer *****/
FILE *openFile( char *fname, char *mode ){
FILE *fp;
fp = fopen(fname,mode);
if(fp==NULL){
fprintf(stderr,"err... |
/* -*- Mode: C -*-
======================================================================
FILE: process.c
CREATOR: eric 11 February 2000
$Id: process.c,v 1.10 2008-02-03 16:10:46 dothebart Exp $
$Locker: $
(C) COPYRIGHT 2000 <NAME>
http://www.softwarestudio.org
The contents of this file are subje... |
/*
* Copyright 2015 <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, publis... |
#define _XOPEN_SOURCE
#include "ncui.h"
/* stdlib */
#include <string.h>
#include <stdlib.h>
/* linux */
#include <sys/ioctl.h>
#include <linux/vt.h>
/* ncurses */
#include <form.h>
/* ly */
#include "lang.h"
#include "config.h"
#include "utils.h"
extern int ly_console_tty;
size_t max(size_t a, size_t b)
{
return ... |
/*
* Test program for memory consistency in a thread shifting design
*
*
* Run:
* ./threads ITERATIONS [MODE]
* ./threads 9000000 3
*
* Example:
* ./threads 9000000 0 --> Will fail, no memory barriers
* ./threads 9000000 1 --> Will fail, no WMB
* ./threads 9000000 2 --> Will fail, no RMB
* ./threads 9... |
#include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "test/benchmark.h"
#include "util/log.h"
// TODO: Different clock types.
// TODO: instruction barriers and all that jazz.
// TODO: Collect results in friendly format. Write to files and databases. JSON.
bool ... |
/*
* Copyright (c) 2013-2014, 2018 by Farsight Security, 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... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* @brief Show how to set different core voltage and main voltage regulator type.
*
* @copyright SPDX-License-Identifier: Apache-2.0
* @copyright Copyright (C) 2020 Nuvoton Technology Corp. All r... |
/* specfunc/bessel_In.c
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 <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) an... |
/* Copyright (c) 2013-2014, 2017, The Linux Foundation. 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,... |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "internal.h"
#include "hw.h"
#include <stdio.h>
#include <fcntl.h>
#include <sys/mman.h>
#define MM2S_DMACR (0/4)
#define MM2S_DMASR (4/4)
#define MM2S_CURDESC (0x08/4)
#define MM2S_TAILDESC (0x10/4)
#define MM2S_SA (0x18/4)
#define MM2S_LENGTH (0x28/4)
#define... |
/* 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/. */
/*
* Test program for SDR (Secret Decoder Ring) functions.
*
* $Id: sdrtest.c,v 1.17 2012/03/20 14:47:17 gerv%g... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) 2021 ST... |
/*
* <NAME>
* CS 4760
* Assignment 6
*/
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sys/wait.h>
#include <unistd.h>
#include "clock.h"
#include "config.h"
#include "memmgr.h"
#define DEFAULT_LOG_FILE_PATH "oss.log"
static struct
{
/** The desir... |
/*
* arch/ppc/boot/simple/misc-prep.c
*
* Maintainer: <NAME> <<EMAIL>>
*
* In the past: <NAME>, <NAME> <<EMAIL>>
*/
#include <linux/config.h>
#include <linux/pci_ids.h>
#include <linux/types.h>
#include <asm/residual.h>
#include <asm/string.h>
#include <asm/byteorder.h>
#include "mpc10x.h"
#include "of1275.h"
#i... |
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <editline/readline.h>
#include "ast.h"
#include "core.h"
#include "env.h"
#include "eval.h"
#include "exc.h"
#include "gc.h"
#include "list.h"
#include "log.h"
#include "parser.h"
#include "value.h"
Value *core_... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* <NAME>
* A.M.: 123610
*
* Examination 2, exersise 1:
* Bus Presentation and Reservation Program V 2.0
*/
struct passenger {
char *name;
unsigned short telephone[10];
unsigned int seat_num;
};
void readInitialDataFromFile(char *, char *, int *, struc... |
#define _WIN32_WINNT 0x600
#define COBJMACROS
#include <stdio.h>
#include <d3dcompiler.h>
#define GetBlobPointer ID3D10Blob_GetBufferPointer
#define GetBlobSize ID3D10Blob_GetBufferSize
#pragma comment(lib,"d3dcompiler.lib")
static const char VS_SOURCE[] =
"float4x4 mvpMatrix; ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "gencode.h"
#include "tree.h"
#include "pascal.tab.h"
#include "regstack.h"
extern int num_registers;
extern regstack_t * reg_stack;
extern int label_count;
tree_t * tree_label(tree_t *tree) {
tree_t * curr_tree = tree;
if(curr_tree->leaf) {
if(... |
/*System includes*/
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
/*GSL includes*/
#include <gsl/gsl_vector.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_sf.h>
#include <gsl/gsl_integration.h>
#include <gs... |
#include <ctype.h>
#include <malloc.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "l2a_version.h"
#include "lsda.h"
extern int
translate_secforc(int handle);
extern int
translate_rwforc(int handle);
extern int
translate_nodout(int handle);
extern int
tran... |
// to compile: gcc -o wcet_cc_main wcet_cc_main.c -lrt -Wall -pthread
#define _GNU_SOURCE
#include <sched.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <sys/mman.h>
#include <string.h>
#include <stdint.h>
#include <unistd.h>
#include <errno.h>
/* Threading */
#include <pthread.h>
// my func... |
/*
Bacula(R) - The Network Backup Solution
Copyright (C) 2000-2017 <NAME>
The original author of Bacula is <NAME>, with contributions
from many others, a complete list can be found in the file AUTHORS.
You may use this file and others of this release according to the
license defined in the LICENSE ... |
/*
* Copyright (c) 2012 <NAME>. All rights reserved.
*
* Author(s): <NAME> <<EMAIL>>
*
*/
#include "mpi.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
// row-major order
#define ind(i,j) (j)*(bx+2)+(i)
#define TAG 10000
int main(int argc, char **argv) {
... |
#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <scsi/scsi.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_device.h>
#include "usb.h"
#include "scsiglue.h"
#include "transport.h"
#include "smil.h"
static int SM_SCSI_Test_Unit_Ready(struct us_data *us, struct scsi_cmnd *srb);
stati... |
#include <u.h>
#include <hash.h>
#define DBL_INT_ADD(a,b,c) if(a > 0xffffffff-(c)) b++; a += c;
#define LOR32(x,shift) (((x)<<(shift))|((x)>>(32-(shift))))
#define ROR32(x,shift) (((x)>>(shift))|((x)<<(32-(shift))))
#define CH(x,y,z) (((x)&(y))^(~(x)&(z)))
#define MAJ(x,y,z) (((x)&(y))^((x)&(z))^((y)&(z)))
#define EP... |
/*
* Copyright 2004-2011 Freescale Semiconductor, Inc. All Rights Reserved.
*
*/
/*
* The code contained herein is licensed under the GNU Lesser General
* Public License. You may obtain a copy of the GNU Lesser General
* Public License Version 2.1 or later at the following locations:
*
* http://www.opensource... |
/*
Bacula(R) - The Network Backup Solution
Copyright (C) 2000-2018 <NAME>
The original author of Bacula is <NAME>, with contributions
from many others, a complete list can be found in the file AUTHORS.
You may use this file and others of this release according to the
license defined in the LICENSE ... |
/*
* Internal functions for BAT.
*/
/* ====================================================================== */
#include <stdint.h>
#include <string.h>
#include "blake2.h"
#include "inner.h"
#define BLAKE2_AVX2 BAT_AVX2
#define BLAKE2_LE BAT_LE
#define BLAKE2_UNALIGNED BAT_UNALIGNED
static con... |
/***************************************************************************
* Copyright (C) 2012 by <NAME> <<EMAIL>> *
* *
***************************************************************************/
#define _GNU_SOURCE
#include <errno.h>... |
#include <err.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "antialias.h"
#include "bmp.h"
#include "camera.h"
#include "image.h"
#include "normal_material.h"
#include "obj_loader.h"
#include "phong_material.h"
#include "rendering.h"
#include "scene.h"
#i... |
// 68000 (Sixty Eight K) Interface - header file
#ifndef FASTCALL
#undef __fastcall
#define __fastcall
#endif
//#define EMU_A68K // Use A68K Assembler 68000 emulator
//#define EMU_M68K // Use Musashi 68000 emulator
#define EMU_C68K // Use Dave's Cyclone 68000 emulator
#define SEK_M... |
/*
Copyright 2021 <NAME>
Licensed under MIT ( https://github.com/xing1357/SimpleOS/blob/main/LICENSE )
*/
#include "utils.h"
uint32 strlen(const char* str)
{
uint32 length = 0;
while(str[length])
length++;
return length;
}
uint32 digit_count(int num)
{
uint32 count = 0;
if(num == 0)
return 1;
wh... |
/* Take a sample file and create averages at different levels for display in the browser when zoomed out. */
/* Copyright (C) 2011 The Regents of the University of California
* See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
#include "common.h"
#include "sample.h"
#include "hdb.h"
#... |
/*
* Copyright (c) 2007 <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.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... |
#pragma ident "$Id: chksys.c,v 1.6 2012/02/14 20:19:04 dechavez Exp $"
/*======================================================================
*
* nrts_chksys: examine an nrts_sys structure for errors.
* nrts_fixsys: repair structure corrupted by abnormal wrtdl termination
* DOES NOT LOCK... caller is... |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or ... |
/* Python interpreter main program */
#include "Python.h"
#include "osdefs.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef MS_WINDOWS
#include <fcntl.h>
#endif
#if defined(PYOS_OS2) || defined(MS_WINDOWS)
#define PYTHONHOMEHELP "<prefix>\\lib"
#else
#define PYTHONHOMEHELP "<prefix>/python2.0"
#endif
#def... |
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "error.h"
#include "vector.h"
#include "assets/texture.h"
#include "assets/shader.h"
#include "asset_manager.h"
#include "assets/material.h"
static void trim(char * s) {
char * p = s;
int l = strlen(p);
while(isspace... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <time.h>
#include "smt-bmc-generator.h"
/*
* Convert .pre to bounded model checking
* smt formulas
*/
/*
* Function implementations of z3-bmc-generator.h
*/
// Pair
Pair* new_pair(c... |
/*** statefile.c - Code for status/state file processing
*
* Copyright <C> 1988, Microsoft Corporation
*
* Revision History:
*
* 26-Nov-1991 mz Strip off near/far
*
*************************************************************************/
#include "mep.h"
/*** ReadTMPFile - Read the editor .STS/.... |
#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... |
/*
* Copyright (c) 2018 <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.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... |
/* Software License Agreement (Apache License)
*
* Copyright 2013 Open Source Robotics Foundation
* Author: <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
*
* htt... |
#include <espressif/esp_common.h>
#include <colour_conversion.h>
#include <math.h>
#define DEG_TO_RAD(X) (M_PI*(X)/180)
//http://blog.saikoled.com/post/44677718712/how-to-convert-from-hsi-to-rgb-white
void hsi2rgbw(float h, float s, float i, rgb_color_t* rgbw) {
float cos_h, cos_1047_h;
int r, g, b, w;
... |
#include <stdio.h>
#include <stddef.h>
#include <string.h>
#include <stdarg.h>
#include "ok/ok.h"
#include "ok/io.h"
#include "gm/misc.h"
#include "gm/vector.h"
#include "base/fwd.h"
#include "base/mem.h"
#include "wf/wf.h"
#include "../private.h"
#define material_field(name) { offsetof(struct wf_material, name), #n... |
/*
* Copyright (C) 2016 - 2018 ARPA2 project
*
* Author: <NAME> (<EMAIL>)
*
* This file is part of GnuTLS.
*
* The GnuTLS 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
... |
/*
Hello classmate or teacher it's a pleasure to present my project to us.
I'm going to tell you how to compile:
1.- You need to open https://www.onlinegdb.com/online_c_compiler
2.- Then put the Language into C
3.- Copy each file with the same name
a) main.c
b) funcion.c
c) funcion.h
4.- Run the program and ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ld80.h"
int undefined = 0;
int nodenum = 0;
static struct node *tos;
static void push(struct node *);
static struct node *pop(void);
void add_fixup(struct section *loc, struct section *target, int offset)
{
struct fixup *f = calloc_or_die(1, sizeo... |
#include <esp_wifi.h>
#include <esp_event.h>
#include <esp_log.h>
#include <esp_system.h>
#include <nvs_flash.h>
#include <sys/param.h>
#include "nvs_flash.h"
#include "esp_netif.h"
#include "esp_eth.h"
#include <esp_http_server.h>
static const char *TAG = "example";
#define MAX_REGISTERED_ENPOINT 10
#define MAX_RECV... |
/*
* 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... |
/* $Id: hubspc.c,v 1.1.1.4 2003/10/14 08:07:22 sparq Exp $
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1992-1997, 2000-2002 Silicon Graphics, Inc. All rights reserved.... |
/*
Author: <NAME> <<EMAIL>>
License: MIT
Based on htslib test/test_view.c.
(cram removed, because of compilation problems with htslib-1.3)
Original copyright:
Copyright (C) 2012 Broad Institute.
Copyright (C) 2013-2014 Genome Research Ltd.
Author: <NAME> <<EMAIL>>
Permission is hereby granted, free of ... |
#include <pebble.h>
#include "breathe_window.h"
#include "localize.h"
#include "reminder_window.h"
#define DELTA 33
#ifdef PBL_PLATFORM_EMERY
#define FONT_KEY FONT_KEY_GOTHIC_28_BOLD
#elif PBL_PLATFORM_CHALK
#define FONT_KEY FONT_KEY_GOTHIC_18_BOLD
#else
#define FONT_KEY FONT_KEY_GOTHIC_24_BOLD
#endif
static Window... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "stringlib.h"
#define TRUE 1
#define FALSE 0
int curplace = 0;
int *data = 0;
int datasize = 0;
int maxput = 0;
typedef struct label_s {
char * name;
int type;
int pos;
struct label_s * uses;
} label_t;
label_t * labeltable... |
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include "nrsrc/nr.h"
#include "nrsrc/nrutil.h"
#include "prototypes.h"
#include "globvars.h"
static double R, z, r;
double set_halo_velocities(void)
{
int i, rangecount=0;
long dum;
int iz, ir;
double ur, uz;
double vx, vy, vz;
double vr, vph... |
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */
/*
** Test socket IO timeouts
**
*... |
/**************************************************************************/
/* umicmds.c (former hardware_joints.c) /\/\ */
/* Version 2.1 -- July 2011 \ / */
/* / \ */
/* Author: <... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ringbuff.h"
typedef struct circular_buffer
{
void *buffer; // data buffer
void *buffer_end; // end of data buffer
size_t capacity; // maximum number of items in the buffer
size_t count; // number of items... |
/**
* file name: echo2ternimal.c
* author : joseph
* e-mail : <EMAIL>
*
*
*/
/**
* Exit code:
* 219: command or USER Enter error
* 210: device or file operate error
* 215: Unknow error
* 209: function call error.
*/
/**
* Head files
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <dirent.h>
#include <sys/types.h>
#include "../inc/rescomp.h"
#include "../inc/tools.h"
#include "../inc/plugin.h"
// add your plugin include here
#include "../inc/palette.h"
#include "../inc/bitmap.h"
#include "../inc/tileset.h"
#include "../inc/map... |
/*
* gf_bit_op.c
*
* Created on: Apr 15, 2020
* Author: yoda
*/
#include "gf_bit_op.h"
/*----------------------------------------------------------------------------*/
void right_bit_shift(const int length, element_p in[]) {
int j;
__m256i a, b;
for (j = length - 1; j > 4; j = j - 4) {
a = _mm256_ld... |
/*
* Copyright (c) 2015-2018, Cray 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 list of condit... |
/*****************************************************************************
* alac.c:
*****************************************************************************
* Copyright (C) 2012-2015 L-SMASH project
*
* Authors: <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for a... |
#include "headers.h"
static int SearchVcid(struct bcm_mini_adapter *Adapter, unsigned short usVcid)
{
int iIndex = 0;
for (iIndex = (NO_OF_QUEUES-1); iIndex >= 0; iIndex--)
if (Adapter->PackInfo[iIndex].usVCID_Value == usVcid)
return iIndex;
return NO_OF_QUEUES+1;
}
static struct bcm_usb_rcb *
GetBulkInRcb... |
/** @file simple_client.c
*
* @brief This simple client demonstrates the basic features of JACK
* as they would be used by many applications.
*/
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <jack/jack.h>
#include <jack/ringbuffer.h>
#include <pcap.h>
... |
/**************************************************************************************************
Phyplus Microelectronics Limited confidential and proprietary.
All rights reserved.
IMPORTANT: All rights of this software belong to Phyplus Microelectronics
Limited ("Phyplus"). Your use of this Software is... |
#include <stdio.h>
#include <stdlib.h>
#include "box.h"
#include "pthread.h"
#include "additionally.h"
// get prediction boxes: yolov2_forward_network.c
void get_region_boxes_cpu(layer l, int w, int h, float thresh, float **probs, box *boxes, int only_objectness, int *map);
typedef struct detection_with_class {
... |
/*
* Copyright (C) 2016 The Regents of the University of California.
*
* 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 program calculates pi using a Simpson's Rule estimation of the
integral of arctangent from 0 to 1. When inputting the number of
iterations to perform, more iterations = more precision. The number of
iterations is given as a command line argument. If no argument is
provided, a default value of 20,000 is used. A... |
#include <jos.h>
#include <kernel.h>
#include <interrupts.h>
#include <x86_64.h>
#include <string.h>
#include <stdint.h>
#include <wchar.h>
#include <keyboard.h>
enum _kbd_encoder_ports {
kKbdEncoder_Port = 0x60,
};
enum _kbd_controller_ports {
kKbdController_Port = 0x64,
};
enum _kbd... |
/*
* This file is part of the UCB release of Plan 9. It is subject to the license
* terms in the LICENSE file found in the top-level directory of this
* distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
* part of the UCB release of Plan 9, including this file, may be copied,
* modified, prop... |
#include <stdio.h>
#include <stdlib.h>
#include <gmp.h>
//g = MDC(a,b), a*x + b*y = g
void mdc_estendido(mpz_t g, mpz_t x, mpz_t y, const mpz_t a, const mpz_t b){
//calculate x and y
if (mpz_cmp_ui(a, 0) == 0){
mpz_set_ui(x, 0);
mpz_set_ui(y, 1);
return;
}
mpz_t(x1); mpz_init(x1);
mpz_t(y1); mpz_init(y1);... |
#include <stdio.h>
#include <string.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include "core/dns.h"
#include "debug.h"
#include "type.h"
char dns_server[10][100];
int dns_server_count = 0;
///FUNCTION
void dns_get_host_ip(char *host, RR_QTYPE_t qtype);
int main(in... |
#include "sensing.h"
#include "driver/gpio.h"
#include "driver/i2c.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "sdkconfig.h"
#include "stdio.h"
#include "bme280.h"
#include "dataqueue.h"
/* i2c config */
static int i2c_master_port = 0U;
static int taskDe... |
/* GStreamer Interleaved RTSP parser
* Copyright (C) 2011 <NAME> <<EMAIL>>
* Copyright (C) 2011 Nokia Corporation. All rights reserved.
* Contact: <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 publis... |
/* 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... |
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <assert.h>
#include <stdlib.h>
#include <sys/uio.h>
#include <string.h>
#ifndef FNAME
#define FNAME "./test.out"
#endif
#ifndef MIN
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#endif
#ifndef MAX_REGIONS
#define ... |
/*
* Common backend network APIs for CUPS.
*
* Copyright © 2007-2016 by Apple Inc.
* Copyright © 2006-2007 by Easy Software Products, all rights reserved.
*
* Licensed under Apache License v2.0. See the file "LICENSE" for more
* information.
*/
/*
* Include necessary headers.
*/
#include "backend-private.h... |
/* sumStats - show summary statistics output. */
/* Copyright (C) 2012 The Regents of the University of California
* See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "obscure.h"
#include "htmshell.h"
#include "chea... |
/*
* Copyright (c) 2013, 2014 Jonas 'Sortie' Termansen.
*
* 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.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND T... |
#define _GNU_SOURCE
#include <sched.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/file.h>
#include <sys/mman.h>
#include <sys/wait.h>
#include <pthread.h>
#include "hwtimer.h"
#define LATENCY_RUNS 100
#define MAX_MEM (512 * 1024)
#define die(msg) \
do { ... |
/**
* Copyright (c) 2021 - Analog Devices Inc. All Rights Reserved.
* This software is proprietary and confidential to Analog Devices, Inc.
* and its licensors.
*
* This software is subject to the terms and conditions of the license set
* forth in the project LICENSE file. Downloading, reproducing, distributing o... |
/*
* The MIT License (MIT)
*
* Copyright (c) [2015] [<NAME>]
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, c... |
/* $NetBSD: ld_icp.c,v 1.1.4.1 2003/09/12 19:01:33 tron Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modifica... |
/******************************************************************************
*** <NAME> Numero USP: 3135701 ***
*** <NAME> Numero USP: 3151151 ***
*** Exercicio-Programa 2 ***
*** Descricao: resolve s... |
/*
* LG1 graphics board.
*/
typedef struct Configregs Configregs;
typedef struct Rexchip Rexchip;
typedef struct Rexregs Rexregs;
typedef union Ul_flt Ul_flt;
union Ul_flt
{
float flt;
ulong word;
};
typedef Ul_flt Fixed9_11;
typedef Ul_flt Fixed12_11;
typedef Ul_flt Fixed12_11i;
typedef Ul_flt Fixed12_15;
ty... |
/* -*- coding: utf-8; Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
* ex: set softtabstop=4 tabstop=4 shiftwidth=4 expandtab fileencoding=utf-8:
*
*/
#include "cloudi.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <errno.h>
#include <gtmxc_types.h>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.