text stringlengths 5.8k 28.2k |
|---|
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
// A struct is used to create a structure and group data together. It is a simple way in C of combining together pieces of
// data into one data type to group them together. You can also contain a struct within a struct.
// It can be acce... |
/* saelgv.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__3 = 3;
/* $Procedure SAELGV ( Semi-axes of ellipse from generating vectors ) */
/* Subroutine */ int s... |
// Copyright 2011 Google Inc. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the COPYING file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing project authors may
... |
/* Start webfuzzprelude.c */
#include <stdio.h>
#include <stdlib.h>
#include <string.h> /*for memset*/
#include <sys/types.h>
#include <sys/socket.h>
#include <signal.h>
#include "spike.h"
#include "hdebug.h"
#include "tcpstuff.h"
//#define RTSP
//#define RTSP_DESCRIBE
//#define BODY
#define USEARGS
//#define WEBADM... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2004-2010 <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 of... |
#include "common.h"
#define HASH_LEN_DECLARE u32 hash; u32 len
#define bytemask_from_count(cnt) (~(~0ul << (cnt)*8))
struct qstr {
union {
struct {
HASH_LEN_DECLARE;
};
u64 hash_len;
};
const unsigned char *name;
};
struct dentry_operations {};
struct dentry {
struct qstr d_name;
};
struct super_operat... |
/*
** $Id: ldump.c,v 2.37.1.1 2017/04/19 17:20:42 roberto Exp $
** save precompiled Lua chunks
** See Copyright Notice in lua.h
*/
#include "luat_base.h"
#include "luat_malloc.h"
#define ldump_c
#define LUA_CORE
#include "lprefix.h"
#include <stddef.h>
#include "lua.h"
#include "lobject.h"
#include "lstate.h"
#i... |
/**
* @file mac_tx.c
* @author <NAME> (<EMAIL>)
* @brief
* @version 0.1
* @date 2022-03-01
*
* @copyright Copyright (c) 2022
*
*/
#include <stdio.h>
#include <string.h>
#include "pico.h"
#include "pico/stdlib.h"
#include "hardware/pio.h"
#include "hardware/dma.h"
#include "debug.h"
#include "mac_tx.pio.h"... |
/*******************************************************************************
@file i2c_master.c
@brief I2C peripheral driver
@author <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
******************************************************************************/
/**********************************************... |
/* tools/mkbootimg/mkbootimg.c
**
** Copyright 2007, The Android Open Source Project
**
** 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
*... |
#include "token.h"
#include "lavender.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <assert.h>
// guess for typical line length in chars
#define INIT_LINE_LENGTH 128
static TokenType tryGetFuncSymb(void);
static TokenType tryGetQualName(void);
static TokenType tryGetEllipsi... |
/*
* FIG : Facility for Interactive Generation of figures
* Copyright (c) 1985-1988 by <NAME>
* Parts Copyright (c) 1989-2007 by <NAME>
* Parts Copyright (c) 1991 by <NAME>
*
* Any party obtaining a copy of these files is granted, free of charge, a
* full and unrestricted irrevocable, world-wide, paid up, royalt... |
/* ------------------------------------------------------------------------- */
/* Copyright 2013 Esri */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
... |
#include "vector_object_test.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#ifdef MY_DEBUG
#undef MY_DEBUG
#endif
typedef struct Student
{
my_bool dynamic_memory_flag;
const char *name;
unsigned int age;
float *san_wei;
my_bool san_wei_memory_flag;
} Student;
stat... |
#include "bfuzzjni.h"
#include <inttypes.h>
#include <jni.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// LINT_C_FILE
// TODO(gnattishness) note assumptions regarding trying to fuzz multiple Java
// targets or implementations
// TODO(gnattishness) allow fuzzin... |
/*
* velout.c
* flowVC
*
* Created by <NAME>.
* Copyright 2011 Flow Physics Group. All rights reserved.
*
*/
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "globals.h"
#include "io.h"
#include "macros.h"
#include "mesh.h"
#include "velocity.h"
#include "velout.h"
void... |
/* $Header: /home/mguthaus/.cvsroot/mibench/consumer/tiff-v3.5.4/tools/fax2tiff.c,v 1.1.1.1 2000/11/06 19:52:34 mguthaus Exp $ */
/*
* Copyright (c) 1990-1997 <NAME>ler
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation... |
#include <gfreenect.h>
#include <skeltrack.h>
#include <math.h>
#include <string.h>
#include <cairo.h>
#include <glib-object.h>
#include <clutter/clutter.h>
#include <clutter/clutter-keysyms.h>
static SkeltrackSkeleton *skeleton = NULL;
static GFreenectDevice *kinect = NULL;
static ClutterActor *info_text;
static Clut... |
#include "debug.h"
uint8_t len;
uint16_t time = 0;
uint16_t Number_of_digits; //算出的每个电机 数据中 数据域的长度
int16_t Result;
int16_t Real_Number[20]; //用ascii码算出相应位中的真实数值 0-9对应48-57
int8_t Abs_Pos; //数据的绝对位置
uint8_t act_flag = 0;
/****************************************************************************************... |
/* pslPairs - join paired ends in psl alignments */
/*
File: pslPairs.c
Author: <NAME>
Date: 10/1/2003
Description: Create end sequence pairs from psl files
*/
#include "common.h"
#include "linefile.h"
#include "memalloc.h"
#include "hash.h"
#include "jksql.h"
#include "hdb.h"
#include "fuzzyFind.h"
#include "... |
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <argp.h>
#define TMDS_CHANNEL_LEN 10
#define TMDS_CHUNK_PAD_LEN 2
#define TMDS_VALUE_MASK 0x3ff /* 10 bit mask */
#define CTRLTOKEN_BLANK 0x354
#define CTRLTOKEN_... |
/*
* SCREENReadHDRImage.c
*
* AUTHORS:
*
* <EMAIL> mk
*
* PLATFORMS:
*
* All.
*/
#include "Screen.h"
#include "tinyexr.h"
// If you change the useString then also change the corresponding synopsis string in ScreenSynopsis.c
static char useString[] = "[imageArray, format, errorMsg, auxInf... |
/* OrbitalsDalton.c */
/**********************************************************************************************************
Copyright (c) 2002-2013 <NAME>. All rights reserved
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the Ga... |
/*
* VDMA.c
*
* Created on: 17.3.2013
* Author: <NAME>
* web: www.arbot.cz
*/
#include "VDMA.h"
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
/* Register offsets */
# define OFFSET_PARK_PTR_REG 0x28
# define OFFSET_VERSION 0x2c
# define... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ipps.h>
#include "xcloc_finter.h"
#include "test_suite.h"
#include "acousticGreens2D.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
/*
static
int computeTravelTimeTable(const int nx, const int ny, const int nz,
... |
/*****************************************************************
* starini2.c version 1.0 vax/vms, 5-8-86
*****************************************************************
* Contains part 2 of the initialization code for the STAR
* interpreter. Due to a constraint imposed by VAX-11C, it has
* b... |
#include "assert.h"
#include "actor.h"
#include "background.h"
#include "base.h"
#include "bee.h"
#include "character.h"
#include "copy16.h"
#include "footprint.h"
#include "graph.h"
#include "heap.h"
#include "interactable.h"
#include "level.h"
#include "log.h"
#include "music.h"
#include "obj.h"
#include "palette.h"
... |
//
// ar.c
//
// Library archive utility
//
// Copyright (C) 2011 <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 copyrig... |
/**
* \file
*
* \brief This file contains the function implementations for XMEGA ADC
* Oversampling Application.It shows how to use oversampling to
* increase the resolution.In this example configuration has been been
* selected for oversampling from 12 bit signed to 16 bit signed result
*
... |
/* $XConsortium: floman.c,v 1.6 94/04/17 20:34:12 dpw Exp $ */
/* $XFree86: xc/programs/Xserver/XIE/mixie/control/floman.c,v 3.0 1996/08/20 12:23:13 dawes Exp $ */
/**** module floman.c ****/
/******************************************************************************
Copyright (c) 1993, 1994 X Consortium
Permiss... |
/*
* Copyright (c) 2013 <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, dis... |
/* jozov.c by <NAME> */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "voz.h"
#define NLINKS 1000 /* 100 Number of possible links with the same rho_sl */
typedef struct Particle {
realT vol;
int nadj;
int *adj;
} PARTICLE;
typedef struct Zone {
int core; /* Identity of peak particle */
... |
#include "fat32_lowLevel.h"
#include <cn_string.h>
#include <memory.h>
#include <fs.h>
#define DIRECTORY_RECORD_SIZE 32
#define DIRECTORY_RECORDS_PER_SECTOR (512/DIRECTORY_RECORD_SIZE)
#define FAT_RECORDS_PER_SECTOR (512/sizeof(uint32))
uint32 currentDirectory;
uint32 currentCluster=0;
uint32 reloadFlag;
uint32 curr... |
/* toon_root.c - finding the correct background window / virtual root
* Copyright (C) 1999-2001 <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 of the License,... |
/*
* Copyright (c) 2019, 2020 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
* WARRANTIES... |
#include <nSystem.h>
#include "transbordo.h"
int debugging= TRUE;
int verificar, achacao, apargua;
typedef struct {
int i; /* transbordador */
int v; /* vehiculo */
nTask t;
int haciaChacao;
} Viaje;
/* Guarda el identificador de la tarea nMain que sirve para controlar
el avance del resto de las tareas */... |
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* KVM/MIPS MMU handling in the KVM module.
*
* Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
* Authors: <NAME> <<EMAI... |
#include "enums.h"
char* get_actor_phase_name (uint32_t v) {
switch (v) {
case 0: return "ACTOR_ENABLED";
case 1: return "ACTOR_CONSTRUCTING";
case 2: return "ACTOR_LINKING";
case 3: return "ACTOR_STARTING";
case 4: return "ACTOR_CALIBRATING";
case 5: return "ACTOR_PREPARING";
case 6: return "ACTOR_RUNNING";
case 7: re... |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use ... |
/*
* wslua_file.c
*
* Wireshark's interface to the Lua Programming Language
* for custom file format reading/writing.
*
* (c) 2014, <NAME> <<EMAIL>>
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "wslua_file_... |
/******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. *
* *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
... |
/* Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
* 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
* l... |
/* $Id$ */
/*
*
* pt_util: Program to dump the AFS protection server database
* into an ascii file.
*
* Assumptions: We *cheat* here and read the datafile directly, ie.
* not going through the ubik distributed data manager.
* therefore the database must be quiescent for the
* o... |
#define _USE_MATH_DEFINES
#include <inttypes.h>
#include <math.h>
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "avlmini.h"
#include "dSFMT.h"
#include "vec.h"
#define max(a, b) (((a) > (b)) ? (a) : (b))
#define min(a, b) (((a) < (b)) ? (a) : (b))... |
/*
* This file is part of the OpenSupaplex distribution (https://github.com/sergiou87/open-supaplex).
* Copyright (c) 2020 <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, version 3.
*
*... |
/* Copyright (c) 2012 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.
*/
/* Flash memory module for Chrome EC */
#include "console.h"
#include "flash.h"
#include "registers.h"
#include "power_button.h"
#include "sys... |
/*
* 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 <Windows.h>
#include <tlhelp32.h>
#include <math.h>
#define HAT_WINDOW L"LaunchUnrealUWindowsClient"
#define HAT_TITLE L"A Hat in Time (64-bit, Final Release Shipping PC, DX9, Modding)"
#define HAT_EXE_NAME L"HatinTimeGame.exe"
#define PE_SECTION_PTR (0x3C)
#define PE_TS_OFFSET (... |
/*
List ( in order of importance )
TODO - Can't exit download mode and then go back to it.
TODO - Option to use uma0.
TODO - Include everything that my 3ds one had.
TODO - More site support. I made a list.
*/
#define VERSION 3
#define VERSIONSTRING "v2.1"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#inc... |
/*
* Example program for the JPGalleg library
*
* Version 2.6, by <NAME>, 2000-2006
*
* This example demonstrates how to load/save JPGs in memory and how this
* could be used to make a preview of a JPG image for a given quality.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <alleg... |
/*
* Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
* Copyright 2001-2006 <NAME> <<EMAIL>>
*
* This file is part of the Linux kernel and is made available under
* the terms of the GNU General Public License, version 2, or at your
* option, any later version, incorporated herein by reference.
*/... |
/********************************************************************
* BenchIT - Performance Measurement for Scientific Applications
* Contact: <EMAIL>
*
* $Id: sparseFormatCCS.c 1 2009-09-11 12:26:19Z william $
* $URL: svn+ssh://william@r<EMAIL>.tu-dresden.de/svn-base/benchit-root/BenchITv6/kernel/numerical/spar... |
#include <ata/ata.h>
#include <base/string.h>
#include <base/tasking/task.h>
static int ata_ide_irq_invoked = 0;
void ata_initialize_ide( ata_device_t *device ){
pci_device_t *pci_device = &device->pci_device;
ide_control_t *new_ctrl = kmalloc( sizeof( ide_control_t ));
hal_device_t *hal_buf;
int i, j, //needs_i... |
//-----------------------------------------------------------------------------
// FILE NAME : FUMH.C
// FUNCTION : MH Compress and MH2 Compress
// AUTHER : 1996.08.08 FPL)Y.YUTANI
// NOTE : for Windows NT V4.0
// MODIFY : Reduce data size Oct.31,1996 H.Ishida
// MODIFY : for NT.50 MiniDriver Sep.3,... |
/* Copyright 2013-2016 IBM Corp.
*
* 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 ... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2013-2017 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
... |
/*
* kvm guest debug support
*
* Copyright IBM Corp. 2014
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License (version 2 only)
* as published by the Free Software Foundation.
*
* Author(s): <NAME> <<EMAIL>>
*/
#include <linux/kvm_h... |
/* Copyright (c) 2011 - 2014 ARM LIMITED
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <math.h>
#include <sys/time.h>
#include <unistd.h>
#include "ue_extract.h"
#include "ue_mpi.h"
#include "ue_config.h"
#include "code.h"
/* Extraction status */
#define UE_EXTRACT_OK 0
#define UE_EXTRACT_FULL 1
#define UE_EXTRACT_DO... |
/*
* << Haru Free PDF Library >> -- hpdf_pdfa.c
*
* URL: http://libharu.org
*
* Copyright (c) 1999-2006 <NAME> <<EMAIL>>
* Copyright (c) 2007-2009 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* pr... |
/*
* Copyright (c) 1980, 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME> at The University of Melbourne.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted... |
#line 124 "/home/qiang/src/splash2/splash2-master/codes/null_macros/c.m4.null.POSIX_sel4"
#line 1 "main.C"
/*************************************************************************/
/* */
/* Copyright (c) 1994 Stanford University ... |
// From noop.c obj.c pass.c
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <link.h>
#include "../cmd/7l/7.out.h"
#include "../runtime/stack.h"
void addstacksplit(Link*, LSym*);
static void nocache(Prog*);
static int relinv(int);
static void xfol(Link *, Prog *, Prog **);
static void follow(Link *, LSym *... |
/**
* @file linalg.c
* @authon <NAME>
* @date 7 Nov 2017
* @brief File containing common linear algebra functions.
*/
#include "linalg.h"
#include "tiff_util.h"
vector* vector_create(size_t size) {
if(size <= 0) {
return NULL;
}
vector* retval = malloc((size * sizeof(double)) +... |
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <errno.h>
#include <sys/util.h>
#include <net/buf.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/conn.h>
#include <bluetooth/mesh.h>
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_MESH_DEBUG_BE... |
/*-
* Copyright (c) 2010 by Panasas, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice immediately at t... |
/* Copyright (c) 2016, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <odp.h>
#include <odp/helper/ip.h>
#include <odp/helper/udp.h>
#include <odp/helper/tcp.h>
#include <odp/helper/chksum.h>
#include <stddef.h>
#include <stdbool.h>
/* The following union type is u... |
/* signal_tester.c
* <NAME>
*
* a simple program that communicates with the signal
* calculation code. Given coordinate => spectrum, print-out of signal.
* "cart" and "cyl" switch between cartesian and cylindrical coordinates
* for input
*
* Modified Oct 2014 <NAME>
* to use new config file in common with ... |
/* $Header: /home/schj/src/vamps_0.99g/src/util/RCS/mktable.c,v 1.16 1999/01/06 12:13:01 schj Alpha $ */
/*
* $RCSfile: mktable.c,v $
* $Author: schj $
* $Date: 1999/01/06 12:13:01 $
*/
#include "vamps.h"
#include "swatsoil.h"
#include <string.h>
#include <float.h>
static char RCSid[] =
"$Id: mktable.c,v 1.16 1... |
/* =================================================== */
/* Intelligent FRAC. (C) 2000 <NAME> */
/* --------------------------------------------------- */
/* See LICENSE regarding distribution policy and */
/* conditions of use. */
/* ===============================... |
/*
* Copyright 2016 Advanced Micro Devices, Inc.
*
* 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, m... |
/* ehopt.c--optimize gcc exception frame information.
Copyright (C) 1998-2018 Free Software Foundation, Inc.
Written by <NAME> <<EMAIL>>.
This file is part of GAS, the GNU Assembler.
GAS is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as publ... |
/*
* Memory and machine-specific definitions. Used in C and assembler.
*/
/*
* Sizes
*/
#define BI2BY 8 /* bits per byte */
#define BI2WD 32 /* bits per word */
#define BY2WD 8 /* bytes per word */
#define BY2V 8 /* bytes per vlong */
#define MAXBY2PG (16*1024) /* rounding for UTZERO in executables;... |
// pcap_parser.cpp: 定义控制台应用程序的入口点。
//
//#include "stdafx.h"
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<netinet/in.h>
#include<time.h>
#include<errno.h>
#define BUFSIZE 10240
#define STRSIZE 1024
//typedef long bpf_int32; // maybe 8 bytes in windows10 x64 system
//typedef unsigned l... |
/****************************************************************************
*
* MODULE: Jennic Module Programmer
*
* COMPONENT: Main file
*
* VERSION: $Name: $
*
* REVISION: $Revision: 1.2 $
*
* DATED: $Date: 2009/03/02 13:33:44 $
*
* STATUS: $State:... |
//
// Created by tangs on 2020/8/27.
//
#include <stdio.h>
#include <stdlib.h>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <cglm/cglm.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb/stb_image.h>
#include "utils.h"
static int frame_ = 0;
static float delta_time_ = 0.0f;
static float last_frame_time_ ... |
#ifndef _REENTRANT
#define _REENTRANT
#endif
/* includes */
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#include <sys/times.h>
#include <sys/stat.h>
/* defines */
#define MAX_BODIES 1000000
#define MAX_STEPS 1000000
#define MAX_FAR 1000000
#defin... |
/* $OpenBSD: hypervisor.h,v 1.15 2014/01/23 23:56:27 kettenis 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 copie... |
// SPDX-License-Identifier: GPL-2.0 OR MIT
/**************************************************************************
*
* Copyright 2017 VMware, Inc., Palo Alto, CA., USA
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated docu... |
// SPDX-License-Identifier: BSD-3-Clause
//
//Copyright(c) 2021 AMD. All rights reserved.
//
//Author: <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
#include <sof/atomic.h>
#include <sof/audio/component.h>
#include <sof/bit.h>
#include <sof/drivers/acp_dai_dma.h>
#include <sof/drivers/interrupt.h>
#include <sof/drivers/timer.... |
/*
* Copyright 2010-2016, Tarantool AUTHORS, please see AUTHORS file.
*
* 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 lis... |
/******************************************************************
*
* uEcho for C
*
* Copyright (C) <NAME> 2015
*
* This is licensed under BSD-style license, see file COPYING.
*
******************************************************************/
#include <uecho/net/interface.h>
#include <uecho/net/socket.h>
... |
#include <fiddle.h>
#include <ruby/thread.h>
#include <stdbool.h>
#ifdef PRIsVALUE
# define RB_OBJ_CLASSNAME(obj) rb_obj_class(obj)
# define RB_OBJ_STRING(obj) (obj)
#else
# define PRIsVALUE "s"
# define RB_OBJ_CLASSNAME(obj) rb_obj_classname(obj)
# define RB_OBJ_STRING(obj) StringValueCStr(obj)
#endif
VALUE cFiddle... |
/**
* \file
* System.Double, System.Single and System.Number runtime support
*
* Author:
* <NAME> (<EMAIL>)
*
* Copyright 2015 Xamarin, Inc (http://www.xamarin.com)
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
//
// Copyright (c) Microsoft. All rights... |
/*
** CardinalDB
** BSD 3-Clause License
**
** Copyright (c) 2022, <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 a... |
/*
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech-Cycleo
Description:
LoRa concentrator : Just In Time TX scheduling queue
Li... |
/*
* SHA-256 algorithm as described at
*
* http://csrc.nist.gov/cryptval/shs.html
*/
#include "ssh.h"
/* ----------------------------------------------------------------------
* Core SHA256 algorithm: processes 16-word blocks into a message digest.
*/
#define ror(x, y) (((x) << (32 - y)) | (((uint32)(x)) >> ... |
/**
* (C) Copyright 2017-2018 Intel Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
/**
* Subroutines to calculate the
* various contamination models
*
*/
#include <math.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_interp.h>
#include "fitsio.h"
#include "inout_aper.h"
#include "aXe_grism.h"
#include "spce_PET.h"
#include "spc_wl_calib.h"
#include "aXe_errors.h"
#... |
/*
HDgtcalf utility routines
*/
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "fitsio.h"
#include "HDgtcalf_internal.h"
//#ifdef HDGTCALF_STANDALONE
#include "HDgtcalf_standalone.h"
//#else
//#include "headas_utils.h"
//#include "headas_error.h"
//#endif
/* Function prototypes */
static int c... |
#include <fs/fat12.h>
typedef struct {
uint8_t OEMName[8];
uint16_t BytesPerSector;
uint8_t SectorsPerCluster;
uint16_t NumReservedSectors;
uint8_t NumFATs;
uint16_t NumRootDirectoryEntries;
uint16_t NumTotalSectors;
uint8_t MediaDescriptorType;
uint16_t NumSectorsPerFAT;
uint16_t NumSectorsPerTr... |
/*
Sawppy Rover HTML-based joystick control, server side.
Portions copied from Espressif sample code
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/protocols/esp_http_server.html
https://github.com/espressif/esp-idf/tree/1cb31e5/examples/protocols/http_server/ws_echo_server
https://github.c... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
/*
* Copyright (c) 2009 <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 ... |
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <GL/glut.h>
#include "texture.h"
#include <string.h>
#if !defined(GL_VERSION_1_1) && !defined(GL_VERSION_1_2)
#define glTexSubImage2D glTexSubImage2DEXT
#endif
static unsigned *image, *bgdtile;
static int width, height, components;
static int grid, zoo... |
/*--- RIPEM Key Server:
* Program to provide network access to a database of
* cryptographic public keys.
*
* Credits to Sun's Network Programming Guide.
*
* <NAME> 13 June 1992
*/
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <fcntl.h>
#include <sys/file.h>
#... |
/* SPDX-License-Identifier: MIT */
/*
* MIT License
****************************************************************************
* (C) 2003 - <NAME> - Intel Research Cambridge
* (C) 2005 - <NAME> - Intel Research Cambridge
* (C) 2017 - <NAME> - NEC Europe Ltd.
*****************************************************... |
/*****************************************/
/* This is the main Pcon.c program file */
/* BeagleBone Black implementation */
/* */
/*****************************************/
//
//
#include <sys/sem.h>
#include <sys/ipc.h>
#include <sys/types.h>
#include <errno.h>
#include <stdio.h>
#include <unistd.h>... |
#include "common.h"
#include <float.h>
#include <assert.h> /* assert */
const char* GTYPES[] = {"0/0","0/1","1/1","0|1","1|0"};
#define max(a,b) (((a) > (b)) ? (a) : (b))
void init_varlist(PVAR* varlist,int snps,struct fragment* Flist,int fragments) // also calculates unphased genotype likelihoods (GL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.