text stringlengths 5.8k 28.2k |
|---|
/**
* @file bottle.c
* Core algorithms to solve the JSSP.
*
* @brief Core algorithms.
* @author 于海鑫 - 2017211240
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include "bottle.h"
#define TRY_COUNT 10
/**
Store the bottle informnation.
*/
typedef struct BLIST {
int machine; ... |
//------------------------------------------------------------------------------
// GB_AxB_dot3: compute C<M> = A'*B in parallel
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2019, All Rights Reserved.
// http://suitesparse.com See GraphBL... |
/**
* Copyright (c) 2015, <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 "AS IS" AND THE AUTHOR ... |
/*--------------------------------------------------------------------*/
/*--- Launching valgrind launcher-darwin.c ---*/
/*--------------------------------------------------------------------*/
/*
This file is part of Valgrind, a dynamic binary instrumentation
framework.
Copyright (... |
/**
*******************************************************************************
* @attention
*
* <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions ar... |
/*
* TINET (TCP/IP Protocol Stack)
*
* Copyright (C) 2001-2017 by Dep. of Computer Science and Engineering
* Tomakomai National College of Technology, JAPAN
*
* 上記著作権者は,以下の (1)~(4) の条件か,Free Software Foundation
* によって公表されている GNU General Public License の Version 2 に記
* 述されている条件を満... |
/* Copyright (c) 2013-2014, 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, this ... |
// Copyright 2020 The Wuffs Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... |
/* --COPYRIGHT--,BSD
* Copyright (c) 2016, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copy... |
/*
Copyright (c) 2019 Miouyouyou <Myy>
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,
publ... |
/* Copyright (C) 2005 The Regents of the University of California
* See README in this or parent directory for licensing information. */
/*
File: formatZfishSts.c
Author: <NAME>
Date: 4/11/2005
Description: Bring together and format sources of STS data for Zebrafish from
NCBI and ZFIN. There are sometimes ... |
/*
* A simple interface to executing programs from other programs, using an
* optimized and safer popen()-like implementation. It is considered safer in
* that no shell needs to be spawned for simple commands, and the environment
* passed to the execve()'d program is essentially empty.
*
* This code is based on p... |
//tempio.c
//
//---------------------------------------------------------
//Code from TmpMULTsensor.c has been added to this program.
//---------------------------------------------------------
//
//This program started with the blinkio program and
//adds code for a BS18B20 temp sensor. Also, it changes
//the pushbot... |
/*
* Copyright (c) 2015-2017, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* n... |
/**
* \file
* \brief LWIP test/demo code
*/
/*
* Copyright (c) 2008, 2013, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Att... |
/* $XFree86: xc/extras/Mesa/src/mesa/drivers/dri/gamma/gamma_span.c,v 1.2 2004/12/13 22:40:49 tsi Exp $ */
#include "gamma_context.h"
#include "gamma_lock.h"
#include "colormac.h"
#include "swrast/swrast.h"
#define DBG 0
#define NO_MONO
#define LOCAL_VARS \
gammaContextPtr gmesa = GAMMA_CONTEXT(ctx); \... |
/*
** << description & license >>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <signal.h>
#include <setjmp.h>
#define PORT "31000" // port we're listening on
//... |
#include "Bootstrap.h"
#include "Thread.h"
#include "Object.h"
#include "Smalltalk.h"
#include "Dictionary.h"
#include "Parser.h"
#include "Class.h"
#include "Compiler.h"
#include "Primitives.h"
#include "Heap.h"
#include "Thread.h"
#include "Entry.h"
#include "Handle.h"
#include "Iterator.h"
#include "Assert.h"
#inclu... |
/*
* Copyright (c) 2011 Surfnet
* Copyright (c) 2011 .SE (The Internet Infrastructure Foundation).
* Copyright (c) 2011 OpenDNSSEC AB (svb)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met... |
/*
* $Id: XMRTPH264Packetizer.c,v 1.8 2008/10/20 22:06:42 hfriederich Exp $
*
* Copyright (c) 2006 XMeeting Project ("http://xmeeting.sf.net").
* All rights reserved.
* Copyright (c) 2006 <NAME>. All rights reserved.
*/
#include "XMRTPH264Packetizer.h"
#define kXMRTPH264PacketizerVersion (0x00010001)
typedef s... |
#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... |
/*
Author: <NAME> <<EMAIL>>
https://gitlab.com/jobol/mustach
SPDX-License-Identifier: ISC
*/
#define _GNU_SOURCE
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#include <malloc.h>
#endif
#include "mustach.h"
struct iwrap {
int (*emit)(void *clos... |
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdio.h>
#include <stdlib.h> /* for malloc */
#include <qthread/qthread.h>
#include <qthread/qdqueue.h>
#include <qthread/wavefront.h>
#include <qthread/qpool.h>
#include "qt_alloc.h"
#include "qt_asserts.h"
#include "qt_int_ceil.h"
stati... |
/*
* Copyright (C) 2011 <NAME> ( http://amarullz.com/ )
*
* 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 app... |
/*
* $ Copyright Cypress Semiconductor $
*/
/** \file wiced_tone.c
\brief Implementation of APIs in #include "wiced_tone.h".
*/
#include "wiced.h"
#include "wiced_audio.h"
#include "platform_audio.h"
#include "wwd_debug.h"
typedef struct
{
uint8_t *data;
uint32_t length;
wiced_audio_config... |
/******************************************************************************/
/* */
/* Copyright (c) 1990-2016, KAIST */
/* All rights reserved. ... |
/*
* Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2006 The University of Tennessee and The University
* of Tennessee Resea... |
/*
* wwdumpsnd 0.4 by hcs
* dump audio from Wind Waker or Super Mario Sunshine
* needs JaiInit.aaf and *.aw in current directory
* (if Sunshine, the file is 'msound.aaf', from 'nintendo.szs',
* but you'll need to rename it :))
*/
#include <stdio.h>
#include <string.h>
typedef signed short s16;
/* read big end... |
#include "../common/fe.h"
#include <stdarg.h>
#include <assert.h>
#include <unistd.h>
#include <fcntl.h>
typedef struct TX0 TX0;
typedef struct Flexowriter Flexowriter;
/*
* PETR
* 1,2: counter
* 3: has data (flag)
* 4: busy(?)
* FLEXO
* punch
* print
* read
* display
* light pen
*/
struct TX0
{
/... |
/*
* Copyright (c) 2017 - 2018 - 2018, 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,
* thi... |
/*
* c64dtvdma.c - C64DTV DMA controller
*
* Written by
* M.Kiesel <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* Based on code by
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redist... |
/*
* 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 BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA... |
/*
* Copyright (c) 2014 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... |
/* $Id: confsample.c 3553 2011-05-05 06:14:19Z nanang $ */
/*
* Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
* Copyright (C) 2003-2008 <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
* th... |
/*
* Frommel 2.0
*
* (c) 2001 <NAME>
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bindery.h"
#include "config.h"
#include "conn.h"
#include "net.h"
#include "misc.h"
#include "sap.h"
/*
* bind_init()
*
* This will initialize the bindery services.
*
*/
void
bind_init() {
int ... |
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <limine.h>
#include <protos/stivale.h>
#include <protos/stivale2.h>
#include <lib/elf.h>
#include <lib/blib.h>
#include <lib/acpi.h>
#include <lib/memmap.h>
#include <lib/config.h>
#include <lib/time.h>
#include <lib/print.h>
#include <lib/rand.h>
#i... |
/* ANSI-C code produced by gperf version 3.0.4 */
/* Command-line: gperf --ignore-case -m16 -l -t -C -F,0 --language=ANSI-C -Nhttp_get_token_aux */
/* Computed positions: -k'2' */
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2010 Advanced Micro Devices, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This ... |
/*
* segragated free list + best fit + improved realloc function
*/
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#include <string.h>
#include "mm.h"
#include "memlib.h"
/*********************************************************
* NOTE TO STUDENTS: Before you do anything else, pl... |
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
/*
... |
#include "common.h"
#include "gbDefs.h"
#include "gbGetSeqs.h"
#include "gbIndex.h"
#include "gbGenome.h"
#include "gbUpdate.h"
#include "gbProcessed.h"
#include "gbAligned.h"
#include "gbEntry.h"
#include "gbRelease.h"
#include "gbFileOps.h"
#include "gbVerb.h"
#include "seqData.h"
#include "pslData.h"
#include "raDat... |
/*
* Copyright (c) 2003
* <NAME> <<EMAIL>>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of c... |
//
// General-purpose Photovoltaic Device Model gpvdm.com - a drift diffusion
// base/Shockley-Read-Hall model for 1st, 2nd and 3rd generation solarcells.
// The model can simulate OLEDs, Perovskite cells, and OFETs.
//
// Copyright 2008-2022 <NAME> https://www.gpvdm.com
// r.c.i.mackenzie at googlemail.com
//
// Pe... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2017 Intel Corporation
*/
#include <rte_malloc.h>
#include <rte_mbuf.h>
#include <rte_cycles.h>
#include <rte_ethdev.h>
#include "rte_gro.h"
#include "gro_tcp4.h"
#include "gro_udp4.h"
#include "gro_vxlan_tcp4.h"
#include "gro_vxlan_udp4.h"
typedef void *(*gr... |
//__LINKEDLIST__C_
#include "_linked_list.h"
/* Structure to represent a Singly Linked List */
//struct node {
// int data;
// struct node* next;
//};
void print_list(struct node* head)
{
struct node *current = head;
int num_nodes=0;
printf("\nPrint Linked List:\n");
while(current != NULL) {
... |
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "gfc_matrix.h"
#include "simple_logger.h"
void gfc_matrix_slog(Matrix4 mat)
{
slog("%f,%f,%f,%f\n%f,%f,%f,%f\n%f,%f,%f,%f\n%f,%f,%f,%f",mat[0][0],mat[0][1],mat[0][2],mat[0][3], mat[1][0], mat[1][1], mat[1][2], mat[1][3], mat[2][0], mat[2][1], mat[2... |
/**************************************************************************
* Link: www.linkedin.com/in/kentdelpino
* Author: <NAME>
* File: ST7036i.c
* Used with: GCC ARM Embedded, https://launchpad.net/gcc-arm-embedded
* Used on: LPC... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <interface/vmcs_host/khronos/IL/OMX_Core.h>
#include <interface/vmcs_host/khronos/IL/OMX_Component.h>
#include <bcm_host.h>
#include <vcos_logging.h>
#define VCOS_LOG_CATEGORY (&il_ffmpeg_log_category)
static VCOS_LOG_CAT_T il_ffmpeg_log_category;... |
/*
* Valet: Efficient Orchestration of Host and Remote Shared Memory
* for Memory IntensiveWorkloads
* Copyright 2020 Georgia Institute of Technology.
*
* linux/mm/mempool.c
*
* memory buffer pool support. Such pools are mostly used
* for guaranteed, deadlock-free memory allocations during
* extreme... |
/*
* 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... |
#include <platform/platform_stdlib.h>
#include <osdep_service.h>
#include <rtl8710b_ota.h>
#include <flash_api.h>
#include <device_lock.h>
#include "hal/soc/flash.h"
typedef enum {
OTA_FINISH,
OTA_BREAKPOINT
} OTA_RES_TYPE_E;
typedef struct {
unsigned int dst_adr;
unsigned int src_adr;
unsigned ... |
#include "lib/shim/shim.h"
#include <assert.h>
#include <errno.h>
#include <pthread.h>
#include <search.h>
#include <stdalign.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/prctl.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#... |
/* mincut.c */
/* Written by <NAME> <<EMAIL>>, October 2015. */
#include <limits.h>
#include "maxflow.h"
#include "mincut.h"
#include "misc.h"
/***********************************************************************
* NAME
*
* min_cut - find min cut in undirected capacitated network
*
* SYNOPSIS
*
* #include "m... |
#include <string.h>
#include "stepperCommands.h"
#include "stepperController.h"
#include "serial.h"
/*
REQUEST STRUCTURE
<command><stepper>[.parameter][:value]
where
<command> : add | set | reset | get
<stepper> : X | Y | Z (or whatever single-letter names will be added in the futur... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
/*
* 功能:
* 1. 讀檔並寫入檔案
* 2. 搜尋資料
* 3. 新增資料
* 4. 刪除資料
* 5. 顯示資料庫狀態
* 6. 自動寫入並搜尋
* 7. 自動寫入並刪除
* 8. 自動刪一增一
* 9. 清空資料庫
* 10. 產隨機檔執行n次統計
*/
// DEFINE SIZE
#define SPACE_SIZE 50 //size of table
#define INPUT_SIZE 70 //size of input
#define TEST_SIZE 48 ... |
/* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* ====================================================================
* Copyright (c) 2010 Carnegie Mellon University. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that ... |
/*
$Id$
Copyright 1989-2014 MINES ParisTech
This file is part of PIPS.
PIPS 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
any later version.
PIPS is distr... |
/*
* yuv2rgb.c
* Copyright (C) 2000-2002 <NAME> <<EMAIL>>
* Copyright (C) 1999-2000 <NAME> <<EMAIL>>
*
* This file is part of mpeg2dec, a free MPEG-2 video stream decoder.
* See http://libmpeg2.sourceforge.net/ for updates.
*
* mpeg2dec is free software; you can redistribute it and/or modify
* it under the ter... |
#include <R.h>
#include <math.h>
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
double sum(double *x, int dim) {
double s;
int i;
s = 0.0;
for (i=0; i<dim; ++i) s+=x[i];
return(s);
}
/*****************************************************************************
temporary function: ... |
/*
* C-startup and loader for BlackBox
* Implemented as the StdLoader.
*/
#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
/* the exact size (in bytes) of the executable part of the file. */
/* this constant needs to be updated everytime a change is made to this... |
/*
* Anycast support for IPv6
* Linux INET6 implementation
*
* Authors:
* <NAME> (<EMAIL>)
*
* based heavily on net/ipv6/mcast.c
*
* 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 Found... |
#include <xcb/xcb.h>
#include <xcb/randr.h>
#include <xcb/xcb_atom.h>
#include <xcb/xcb_ewmh.h>
#include <xcb/xcb_icccm.h>
#include <xcb/xcb_aux.h>
#include <cairo-xcb.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "libgwater/xcb/libgwater-xcb.h"
#include "draw.h"
#include "gdbus.h"
#include <stdio.h>
#include <stdlib... |
/* Copyright (C) 2001-2010 by <NAME> */
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaim... |
/*******************************************************************************
* - FILE: traceback_lin.c
* - DESC: Traceback for Viterbi Algorithm (Linear Space).
* NOTES: Implementation not completed.
*******************************************************************************/
/* imports */
#inc... |
/*-
* Copyright (c) 2013 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
#include "f2c.h"
#include "blaswrap.h"
/* Table of constant values */
static integer c__1 = 1;
/* Subroutine */ int chpevx_(char *jobz, char *range, char *uplo, integer *n,
complex *ap, real *vl, real *vu, integer *il, integer *iu, real *
abstol, integer *m, real *w, complex *z__, integer *ldz, complex *
work, r... |
/*
Copyright (c) 2001-2004, <NAME>. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the followi... |
/*
* SCCn ethernet
*/
#include "u.h"
#include "lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "io.h"
#include "../port/error.h"
#include "../port/netif.h"
#include "etherif.h"
enum {
Nrdre = 16, /* receive descriptor ring entries */
Ntdre = 16, /* transmit descriptor ring entries */
Rbsiz... |
/* MSP432 port for the mbed Microcontroller Library
* Copyright (c) 2020 <NAME> (<EMAIL>)
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
/*
* Copyright (c) 2019 <NAME>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <drivers/counter.h>
#include <drivers/gpio.h>
#include <drivers/lora.h>
#include <drivers/spi.h>
#include <zephyr.h>
#include <sx1276/sx1276.h>
#define LOG_LEVEL CONFIG_LORA_LOG_LEVEL
#include <logging/log.h>
LOG_MODULE_REGISTER(s... |
/*
* MIT License
*
* Copyright (c) 2018 Whuer_XiaoJie <<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... |
/*
* AD5760, AD5780, AD5781, AD5790, AD5791 Voltage Output Digital to Analog
* Converter
*
* Copyright 2011 Analog Devices Inc.
*
* Licensed under the GPL-2.
*/
#include <linux/interrupt.h>
#include <linux/fs.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/spi/spi.h>
#include <linux/slab.... |
/* ccoherencelibmodule.c
* 071024 created
*/
#include "Python.h"
#include "mathlib.h"
#if PYTHON_API_VERSION <= 1012 /* Python 2.3 is 1012. */
#define Py_ssize_t int
#endif
double _convert_z_to_R(double Z_CUTOFF, int N, double DELTA)
{
int i;
double R;
double min_R, max_R;
double z;
i = 0;
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <time.h>
#include <signal.h>
#include <unistd.h>
#include <sys/stat.h>
#include "core_allvars.h"
#include "core_build_model.h"
#include "core_mymalloc.h"
#include "core_save.h"
#include "core_utils.h"
#include "m... |
#include "characters.h"
#include "region.h"
static int asciiStart = 32;
static int asciiEnd = 126;
static int asciiUsed = 0;
static int asciiSize = 95;
//imageMagick only supports utf-8, so all the folloing are the starting utf-8 encoding values
//not the actual decimal/intCode of the unicode characters
static int hir... |
/**
* Copyright (c) <NAME> <andreas[dot]fitzek[at]gmail[dot]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:
* Redistributions of source code must retain the above
* copyright no... |
/*! \file fec.c
*
* \copyright (C) Copyright 2015 University of Antwerp and others (http://oss-7.cosys.be)
*
* 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.o... |
//
/**************************************************************************************************
* IOWOW library
*
* MIT License
*
* Copyright (c) 2012-2021 Softmotions Ltd <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated document... |
#define MAXARGS 100
typedef struct {
char *str;
sint *flag;
int type;
char **arg;
} cmd_line_data;
/*
command line switches
*/
sint setoptions = -1;
sint sethelp = -1;
sint setinteractive = -1;
sint setbatch = -1;
sint setgapopen = -1;
sint setgapext = -1;
sint setpwgapopen = -1;
sint setpw... |
/**
* Copyright (C) Mellanox Technologies Ltd. 2017-2018. ALL RIGHTS RESERVED.
* See file LICENSE for terms.
*/
#include "gdr_copy_md.h"
#include <string.h>
#include <limits.h>
#include <ucs/debug/log.h>
#include <ucs/sys/sys.h>
#include <ucs/sys/math.h>
#include <ucs/debug/memtrack.h>
#include <ucs/type/class.h>... |
/* zzektcnv.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__1 = 1;
static integer c__0 = 0;
static integer c__3 = 3;
/* $Procedure ZZEKTCNV ( Private: EK, time... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <time.h>
#include <string.h>
#include <unistd.h>
#include <glib.h>
#include <wordexp.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
/* Constants... */
#define DATAMAX 64000
/* Global vars... */
FILE... |
/*
This file is provided under a dual BSD/GPLv2 license. When using or
redistributing this file, you may do so under either license.
GPL LICENSE SUMMARY
Copyright(c) 2015 Intel Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU G... |
/*
The oRTP library is an RTP (Realtime Transport Protocol - rfc1889) stack.
Copyright (C) 2001 <NAME> <EMAIL>
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 o... |
/* Definitions of target machine for GNU compiler, Lattice Mico32 architecture.
Contributed by <NAME> <<EMAIL>>
Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Publ... |
#include "../../Dynamics/dynamics_2d_cartesian.h"
#include "../../Dynamics/winds.h"
#include "sarsa_alpha_vrel_angle.h"
double reward_dt = h*decision_time;
#define dim 2
int main(int argc, char *argv[]){
if (num_saved_matrices > learning_episodes){
printf("===> Error: check save matrix step\n");
... |
/*
* Copyright 1990,91 by <NAME>, Dinkelscherben, Germany.
* Copyright 1993 by <NAME> <<EMAIL>>
* Copyright 2002 by SuSE Linux AG, Author: <NAME>
* Copyright 1994-2002 by The XFree86 Project, Inc.
* Copyright 2002 by <NAME>
* (Ported from xf86-input-mouse, above copyrights taken from there)
* Copyright 2008 by <NAME>
*... |
/* server.c
*
* Copyright (C) 2017 Aegis Framework
*
* 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... |
/*
Copyright 2015 Google Inc. All rights reserved.
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 wri... |
/*
Copyright (C) 2000-2006 Silicon Graphics, Inc. All Rights Reserved.
Portions Copyright (C) 2007-2011 <NAME>. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2.1 of the GNU Lesser General Public License
as published by the Free Softw... |
// SPDX-License-Identifier: GPL-2.0-only
/**
* i2c-ali1563.c - i2c driver for the ALi 1563 Southbridge
*
* Copyright (C) 2004 <NAME>
* 2005 <NAME> <<EMAIL>>
*
* The 1563 southbridge is deceptively similar to the 1533, with a
* few notable exceptions. One of those happens to be the fact they
* upgraded th... |
/* $OpenBSD: cia.c,v 1.25 2009/03/30 21:43:13 kettenis Exp $ */
/* $NetBSD: cia.c,v 1.56 2000/06/29 08:58:45 mrg Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME> of the Numerical Aeros... |
// Copyright 2020 Espressif Systems (Shanghai) 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 appli... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 ... |
#include "_include/stdio.c"
#include "_include/include/ND_Memory.h"
#include "_include/stdint.h"
extern uint32_t end;
#define null 0
#define NULL null
#pragma GCC diagnostic ignored "-Wcomment"
/**
* apm_power_off - ask the BIOS to power off
*
* Handle the power off sequence. This is the one piece of code we
* w... |
#include "render/render.h"
#include <assert.h>
#include <stdio.h>
#include <wayland-util.h>
#include <wlr/render/gles2.h>
#include <wlr/types/wlr_output_damage.h>
#include <wlr/util/edges.h>
#include <wlr/util/region.h>
#include <string.h>
#include "container.h"
#include "client.h"
#include "list_sets/container_stack... |
/*
_ _ _
(_'| |(_'
._):_:._)
Authored by abakh <<EMAIL>>
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Pu... |
/*! \file bcmltm_ee_model_keyed.c
*
* Logical Table Manager Execution Engine
*
* Logical table keyed implementations
*
* This file contains the LTM EE stage functions for LT operations
* on modeled keyed tables.
*
* ALLOC - not supported for modeled keyed LTs
* INSERT
* LOOKUP
* DELETE
* UPDATE
*
* To s... |
/*
* Copyright 2020 Makani Technologies 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <time.h>
#include <string.h>
#include "util.h"
#include <assert.h>
//copyed from kernel
#define PATH_MAX 4096
#define AT_VECTOR_SIZE 44
struct vma_stats {
u_long vmas_start;
u_long vmas_end;
int vmas_flags;
u_long vmas_pgoff;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.