text stringlengths 3.08k 10.5k |
|---|
#include <stdio.h>
#include <stdlib.h>
#ifdef BENCH
#include <time.h>
#endif
#define LINE_BUFFER 300
#define MAX_NUMBERS 100
#define TYPE_LEAF 1 << 1
#define TYPE_NODE 1 << 2
#define LEFT_NODE 1 << 3
#define RIGHT_NODE 1 << 4
#define IS_LEAF(n) ((n)->flags & TYPE_LEAF)
#define IS_NODE(n) ((n)->flags & TYPE_NODE)
#de... |
/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.3.0
* Git version: 30dccd7
* Options: (none)
* Seed: 18071862001775259860
*/
#include "csmith.h"
static long __undefined;
/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
static volatile int32_t g_3 = 0xD49598AAL;... |
/*
* Copyright (c) 2017 ASMlover. 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 ofconditions ... |
/*
* This file contains a simple implementation of a singly-linked list. See the documentation below for more information on the individual functions in this implementation.
*/
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "list.h"
/*
* This structure is used to represent a single link in a s... |
/*
* ZMap Copyright 2013 Regents of the University of Michigan
*
* 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
*/
/*
* cyclic provides an ... |
/*-
* Copyright (C) 2012-2013 Intel Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <time.h>
#include <dirent.h>
#include <pwd.h>
#include <grp.h>
void print_ls(struct stat buf, char* name);
int get_month(char* mmm);
//char** split_line(char *buff, char DELIM[2]);
int main(int argc, char... |
//#include "ocean_sample.h"
#include "los_bsp_led.h"
#include "los_task.h"
#include "cmsis_os.h"
#include "max7219_driver_func.h"
#include "neul_bc95.h"
#include "los_dev_st_uart.h"
#include "ocean_interface.h"
#define USE_NB_BC95 1
//#define USE_AGENTTINY 1
int get_cmd = 0;
int uset_value = 0;
int scroll = 0;
unsi... |
/*
* MikroSDK - MikroE Software Development Kit
* CopyrightΒ© 2020 MikroElektronika d.o.o.
*
* 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 ... |
/*
* Acess2 DiskTool
* - By <NAME> (thePowersGang)
*
* actions.c
* - High level actions that call the VFS
* # Kernel-space compiled
*/
#include <acess.h>
#include <disktool_common.h>
#include <Storage/LVM/include/lvm.h>
// === IMPORTS ===
extern int NativeFS_Install(char **Arguments);
extern int LVM_Cleanup(voi... |
#define _GNU_SOURCE
#include "multicalc.h"
#include <sched.h>
#include <sys/mman.h>
#include <linux/futex.h>
#include <sys/time.h>
#include <syscall.h>
#include <unistd.h>
#include <stdlib.h>
#define multicalc_stack_dsize (1ul << 20)
#define multicalc_stack_align 4096ul
#define multicalc_stack_mask (multicalc_stac... |
/*
Pacer recieve test
23 Apr 2021
WARNING: Do not take anything in this code as authoritative as to the spec.
TODO: Need to byte-swap the 32-bit fields
*/
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <errno... |
/*
* Use is subject to license terms, as specified in the LICENSE file.
*/
#include "_q_rhashmap_I8_I8.h"
#include "_q_rhashmap_mk_hash_I8.h"
#include "q_rhashmap_mk_loc.h"
#include "q_rhashmap_mk_tid.h"
#include "_invariants_I8_I8.h"
#define VALTYPE int64_t
#define KEYTYPE uint64_t
//-------------------------------... |
//
// tree.c
// treeSort
//
// Created by <NAME> on 3/25/18.
// Copyright Β© 2018 <NAME>. All rights reserved.
//
#include "tree.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ERR_BAD_NODE (1) // Node * is NULL
#define ERR_BAD_INPUT (2) // Encountered an illegal character in input
#define ... |
/*
* Implementation of the Microsoft Installer (msi.dll)
*
* Copyright 2005 <NAME> for CodeWeavers
*
* 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 Li... |
/*
* vicii-resources.c - Resources for the MOS 6569 (VIC-II) emulation.
*
* Written by
* <NAME> <<EMAIL>>
* <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 un... |
#include "math.h"
#include <lcom/lab5.h>
#include <lcom/lcf.h>
#include <stdint.h>
#include <stdio.h>
#include "i8042.h"
#include "i8254.h"
#include "video.h"
#include <machine/int86.h>
uint8_t *video_mem;
vbe_mode_info_t data;
int get_mode_info(uint16_t mode, vbe_mode_info_t *vmi_p) {
mmap_t map;
reg86_t r;
... |
/*
* Copyright (c) 2018-2021
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include "devsdk/devsdk.h"
#include <unistd.h>
#include <signal.h>
#include <stdarg.h>
#define ERR_CHECK(x) if (x.code) { fprintf (stderr, "Error: %d: %s\n", x.code, x.reason); devsdk_service_free (service); free (impl); ret... |
// Module for interfacing with serial
#include "module.h"
#include "lauxlib.h"
#include "platform.h"
#include "c_types.h"
#include "c_string.h"
#include "rom.h"
static lua_State *gL = NULL;
static int uart_receive_rf = LUA_NOREF;
bool run_input = true;
bool uart_on_data_cb(const char *buf, size_t len){
if(!buf || ... |
/*!
* \file com_task.c
*
* \brief
*
* Revised BSD License
* Copyright Semtech Corporation 2019. 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 ... |
/* homolog - given two seqs, calculate homology
*
* Contents:
* 1. Miscellaneous functions for msatree
* 2. Unit tests
* 3. Test driver
* 4. License and copyright
*
* ER, Fri Oct 21 10:26:52 EDT 2011 [Janelia]
* SVN $Id:$
*/
#include "p7_config.h"
#include <unistd.h>
#include <stdlib.h>
#include... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
#include <io.h>
#include <windows.h>
#endif
#ifdef UNIX
#include <sqltypes.h>
#endif
#include <sql.h>
#include <sqlext.h>
#define BUF_LENGTH 65000
/* environment variable */
SQLHENV env=NULL;
SQLHDBC dbc=NULL;
SQLHSTM... |
/*
* SRTP network protocol
* Copyright (c) 2012 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, ... |
// Copyright 2018 Schibsted
/*
sd_start -- Start a program/daemon and wait for a systemd service READY message.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <time.h>
#include <signal.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/ioctl.... |
/*
* Copyright (C) 2014 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... |
/******************************************************************************
* @file main.c
* @version V3.00
* $Revision: 2 $
* $Date: 15/05/22 2:58p $
* @brief Show how to wake up MCU from Power-down mode by ACMP wake-up function.
*
* @note
* Copyright (C) 2014 Nuvoton Technology Corp. All... |
#pragma strict_types
#include "../def.h"
inherit MASTER_ROOM;
void create_object(void);
int query_room_id(void);
void reset(int arg);
void init(void);
int do_search(string str);
object sack,stick;
object troll1, troll2, troll3, troll4, troll5, troll6, troll7;
int sack_found,stick_found;
void create_object(void)
{
... |
/*
* $Id: stat_convertfileinfo.c,v 1.9 2006-09-20 19:46:57 obarthel Exp $
*
* :ts=4
*
* Portable ISO 'C' (1994) runtime library for the Amiga computer
* Copyright (c) 2002-2015 by <NAME> <obarthel (at) gmx.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* mod... |
/**
* \file
*
* \brief SAM SPI Quick Start
*
* Copyright (C) 2012-2016 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:
*
* 1... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
#include <stdio.h>
#include <stdint.h>
//#include <string.h>
#include <memory.h>
short bitrates[] = { 32, 40, 48, 56, 64, 80, 96, 112, 128, 160,
192, 224, 256, 320, 384, 448, 512, 576, 640 };
short fsize44[] = { 70, 88, 105, 122, 140, 175, 209, 244, 279, 349,
418, 488, 558, 697, 836, 976, 1115, ... |
#include "linebuf.h"
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <err.h>
#include <poll.h>
#include <sys/wait.h>
#include <fcntl.h>
struct proc
{
struct pollfd *pfd;
const char *cmd;
int idx;
pid_t pid;
int observe_fd;
struct linebuf *lb;
};
#ifndef ARRLEN
#defi... |
/* ----------------------------------------------------------------------- *
*
* Copyright 1996-2017 The NASM Authors - All Rights Reserved
* See the file AUTHORS included with the NASM distribution for
* the specific copyright holders.
*
* Redistribution and use in source and binary forms, with or withou... |
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
/* Copyright JS Foundation and other contributors, http://js.foundation
*
* 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 r... |
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include "ldd.h"
#ifndef BUFFER_COPY_SIZE
#define BUFFER_COPY_SIZE 500
#endif
static int is_number(char *s, int max)
{
if(s == NULL)
return 0;
char *p=s;
while(*p >= '0' && *p <='9')
p++;
if(*p == '\0'... |
typedef buffer string;
void init_string();
typedef u32 character;
static inline string allocate_string(heap h)
{
return(allocate_buffer(h, 20));
}
static inline int utf8_length(unsigned char x)
{
if (~x & 0x80) return 1;
if ((x & 0xe0) == 0xc0) return 2;
if ((x & 0xf0) == 0xe0) return 3;
if ((x ... |
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 <NAME>
#include <debug/code.h>
#include <debug/mm.h>
#include <exc.h>
#include <lib/print.h>
#include <main.h>
#include <mm/frame.h>
#include <mm/heap.h>
#include <types.h>
void kmalloc_at(size_t index, size_t count, size_t starting_address) {
for (size_t i... |
/* $OpenBSD: autoconf.c,v 1.47 2010/12/23 20:05:08 miod Exp $ */
/*
* Copyright (c) 1998 <NAME>, Jr.
* Copyright (c) 1996 <NAME>
* Copyright (c) 1994 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following cond... |
/*
* Copyright (c) International Business Machines Corp., 2001
*
* 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 late... |
/* hcaTsvToJson2 - Convert HCA flavored tab-separated-values to HCA flavored JSON. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "portable.h"
#include "fieldedTable.h"
void usage()
/* Explain usage and exit. */
{
errAbort(
"hcaTsvToJson2 - Convert HCA flavored tab-sepa... |
/* Copyright (c) 20XX 9front
*
* 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, distri... |
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <mpi.h>
#include "analysis.h"
#include "three_algebra.h"
#include "object.h"
#include "simulate.h"
#include "system.h"
#include "ddcMalloc.h"
#include "external.h"
#include "io.h"
#include "box.h"
#include "units.h"
#include "mpiUt... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
/*
* mac partitions parsing code
*
* Copyright (C) 2009 <NAME> <<EMAIL>>
*
* This file may be redistributed under the terms of the
* GNU Lesser General Public License.
*
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "partitions.h"
#define MAC_PARTITION_MAGIC 0x504d... |
/**
* @file
* @brief
*
* @date 26.10.2012
* @author <NAME>
*/
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <limits.h>
#include <asm/io.h>
#include <kernel/irq_lock.h>
#include <drivers/ide.h>
#include <drivers/block_dev.h>
#include <drivers/block_dev/partition.h>
#inc... |
/*******************************************************************************
Copyright (c) 2017, <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 sourc... |
/*
* Copyright Β© 2012 Intel Corporation
*
* 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, pub... |
/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the term... |
// Copyright 2018 Google LLC
//
// 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 ... |
/*
* bw_udp.c - simple UDP bandwidth test
*
* Three programs in one -
* server usage: bw_tcp -s
* client usage: bw_tcp [-m <message size>] [-P <parallelism>] [-W <warmup>] [-N <repetitions>] hostname [bytes]
* shutdown: bw_tcp -S hostname
*
* Copyright (c) 2000 <NAME>.
* Copyright (c) 1994 <NAME>. Distributed... |
/*
Copyright (C) 2007, <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 License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writi... |
/*----------------------------------------------------------------------------*/
/* Xymon message daemon. */
/* */
/* xymond worker to distribute enable/disable/drop/rename messages in a ... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "machines.h"
#include "analyzer.h"
#include "symbols.h"
#include "word_defs.h"
#include "parser.h"
#include "reserved_words.c"
// Class variables
int line;
char *forward;
FILE *sfp;
FILE *lfp;
FILE *tfp;
FILE *stp;
struct Token tok;
static void compi... |
/*!****************************************************************************
@File blitlib_pixel.h
@Title Blit library - pixel formats
@Author Imagination Technologies
@date 04/09/2009
@Copyright Copyright 2009 by Imagination Technologies Limited.
All rights reserve... |
#include "drv_time.h"
#include "config.h"
#include "flip_sequencer.h"
#define THROTTLE_UP 0.9
#define THROTTLE_HOVER 0.7
#define THROTTLE_EXIT 0.7
#define FLIP_RATE 1500
//time to up throttle in beggining stage
// 200ms
#define THROTTLE_UP_TIME 200e3
// end time in level mode
#define LEVEL_MODE_TIME 100e3
#define LE... |
/*
* mulle_utf32_string.c
* MulleRegularExpressions
*
* Created by Nat! on 09.11.11.
// Copyright (C) 2011 Nat!, <NAME>.
// Copyright (c) 2011 Codeon GmbH.
// All rights reserved.
*
*/
#pragma clang diagnostic ignored "-Wparentheses"
#include "mulle-utf32-string.h"
#include <assert.h>
#include <ctype.h>
#... |
#if 0
/*ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β To the extent possible under law, <NAME> has waived β
β all copyright and related or neighboring rights to this file, β
β as it is written in the following disclaimers: β
β β’ http://unlicense.org/ ... |
/*
* VC-1 decode acceleration through VDPAU
*
* Copyright (c) 2008 NVIDIA
* Copyright (c) 2013 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation... |
// system includes
#include <fcntl.h>
// library includes
#include <archive.h>
#include <archive_entry.h>
// local includes
#include "type2.h"
#include "type1.h"
void appimage_type1_open(appimage_handler* handler) {
if (is_handler_valid(handler) && !handler->is_open) {
#ifdef STANDALONE
fprintf(stderr, ... |
/*
* Copyright (c) 2016 Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <kernel_structs.h>
#include <toolchain.h>
#include <linker/sections.h>
#include <drivers/system_timer.h>
#include <wait_q.h>
#include <power.h>
#if defined(CONFIG_TICKLESS_IDLE)
/*
* Idle time... |
/*
** Copyright 2005-2017 Solarflare Communications Inc.
** 7505 Irvine Center Drive, Irvine, CA 92618, USA
** Copyright 2002-2005 Level 5 Networks Inc.
**
** 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 ... |
/*
linkedlist.c
Written by <NAME> and <NAME>
Last modified 02/09/22
*/
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "linkedlist.h"
// Create a pointer to a new NULL_TYPE Value (hint: where in memory will
// the Value have to live?)
Value *makeNull()
{
Value *new_null = ... |
#define BENCHMARK "OSU One Sided MPI_Put Bi-directional Bandwidth Test"
/*
* Copyright (C) 2003-2010 the Network-Based Computing Laboratory
* (NBCL), The Ohio State University.
*
* Contact: Dr. <NAME> (<EMAIL>)
*/
/*
This program is available under BSD licensing.
Redistribution and use in source and binary forms... |
/*@
inductive io_action = putchar_action(char) | putchar_return_action;
// This state machine might be a projection of another state machine; the id identifies the projection.
predicate world<s>(int id, s state, fixpoint(s, io_action, bool) allowed, fixpoint(s, io_action, s) next);
typedef lemma void is_sim<s1, s2>... |
// Test memory tagging extension intrinsics
// RUN: %clang_cc1 -triple aarch64-none-linux-eabi -target-feature +mte -O3 -S -emit-llvm -o - %s | FileCheck %s
#include <stddef.h>
#include <arm_acle.h>
// CHECK-LABEL: define{{.*}} i32* @create_tag1
int *create_tag1(int *a, unsigned b) {
// CHECK: [[T0:%[0-9]+]] = bitcas... |
#include "geminc.h"
#include "gemprm.h"
void ww_crnr (
float *side,
int *iflag,
char locid1[],
char locid2[],
float dist[],
float bear[],
float rlat[],
float rlon[],
int *npt,
int *iret );
void ww_crnr (
float *side,
int *iflag,
char locid1[],
char locid2[],
float dist[],
float bear[],
fl... |
#include "pitch-detect.h"
#include "uafunc.h"
#include "pitches.h"
#ifdef PITCH_DETECT_FFT
#undef PITCH_DETECT_AUTO
#include "kiss_fftr.h"
volatile kiss_fft_scalar data[N_POINTS];
volatile kiss_fft_cpx fftout[N_POINTS/2 + 1];
volatile uint16_t i = 0;
//Smooth the results somewhat
#define NUM_SMOOTH 3
float smoothFr... |
/*
* Copyright (C) 2021 Huawei Device Co., 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 applicable law o... |
#include <stdio.h>
#include <unistd.h>
#include <util.h>
#include <sys/ioctl.h>
#include <SDL.h>
#include <SDL_image.h>
#include "fvemu.h"
#define CHAR_WIDTH 8
#define CHAR_HEIGHT 16
#define SCREEN_COLS 80
#define SCREEN_ROWS 25
#define HORZ_PADDING 8
#define VERT_PADDING 8
SDL_Window *win = NULL;
SDL_Renderer *... |
/*
* ---------------------------------------------------------------------------
* OpenAES License
* ---------------------------------------------------------------------------
* Copyright (c) 2013, <NAME>, www.nalramli.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or w... |
/* Copyright (c) 2002-2003 krzYszcz and others.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
/* LATER 'clock' method */
#include <string.h>
#include "m_pd.h"
#include "grow.h"
#define SPEEDLIM_INISIZE 32 /* LATER ... |
/*
* Utility functions for krb5-sync testing.
*
* Some additional test functions used by more than one program in the
* krb5-sync test suite.
*
* Written by <NAME> <<EMAIL>>
* Copyright 2012, 2013
* The Board of Trustees of the Leland Stanford Junior University
*
* See LICENSE for licensing terms.
*/
#i... |
/******************************************************************************
* 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 restriction, includ... |
/*
* skiplist_ut.c
*
* Author: Lirui.Liu
* <EMAIL>
*
*/
#include <unistd.h>
#include "ut.h"
#include "ds/spg_skiplist.h"
//#define STATIC_TEST
skiplist_s *g_skl;
#if 0
int32_t test_array[] = {91, 4, 24};
int32_t test_array[] = {98, 89, 80, 50, 43, 43, 38, 21, 21, 19, 16, 14, 12};
#end... |
/*
Copyright (c) 2007-2013 uim Project https://github.com/uim/uim
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
not... |
#include "atlas_tvec.h"
void PrintUsage(char *name, char *arg, int i)
{
fprintf(stderr,
"This routine takes two vector files, and combines a list of named vectors\n");
fprintf(stderr,
"so they form one contiguous range. The range vector is specified by -r,\n");
fprintf(stderr, "and these vectors should not o... |
/*
* Copyright (c) 2005-2014 Intel Corporation. All rights reserved.
*
* This software is available to you under the OpenIB.org BSD license
* below:
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:... |
/* TODO(will)
* -- Break main into multiple functions (so we can call jobs individually)
* -- Switch to wb_alloc for memory
* -- Clean up enum types; use ints everywhere instead :)
* -- Rewrite lexer to use wb_alloc features
* -- switched from linked list to array
* -- we already load files synchronousl... |
/* Lab 3 Exercise 1 Program
We are going to start with the matrix multiplication code from the previous lab
to see what effect OpenMP has on improving the performance.
Set 'OpenMP Support' to 'Yes' (for both Debug and Release builds) in Project->Properties->C/C++->Language
Add `_CRT_SECURE_NO_WARNINGS` to 'Preproces... |
#include "udpPacketGenerator.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#define BUF_SIZE 256
#define MAX_PAYLOAD_SIZE 1024
uint8_t* generateVoipInvitePacket(char *userName, char *fromPhoneNumber, char *toPhoneNumber, char *host, char *srcIp) {
uint8_t *data = (uint8_t *)malloc... |
/*
* Copyright 2017, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the GNU General Public License version 2. Note that NO WARRANTY is provided.
* See "LICENSE_GPLv2.txt" for details... |
/* $NetBSD: netdate.c,v 1.30 2011/01/29 02:16:52 christos Exp $ */
/*-
* Copyright (c) 1990, 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 ... |
/* - Uses fixed length 12-bit encodings.
* - Expects input in MSB format.
* - When encoding table fills up, then table is reset back to the initial
* 256 entries.
* - Written in C89 style.
*/
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
static void decode(FILE *in, F... |
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-β
βvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viβ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ‘
β Copyright 2022 <NAME> β
β ... |
/* m- file for Mips machines.
Copyright (C) 1987, 1992, 1993, 1995 Free Software Foundation, Inc.
This file contains some changes for our SVR4 based SINIX-Mips 5.4.
I hope this is helpful to port the emacs to our RM?00 series and
maybe to the DC/OSx (Mips-based) machines of Pyramid Inc.
(<EMAIL>)
Thi... |
/**
* Copyright (c) 2016-2019, ETH Zurich, Computer Engineering Group
* 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 no... |
/* Tetrinet for Linux, by <NAME> <<EMAIL>>
* This program is public domain.
*
* Socket routines.
*/
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <unistd.h>
#incl... |
/* $Id$ */
/* Copyright (c) 2016-2022 <NAME> <<EMAIL>> */
/* This file is part of DeforaOS System libMarshall */
/* 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 ... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2019 <NAME> <<EMAIL>>
*
* 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
... |
// SPDX-License-Identifier: MIT WITH bison-exception
// Copyright Β© 2020 <NAME>, <NAME>
#include "../include/topologic.h"
struct graph *graph_init(int max_state_changes, int snapshot_timestamp, int max_loop, unsigned int lvl_verbose, enum CONTEXT context, enum MEM_OPTION mem_option, enum REQUEST_FLAG request_fla... |
/* Copyright 2019 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "cpu.h"
#include "panic.h"
#include "task.h"
#include "util.h"
/* Panic data goes at the end of RAM. */
static struct panic_data * const ... |
/*
* Copyright (c) 2002-2005 MontaVista Software, Inc.
*
* All rights reserved.
*
* Author: <NAME> (<EMAIL>)
*
* This software licensed under BSD license, the text of which follows:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
#include "neillncurses.h"
void Neill_NCURS_Delay(double ms){
const clock_t start = clock();
clock_t current;
do{
current = clock();
}while((double)(current-start)/CLOCKS_PER_SEC < (ms/1000.0));
}
/* Display a warning (.e.g array too large to fit on screen */
void Neill_NCURS_Warning(char *s)... |
/*
* 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... |
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: you can redistribute it and/or modif... |
/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
/* @@@ BLOPEX (version 1.2) MIT / Apache-2.0 License */
/* @@@ Copyright 2010-2019 Team https://github.com/lobpcg/blopex */
/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
/* This code was develop... |
#pragma once
#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include <math.h> //just for fabs
#include <machine/patmos.h>
#include <machine/spm.h>
#include <machine/rtc.h>
#include "io.h"
#include "ethlib/eth_mac_driver.h"
#include "ethlib/icmp.h"
#include "ethlib/arp.h"
#include "ethlib/mac.h"
#include ... |
#include "adc.h"
#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdlib.h>
#include "../../src/main.h"
#include <Arduino_FreeRTOS.h>
#include <semphr.h>
// structure for sampling structure
// temp sensor temp sensor current sensors ... |
#include "mex.h"
#include <math.h>
#include "matrix.h"
#define max(a,b) ((a) > (b) ? (a) : (b))
void mexFunction(int nlhs, mxArray *plhs[], int nrhs,
const mxArray *prhs[]){
int *cmax, imaxPre, tots, imax, curri, t, i, k, inner_it, nt0, NT, type, maxiter, *inner_all;
double *c, *Params, *st, *ke... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.