text stringlengths 5.8k 28.2k |
|---|
// -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; st-rulers: [132] -*-
// vim: ts=4 sw=4 ft=c++ et
#include "crc_nif.h"
#include "crc_model.h"
#include "crc_resource.h"
#include "checksum_xor.h"
#include "crc_8.h"
#include "xnif_slice.h"
static ERL_NIF_TERM ATOM_aliases;
static ERL_NIF_TERM ATOM_bits;
static ERL... |
/*
This file is part of GNUnet.
Copyright (C) 2011-2015 GNUnet e.V.
GNUnet 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, or (at your
option) any later version.
GNUnet is distributed in... |
/*
* 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... |
/*
* fy-docbuilder.c - YAML document builder methods
*
* Copyright (c) 2022 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: MIT
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include <ctype.h>
#include <errno.h>
#include <unistd.h>... |
/*
* Copyright (c) 2020 PHYTEC Messtechnik GmbHH, <NAME>
*
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT gooddisplay_il0323
#include <string.h>
#include <device.h>
#include <init.h>
#include <drivers/display.h>
#include <drivers/gpio.h>
#include <drivers/spi.h>
#include <sys/byteorder.h>
#includ... |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \... |
/*
* Copyright 2020-2021 NXP.
*
* 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 disclaimer.
*
* Redist... |
/*
* vim:ts=4:sw=4:expandtab
*
* i3 - an improved dynamic tiling window manager
*
* © 2009-2011 <NAME> and contributors
*
* See file LICENSE for license information.
*
* i3-nagbar is a utility which displays a nag message.
*
*/
#include <ev.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>
#... |
/*
* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use... |
#include "stdio.h"
#include "stdlib.h"
#include <tree_sitter/parser.h>
#include <string.h>
#include <wctype.h>
#include <assert.h>
#include <stdbool.h>
#define IS_SPACE_TABS(char) ((char) == ' ' || (char) == '\t')
typedef struct {
// The EOF markers (but they can be whatever so lex that correctly)
char *script_ma... |
/*
* $Id: amd_flash.c,v 1.0 20/09/2006 12:38:01 $
*
* AMD 8 bit flash driver for AM29F040B & AM29LV040B
* Copyright (C) 2006 Kila Medical Systems.
*
* 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 ... |
/* esl-compstruct - calculate accuracy of RNA secondary structure predictions
*
* SRE, Mon Feb 14 10:03:57 2005
* From squid's compstruct: SRE, Tue Aug 30 10:35:31 1994
* SVN $Id: esl-compstruct.c 509 2010-02-07 22:56:55Z eddys $
*/
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "easel.h"
#in... |
//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1987 - 1999
//
// File: abnameid.c
//
//--------------------------------------------------------------------------
/*++
Abstract:
This module impl... |
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* rjtipF.c
*
* Code generation for function 'rjtipF'
*
*/
/* Include files */
#include "rjtipF.h... |
/*
* Copyright (c) 2021, Redis Ltd.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of condit... |
/*
* Copyright © 2013-2014 University of Wisconsin-La Crosse.
* All rights reserved.
* Copyright © 2013-2014 Cisco Systems, Inc. All rights reserved.
*
* $COPYRIGHT$
*
* Additional copyrights may follow
* See COPYING in top-level directory.
*
* $HEADER$
*/
#include <netloc/dc.h>
#in... |
/* slimguard.c
* SlimGuard
* Copyright (c) 2019, <NAME>, Virginia Tech
* All rights reserved
*/
#include "slimguard.h"
#include "slimguard-large.h"
#include "sll.h"
#include "debug.h"
#include "slimguard-mmap.h"
#include <assert.h>
#include <err.h>
#include <pthread.h>
typedef struct cls_t{
void* bucket[BK... |
/**********************************************************
* Copyright 2008-2009 VMware, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restrict... |
/*
* Copyright (c) 2012-2020, 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... |
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libavcodec/avfft.h>
#include <libavutil/audio_fifo.h>
#include <libswresample/swresample.h>
#define R_NO_REMAP
#define STRICT_R_HEADERS
#include <Rinternals.h>
enum AmplitudeScale { AS_LINEAR, AS_SQRT, AS_CBRT, AS_LOG, NB_ASCALES };
extern i... |
#include "inference_engine_helper.h"
cnn_model* load_cnn_model(char* cfg, char* weights){
cnn_model* model = (cnn_model*)malloc(sizeof(cnn_model));
network *net = load_network(cfg, weights, 0);
set_batch_network(net, 1);
net->truth = 0;
net->train = 0;
net->delta = 0;
srand(2222222);
model->net... |
#include "converter.h"
#include "interrupts.h"
#include "heap.h"
#include "keyboard_driver.h"
#include "pipe.h"
#include "process.h"
#include "scheduler.h"
#include "string.h"
#include "time.h"
#include "types.h"
#include "video_driver.h"
#include "mutex.h"
#include "memoryManager.h"
#define SYSCALLS 39
extern Proces... |
/*
* Copyright (c) 1997, 2000 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condition... |
/*------------------------------------------------------------------------------
*
*
* Copyright (c) 2016-Present Pivotal Software, Inc
*
*------------------------------------------------------------------------------
*/
#include <errno.h>
#include <signal.h>
#include <time.h>
#include <sys/time.h>
#include <unis... |
/* $Id$
*
* lpc21iap, an USB download application for Philips LPC processors
* Copyright (C) 2006 <NAME> <<EMAIL>>
*
* This file is part of paparazzi.
*
* 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 Sof... |
/* zdrvrf3.f -- translated by f2c (version 20061008).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end o... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/* Copyright (c) 1993-2002
* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
* Copyright (c) 1987 <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 2, or (at your opti... |
/**
* MK4duo Firmware for 3D Printer, Laser and CNC
*
* Based on Marlin, Sprinter and grbl
* Copyright (c) 2011 <NAME> / <NAME>
* Copyright (c) 2020 <NAME> @MagoKimbra
*
* 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
... |
/*
* Copyright (c) 2015, 2016, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... |
/*
* (c) <NAME>.
* Stamp: PLE 2013-03-28
*/
#include </usr/include/stdlib.h>
#include </usr/include/string.h>
#include "c_std_lib.h"
static ImmT global_profile[1] = {NULL};
ImmT c_std_lib0print(ImmT ___nl__el) {
return c_rt_lib0print(___nl__el);
}
ImmT c_std_lib0set_profile_global(ImmT ___nl__el) {
if(globa... |
/*
* Copyright (c) 2011 The WebRTC 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 contribut... |
/* Compute various statistics about pages, users, and pairs of users
across one or more posterior samples. These are saved to
pages_stats.txt, users_stats.txt, and user_comparisons.txt in the
current directory. Typically the assignments (posterior samples)
will come those saved using inference.c. Does not m... |
/*******************************************************************************
* Copyright (C) Marvell International Ltd. and its affiliates
*
* This software file (the "File") is owned and distributed by Marvell
* International Ltd. and/or its affiliates ("Marvell") under the following
* alternative licensing t... |
#include "u.h"
#include "lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "io.h"
#include "ip.h"
uchar broadcast[Eaddrlen] = {
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
};
static ushort tftpport = 5000;
static int Id = 1;
static Netaddr myaddr;
static Netaddr server;
typedef struct {
uchar header[4];
... |
/* spkw01.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;
/* $Procedure SPKW01 ( Write SPK segment, type 1 ) */
/* Subroutine */ int spkw01_(integer... |
#include <stdio.h>
#include <stdlib.h>
#ifndef S_SPLINT_S
#include <unistd.h>
#endif
#include <libtrix.h>
#include "heightmap.h"
typedef struct {
int base; // boolean; output walls and bottom as well as terrain surface if true
int ascii; // boolean; output ASCII STL instead of binary STL if true
char *input; // ... |
// 0x0700A4E0 - 0x0700A560
static const Vtx bob_seg7_vertex_0700A4E0[] = {
{{{ -993, 1690, -2310}, 0, { 22656, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -2262, 1690, -4824}, 0, { 172, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -2262, 1075, -4824}, 0, { 172, 950}, {0xff, 0xff, 0xff, 0xff}}},
... |
/* annoGratorTester -- exercise anno* lib modules (in kent/src as well as kent/src/hg) */
#include "annoGratorQuery.h"
#include "annoGratorGpVar.h"
#include "annoStreamBigBed.h"
#include "annoStreamDb.h"
#include "annoStreamTab.h"
#include "annoStreamVcf.h"
#include "annoStreamWig.h"
#include "annoGrateWigDb.h"
#inclu... |
/*
* Phoenix-RTOS
*
* Operating system kernel
*
* Zynq - 7000 UART driver
*
* Copyright 2021 Phoenix Systems
* Author: <NAME>
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include <stdio.h>
#include <errno.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#incl... |
///
/// @file HCString.c
/// @ingroup HollowCore
///
/// @author <NAME>
/// @date 1/17/19
/// @copyright © 2020 HollowCore Contributors. MIT License.
///
#include "HCString_Internal.h"
#include <inttypes.h>
#include <string.h>
#include <float.h>
#include <math.h>
//----------------------------------------------------... |
#include <SDL.h>
#include "libretro.h"
#include "glad.h"
#include "gles.h"
SDL_Window *g_win = NULL;
static SDL_GLContext *g_ctx = NULL;
static SDL_AudioDeviceID g_pcm = 0;
static struct retro_frame_time_callback runloop_frame_time;
static retro_usec_t runloop_frame_time_last = 0;
static const uint8_t *g_kbd = NULL;
s... |
/*
* ESPRESSIF MIT License
*
* Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
*
* Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case,
* it is free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to dea... |
/* Copyright 2019, 2021 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 ... |
/*
* Copyright 2019 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distrib... |
/*
Produces minimally-compliant SMPTE Timed Text (W3C TTML)
format-compatible output
See http://www.w3.org/TR/ttaf1-dfxp/ and
https://www.smpte.org/sites/default/files/st2052-1-2010.pdf
Copyright (C) 2012 <NAME>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU... |
#include "../agi.h"
#include "../logic/logic_base.h"
#include "../logic/logic_execute.h"
#include "../logic/cmd_table.h"
#include "../logic/arithmetic.h"
#include "../logic/logic_eval.h"
// pause, quit
#include "../base.h"
// block, unblock, ignoreblocks, observe blocks
#include "../view/obj_block.h"
// loadpic, d... |
/**************************************************************************//**
* Copyright 2016 by Silicon Laboratories Inc. All rights reserved.
*
* http://developer.silabs.com/legal/version/v11/Silicon_Labs_Software_License_Agreement.txt
***********************************************************************... |
/*
* Copyright 2021 Advanced Micro Devices, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* on the rig... |
/* Copyright (c) (2019) Apple Inc. All rights reserved.
*
* corecrypto is licensed under Apple Inc.’s Internal Use License Agreement (which
* is contained in the License.txt file distributed with corecrypto) and only to
* people who accept that license. IMPORTANT: Any license rights granted to you by
* Apple In... |
/*******************************************************************************
*SmartFusion2 Future Creative Board Base Design with SPI and I2C, UART, PWM
*Application code (c) Copyright 2017 Microsemi SoC Products Group & Calit2 at the University of California, Irvine.
*Base Example code (c) Copyright 2015 Micros... |
/* ANSI-C code produced by genperf */
#include <util.h>
#include <ctype.h>
#include <libyasm.h>
#include <libyasm/phash.h>
#include "modules/arch/x86/x86arch.h"
enum regtmod_type {
REG = 1,
REGGROUP,
SEGREG,
TARGETMOD
};
struct regtmod_parse_data {
const char *name;
unsigned int type:8; ... |
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* Copyright (c) 2002-2010 InMon Corp. Licensed under the terms of the InMon sFlow licence: */
/* http://www.inmon.com/technology/sflowlicense.txt */
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <string.h>
#incl... |
/******************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER
*
* This file is part of Open PHIGS
* Copyright (C) 2014 Surplus Users Ham Society
*
* Open PHIGS is free software: you can redistribute it and/or modify
* it under the ter... |
#include "sysincludes.h"
#include "msdos.h"
#include "stream.h"
#include "mtools.h"
#include "fsP.h"
#include "file.h"
#include "htable.h"
#include "dirCache.h"
typedef struct File_t {
Class_t *Class;
int refs;
struct Fs_t *Fs; /* Filesystem that this fat file belongs to */
Stream_t *Buffer;
int (*map)(struct Fi... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c)... |
/**
* Copyright 2017 IBM 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
/*
* 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... |
/* See LICENSE file for copyright and license details. */
#include "servers-gamma.h"
#include "servers-crtc.h"
#include "state.h"
#include "communication.h"
#include "util.h"
#include <errno.h>
#include <string.h>
#if defined(__clang__)
# pragma GCC diagnostic ignored "-Wswitch-enum"
#endif
/**
* Handle a ‘Comman... |
#include "tmp116.h"
// TMP116 register definitions
#define REG_TEMPERATURE ((uint8_t)0x00) // Stores the output of the most recent conversion
#define REG_CONFIGURATION ((uint8_t)0x01) // Chip configuration
#define REG_LIM_HIGH ((uint8_t)0x02) // High limit for comparison wit... |
#include "subtree_batch_sign.h"
#include "hash.h"
#include "tree.h"
#include "wots.h"
#include "horst.h"
#include "hash_address.h"
#include "randombytes.h"
#include "zerobytes.h"
#include "crypto_hash_blake512.h"
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
struct batch_sts{
// The ... |
/*
* mms100_ISC_download.c - Touchscreen driver for Melfas MMS-series touch controllers
*
* Copyright (C) 2011 Google Inc.
* Author: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* ISP reflashing code based on original code from Melfas.
*
*
* This program is free software; you can redistribute it and/or modi... |
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
/* gnoesyChsqc_BB Agilent Technologies
This pulse sequence allows... |
#define _XOPEN_SOURCE 500
#include "dll.h"
#include "registers.h"
#include "i2c.h"
#include "evalkit_illb.h"
#include "config.h"
#include "pru.h"
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
/// \addtogroup DLL
/// @{
static unsigned char *i2cData;
static uint8_t initializeDLL;
stati... |
/*
* Copyright (c) 2009 <NAME>
* Copyright (c) 2011 <NAME>
* Copyright (c) 2013 <NAME>
*
* 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.
*
* This program is distributed in th... |
/* $KAME: quip_client.c,v 1.9 2003/05/17 05:59:00 itojun Exp $ */
/*
* Copyright (C) 1999-2000
* Sony Computer Science Laboratories, 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:
* ... |
/*
MIT License
Copyright (c) 2017 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distrib... |
// init.c
#include "init.h"
int read_fpn_file_2_buf(char * filename, void ** buf, unsigned int * p_buf_bytes){
return read_file_2_buf(filename, buf, p_buf_bytes);
}
ptr_and_len * init_fpn_machine(void * buf, unsigned int buf_bytes, unsigned int * p_fpn_arr_cnt){
/*
料號機台查詢的首地址; 查詢方式看init.h裏面的宏
*/
ptr_a... |
/*
* Copyright 2021-22 <NAME>/KSS Technologies (Pty) Ltd.
*/
#include "hal_variables.h"
#include "mcp342x.h"
#include "FreeRTOS_Support.h"
#include "printfx.h"
#include "syslog.h"
#include "systiming.h" // timing debugging
#include "x_errors_events.h"
#include "x_string_general.h"
#include <string.h>
#includ... |
/*
*
* Copyright (C) 2014 <NAME>
* http://www.visionnaire.nl
*
* 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 requ... |
/* $NetBSD: cpu.c,v 1.55 2004/02/13 11:36:10 wiz Exp $ */
/*-
* Copyright (c) 1995 <NAME>.
* Copyright (c) 1995 Brini.
* 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. Redistributio... |
/******************************************************************************/
/* Important Fall 2020 CSCI 402 usage information: */
/* */
/* This fils is part of CSCI 402 kernel programming assignments at USC. ... |
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL_opengl.h>
#include <GLES2/gl2.h>
#include <GL/glfw.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <emscripten.h>
#define CANVAS_WIDTH 800
#define CANVAS_HEIGHT 600
#define FLOAT32_BYTE_SIZE 4
#define STRIDE FLOAT32_BYTE_SIZE*4
#def... |
#include <stdio.h>
#include <stdlib.h>
#include <byteswap.h>
#include <stdint.h>
#include <string.h>
#include "util.h"
#include "srom_util.h"
// #define DEBUG 0
#define FALSE 0
#define TRUE 1
#define MAKEUP_BYTE_ADDR 0x7fd5
#define TYPE_ADDR 0x7fd6
#define ROM_SIZE_ADDR 0x7fd7
#define SRAM_SIZE_ADDR 0x7fd8
#define CO... |
#include "asf_sar.h"
#include <asf.h>
#include <asf_meta.h>
#include <asf_raster.h>
#include <glib.h>
#include <gsl/gsl_blas.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_spline.h>
#include <gsl/gsl_statistics_double.h>
#include <assert.h>
static double min2(double a, double b)
{
return a<b ? a : b;
}
static do... |
/*
* (C) Copyright 2005- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an inter... |
/*
* address.c - process addresses
*
*
* Entry point:
*
* address(n, c, op)
* int n;
* char c, op;
* Reposition the cursor as specified by the count n, the motion
* command c and the operator op. For pure cursor movement,
* op = ' ' (the blank character). For line addresses used with an
* operator (op != ' '), th... |
/*******************************************************************************
* Copyright (c) 2016, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... |
// This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include <game.h>
#include <board.h>
#include <timeUtils.h>
#include <mainLib.h>
#include <libc.h>
#include <stdlib.h>
#define LONG_CASTLING 3
#define SHORT_CASTLING 2
#... |
/* $OpenBSD: socpcic.c,v 1.10 2016/01/21 08:03:08 jsg Exp $ */
/*
* Copyright (c) 2008 <NAME>
*
* 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.
*
*... |
/* matrix.c -- library routines for constructing dynamic matrices with
* arbitrary bounds using Iliffe vectors
****************************************************************
* HISTORY
*
* 15-Jul-95 <NAME> (<EMAIL>) at 3M St. Paul, MN
* Use stdlib.h rather than defining calloc locally - this fi... |
/********************************************************************
This benchmark test program is measuring a cpu performance
of floating point operation by a Poisson equation solver.
If you have any question, please ask me via email.
written by <NAME>, November 26, 2001.
Version 3.0
------------------------... |
// -*- mode: c; tab-width: 2; indent-tabs-mode: nil; -*-
//--------------------------------------------------------------------------------------------------
// Copyright (c) 2020 <NAME>
//
// This software is provided 'as-is', without any express or implied warranty. In no event will the
// authors be held liable for ... |
/* Copyright 2021 0x7ff
*
* 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 writing, s... |
/*-
* Copyright (c) 2003 <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions ... |
/*
* Copyright 2020 NXP
*
* 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, distrib... |
// (c) Minim Inc 2022
// This code runs as a cgi script to implement a very limited subset
// of the luci-mod-rpc functionality (as described at
// https://floatingoctothorpe.uk/2017/managing-openwrt-remotely-with-curl.html)
// Some limitations for simplicty and security
// it only implements the auth and uci endpo... |
/*
** Copyright (C) 2001-2020 by Carnegie Mellon University.
**
** @OPENSOURCE_LICENSE_START@
** See license information in ../../LICENSE.txt
** @OPENSOURCE_LICENSE_END@
*/
#include <silk/silk.h>
RCSIDENT("$SiLK: rwstatsproto.c ef14e54179be 2020-04-14 21:57:45Z mthomas $");
#include "rwstats.h"
#include "interval.h"... |
/* 16_keyframe_interpolation.c - OpenGL-based keyframe interpolation example
using Cg program from Chapter 6 of "The Cg Tutorial" (Addison-Wesley,
ISBN 0321194969). */
/* Requires the OpenGL Utility Toolkit (GLUT) and Cg runtime (version
1.5 or higher). */
#include <stdio.h> /* for printf and NULL */
#in... |
/**
* @file socfpga.c
* @brief
* @author <NAME> <<EMAIL>>
* @version
* @date 24.01.2020
*/
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <drivers/common/memory.h>
#include <drivers/fpga.h>
#include <embox/unit.h>
#include <framework/mod/options.h>
#include <kernel/irq.h>
#include <kernel/pa... |
#include <stdio.h>
#include <stdlib.h>
#include <pico/stdlib.h>
#include <hardware/i2c.h>
#include <karos/error.h>
#include <karos/module.h>
#include <karos/thermal/thermal-device.h>
#include <karos/thermal/thermal-core.h>
#include <karos/thermal/bmp280.h>
#include <karos/i2c/i2c-dev.h>
#include <karos/i2c/i2c-core.h>
... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<ctype.h>
#define SIZE 100
typedef struct node {
char *word;
int sum_skore;
int num_appearances ;
struct node *next;
struct node *prev;
} nodeT;
typedef struct {
int size;
int num_entries;
nodeT *table;
} hashT;
hashT metavliti_prospelasis... |
/*
* $Id: store_digest.c,v 1.34.4.3 2000/02/09 23:30:02 wessels Exp $
*
* DEBUG: section 71 Store Digest Manager
* AUTHOR: <NAME>
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
* ----------------------------------------------------------
*
* Squid is the result of efforts by numerous indivi... |
/*!
* \file header_page.c
* \version 1.0
* \date Sep 15, 2021
* \author <NAME> <<EMAIL>>
* \brief See \ref header_page.h
*
* \copyright Copyright (c) 2021- University of Konstanz.
* This software is the proprietary information of the above-mentioned
* institutions. Use is subject to license terms. Please refer... |
/*******************************************************************************
start_win.c - description
-------------------
begin : 27.01.2019
last modify : 03.02.2019
copyright : (C) 2019 by MHS-Elektronik GmbH & Co. K... |
// Copyright (C) strawberryhacker
#include <citrus/mm.h>
#include <citrus/align.h>
#include <citrus/kmalloc.h>
#include <citrus/slob.h>
#include <citrus/buddy_alloc.h>
#include <citrus/mem.h>
#include <citrus/boot_alloc.h>
#include <citrus/panic.h>
#include <citrus/sched.h>
#include <citrus/thread.h>
#include <citrus... |
#include "oled.h"
#include "stdlib.h"
#include "oledfont.h"
#define GPIO_O12864_PIN_SEL ((1ULL<<42) | (1ULL<<41)|(1ULL<<40)|(1ULL<<39)|(1ULL<<38) )
void delay_ms(unsigned int ms) {
int i;
vTaskDelay(ms / portTICK_PERIOD_MS);
// __delay_cycles(200);
}
u16 BACK_COLOR, POINT_COLOR; //背景色,画笔色
... |
#include "kernel.h"
static KernelFunctionEntry kernel_functions[] = {
{ .name = "run", .function = kernel_run },
{ .name = "dup", .function = kernel_dup },
{ .name = "type", .function = kernel_type },
{ .name = "hash", .function = kernel_hash },
{ .name = "equals", .function = kernel_equals },
... |
#define EXTERN
#include <u.h>
#include <libc.h>
#include "a.h"
#include "y.tab.h"
enum
{
Plan9 = 1<<0,
Unix = 1<<1,
Windows = 1<<2,
};
int
systemtype(int sys)
{
#ifdef _WIN32
return sys&Windows;
#else
return sys&Plan9;
#endif
}
int
Lconv(Fmt *fp)
{
return linklinefmt(ctxt, fp);
}
void
dodef(char *p)
{
if(nDl... |
#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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.