text string |
|---|
/*******************************************************************************
* Copyright (c) 2020, STMicroelectronics - All Rights Reserved
*
* This file is part of the VL53L5CX Ultra Lite Driver and is dual licensed,
* either 'STMicroelectronics Proprietary license'
* or 'BSD 3-clause "New" or "Revised" License' ,... |
#include <string.h>
#include "theft.h"
#include "theft_types_internal.h"
#include "theft_bloom.h"
#include "theft_mt.h"
/* Initialize a theft test runner.
* BLOOM_BITS sets the size of the table used for detecting
* combinations of arguments that have already been tested.
* If 0, a default size will be chosen base... |
// --------------------------------------------------------------------
// Copyright (c) 2010 by Terasic Technologies Inc.
// --------------------------------------------------------------------
//
// Permission:
//
// Terasic grants permission to use and modify this code for use
// in synthesis for all Terasic De... |
/*
* proto.h -- function prototypes
*
* $Id: proto.h,v 1.7 95/10/05 11:56:59 parrt Exp $
* $Revision: 1.7 $
*
* SOFTWARE RIGHTS
*
* We reserve no LEGAL rights to the Purdue Compiler Construction Tool
* Set (PCCTS) -- PCCTS is in the public domain. An individual or
* company may do whatever they wish with sou... |
/**
* engine.c
*
* @author <NAME> <<EMAIL>>
*/
#include "engine.h"
#include "expr/expr.h"
extern inline void expr_init(expr_t self, expr_t target, expr_feed_f feed);
extern inline void expr_feed_target(expr_t self, pos_cache_t keyword, reg_ctx_t context);
extern inline void expr_ctx_init(expr_ctx_t self, expr_t ... |
/* The "mass trace" algorithm determines the bounds of the probability
* envelope around each domain. The algorithm needs some auxiliary
* data storage, which is implemented in the P7_MASSTRACE object.
*
* Contents:
* 1. P7_MASSTRACE object
* 2. Debugging tools
*/
#include "p7_config.h"
#include <stdio.... |
/*---------------------------------------------------------------------------*
| PDFlib - A library for generating PDF on the fly |
+---------------------------------------------------------------------------+
| Copyright (c) 1997-2006 <NAME> and PDFlib GmbH. All rights reserved. |
+-------... |
/*
* BIG_DATA.c
*
* Created on: 3 Sep 2020
* Author: heine
*/
#include <gsl/gsl_sf_bessel.h>
#include <gsl/gsl_randist.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_eigen.h>
#include <gsl/gsl_linalg.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "kalman_filter.h"
#in... |
/********************** INIT *************************************/
void init() {
INT i,j,k;
dt = 0.1; // Integration time step [ms].
sdt = sqrt(0.1); // Square root of the dt [ms^0.5].
eta = 1.; // Learning rate
// (1) Model neuron parameters (i.e. exponential I&F)
th =... |
/*******************************************************************************
* @file
* @purpose
* @version 0.1
*------------------------------------------------------------------------------
* Copyright (C) 2011 Gumstix Inc.
* All rights reserved.
*
* Contributer(s):
* <NAME> <<... |
/* USER CODE BEGIN Header */
/**
*
*
*
*
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
*
* Reconfigured to simulate S... |
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <time.h>
#include <sys/time.h>
#include <string.h>
#include <errno.h>
#include "packet.h"
/**
* Struct to store whether a packet has been ack'd or not
*/
typedef struct ack_packet {... |
#include <pspsdk.h>
#include <pspkernel.h>
#include <pspdisplay_kernel.h>
#include <pspdisplay.h>
#include <pspimpose_driver.h>
#include <pspinit.h>
#include <pspctrl.h>
#include <pspmoduleinfo.h>
//#include <pspsysmem.h>
#include <stdio.h>
#include <string.h>
#include "screenshot.h"
#include "main.h"
#include "draw.h... |
/*! \file i2c.c \brief I2C interface using AVR Two-Wire Interface (TWI) hardware. */
//*****************************************************************************
//
// File Name : 'i2c.c'
// Title : I2C interface using AVR Two-Wire Interface (TWI) hardware
// Author : <NAME> - Copyright (C) 2002-2003
// Crea... |
// The Snipe editor is free and open source, see licence.txt.
#include "scan.h"
#include "style.h"
#include "theme.h"
#include "string.h"
#include "file.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
// ... |
// Run-time dynamic linking with Vulkan loader dynamic library (vulkan-1.dll on Windows, libvulkan.so on Linux) example.
// https://github.com/KhronosGroup/Vulkan-Loader/blob/master/docs/LoaderApplicationInterface.md#directly-linking-to-the-loader
// This method is refered to as "Indirectly Linking to the Loader" in ... |
#include <stdlib.h>
#include <stdio.h>
typedef unsigned char byte;
typedef int error_code;
#define ERROR (-1)
#define HAS_ERROR(code) ((code) < 0)
#define HAS_NO_ERROR(code) ((code) >= 0)
void print_error_msg (char *);
int strcmp (char *, char *);
/**
* Cette fonction imprime un message d'erreur
* @param msg le ... |
/*
* Copyright (c) 1997, <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 unmodified, this... |
/***********************************************************************
* This header file contains the mcp3208 Spi class definition.
* Its main purpose is to communicate with the MCP3208 chip using
* the userspace spidev facility.
* The class contains four variables:
* mode -> defines the SPI mode us... |
#include "kheap.h"
/* extern uint32_t end;
uint32_t placement_address = (uint32_t)&end;
End is defined in the linker script
Currently not using this as placement address
Why we are taking address of "end"
read it here https://wiki.osdev.org/Using_Linker_Script_Values
*/
uint32_t placement_address = 0x100000;
heap_... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2018-2019 NXP
*/
#include <rte_mbuf.h>
#include <rte_ethdev.h>
#include <rte_malloc.h>
#include <rte_memcpy.h>
#include <rte_string_fns.h>
#include <rte_dev.h>
#include <fslmc_logs.h>
#include <fslmc_vfio.h>
#include <dpaa2_hw_pvt.h>
#include <dpaa2_hw_dpio.h>
#i... |
/*
\file application_manager.c
\brief Application Manager source file.
(c) 2018 Microchip Technology Inc. and its subsidiaries.
Subject to your compliance with these terms, you may use Microchip software and any
derivatives exclusively with Microchip products. It is your responsibility to comply with third party
... |
/// @file rainbow_keypair.c
/// @brief implementations of functions in rainbow_keypair.h
///
#include "rainbow_keypair.h"
#include "rainbow_keypair_computation.h"
#include "blas_comm.h"
#include "blas.h"
#include "rainbow_blas.h"
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include "utils_prng.h"
#in... |
/**************************************************************************************************/
/* Purpose: This utility, suntimes, calculates sunrise and sunset times, also twilights. */
/* Author: Copyright (c) 2021, W.B.Hill <<EMAIL>> All rights reserved. */
/* License: Choose... |
/*
MIT License
Copyright (c) 2019 Tensor Technologies LTD
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, ... |
//! @file main.c
//! @brief Main logic for 7-Min
//!
//! File contains all logic for 7-Min Workout Pebble application.
//! The program runs much like a timer, simply logging the start time, offsetting it each time
//! it is paused or resumed, and then calculating all figure states based off the difference
//! between t... |
/* sprd.c
*
* <NAME>
* <NAME>
* <NAME>
* <NAME>-Denny
*
*/
#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <errn... |
/*
* Frommel 2.0
*
* (c) 2001 <NAME>
*
* File system code
*
*/
#include <ctype.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <string.h>
#include "config.h"
#include "conn.h"
#include "fs.h"
#include "n... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/* lance un jeu de la vie sur la totalité de la taille de la console */
/* devrait etre plus rapide que l algo naïf */
/* gcc -Wall -O3 nlife.c -lncurses */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <time.h>
#include <string.h>
#ifdef USE_LIBNCURSES
# include <ncurses.h>
#... |
#include <stdio.h>
#include "Gap8.h"
#include "AutoTilerLibTypes.h"
#include "CNN_BasicKernels.h"
#include "CNN_KernelRef.h"
#include "CNN_Test.h"
char *_APP_DATA_ALLOC_L2_MEM;
char *IN;
char *FILTER;
char *BIAS;
char *OUT;
char *BUFFER;
extern char **_APP_L1_Memory;
extern char **_APP_L2_Memory;
extern int _APP_L1_Me... |
/*settings*{"name":"flappy_bird","author":"corax","image":[51,51,51,51,51,51,51,51,51,149,115,51,51,51,51,51,51,51,51,51,51,149,115,51,51,51,51,51,51,51,51,51,51,149,115,51,51,51,51,48,0,51,51,51,51,149,115,51,51,51,48,1,23,0,51,51,51,149,115,51,51,0,1,23,112,17,3,51,51,149,115,51,48,16,7,119,112,17,16,51,57,85,87,51,4... |
/*** sex.c -- simulating executions
*
* Copyright (C) 2016-2018 <NAME>
*
* Author: <NAME> <<EMAIL>>
*
* This file is part of sex.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of ... |
/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this ... |
/*
* Copyright 2010, Weill Medical College of Cornell University
* All rights reserved.
*
* This software is distributed WITHOUT ANY WARRANTY
* under license "license.txt" included with distribution and
* at http://neurodatabase.org/src/license.
*/
#include "../../shared/toolkit_c.h"
#include "binless_c.h"
... |
/*
* egctl - EnerGenie EM-PMS-LAN control utility
*
* Copyright (c) 2014, 2017 <NAME> <<EMAIL>>
*
* Published under the terms of the MIT License,
* see the included COPYING file.
*/
#include <arpa/inet.h>
#include <errno.h>
#include <limits.h>
#include <netinet/in.h>
#include <pwd.h>
#include <stdarg.h>
#includ... |
/**************************************************************************
Copyright 2000 Silicon Integrated Systems Corp, Inc., HsinChu, Taiwan.
Copyright 2003 <NAME>
All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files... |
/*
* pcl711.c
* Comedi driver for PC-LabCard PCL-711 and AdSys ACL-8112 and compatibles
* Copyright (C) 1998 <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* COMEDI - Linux Control and Measurement Device Interface
* Copyright (C) 1998 <NAME> <<EMAIL>>
*
* This program is free software;... |
/*
* Nehe Lesson 25 Code (ported to Linux//GLX by <NAME> 2003
* with help from the lesson 1 basecode for Linux/GLX by <NAME>)
*/
#include "nehe.h"
#include <GL/glx.h>
#include <GL/gl.h>
#include <X11/extensions/xf86vmode.h>
#include <X11/keysym.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
BOOL acti... |
/*
** $Id: lpcap.c $
** Copyright 2007, Lua.org & PUC-Rio (see 'lpeg.html' for license)
*/
#include <core.h>
#include "lpcap.h"
#include "lptypes.h"
#define captype(cap) ((cap)->kind)
#define isclosecap(cap) (captype(cap) == Cclose)
#define closeaddr(c) ((c)->s + (c)->siz - 1)
#define isfullcap(cap) ((cap)->siz... |
/**
* \file
*
* \brief HID Mouse Device Profile Application declarations
*
* Copyright (c) 2016 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following co... |
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <stdarg.h>
#include <float.h>
#include <stdlib.h>
#include <regex.h>
#include "argtable3.h"
#include "tskit.h"
/* This file defines a crude CLI for tskit. It is intended for development
* use only.
*/
typedef struct {
int alphabet;
double... |
/*
* Mesa 3-D graphics library
* Version: 7.1
*
* Copyright (C) 1999-2007 <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 "Software"),
* to deal in the Software without restriction, includ... |
/***
==========================================================================================
_ _ _____ _ _ _
/ \ _ __ __| |_ _ | ____|__| (_) |_
/ _ \ | '_ \ / _` | | | | | _| / _` | | __|
/ ___ \| | | |... |
// vim: syntax=c tabstop=4 softtabstop=0 noexpandtab laststatus=1 ruler
/**
* wrappers/iol_functions.c
*
* Functions for iol_wrapper.
*
* @author <NAME> <<EMAIL>>
* @copyright 2014-2016 <NAME>
* @license BSD-3-Clause https://github.com/dainok/unetlab/blob/master/LICENSE
* @link http://www.unetlab.com/
* @vers... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "allegro5/allegro.h"
#include "allegro5/allegro_image.h"
#include "allegro5/allegro_native_dialog.h"
#include "allegro5/allegro_ttf.h"
#include "allegro5/allegro_font.h"
#include "main.h"
#define FPS 60.0
#define SCREEN_WIDTH 800
#define SCREEN_HEIGH... |
/*
* Copyright (c) 2012 Igel Co., Ltd
* based on work by the ADvisor project at the Univ. of Electro-Comm.
*
* 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... |
// #todo
// Em kernel mode temos essas mesma rotinas só que aprimoradas.
// corrigidos alguns problemas com tipagem e definições.
// começe olhando para o código em ring0 e deixe esse igual ao que esta la.
// nem seu se devemos colocar isso realmente aqui ...
// mas precisamos ter rotinas como essas em algum lugar que... |
/***************************************************************************
* (C) 2017-2019 Northern Software Inc *
* *
* This file is free software provided by Northern Software Inc. *
* to d... |
/* $Xorg: Command.c,v 1.5 2001/02/09 02:03:43 xorgcvs Exp $ */
/***********************************************************
Copyright 1987, 1988, 1994, 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, provide... |
/* Target definitions for GNU compiler for Alliant FX/2800
running Concentrix 2.2
Copyright (C) 1991, 1996, 1998, 1999, 2000 Free Software Foundation, Inc.
Contributed by <NAME> (<EMAIL>).
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GN... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/silicon_creator/mask_rom/mask_rom_epmp.h"
#include <stdbool.h>
#include <stdint.h>
#include "sw/device/lib/arch/device.h"
#include "sw/device/lib/b... |
#include "filesystem.h"
#include "types.h"
#include "lib.h"
#include "system_call.h"
/*
int32_t hasEOS(const int8_t* s1, int len);
//helper
// Function:
// Description:
// inputs: none
// outputs: 0 for success and -1 for failure
// effects:
//
int32_t hasEOS(const int8_t* s1, int len) {
int32_t i;
for ... |
/* include/video/exynos7_decon.h
*
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
* Author: <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... |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <elf.h>
#include "box86version.h"
#include "elfloader.h"
#include "debug.h"
#include "elfload_dump.h"
#include "elfloader_private.h"
#ifndef PN_XNUM
#define PN_XNUM (0xffff)
#endif
int LoadSH(FILE *f, Elf32_Shdr *s, void** SH, c... |
/*
* Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "opal_config.h"
#include "opal/constants.h"
#include "opal/dss/dss.h"
#include "opal/util/argv.h"
#include "opal/util/output.h"
#include "opal/util/show_help.h"
... |
/* Microsoft Reference Implementation for TPM 2.0
*
* The copyright in this software is being made available under the BSD License,
* included below. This software may be subject to other third party and
* contributor rights, including patent rights, and no such rights are granted
* under this license.
... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the program and library */
/* SCIP --- Solving Constraint Integer Programs */
... |
// Copyright 2013, <NAME>.
// Copyright 2013, <NAME>.
// SPDX-License-Identifier: BSL-1.0
/*
* OpenHMD - Free and Open Source API and drivers for immersive technology.
*/
/* Oculus Rift Driver - HID/USB Driver Implementation */
#include <stdlib.h>
#include <hidapi.h>
#include <string.h>
#include <stdio.h>
#include... |
/*
* Arm SCP/MCP Software
* Copyright (c) 2019-2020, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdint.h>
#include <fwk_assert.h>
#include <fwk_id.h>
#include <fwk_mm.h>
#include <fwk_module.h>
#include <fwk_status.h>
#include <mod_clock.h>
#include <... |
// ---------------------------------------------------------------
// Copyright (c) 2021/2022 <NAME>
// ---------------------------------------------------------------
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Softw... |
/** Copyright 2020 The Fuchsia Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifdef ZIRCON_BOOT_CUSTOM_SYSDEPS_HEADER
#include <zircon_boot_sysdeps.h>
#else
#include <assert.h>
#include <string.h>
#endif
#include <lib/zbi/zbi.... |
/**********************************************************************************/
/* MIT License */
/* */
/* Copyright (c) 2020 <NAME> */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining a copy */
/* of this software and associated d... |
/**
* Copyright (c) 2013-2014 <NAME>
* Copyright (c) 2013-2014 <NAME>
* 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 witho... |
/*
uWSGI fastrouter
*/
#include <uwsgi.h>
#include "../corerouter/cr.h"
static struct uwsgi_fastrouter {
struct uwsgi_corerouter cr;
} ufr;
extern struct uwsgi_server uwsgi;
struct fastrouter_session {
struct corerouter_session session;
int has_key;
uint64_t content_length;
uint64_t buffered;
};
static s... |
#define _GNU_SOURCE
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <sys/timeb.h>
#include <time.h>
#include "dbg.h"
#include "evtformat.h"
#include "com.h"
// This is ugly, but...
// In glibc 2.27 (ubuntu 18.04) and earlier clock_gettime
// resolved to 'clock_gettime@@GLIBC_2.2.5'.
// In glibc ... |
// 2h Ergasia SysPro - <NAME> - sdi1800115 //
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include<time.h>
#include <unistd.h>
#include <poll.h>
#include <dirent.h>
#include "structs.h"
#include "skipListFunctions.h"
#include "StartersAndHelpFunctions.h"
#include "bloomfilter.h"
#inclu... |
#define CAL_COLOR_TODAY 0x000000ff
#define CALMONTHMAX 12
#define CALROWMAX 6
#define CALCOLMAX 7
#define CAL_DEF_SELMAX 7
// BUGBUG raymondc - these metrics do not scale with user settings
#define CALBORDER 6
// The formulas for DX_ARROWMARGIN and D[XY]_CALARROW are chosen so o... |
/*
* $Id: MOD_boolean_util.c 35178 2011-02-25 13:57:17Z jesterking $
*
* ***** 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 L... |
/*
* Copyright (C) STMicroelectronics SA 2013
* Author: <NAME> <<EMAIL>> for STMicroelectronics.
* License terms: GNU General Public License (GPL), version 2
*/
#include <linux/slab.h>
#include "delta.h"
#include "delta-ipc.h"
#include "delta-mjpeg.h"
#include "delta-mjpeg-fw.h"
#define DELTA_MJPEG_MAX_RESO DEL... |
/*tab
** Copyright (c) 2011 <NAME>
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of the Simplified BSD License (also
** known as the "2-Clause License" or "FreeBSD License".)
**
** This program is distributed in the hope that it will be useful,
** but without any warra... |
/* Copyright 2007,2010 ENSEIRB, 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 software. You can
** use,... |
#include <setjmp.h>
typedef struct ccv_jpeg_error_mgr_t
{
struct jpeg_error_mgr pub;
jmp_buf setjmp_buffer;
} ccv_jpeg_error_mgr_t;
METHODDEF(void) error_exit(j_common_ptr cinfo)
{
ccv_jpeg_error_mgr_t* err_mgr = (ccv_jpeg_error_mgr_t*)(cinfo->err);
/* Return control to the setjmp point */
longjmp(err_mgr->setj... |
struct FPOINT
{
double x;
double y;
};
struct LINESEGMENT
{
struct FPOINT a;
struct FPOINT b;
};
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#define LineTest(one, two) (-((one.b.y - two.b.y)*(two.a.x - two.b.x) - (one.b.x - two.b.x)*(two.a.y - two.b.y))/((one.a.y - one.b.y)*(two... |
/*
* Copyright (C) 2017 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... |
/* Dump registers.
Copyright (C) 2001-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C 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
... |
/*
* Copyright (c) 2005, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above
* copyright notice, this list of con... |
/*
* mont.c
*
* Created on: Dec 19, 2019, 11:42:52 PM
* Author: <NAME>
*/
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <assert.h>
#include "mont.h"
void
montgomery_init(mont_ctx *ctx) {
ctx->rb = 0;
mpz_init(ctx->R2);
mpz_init(ctx->N);
mpz_init(ctx->Ni);
}
void
montgogery_clear... |
#include <lib9.h>
#include "dat.h"
#include "fns.h"
#include "mem.h"
#include "../port/flash.h"
/*
Flash chips supported:
AMD:
Am29F040B
Am29LV800BT
Am29LV800BB
Am29LV160BT
Am29LV160BB
Atmel:
AT29LV1024
Sharp:
LH28F016SU
Intel: TE28F160S3 -support UMEC and Duoyuan phone (Peter)
Flash chips that h... |
/*
* Loudness normalizer based on the EBU R128 standard
*
* Copyright (c) 2014, <NAME>
* All rights reserved.
*
* 2019-06-30 - <NAME>
* calculate correct album peak
* TODO: This still sucks because albums are handled track-by-track.
* 2019-08-01 - <NAME>
* - Move from deprecated libavresample library to li... |
// Porres 2017-2018, based on fade~ and with the mighty help of the kind <NAME>
#include <m_pd.h>
#include <float.h>
#include <math.h>
#include <string.h>
#define MAXCH 512
#define UNITBIT32 1572864. // 3*2^19; bit 32 has place value 1
#define HALF_PI 3.14159265358979323846 * 0.5
/* machine-dependent definitions.... |
/*
* SpanDSP - a series of DSP components for telephony
*
* dds.c
*
* Written by Steve Underwood <<EMAIL>>
*
* Copyright (C) 2003 <NAME>
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 2.1... |
/*
* BRender PIX (.pix) image decoder
* Copyright (c) 2012 <NAME>
*
* 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
* version 2.1 of th... |
#include "GB_gameboy.h"
#include "GB_video.h"
#include "GB_memory.h"
#include <string.h>
#include <SDL.h>
SDL_Rect srcRect = { 0,0,160,144 };
GB_COLOR palette[4]; // 由浅至深四种颜色
int video_init(GB_VIDEO* gpu) {
SDL_InitSubSystem(SDL_INIT_VIDEO);
gpu->surface = SDL_CreateRGBSurface(0, 160, 144, 32, 0xFF000000... |
/* This code was generated by Usuba.
See https://github.com/DadaIsCrazy/usuba.
From the file "nist/photon/usuba/ua/photon_vslice.ua" (included below). */
#include <stdint.h>
/* Do NOT change the order of those define/include */
#ifndef BITS_PER_REG
#define BITS_PER_REG 4
#endif
/* including the architecture sp... |
/* GELL 15.26: include file for the module: "physio" */
/* translation done: "Wed June 30 93 17:33:51 " */
/* impure LLM3 predefined */
extern Ptr GIdlink, GIllink, GIfcons, GIevalst;
extern Ptr GMundef;
extern Ptr GIfcons;
extern Ptr GIbvar;
extern Ptr GMt;
extern Ptr GMitsoft;
extern Pt... |
/****************************************************************************
* bfs *
* Copyright (C) 2017-2018 <NAME> <<EMAIL>> *
* *
* Permission to use, copy, modif... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <SDL2/SDL.h>
#include "chippy.h"
uint8_t V[16];
uint8_t main_memory[4097];
uint8_t screen_buffer[32][64];
uint8_t key_states[16];
uint16_t call_stack[256];
const uint8_t fontset[80] = {
... |
/*
MIT License
Copyright (c) 2020 홍세정
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, distribute... |
/*
* gyro_init.c
*
* tiva c
* Inertial sensors
* Author: robocupjr 15
*/
#include <stdint.h>
#include <stdbool.h>
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "gyro_init.h"
#include "uartp/uartstdio.h"
#include "I2C/tiva_i2c.h"
#include "inc/hw_gpio.h"
#include "driverlib/gpio.h"
#include "ge... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
#include "KW_renderdriver_sdl2.h"
#include "KW_renderdriver.h"
#include "KW_widget.h"
#include "SDL.h"
#include "SDL_ttf.h"
#include "SDL_image.h"
#include <stdio.h>
typedef struct KWSDL {
SDL_Renderer * renderer;
SDL_Window * window;
} KWSDL;
static void KWSDL_renderCopy(KW_RenderDriver * driver, KW_Texture... |
#include "aok.h"
void
dumpTerrainTables(FILE *f, World *world)
{
int i, j;
int n;
int print[100];
fprintf(f, "%d\n%d\n\n", world->num_terrain_settings, world->num_terrains);
for(i = 0; i < world->num_terrain_settings; i++){
n = 0;
for(j = 0; j < world->num_terrains; j++){
if(world->terrain_settings1[i][j... |
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <SDL.h>
#include "cboy/gameboy.h"
#include "cboy/ppu.h"
#include "cboy/memory.h"
#include "cboy/interrupts.h"
/* gray shade color codes in ARGB8888 format */
#define WHITE 0xffffffff
#define LIGHT_GRAY 0xffaaaaaa
#define D... |
/*
* File pe.c - handle PE module information
*
* Copyright (C) 1996, <NAME>.
* Copyright (C) 1999, 2000, <NAME>.
*
* 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
* versi... |
/*
* quic_transport.c
*
* Created on: 24 Jan 2020
* Author: samuelh
*/
#include <string.h>
#include <stdbool.h>
#include <assert.h>
#include "quic_transport.h"
#include "util.h"
#include "debug.h"
#include "map.h"
#define NGHQ_IS_SHORT_HEADER(b) (!(b & 0x80))
#define NGHQ_PKT_NUMLEN_MASK 0x03
#define QUIC... |
/* =========================================================================
zloop - event-driven reactor
Copyright (c) the Contributors as noted in the AUTHORS file.
This file is part of CZMQ, the high-level C binding for 0MQ:
http://czmq.zeromq.org.
This Source Code Form is subject to the terms... |
/*
* actionreplay2.c - Cartridge handling, Action Replay II cart.
*
* Written by
* groepaz <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU G... |
#include "cvgcmn.h"
#include "pgprm.h"
#include "drwids.h"
/*
* Private functions
*/
static void cvg_scangfabox (FILE *fp, int layer, float fx, float fy,
int start, long size, float *mindist, int *sel_elm, int *iret );
/*
* Public functions
*/
void cvg_scan ( char *fname, int layer, char class, float fx, fl... |
#include <avr/io.h>
#include <util/delay.h>
#include "avrlibdefs.h"
#include "enc28j60.h"
static uint8_t Enc28j60Bank;
static uint16_t NextPacketPtr;
uint8_t enc28j60ReadOp(uint8_t op, uint8_t address)
{
uint8_t data;
// assert CS
ENC28J60_CONTROL_PORT &= ~(1<<ENC28J60_CONTROL_CS);
// issue r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.