text stringlengths 5.8k 28.2k |
|---|
/*
*
* http://www.ietf.org/rfc/rfc2131.txt
*/
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <net.h>
#include <acess/sys.h>
#include <errno.h>
enum {
UDP_IOCTL_GETSETLPORT = 4,
UDP_IOCTL_GETSETRPORT,
UDP_IOCTL_GETSETRMASK,
UDP_IOCTL_SETRADDR,
};
#define FILENAME_MAX 25... |
/*
* Copyright 2016 CSIRO
*
* This file is part of Mastik.
*
* Mastik is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Mas... |
/* exec.c - generic call-a-program code
* Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
* GnuPG 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 Foundati... |
/*
* Copyright (C) 2015-2016 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
*
* Unless required b... |
// HandRankSetup.cpp : Sets up the HandRank File for VERY fast Lookups
// by <NAME> and the 2+2 list My code is GPL, use it as you like
// http://archives1.twoplustwo.com/showflat.php?Cat=0&Number=8513906&amp;amp;page=2&fpart=1&vc=1
/* Modified by
<NAME> ( http://www.codingthewheel.com/archives/poker... |
/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* util/gss-kernel-lib/t_kgss_user.c - Userspace portion of test program */
/*
* Copyright (C) 2011 by the Massachusetts Institute of Technology.
* All rights reserved.
*
* Export of this software from the United States of America may
* require a sp... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
* (C) 2001 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include <mpiimpl.h>
#include <mpid_dataloop.h>
#include <stdlib.h>
#include <limits.h>
#undef MPID_STRUCT_FLATTEN_DEBUG
#undef MPID_STRUCT_DEBUG
static ... |
#include "all.h"
#include "io.h"
#include "mem.h"
typedef struct Mcsb Mcsb;
typedef struct Mce Mce;
typedef struct Cqe Cqe;
typedef struct Iopb Iopb;
typedef struct Cib Cib;
typedef struct Crb Crb;
typedef struct Csb Csb;
typedef struct Macsi Macsi;
typedef struct Eagle Eagle;
enum
{
MaxEagle = 1, /* Max. configur... |
#include "RTOS_FProject.h"
SemaphoreHandle_t minutes_semaphore;
SemaphoreHandle_t hours_semaphore;
EventGroupHandle_t xEventGroup;
QueueHandle_t time_queue;
SemaphoreHandle_t xMutex;
const uint8_t cinves_Bitmap[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x... |
#include <stdint.h>
#include <stdbool.h>
#include <os.h>
#include <os_io_seproxyhal.h>
#include "zilliqa.h"
#include "ux.h"
#include "pb_decode.h"
#include "txn.pb.h"
#include "uint256.h"
#include "bech32_addr.h"
static signTxnContext_t *ctx = &global.signTxnContext;
// Define the approval screen. This is where the u... |
/*
* (C) Copyright 2007
* <NAME>, Pengutronix
*
* (C) Copyright 2008-2010 Freescale Semiconductor, Inc.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2006 The University of Tennessee a... |
#include "stdafx.h"
#include "lcd.h"
#include "keys.h"
#include "83phw.h"
#include "link.h"
#include "device.h"
#include "calc.h"
#include "83psehw.h"
#ifdef WINVER
#include "dbbreakpoints.h"
#endif
#define BIT(bit) (1 << bit)
static double timer_freq83p[4] = { 1.0f / 560.0f, 1.0f / 248.0f, 1.0f / 170.0f, 1.0f / 118... |
/***********************license start***************
* Copyright (c) 2003-2010 Cavium Networks (<EMAIL>). All rights
* reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of s... |
#include "types.h"
// some bullets:
bullet bullet_0 = {
pos:{0,0,0,0}, col0:{0,0,0,0}, col1:{0,0,0,0},
vel:{0,0,0,0}, acc:{0,0,0,0}, force:{0,0,0,0},
rad:0, tvel:0, tacc:0, lifetime:2, dmg:0,
inited:0, frame:0,
run: NULL
};
bullet bullet_default = {
pos:{0,0,0,0}, col0:{255,0,0,255}, col1:{255,255,255,255},
vel... |
#include <stdio.h>
#include <stdint.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/epoll.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <stdint.h>
#include <stdlib.h>
#include <signal.h>
#include <fcntl.h>
#include "httpserver.h"
#d... |
#include "screen.h"
#include <assert.h>
#include <string.h>
#include <SDL2/SDL.h>
#include "config.h"
#include "common.h"
#include "compat.h"
#include "icon.xpm"
#include "tiny_xpm.h"
#include "video_buffer.h"
#include "util/lock.h"
#include "util/log.h"
#define DISPLAY_MARGINS 96
static inline struct size
get_rota... |
/* Copyright 2007-2011,2014 IPB, Universite de Bordeaux, INRIA & CNRS
**
** This file is part of the Scotch software package for static mapping,
** graph partitioning and sparse matrix ordering.
**
** This software is governed by the CeCILL-C license under French law
** and abiding by the rules of distribution of free ... |
/******************************************************************************
* @file:
* @purpose: CMSIS Cortex-M3 Core Device Startup File
* @version: V1.01
* @date: 4. Feb. 2009
*----------------------------------------------------------------------------
*
* Copyright (C) 2009 ARM Limited. All rights reserv... |
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME>ung (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following condition... |
/*
* File : barplot.c
* Abstract:
* An example C-file S-function for accessing simulink signals without using
* the standard block inputs. In this case, a floating bar-plot style scope is
* implemented. The signals that are selected on the diagram (via the mouse)
* are displayed by the scope. The companion... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// General Constants
#define COUNTER_SIZE 2
#define STATE_SIZE 4
#define MD5_OUTPUT_SIZE 16
#define IN_STR_LEN 21
#define MD5_BUFFER_SIZE 64
// General Macros
#define PRINT_HEX(a) printf("%c%c ", MAP_BASE16[(a >> 4)], MAP_BASE16[(a & 0x0F)])
//... |
/*
* Copyright (c) 2010 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... |
/*****************************************************************************/
/* (c) Copyright, Real-Time Innovations, All rights reserved. */
/* */
/* Permission to modify and use for internal purposes granted. */
... |
/*
--
-- telnet.c
-- Simple TELNET client using UNAPI for MSX.
-- Also supports Andres Ortiz ESP8266 BaDCaT modem
-- Revision 1.34
--
-- Requires SDCC and Fusion-C library to compile
-- Copyright (c) 2019 - 2020 <NAME> ( <EMAIL> )
-- Copyright (c) 2020 <NAME> for serial interface using Fossil driver
-- All rights... |
#include "hopscotch_internal.h"
struct hopscotch *
hopscotch_new(void) {
struct hopscotch *res = calloc(1, sizeof(*res));
if (res == NULL) { return NULL; }
res->state = HOPSCOTCH_CREATED;
res->node_ceil2 = DEF_NODE_CEIL2;
res->nodes = calloc(1LLU << res->node_ceil2, sizeof(res->nodes[0]));
i... |
/*
* link_gre6.c gre driver module
*
* 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.
*
* Authors: <NAME> <<E... |
/* LEDC (LED Controller) fade example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#inclu... |
/******************************************************************************
* gamemodes.c *
* ======== *
* ... |
// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
// Copyright (c) 2019 Mellanox Technologies.
#include <linux/tls.h>
#include "en.h"
#include "en/txrx.h"
#include "en_accel/ktls.h"
enum {
MLX5E_STATIC_PARAMS_CONTEXT_TLS_1_2 = 0x2,
};
enum {
MLX5E_ENCRYPTION_STANDARD_TLS = 0x1,
};
#define EXTRACT_INFO_FIELDS do... |
/*
* Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas.
* Copyright 2011 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 restricti... |
/*
* $Xorg: xclipboard.c,v 1.4 2001/02/09 02:05:38 xorgcvs Exp $
*
*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that b... |
/*
* i2s-beep.c
*
* author: <NAME>
* description:
* talk to CS43L22 Audio DAC over I2C
* connected to I2C1 PB6, PB9
* setups CS43L22 to play 6 beep sounds from headphone jack
* Audio out is connected to I2S3
*/
#include "stm32f4xx.h"
#include "system_stm32f4xx.h"
#include "cs43l22.h"
/***************... |
#include "fifo.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
//////////////////////////////////////////////////////////////////////
// Logging ///////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
#define fifo_warning(...) prin... |
/*
* $Id: MOD_weightvgmix.c 40449 2011-09-22 11:52:42Z mont29 $
*
* ***** 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 Licens... |
/*
Copyright (C) 2000,2002,2004,2005 Silicon Graphics, Inc. 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 Software Foundation.
This program is distributed in the... |
/*-
* Copyright (c) 2012 <NAME> <<EMAIL>>
* Copyright (c) 2016 <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 ... |
#include "sx1272.h"
#include "sx1272-gpio-interface.h"
#include "sx1272-spi-interface.h"
#include "sx1272-regs-lora.h"
#include "sx1272-main-driver.h"
#include "sys/energest.h"
#include "radio.h"
#include "dev/watchdog.h"
static const uint32_t channels[8] = LORA_CHANNELS;
#define RX_TX_BUFFER_SIZE 256
static uint8_t r... |
/*-
* BSD LICENSE
*
* Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
* 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 cod... |
// paging.c
//
// Paging interface for Mako.
//
// Author: <NAME> <<EMAIL>>
#include <stdint.h>
#include <pmm/pmm.h>
#include <interrupt/interrupt.h>
#include <util/util.h>
#include <debug/log.h>
#include <common/constants.h>
#include <common/errno.h>
#include "paging.h"
#define CHECK(err, msg, code) if ((err)) { ... |
/*
# Copyright (c) 2012, The Met Office, UK
# 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 conditi... |
/******************************************************************************
** This material was prepared as an account of work sponsored by an agency **
** of the United States Government. Neither the United States Government **
** nor the United States Department of Energy, nor Battelle, nor any of **
... |
/*
* Process startup.
*
* Copyright (C) 2003-2005 <NAME>, <NAME>,
* <NAME>, <NAME>, <NAME>.
*
* 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 c... |
/** This is the main of the streamcount program.
It collects parameters, carefully checks all parameters and then
calls two main functions, corresponding to two steps of the Aho-Corasic algorithm:
1. convertAllKmersIntoKWTreeReturnTree
2. streamAndCountOneFile
Then it combines the counts of KWtree leaf nodes int... |
#include <errno.h>
#include <sys/stat.h>
#include <time.h>
#include <fnmatch.h>
#include "motif-db.h"
#include "fasta-io.h"
/**************************************************************************
* Create a new motif database.
* Makes a copy of the strings so there is no confusion on what can be
* freed later.
... |
/*
* $Id: matrix.c,v 1.3 2004/02/12 05:17:33 syoyo Exp $
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "matrix.h"
#include "quaternion.h"
#include "memory.h"
#include "vector.h"
/* --------------------------------------------------------------... |
//
// Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root
// for full license information.
//
#include <peekpoke.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "charset.h"
#include "non_gameplay.h"
#include "digger.h"
uint8_... |
//
// pit.c
//
// Programmable Interval Timer functions (PIT i8253)
//
// Copyright (C) 2013 <NAME>. All rights reserved.
// Copyright (C) 2002 <NAME>. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// a... |
#include "pingpong.h"
static const int port = 18515;
static const int ib_port = 1;
static const int mtu = IBV_MTU_2048;
static const int ib_dev_idx = 0;
//static const int ib_dev_idx = 1;
//static const int ib_dev_idx = 2; // used in xl170
static struct pingpong_context * alloc_monitor_qp();
static void pp_client_ex... |
#include "ble_lib.h"
#include "advertiser_lib.h" // For the advertising configuration
#include "debug_lib.h"
#include "system_event_lib.h"
#include "ble_advertising.h"
#include "ble_gap.h"
#include "ble_nus.h"
#include "softdevice_handler.h" // Needed for softdevice_ble_evt_handler_set()
#include "ble_hci.h" // ... |
/******************************************************************************
* @file main.c
* @version V1.00
* $Revision: 3 $
* $Date: 14/09/11 7:08p $
* @brief A project template for Nano100BN series MCUs
*
* @note
* Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved.
******************... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "io.h"
#include "ureg.h"
#include "../port/error.h"
#define Image IMAGE
#include <draw.h>
#include <memdraw.h>
#include <cursor.h>
#include "screen.h"
#include "gamma.h"
#define MINX 8
int landscape = 1; /* orientatio... |
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <getopt.h>
#include <string.h>
#include <limits.h>
#include <stdbool.h>
#include <pthread.h>
#include <sys/mman.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <s... |
/**
* @file ecdsa.c
* @brief ECDSA (Elliptic Curve Digital Signature Algorithm)
*
* @section License
*
* Copyright (C) 2010-2015 Oryx Embedded SARL. All rights reserved.
*
* This file is part of CycloneCrypto Open.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms ... |
/************************************************************************************************************
* Copyright (c) 2017, Dolby Laboratories Inc.
* All rights reserved.
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following condition... |
/* Copyright (C) 2001-2021 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
implied.
This software is distributed under license and may not be copied,
modified or distributed except as expressly authorized under the terms
of the license ... |
/* sfs.c - Amiga Smart FileSystem. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2005,2006,2007,2008,2009 Free Software Foundation, Inc.
*
* GRUB 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 F... |
/*
* Copyright 2015 <NAME> - http://alexshabanov.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 applicable law o... |
#include "glmc.h"
#include<stdio>
#include<math.h>
void glmc_mat3f_from_4f(mat3f dest, mat4f src)
{
dest[0][0] = src[0][0];
dest[0][1] = src[0][1];
dest[0][2] = src[0][2];
dest[1][0] = src[1][0];
dest[1][1] = src[1][1];
dest[1][2] = src[1][2];
dest[2][0] = src[2][0];
dest[2][1] = src[2][1];
dest[2][2] = src[2... |
/* bptFile - B+ Trees. These are a method of indexing data similar to binary trees, but
* with many children rather than just two at each node. They work well when stored on disk,
* since typically only two or three disk accesses are needed to locate any particular
* piece of data. This implementation is *just* f... |
/*
Game_Music_Emu library copyright (C) 2003-2009 <NAME>.
Sega Genesis YM2612 emulator copyright (C) 2002 <NAME>.
MAME YM2612 emulator copyright (C) 2003 <NAME>, <NAME>
Nuked OPN2 emulator copyright (C) 2017 <NAME> (Nuke.YKT)
--
<NAME> <<EMAIL>>
*/
#include "m_pd.h"
#include <gme.h>
#include <string.h>
#ifndef NCH
#... |
/**************************************************************************************************
Filename: hal_adf4113.c
Revised: $Date: 2013-11-17 $
Revision: $Revision: $
Description: This file contains the interface to the ADF4113 frequency synthesizer.
******************************... |
/* Copyright (c) 2020 <NAME>, MIT License */
/* Generate all words composable from a given a set of letters and their
multiplicity (number of available individuals) up to using all letters.
Generated words can be restricted by length or a pattern.
Uses letter bigram frequency tables to avoid `impossible word... |
#include "atlas_lvl3.h"
#include "atlas_misc.h"
#include "igen_dd_lib.h"
#include <stdlib.h>
void ATL_dmmJIK2(int K, int nMb, int nNb, int nKb, int ib, int jb, int kb,
dd_I alpha, const dd_I *pA0, const dd_I *B, int ldb, dd_I *pB0,
int incB, MAT2BLK B2blk, dd_I beta, dd_I *C, int ldc, ... |
/*
File: e-process-SREC.c
This file is part of the Epiphany Software Development Kit.
Copyright (C) 2013 Adapteva, Inc.
See AUTHORS for list of contributors.
Support e-mail: <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Publi... |
/*
* Automatic Differentiation of Taylor Series, newest validation checks
*
* Example: ./libad-test-dbg 32 20 1 1e-21 [ 0 | 1 | 2 ]
*
* (c) 2018-2021 <EMAIL> (<NAME>), for licencing see the LICENCE file
*/
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <mpfr.h>
#include "taylor-ode.h"
#inclu... |
/*
* 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... |
/*-
* Copyright (c) 2015 <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 a... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "SAT.h"
int InitSat(Clause **S, SatAnswer **answer, Var_watch var_watch[], int branchDecision[]) {
Clause *cfront = *S, *crear; //子句的前后指针,用于清空
ClauseLiteral *lfront, *lrear; //文字的... |
/* table.c: maintain and search tables of bitstrings */
/* 2013/02/08 intermediate version, stores addresses but not public keys */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include "table.h"
#include "util.h"
/* a table is an array of pointers to entries... |
/*
Copyright (c) 2018 - 2019 <NAME>
Copyright (c) 2018 Algorand LLC
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, modif... |
#include <stdint.h>
void wrReg(uint8_t reg,uint8_t dat);
uint8_t rdReg(uint8_t reg);
#define camAddr_WR 0x42
#define camAddr_RD 0x43
/* Registers */
#define REG_GAIN 0x00 /* Gain lower 8 bits (rest in vref) */
#define REG_BLUE 0x01 /* blue gain */
#define REG_RED 0x02 /* red gain */
#define REG_VREF 0x03 /* Pieces of ... |
/*
* Copyright (C) 1997 Massachusetts Institute of Technology
*
* This software is being provided by the copyright holders under the
* following license. By obtaining, using and/or copying this software,
* you agree that you have read, understood, and will comply with the
* following terms and conditions:
*
*... |
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include "betray.h"
#include "seduce.h"
#include "s_draw_3d.h"
#include "c_internal.h"
extern float c_editor_popup_animation_get();
void c_editor_popup_entity_create_replace(uint replaced_primitive, char *vertex_path, char *fragment_path);
void c_editor_compone... |
/* Calculate time of transit
* assuming RA and Dec change uniformly with time
*
* -- <NAME>
*/
#include "kep.h"
extern double glat;
extern double azimuth, elevation, refracted_elevation; /* degrees */
/* Earth radii per au */
#define DISFAC 2.3454780e4
/* cosine of 90 degrees 50 minutes: */
#define... |
/*
* MPU6050.c
*
* Created on: 15.06.2020
* Author: nguyen
*/
#include <math.h>
#include "stm32f4xx_hal.h"
#include "stm32f4xx_hal_dma.h"
#include "MPU6050.h"
MPU6050_ErrorOffset_t _error_offset;
//uint32_t _last_time;
MPU6050_StateTypeDef MPU6050_Init(MPU6050_t *data_struct,
MPU6050_Ini... |
/*
* This code implements the MD5 message-digest algorithm.
* The algorithm is due to Ron Rivest. This code was
* written by <NAME> in 1993, no copyright is claimed.
* This code is in the public domain; do with it what you wish.
*
* Equivalent code is available from RSA Data Security, Inc.
* This code has been ... |
#include "search.h"
#include "scandir.h"
void search_buf(const char *buf, const size_t buf_len,
const char *dir_full_path) {
int binary = -1; /* 1 = yes, 0 = no, -1 = don't know */
size_t buf_offset = 0;
if (opts.search_stream) {
binary = 0;
} else if (!opts.search_binary_files... |
/*
* FreeRTOS Kernel V10.1.1
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. 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, ... |
/*
* Multi2Sim
* Copyright (C) 2012 <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
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
... |
/* Copyright (c) 2009,13 The Regents of the University of California
* <NAME> <<EMAIL>>
* See LICENSE for details.
*
* Arch independent physical memory and page table management.
*
* For page allocation, check out the family of page_alloc files. */
#include <arch/arch.h>
#include <arch/mmu.h>
#include <error.h... |
/*
* Compile using the command:
* `cc 27Stencil.c -o oa -fopenmp -lm`
*/
#include <math.h>
#include <omp.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef _OPENACC
#include <openacc.h>
#endif
#define DEFAULT_DATASIZE 1048576 /* Default datasize. */
#define DEFAULT_REPS 10 ... |
/*
** Nofrendo (c) 1998-2000 <NAME> (<EMAIL>)
**
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of version 2 of the GNU Library General
** Public License as published by the Free Software Foundation.
**
** This program is distributed in the hope that it will be useful,
... |
#include "threads/interrupt.h"
#include <debug.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include "threads/flags.h"
#include "threads/intr-stubs.h"
#include "threads/io.h"
#include "threads/thread.h"
#include "threads/vaddr.h"
#include "devices/timer.h"
/* Programmable Interrupt Controller (PIC) ... |
/*!The Treasure Box Library
*
* 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 ... |
#include "l.h"
void
dodata(void)
{
int i, t;
Sym *s;
Prog *p, *p1;
long orig, orig1, v;
if(debug['v'])
Bprint(&bso, "%5.2f dodata\n", cputime());
Bflush(&bso);
for(p = datap; p != P; p = p->link) {
s = p->from.sym;
if(p->as == ADYNT || p->as == AINIT)
s->value = dtype;
if(s->type == SBSS)
s->type... |
/*
SPC5 HAL - Copyright (C) 2013 STMicroelectronics
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 applic... |
/*
* Wing Commander III Movie (.mve) File Demuxer
* Copyright (c) 2003 The ffmpeg Project
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* ve... |
/*
* Copyright (c) 2010 The DragonFly Project. All rights reserved.
*
* This code is derived from software contributed to The DragonFly Project
* by <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are... |
/* Copyright (c) 2014, <NAME>
*
* 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 following disclai... |
/* <NAME>
*
* Copyright (c) 2002
*
* <EMAIL>
* or
* <EMAIL>
*
* April, 2002
*
* Program: nq
*
* Program to find number of solutions to the N queens problem.
* This program assumes a twos complement architecture.
*
* For example, you can arrange 4 queens on 4 x 4 chess so tha... |
/* src/interfaces/ecpg/ecpglib/prepare.c */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
#include <ctype.h>
#include "ecpgtype.h"
#include "ecpglib.h"
#include "ecpgerrno.h"
#include "extern.h"
#include "sqlca.h"
#define STMTID_SIZE 32
typedef struct
{
int lineno;
char stmtID[STMTID_SIZE];
char ... |
/* coding.c
*
* Copyright (C) 2006-2016 wolfSSL Inc.
*
* This file is part of wolfSSL.
*
* wolfSSL 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... |
/*
* Ogg bitstream support
* <NAME> <<EMAIL>>
* Based on tcvp implementation
*
*/
/**
Copyright (C) 2005 <NAME>, <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 witho... |
/******************************************************************************
*
* Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Fr... |
/*
* Copyright 2008-2010 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
* The code contained herein is licensed under the GNU General Public
* License. You may obtain a copy of the GNU General Public License
* Version 2 or later at the following locations:
*
* http://www.opensource.org/licenses/gpl-li... |
/**************
mpdfestimator_main.c
Main program for mpdfestimator
Copyright (c) 2014, <NAME>, <NAME>, <NAME>
and <NAME> (from Universidad del Pais Vasco/Euskal
Herriko Unibertsitatea)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted pro... |
/*
* jack output driver. This file is part of Shairport Sync.
* Copyright (c) 2019 <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>
*
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
... |
/*======================================================================
PCMCIA Bulk Memory Services
bulkmem.c 1.38 2000/09/25 19:29:51
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.