text stringlengths 3.12k 18.7k |
|---|
// Copyright (c) Facebook, Inc. and its affiliates.
// SPDX-License-Identifier: MIT
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys... |
#include <avr/io.h>
#include <stdio.h>
#include <avr/sleep.h>
#include <avr/interrupt.h>
#include <avr/cpufunc.h>
#include "Usart.h"
#include "Twi.h"
#include "Adc.h"
#include "Timer.h"
#include "Leda.h"
static inline uint8_t setup_DS1631(void);
static inline uint8_t pollDS1631(void);
static inline uint8_t readDS... |
/*! \file bcma_i2c_isl68239.c
*
* Application to control power regulator ISL68239.
*/
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
#include <bsl/bsl.h>
#inc... |
/*
* The 3-Clause BSD License:
* Copyright (c) 2020 <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
* notic... |
/* $OpenBSD: files.c,v 1.3 1997/01/22 06:53:13 millert Exp $ */
/*-
* Copyright (c) 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modi... |
/*********************************************************************
*
* $Id: dbfarea.c,v 1.2 2005/05/18 23:43:04 woodbri Exp $
*
* shpcpy
* Copyright 2001, <NAME>, All rights Reserved
* Redistribition without written permission strictly prohibited
*
***************************************************************... |
#include "adc.h"
#include <string.h>
#include <nrfx_saadc.h>
#include "global.h"
#include "config.h"
#define ADC_NUM_CHANNELS 4
static nrf_saadc_value_t adc_buffers[2][ADC_NUM_CHANNELS];
static uint8_t adc_calibration_complete;
static uint8_t adc_sample_in_progress;
static uint8_t adc_samples_... |
#include <sys/types.h>
#include <sys/socket.h>
#include <errno.h>
#include "./generic.h"
#include "./command.h"
#include "./command_raw.h"
#define MAX_RECV_SIZE (1 << 12)
#define ASSERT_SENT_SIZE(expected, actual) do {\
if ((expected) != (actual)) {\
fprintf(stderr, "Failed to send command: %d / %d\n", actual, ... |
/*
Legal Notice: Some portions of the source code contained in this file were
derived from the source code of Encryption for the Masses 2.02a, which is
Copyright (c) 1998-2000 <NAME> and which is governed by the 'License
Agreement for Encryption for the Masses'. Modifications and additions to
the original source c... |
#include <stdlib.h>
#include "../tokens.h"
#include "tokens.h"
const char* const tifileutils_tokens_92[0x0100] = {
/* 00 */ NULL,
/* 01 */ NULL,
/* 02 */ "r",
/* 03 */ "s",
/* 04 */ "t",
/* 05 */ "u",
/* 06 */ "v",
/* 07 */ "w",
/* 08 */ "x",
/* 09 */ "y",
/* 0A */ "z",
... |
/*
* Calculate cross-correlograms with a wide range of options.
* Called from chXcorr.m.
*
* Copyright 2016 University of Surrey.
*
*/
#include "math.h"
#include "mex.h"
#include "matrix.h"
#define INHIB_MULTIPLY 1
#define INHIB_SUBTRACT 2
#define MAX(A,B) ((A)>(B) ? (A) : (B))
#define A_TEMP_ARRAY mxCreateD... |
/*
* Copyright 2001-2003 Ximian, Inc
* Copyright 2003-2010 Novell, 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... |
/*
Copyright (C) 2006-2007 <NAME>
This program 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 3 of the License, or
(at your option) any later version.
This program is distributed i... |
/*
* Copyright (c) 2019-2020 vanaur.
*
* This file is part of RCL
* (see https://github.com/vanaur/The-Runtime-Core-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
* r... |
/*
* This tests out the reservation; both the manual and the autoreserve
*
* The general strategy is to do reservations (both autoreserve and manual),
* maintain a separate counter tracking when we ought to update the
* private key, and see if we update it at the proper times (and by the
* expected updates)
*/
#... |
/*-
* Copyright (c) 2015 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
/*
AUTHOR: <NAME>
DATE: 10 DECEMBER 2018
ENIGMA MACHINE EMULATOR WITH 5 ROTORS
CAN USE ANY 3 OF THEM AT A TIME WITH CUSTOM OFFSETS
JAYPEE INSTITUTE OF INFORMATION TECHNOLOGY
*/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
#include<conio.h>
struct rotor{
char roll[27];... |
#include <stdint.h>
#include <stddef.h>
#include <interrupt/interrupt.h>
#include <terminal/tty.h>
struct idt_desc idt[256] = {0};
struct idt_pointer idtp;
extern void _load_idt();
const char *int_msgs[] = {
"Divide by Zero",
"Debug",
"Non-Maskable Interrupt",
"Breakpoint",
"Overflow",
"Boun... |
#include "lex-source.h"
#include "err.h"
#include "utf.h"
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <fcntl.h>
#include <sys/uio.h>
#include <assert.h>
#define BUFSZ 0x10000
#define BUFMASK (BUFSZ-1)
// #define UTF8_BYPASS
/* NOTE: If we bypass UTF8 parsing, string c... |
/*
* 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... |
/*
* linux/drivers/media/video/exynos/hevc/hevc_pm.c
*
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* 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; eit... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* md5_transform.c :+: :+: :+: ... |
/*********************************************************************
*
* $Id: shpegrep.c,v 1.2 2010/07/25 00:42:19 woodbri Exp $
*
* shpgrep
* Copyright 2005, <NAME>, All rights Reserved
* Redistribition without written permission strictly prohibited
*
*************************************************************... |
/******************************************************************************
Copyright (c) 2017-2019 Analog Devices, Inc. All Rights Reserved.
This software is proprietary to Analog Devices, Inc. and its licensors.
By using this software you agree to the terms of the associated
Analog Devices Software License Agree... |
/*
* Copyright (c) 2010 Broadcom Corporation
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHO... |
/* Copyright 2016 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.
*
* Battery pack vendor provided charging profile
*/
#include "battery.h"
#include "battery_smart.h"
#include "bd9995x.h"
#include "charge_ramp.h"
#... |
/*
** Copyright 2007-2018 RTE
** Author: <NAME>
**
** This file is part of Sirius_Solver.
** This program and the accompanying materials are made available under the
** terms of the Eclipse Public License 2.0 which is available at
** http://www.eclipse.org/legal/epl-2.0.
**
** This Source Code may also be made availabl... |
/*
* Copyright (C) 2008 The Android Open Source Project
* Copyright (C) 2014 The Linux Foundation. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:... |
#ifndef F_CPU
#define F_CPU 20000000UL // or whatever may be your frequency
#endif
#include <avr/io.h>
#include <util/delay.h> // for _delay_ms()
#include <avr/interrupt.h>
#include <util/twi.h>
#include "I2C_slave.h"
#define I2C_ADDR 0x32
#define NUM_SENSOR 6
// volatile uint8_t buffer_address;
//... |
/*
* U-boot - ldrinfo
*
* Copyright (c) 2010 Analog Devices Inc.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* Licensed under the GPL-2 or later.
*/
#include <config.h>
#include <common.h>
#include <command.h>
#include <asm/blackfin.h>
#include <asm/mach-common/bits/bootrom.h... |
/**
* @copyright Copyright (c) 2015 <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, m... |
/*
* Copyright (C) 1996, 1999 <NAME>
* Modified by <NAME>, 1997-1999.
* Modified by <NAME>, 1998.
* Modified by <NAME>, Oct. 2000
* - Bugfix handling client responses.
* - Paranoia on NOTIFY_CALLBACK case
*
* NSM for Linux.
*/
/*
* After reboot, notify all hosts on our notify list. In order not to
* han... |
/************************************************************/
/* Name-Surname: <NAME> - 150140910 */
/* e-mail : <EMAIL> */
/* Course Name : BIL 105E - Int to Sci & Eng Computing C */
/* Term : Spring 2015-2016 */
/* Assignment : Homework #3 ... |
#include <stdlib.h>
#include <string.h>
#define _USE_MATH_DEFINES
#include <math.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#include "resampler.h"
#include "rsp_hle/audio.h"
enum { RESAMPLER_SHIFT = 16 };
enum { RESAMPLER_RESOLUTION = 1 << RESAMPLER_SHIFT };
enum { resampler_buffer_... |
// Copyright (c) 2012 Hewlett-Packard Development Company, L.P. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libavutil/intreadwrite.h>
#include "rawmedia.h"
#include ... |
// File: ftl.c
// Date: 2014. 12. 03.
// Author: <NAME> (<EMAIL>)
// Copyright(c)2014
// Hanyang University, Seoul, Korea
// Embedded Software Systems Laboratory. All right reserved
#include "common.h"
void FTL_INIT(struct ssdstate *ssd)
{
if (ssd->g_init == 1) {
printf("FEMU: FTL already initialized !!!!... |
/* OpenCA SV Tool - Thanks to <NAME>ung for basic tool writing */
/* ============================================================ */
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME> (<EMAIL>).
* The implementation was written so as to ... |
/*
* Copyright (C) 2020 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... |
/****************************************************************************
** Copyright (C) 2020 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** Permission is hereby granted, free of charge, to any person obtaining a copy
** of this software and associated documentation files (the "Software"... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
* (C) 2001 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*
*/
/* style: allow:fprintf:21 sig:0 */
#include "mpi_fortimpl.h"
#if defined(HAVE_PRAGMA_WEAK) && defined(HAVE_MULTIPLE_PRAGMA_WEAK)
void mpir_is_bottom_(... |
/*********************************************************************
Copyright (C) 2006 DeepSoft - <NAME>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is gra... |
/*
* 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 2014 Freescale Semiconductor, Inc.
* Author: <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <command.h>
#include <linux/ctype.h>
#include <asm/io.h>
#include <stdio_dev.h>
#include <video_fb.h>
#include <fsl_diu_fb.h>
#include "../common/qixis.h"
#include "t1... |
/*
Public domain.
<NAME> - <EMAIL>
*/
#include "libcyberfm.c"
#include <stdio.h>
#define AUDIO_OUTPUT_PATH "output/audio2"
static cyberfm_result cyberfm_argv_find(int argc, const char** argv, const char* key, int* pIndexOut)
{
int i;
/* Always start at 1 because 0 is the name of the executable. */
if ... |
//CHANGE ROBOT_ID TO EITHER 128 OR 129
//CHANGE IN THE MAKEFILE WHAT THE OTHER
//SOURCE FILE IS TO DETERMINE BEHAVIOR
//GO HOME: "runaway.c"
//STATIONARY: "stationary.c"
//PATROL: "patrol.c"
#include "runaway.h"
//ID defined by frob
//frob < 512, 128
//from >= 512, 129
//#define ROBOT_ID 128
#include <joyos.h>
#incl... |
#include <mcu/arch.h>
#include <mcu/arch/stm32/stm32f7xx/stm32f7xx_hal.h>
#include <string.h>
#include "display_device.h"
#define RK043FN48H_WIDTH ((uint16_t)480)
#define RK043FN48H_HEIGHT ((uint16_t)272)
#define RK043FN48H_HSYNC ((uint16_t)41)
#define RK043FN48H_HBP ((uint16_t)13)
#define RK043FN48H_HFP ((uin... |
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*
* Panel
*
* Provides a graphical panel with a clock, and
* hopefully more things in the future.
*/
#include <stdlib.h>
#include <assert.h>
#include <math.h>
#include <time.h>
#include "lib/utf8decode.h"
struct timeval {
unsigned int tv_sec;
unsigned int tv_usec;
};... |
/**
EUSART2 Generated Driver File
@Company
Microchip Technology Inc.
@File Name
eusart2.c
@Summary
This is the generated driver implementation file for the EUSART2 driver using PIC10 / PIC12 / PIC16 / PIC18 MCUs
@Description
This source file provides APIs for EUSART2.
Generation Inform... |
/// Game scene (source)
/// (c) 2018 <NAME>
#include "game.h"
#include "../engine/app.h"
#include "../engine/graphics.h"
#include "../engine/bitmap.h"
#include "../engine/controls.h"
#include "../engine/assets.h"
#include "../engine/transform.h"
#include "../engine/mesh.h"
#include "../lib/parseword.h"
#include "..... |
#include "parser.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
// common
#include <lll_error.h>
struct test_res {
enum token_type type;
const char *s;
int len;
};
static void test_tpl(const char *src, struct test_res res[]) {
int i = 0;
struct token tk;
while (*src && res[i].t... |
/* Spa
*
* Copyright © 2018 <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... |
/*******************************************************************************
* 2pt_box/save_res.c: this file is part of the FCFC program.
* FCFC: Fast Correlation Function Calculator.
* Github repository:
https://github.com/cheng-zhao/FCFC
* Copyright (c) 2020 -- 2021 <NAME> <<EMAIL>> [MIT license]
***... |
/* cairo_unicode.c: Unicode conversion routines
*
* The code in this file is derived from GLib's gutf8.c and
* ultimately from libunicode. It is relicensed under the
* dual LGPL/MPL with permission of the original authors.
*
* Copyright © 1999 <NAME>
* Copyright © 2005 Red Hat, Inc
*
* This libra... |
/*
* Copyright (c) 2011 Intel 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 <stdint.h>
#include <string.h>
#include <math.h>
#include "simplified_des.h"
// defining constants
#define block_size 12 // the size of the block of the array
#define k_length 9 // the length of the keys
// These are used in the confuse function and convert 4 bit value... |
/*
* ACE/vis - Visualization of Flow and Transport
*
* <NAME> and <NAME>
*
* Copyright 1990-2003 Oregon Health and Science University
* All Rights Reserved
*
*/
/*
* Run drogues or read data
*/
#ifndef lint
static char RCSid[] = "$Id";
#endif
#include "motifinc.h"
#include "defines.h"
#include "globals.h"
... |
#include <X11/cursorfont.h>
#include <X11/keysym.h>
#include <X11/Xatom.h>
#include <X11/Xlib.h>
#include <X11/Xproto.h>
#include <X11/Xutil.h>
#ifdef XINERAMA
#include <X11/extensions/Xinerama.h>
#endif /* XINERAMA */
#include <X11/extensions/shape.h>
#include <X11/Xft/Xft.h>
#include <sys/epoll.h>
#include "drw.h"
#... |
/*
* Copyright (c) 2018, Sensirion AG
* 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 conditio... |
#include "pmodel.h"
#include "pmodel_aux.h"
#include "../../include/micromegas.h"
#include "../../include/micromegas_aux.h"
/*#include"../../CalcHEP_src/c_source/model_aux/include/SLHAreader.h"*/
#include"lpath.h"
static int runTools(char * cmd, char * fout,int mode)
{ char * command;
int err;
double maxl;
... |
/*
* ELF format support
*
* Copyright (c) 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, mo... |
/*
* Copyright (c) 2000 <NAME>
* Copyright (c) 1999 <NAME>
* Copyright (c) 1993 <NAME>
* Copyright (c) 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>.
*
* Redistribution and use in source and binary forms, wi... |
/*
* Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
* All rights reserved.
*
* 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 opt... |
/*
* Copyright (c) 2019, Intel Corporation
* All rights reserved.
*
* Author: Zhou, Jianfeng <<EMAIL>>
*
* 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 ... |
#include <utils.h>
#include <math.h>
#include <float.h>
#include <cmsis_os.h>
#include <stm32f4xx_hal.h>
int SVM(float alpha, float beta, float* tA, float* tB, float* tC) {
int Sextant;
if (beta >= 0.0f) {
if (alpha >= 0.0f) {
//quadrant I
if (one_by_sqrt3 * beta > alpha)
... |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... |
static char rcsid[] = "@(#)$Id$";
/*
****************************Copyright Notice***********************************
* Copyright (c)1992 Universities Research Association, Inc., *
* <NAME> and <NAME> *
* All Rights Reserved ... |
// See LICENSE for license details.
#include "common.h"
#include <assert.h>
#include <math.h>
#include <stdint.h>
#include <alloca.h>
#define MIN(a, b) ((a) < (b) ? (a) : (b))
static void mm_naive(size_t m, size_t n, size_t p,
t* a, size_t lda, t* b, size_t ldb, t* c, size_t ld... |
/**
* WinPR: Windows Portable Runtime
* Process Argument Vector Functions
*
* Copyright 2013 <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apac... |
/**
* @author <NAME>
* CS 0449
* Memory Allocation
* July 10, 2017
*
* This C file provides the implementation for
* the custom memory heap allocation functions
* via manipulation of the brk ptr.
*/
/* Libraries */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "mem_malloc.h"
/* Uncomme... |
/*
* Copyright (c) 2010, Regents of the University of California
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
/* $OpenBSD: iof.c,v 1.7 2010/09/20 06:33:47 matthew Exp $ */
/*
* Copyright (c) 2009 <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.
*
*... |
/*
* Copyright (C) 2021 Liquidaty and the zsv/lib contributors
* All rights reserved
*
* This file is part of zsv/lib, distributed under the license defined at
* https://opensource.org/licenses/MIT
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zsv/ext/implementation.h>
/**
* `zsv` can... |
/**
* Tools to compute the ranking function of an iteration J: the number of
* integer points in P that are lexicographically inferior to J
* <NAME>
* 6/2005
* LSIIT-ICPS, UMR 7005 CNRS Universite Louis Pasteur
* HiPEAC Network
*/
#include <polylib/polylib.h>
#include <polylib/ranking.h>
/**
* Returns a list... |
/*
* Legal Notice
*
* This document and associated source code (the "Work") is a part of a
* benchmark specification maintained by the TPC.
*
* The TPC reserves all right, title, and interest to the Work as provided
* under U.S. and international laws, including without limitation all patent
* and trade... |
/*
* Copyright (c) 2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*
* EATT notification reliability test:
* A central acting as a GATT client scans and connects
* to a peripheral acting as a GATT server.
* The GATT client will then attempt to connect a number of CONFIG_BT_EATT_MAX bearers... |
/***********************************************************************************
* FourQlib: a high-performance crypto library based on the elliptic curve FourQ
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
* Abstract: crypto utility functions
***************************************... |
#include "picocoin-config.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <fcntl.h>
#include <unistd.h>
#include <assert.h>
#include <ccoin/coredefs.h>
#include <ccoin/message.h>
#include <ccoin/mbr.h>
#include <ccoin/blkdb.h>
#include <ccoin/script.... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <gbpLib.h>
#include <gbpSPH.h>
int select_gadget_cube(gadget_read_info *fp_gadget,
void * params,
size_t i_particle,
... |
/**************
decode routine:
This file ingests VEXCEL Level-0 products from the RADARSAT satellite.
**************/
#include "asf.h"
#include "lzFetch.h"
#include "decoder.h"
#include "auxiliary.h"
/*Satellite-specific Parameters:*/
/*Private:*/
#define replicaDur 44.559E-06 /*Radarsat chirp replica length, in ... |
/********************************************************************
* Copyright (C) 2009 zte, All Rights Reserved
*
* File Name: aplogd_util.c
*
* General Description: This file provides the utilily function of the aplogd daemon.
*
* This program is licensed under a BSD license with the following terms:
*
* ... |
/**************************************************************************//**
* @file main.c
* @version V2.00
* $Revision: 1 $
* $Date: 15/04/21 2:18p $
* @brief
* Configure I2S as Master mode and demonstrate how I2S works with PDMA.
* Both TX PDMA function and RX PDMA funct... |
#define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <mrsh/ast.h>
#include <mrsh/builtin.h>
#include <mrsh/entry.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "shell/shell.h"
#include "shell/path.h"
#include "shell/redir.h"
#incl... |
#include "DEFINE.c"
#include "LevelData.c"
// Physics
#define GRAVITY 1
#define JUMP_VELOCITY -8
#define VELOCITY_FACTOR 4 //No decimals so only use 1/VELOCITY_FACTOR'th of the velocity
#define MAX_JUMP_COUNT 10 //Number of frames you can hold jump and keep traveling up
#define MAX_VELOCITY_X 1
#define MAX_VE... |
/*-
* Copyright (c) 1997, 1998
* Nan Yang Computer Services Limited. All rights reserved.
*
* Written by <NAME>
*
* This software is distributed under the so-called ``Berkeley
* License'':
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... |
/* --COPYRIGHT--,BSD
* Copyright (c) 2013, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copy... |
/*
* GStreamer AVTP Plugin
* Copyright (C) 2019 Intel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any lat... |
/*
* Copyright 2006, 2007, 2008 Fluendo S.A.
* Authors: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This library is licensed under 4 different licenses and you
* can choose to use it under the terms of any one of them. The
* four licenses are the MPL 1.1, the LGPL, the GPL an... |
/* mra.c - routines for dealing with extensible matching rule assertions */
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
* Copyright 1998-2022 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modifi... |
/*++
Copyright (c) 1990-2003 Microsoft Corporation
Module Name:
ptrInfo.c
Abstract:
This module contains functions to mappring a hPrinter to useful data, it
will also cached the printerinfo data
Author:
03-Dec-1993 Fri 00:16:37 created
[Environment:]
GDI Device Driver - Plotter.
[N... |
#include <stdio.h>
#include "bma400.h"
#define GRAVITY_EARTH (9.80665f) /* Earth's gravity in m/s^2 */
void set_interface(enum bma400_intf intf, struct bma400_dev *dev);
void delay_ms(uint32_t period);
int8_t i2c_reg_write(void *intf_ptr, uint8_t i2c_addr, uint8_t reg_addr, uint8_t *reg_data, uint16_t length);... |
/* ppmtopj.c - convert a portable pixmap to an HP PainJetXL image
**
** Copyright (C) 1990 by <NAME> (<EMAIL>)
**
** Permission to use, copy, modify, and distribute this software and its
** documentation for any purpose and without fee is hereby granted, provided
** that the above copyright notice appear in all copies ... |
#include <stdlib.h>
#include <stdint.h>
#include "vector.h"
//@ #include "arith.gh"
//@ #include "stdex.gh"
struct Vector {
char* data;
int elem_size;
int capacity;
};
/*@
predicate entsp<t>(void* data, int el_size,
predicate (void*;t) entp,
int length,
... |
/* Port-triggering target.
*
* Copyright (C) 2003, CyberTAN Corporation
* All Rights Reserved.
*/
/* Shared library add-on to iptables to add port-trigger support. */
#include <stdio.h>
#include <netdb.h>
#include <string.h>
#include <stdlib.h>
#include <getopt.h>
#include <iptables.h>
#include <lin... |
/*
* Copyright (c) 2018 University of Tennessee. All rights reserved.
*/
#define _GNU_SOURCE
#include<stdio.h>
#include<mpi.h>
#include<stdlib.h>
#include<unistd.h>
#include<assert.h>
#include<time.h>
#include<pthread.h>
#include<sched.h>
int gdb_mode = 0;
int warmup_num = 10;
int window_size = 256;
int msg_size... |
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2005, 2011 Oracle and/or its affiliates. All rights reserved.
*
* $Id$
*/
#include "csv.h"
#include "csv_local.h"
#include "csv_extern.h"
typedef enum { GL_OK, GL_EOF, GL_FAIL } getline_status;
static int input_field_count(const char... |
//
// bytecodegen.c
// Dulang
//
// Created by <NAME> on 13.02.2020.
// Copyright © 2020 <NAME>. All rights reserved.
//
#include "bytecodegen.h"
#include <string.h>
internal_code new_code(astnode * root){
dul_layout_type * name_table = root->name_table;
internal_code code;
code.layout = name_table;
... |
/**
* (C) Copyright 2016-2022 Intel Corporation.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
/**
* object client: Module Definitions
*/
#define D_LOGFAC DD_FAC(object)
#include <pthread.h>
#include <daos/common.h>
#include <daos/rpc.h>
#include <daos/mgmt.h>
#include <daos_types.h>
#include "obj_rpc.h"
#... |
/*
* Oracle Linux DTrace.
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*
* The core probe provider for DTrace for the BEGIN, END, and ERROR probes.
*/
#include <assert.h>
#i... |
/* XXX TODO
*/
//#define ENABLE_MSG_DEBUG
#include <runtime.h>
#include <string.h>
#include <stdlib.h>
#define EXIT_SUCCESS 0
#define EXIT_FAILURE 1
#define test_assert(expr) do { \
if (expr) ; else { \
msg_err("%s -- failed at %s:%d\n", #expr, __FILE__, __LINE__); \
goto fail; \
} \
} while (0)
boolean basic_tes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.