text stringlengths 3.12k 18.7k |
|---|
/*
* fClue.c
*/
#include "Include.h"
/* protos */
static Boolean EH(EventType *);
static void SetupClue(void);
static void AddToClue(Char *);
static void PageUp(void);
static void PageDown(void);
static void DrawControls(void);
/* globals */
static Gadget gList[]={ { cClueUp, "\x01" }, { cClueDown, "\x02" }, { 0 } ... |
/*
* Copyright 1995, 2021 <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, d... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <proto/exec.h>
#include <proto/locale.h>
#include <proto/diskfont.h>
#include <diskfont/diskfonttag.h>
#include <proto/graphics.h>
#include <proto/keymap.h>
#include <proto/Amigainput.h>
#include <proto/icon.h>
#include <proto/wb.... |
/*
* Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2011 The University of Tennessee and The University
* of Tennessee Resea... |
#include <stdio.h>
#include <unistd.h>
#include <assert.h>
#include <malloc.h>
#include <string.h>
#include <unistd.h>
#include <allegro5/allegro.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_ttf.h>
#include <allegro5/allegro_primitives.h>
#define INIT_X 400
#define INIT_Y 400
#define ANIM_SPEED 4
#... |
#define S_FUNCTION_NAME ACC_MPC_CVXGEN_sol
#define S_FUNCTION_LEVEL 2
#include "simstruc.h"
#define EXECTRA
#ifdef EXECTRA
#include "solver.h"
#endif
#ifndef MATLAB_MEX_FILE
//#include <Tic1401.h>
#else
#include <time.h>
#endif
#ifdef EXECTRA
Vars vars;
Params params;
Workspace work;
Settings ... |
/*********************************************************************
* File Name : util.c
* Description : Provide some utilities.
* Author : <NAME>
* Create Date : 2012-12-21
********************************************************************/
#include <stdio.h>
#include <fcntl.h>
#include <time.h>
... |
#include "env.h" /* kn_variable, kn_variable_run */
#include "ast.h" /* kn_ast, kn_ast_free, kn_ast_clone, kn_ast_run */
#include "value.h" /* prototypes, bool, uint64_t, int64_t, kn_value, kn_number,
kn_boolean, KN_UNDEFINED, KN_NULL, KN_TRUE, KN_FALSE */
#include "string.h" /* kn_string,... |
#include <math.h>
#include "yin.h"
#include <stdint.h>
#include <stdbool.h>
#include "ssd1306.h"
// #include "kiss_fft.h"
// #include "_kiss_fft_guts.h"
// #include "kiss_fftr.h"
// #include "audiodata.h"
Yin yinobject;
/* ------------------------------------------------------------------------------------------
--... |
#include <stdlib.h>
#include "io.h"
static OnIO io_cb[16]={
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
};
void EXTI0_IRQHandler() {
if (io_cb[0]) (io_cb[0])();
_EXTI->PR = 1<<0;
}
void EXTI1_IRQHandler() {
if (io_cb[1]) (io_cb[1])();
_EXTI->PR = 1<<1;
}
... |
/*-
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <<EMAIL>> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a b... |
/*-
* Copyright (c) 2005-2008 <NAME>. All rights reserved.
* Copyright (c) 2005-2008 <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 retai... |
/*
DxPortLib - A portability library for DxLib-based software.
Copyright (C) 2013-2015 <NAME> <<EMAIL>>
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 granted to... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
/* sha512.c
*
* The sha512 hash function.
*
* See http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf
*/
/* nettle, low-level cryptographics library
*
* Copyright (C) 2001, 2010 <NAME>
*
* The nettle library is free software; you can redistribute it and/or modify
* it under the terms of the GNU... |
/*
* GStreamer
* Copyright (C) 2017 <NAME> <<EMAIL>>
*
* test-audiomixmatrix.c
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your o... |
//struct mesas do restaurante
struct restaurante{
int num_mesa;
int lugares_acupados;
int comanda_mesa;
int mesa_livre;
};
typedef struct restaurante Restaurante;
//Fila de espera cliente
struct lista_espera_cliente{
int senha_grupo;
int tam_grupo;
struct lista_espera_cliente* prox;
};
typedef struct list... |
#include <stdio.h>
#include <sys/stat.h>
#include <dirent.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
#include <libopticon/datatypes.h>
#include <libopticon/util.h>
#include <libopticon/var.h>
#include "prettyprint.h"
#include "api.h"
#include "cmd.h"
static ... |
/*
* q2pc_client.c
*
* Created on: Apr 9, 2014
* Author: mgrosvenor
*/
#include <signal.h>
#include <stdlib.h>
#include <sys/time.h>
#include "q2pc_client.h"
#include "../../deps/chaste/chaste.h"
#include "../transport/q2pc_transport.h"
#include "../errors/errors.h"
#include "../protocol/q2pc_protocol.h"
/... |
/*
* Copyright 2020 Makani Technologies LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sched.h>
#include <sys/soundcard.h>
#include "../sexyal.h"
#include ... |
/**
******************************************************************************
* File Name : TIM.c
* Description : This file provides code for the configuration
* of the TIM instances.
******************************************************************************
... |
//*******************************************************************
//Author: <NAME>
//Description: PREv17's XTAL Testing
//*******************************************************************
#include "PREv17.h"
#include "PREv17_RF.h"
#include "mbus.h"
#define PRE_ADDR 0x1
#define SNS_ADDR 0x2
//*************... |
#include <assert.h>
#include <elf.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
Elf32_Phdr * read_exec_file(FILE **execfile, Elf32_Ehdr **ehdr)
{
//*execfile = fopen(filename, "rb");
//assert(execfile);
*ehdr = (Elf32_Ehdr *) malloc (512 ... |
#define _MAIN
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <gbpLib.h>
#include <gbpHalos.h>
typedef struct data_info_local data_info_local;
struct data_info_local {
halo_properties_info group;
halo_properties_info subgroup;
int n_particles_group;
... |
/*
* dumpbytes
* https://github.com/vs49688/dumpbytes
*
* SPDX-License-Identifier: Apache-2.0
* Copyright (c) 2019 <NAME>
*
* 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
*
* ht... |
/*
* FILENAME: wordcounter.c | Made by <NAME>, 2018 | MIT License | 3rd party sources given in the comments
* This program takes a .txt text file and outputs the following things:
* - the total amount of words in the file
* - the amount of different words in file
* - 100 m... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <sys/time.h>
#include "ue_extract.h"
#include "ue_config.h"
#include "ucvm_meta_etree.h"
/* Default config file */
#define UE_DEFAULT_CFG "ucvm2etree.conf"
/* getopt variables */
extern char *optarg;
extern int optind, opterr, o... |
/*
* @XMHF_LICENSE_HEADER_START@
*
* eXtensible, Modular Hypervisor Framework (XMHF)
* Copyright (c) 2009-2012 Carnegie Mellon University
* Copyright (c) 2010-2012 VDG Inc.
* All Rights Reserved.
*
* Developed by: XMHF Team
* Carnegie Mellon University / CyLab
* VDG Inc.
* ... |
/**
* \file
*
* \brief lcd controller HX8347A example.
*
* Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip product... |
#include "nv20.h"
#include "regs.h"
#include <engine/fifo.h>
/*******************************************************************************
* Graphics object classes
******************************************************************************/
static struct nvkm_oclass
nv35_gr_sclass[] = {
{ 0x0012, &nv04_gr_... |
#include <licharger.h>
uint8_t state = 0;
uint16_t batteryVoltage = 0;
int main ( void ) {
setup();
while(1){
//This loop is running continuously
if((PINB>>PINB3) & 1){
cli();
batteryVoltage = readVoltage();
sei();
//Turn on circuit power
PORTB |= (1<<CIRCUITPIN);
//Charging logic
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pico/stdlib.h"
#include "hardware/pll.h"
#include "hardware/clocks.h"
#include "hardware/pio.h"
#include "hardware/dma.h"
#include "hardware/irq.h"
#include "hardware/structs/bus_ctrl.h"
#include "hardware/structs/pll.h"
#include "hardware/structs... |
/* x randr handler
*
* Copyright (C) 2012-2015 <NAME> <<EMAIL>>
* Copyright (C) 2016-2020 <NAME> <<EMAIL>>
*
* 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, incl... |
/*
This software is available to you under a choice of one of two
licenses. You may choose to be licensed under the terms of the GNU
General Public License (GPL) Version 2, available at
<http://www.fsf.org/copyleft/gpl.html>, or the OpenIB.org BSD
license, available in the LICENSE.TXT file accompanying this
... |
#include "CpuRead.h"
UINT32 GetLargestStanardFunction()
{
UINT32 Eax;
Print(L"FUNCTION (Leaf %08x)\n", CPUID_STANDARD_FUNCTION_ADDR);
AsmCpuid(CPUID_STANDARD_FUNCTION_ADDR, &Eax, 0, 0, 0);
Print(L" EAX:%08x EBX:%08x ECX:%08x EDX:%08x\n", Eax, 0, 0, 0);
PRINT_VALUE(Eax, MaximumBasicFunction);
return Eax... |
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
#include <time.h>
#include <stdlib.h>
#include <ctype.h>
#include <pthread.h>
#include <signal.h>
#include "constants.h"
// Uncomment the following line to print additional information for better ... |
#include <sorter.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <maxBinaryHeap.h>
#define SHELL_INC_TOTAL 16
static void insertionSort(int* array, int length);
static void mergeSort(int* array, int start, int end);
static void merge(int* array, int start, int mid, int end);
/* Used in mer... |
#include "stddefx.h"
/********/
/* USES */
/********/
/* libs ext. <>, our "" */
#include "calc.h"
#include "app.h"
#include "misc.h"
#include "mathx.h"
/* global header (opt.) and test's prototypes "" */
/* headers of this app. modules called */
/***************/
/* EXTERNALS */
/***************/
/**********... |
/* GELL 15.26: include file for the module: "print" */
/* translation done: "Sat Oct 7 17 20:53:19 " */
/* impure LLM3 predefined */
extern Ptr GIdlink, GIllink, GIfcons, GIevalst;
extern Ptr GMundef;
extern Ptr GIfcons;
extern Ptr GIbvar;
extern Ptr GMt;
extern Ptr GMvoid;
extern Ptr GMllsys... |
/* $OpenBSD: ttext1.c,v 1.6 2009/10/27 23:59:23 deraadt Exp $ */
/*
* Copyright (c) 1980, 1993
* The 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... |
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "devas-image.h"
#include "devas-utils.h"
#include "devas-visibility.h"
#include "visualize-hazards.h"
#include "devas-canny.h"
#include "geometry-discontinuities.h"
#include "dilate.h"
#include "devas-png.h"
/*******************
#define DEBUG_HAZARDS "... |
/* gpio.c was generated by yupp 1.2b1
out of gpio.yu-c
*//**
* \file gpio.c (gpio.yu-c)
* \brief Generic example of using preprocessor for interaction with GPIO pins.
*/
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
/**
* \defgroup periph Simulation of peripheral registers
* \{
*/
/**... |
/***************************************************************************//**
* @file panic.c
*
* @see panic.h
*
* @author <NAME>
*
* @date 16/12/2017
*
* @version 1.0
*
* @brief Panic feature of the kernel.
*
* @details Kernel panic functions. Displays the CPU registers, the faulty
* instruction, the ... |
#define _GNU_SOURCE // needed for sched_setaffinity
#include <utils.h>
// variables
static audio_shm_t *shm;
static bool end_program;
static pthread_t recv_mic_data_tid;
static int recv_mic_data_start_fidx;
static bool recv_mic_data_workaround;
// prototypes
static void sig_hndlr(int sig)... |
/**
* tapcfg - A cross-platform configuration utility for TAP driver
* Copyright (C) 2008-2009 <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
* version 2.1 ... |
// Copyright [2020] [FORTH-ICS]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... |
/* SKaMPI MPI-Benchmark
Copyright 2003-2008 <NAME>, <NAME>
Lehrstuhl Informatik fuer Naturwissenschaftler und Ingenieure
Fakultaet fuer Informatik
University of Karlsruhe
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
publis... |
/* Licensed to the .NET Foundation under one or more agreements.
The .NET Foundation licenses this file to you under the MIT license.
See the LICENSE file in the project root for more information. */
/*
Usage:
./runinjob.exe --memory-mb 123 -- C:/.../program.exe [its args...]
Runs job some/program.exe wi... |
//
// command line argument option processing routines
//
// Copyright (c) 2009 - Microquill Inc. - All rights reserved
// <NAME>
//
#include "options.h"
#include <stdlib.h>
#include <stdio.h>
#ifdef WIN
#include <io.h>
#include <malloc.h>
#endif
#include <string.h>
#include <ctype.h>
#ifndef TRUE
#define TRUE 1... |
/*
* 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... |
/* c-index-test.c */
#include "clang-c/Index.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
/******************************************************************************/
/* Utility functions. */
/************************************************... |
/*
* Read SAC header and seismogram and make output
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <string.h>
#include "aftan.h"
#include "cucss2sac.h"
void readdata_(int *sac,char *name,int *n,double *dt,double *delta,
double *t0,float *sei,int *ierr)
{
int ... |
/*
* (C) Copyright 2005
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* Copyright (C) 2002 <NAME> <<EMAIL>>
*
* 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 Licen... |
/*
* Copyright (c) 2017-2018, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* n... |
/* @LICENSE(UNSW_OZPLB) */
/*
* Australian Public Licence B (OZPLB)
*
* Version 1-0
*
* Copyright (c) 2004 University of New South Wales
*
* All rights reserved.
*
* Developed by: Operating Systems and Distributed Systems Group (DiSy)
* University of New South Wales
* http://www.... |
/*
* Copyright 2016 <NAME>
* Copyright 2011-2016 by <NAME>. FNET Community.
* Copyright 2008-2010 by <NAME>. Freescale Semiconductor, Inc.
*
* 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 ... |
/*
* Copyright (c) 2019 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
*/
#include <sys/types.h>
#include <kernel.h>
#include <sys/util.h>
#include <settings/settings.h>
#define MODULE fn_keys
#include "module_state_event.h"
#include "button_event.h"
#include "key_id.h"
#in... |
/*
* 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.
*
* This program is... |
/*
* cstructs.h - structures and accompanying manifest constants for functions
* in the common subdirectory.
*/
/*
* fileparts holds a file name broken down into parts.
*/
struct fileparts { /* struct of file name parts */
char *dir; /* directory */
char *name; /* name */
char *ext; /* extens... |
#include <stdio.h>
#include <string.h>
#include <psxapi.h>
#include <psxetc.h>
#include <psxgpu.h>
#include "types.h"
#include "res.h"
#include "snd.h"
#include "util.h"
#include "tables.h"
#include "game.h"
#include "gfx.h"
#include "vm.h"
#include "music.h"
#define NUM_INST 15
#define NUM_CH 4
#define MAX_ORDER 0x8... |
/** This file is in the public domain.
*
* @homepage http://github.com/pabigot/bsp430
*/
/*
The TSL2561 appears to have an error in its address decoding, which
shows up when you use the I2C block transfer interface to read the
entire memory. If the start address is below 0x0c the value read at
0x0c is the result f... |
/*
* Copyright (c) 2008 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms described in the file LICENSE included in this
* distribution.
*
*/
#include "srmio.h"
#include "config.h"
#include <errno.h>
#include <stdio.h>
#ifdef HAVE_GETOPT_H
# include <getopt.... |
/*
* Device addresses
*/
/* bits [35:32] of phyiscal address */
#define IOSPACE 0xF
#define SBUSSPACE 0xE
#define MEMSPACE 0x0
/* obio (on-board I/O?) devices. PA[32:35]=IOSPACE */
#define ECC 0x00000000 /* ECC and VSIMM controls */
#define IOMMU 0xE0000000
#define BUSCTL 0xE0001000 /* MBus and SBus controls ... |
/*
* tmat.c
*
* **********************************************
* CMU ARPA Speech Project
*
* Copyright (c) 1996 Carnegie Mellon University.
* ALL RIGHTS RESERVED.
* **********************************************
*
* HISTORY
*
* 20-Dec-96 <NAME> (<EMAIL>) at Carnegie Mellon University.
* Changed tmat_re... |
/*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redist... |
/* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <c_api/ie_c_api.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/**
* @brief Struct to store classification results
*/
struct classify_res {
size_t class_id;
float probability;
... |
/*
*
* Copyright (C) 2011, 2015 Cisco Systems, Inc.
* Copyright (C) 2015 CBA research group, Technical University of Catalonia.
*
* 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:
*
* ... |
/****************************************************************************
* arch/arm/src/lpc2378/lpc23xx_irq.c
*
* Copyright (C) 2010 <NAME>. All rights reserved.
* Author: <NAME>
*
* This file is part of the NuttX RTOS:
*
* Copyright (C) 2010 <NAME>. All rights reserved.
*
* Redistribution and use ... |
/*
* Simple photomap viewer for renderer debugging.
*
* Compile(Mac OS X 10.3)
*
* gcc pmapview.c trackball.c -framework OpenGL -framework GLUT -lobjc
*
*
* $Id: pmapview.c,v 1.1.1.1 2004/01/06 13:57:17 syoyo Exp $
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if defined(__APPLE__) && define... |
/*
* $XFree86: xc/programs/Xserver/miext/shadow/shrotpack.h,v 1.3 2001/05/29 04:54:13 keithp Exp $
*
* Copyright © 2000 <NAME>
*
* 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 ... |
////////////////////////////////////////////////////////////////////////////////
// //
// MIT X11 license, Copyright (c) 2005-2006 by: //
// ... |
/****************************************************************************
*
* ftcsbits.c
*
* FreeType sbits manager (body).
*
* Copyright (C) 2000-2019 by
* <NAME>, <NAME>, and <NAME>.
*
* This file is part of the FreeType project, and may only be used,
* modified, and distributed under the terms of the... |
#define _GNU_SOURCE
#define SYSLOG_NAMES
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <features.h>
#include <poll.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <time.h>
#include <unistd.h>
#include <sys/stat.h>
#incl... |
/*====================================================================*
- Copyright (C) 2001 Leptonica. 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 c... |
/* Copyright 2017, <NAME> - Facet UNT, Fi UNER
* Copyright 2014, 2015 <NAME>
* Copyright 2014, <NAME>
* Copyright 2014, <NAME>
* Copyright 2014, <NAME>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condi... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* $Revision: 2 $
* $Date: 16/10/25 4:29p $
* @brief Use BPWM0 channel 0 to capture the BPWM1 channel 0 waveform.
*
* @copyright SPDX-License-Identifier: Apache-2.0
* @copyright Copyright (C) 2... |
/** @file
Copyright 2006 - 2015 Unified EFI, Inc.<BR>
Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full tex... |
// SPDX-License-Identifier: GPL-2.0-only
/* DVB frontend part of the Linux driver for TwinhanDTV Alpha/MagicBoxII USB2.0
* DVB-T receiver.
*
* Copyright (C) 2004-5 <NAME> (<EMAIL>)
*
* Thanks to Twinhan who kindly provided hardware and information.
*
* see Documentation/media/dvb-drivers/dvb-usb.rst for more inf... |
#include <stdio.h> /* needed for input, output, ... */
#include <stdlib.h> /* needed for EXIT_SUCCESS, ... */
#include <math.h> /* nedded for myFloor() and myCeil() */
#include <glpk.h> /* the linear programming toolkit */
#include <string.h>
#define EPSILON 0.00001 /* small value to deal with rounding issues */
/* g... |
#include "github.h"
#include <string.h>
#include <curl/curl.h>
/*
* Function: ensure_input
*
* asks the user to choose a number in range of zero and a given option amount
* repeats, if the input is invalid, until it's not
*
* options: the amount of options the user needs to choose from
* (must be a pos... |
/*
* Copyright (c) 2016 Nordic Semiconductor ASA
* Copyright (c) 2016 <NAME>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <string.h>
#include <soc.h>
#if !defined(CONFIG_ARCH_POSIX)
#include <arch/arm/cortex_m/cmsis.h>
#endif
#include "util/mem.h"
#include "hal/ecb.h"
#include "common/log.h"
#include "ha... |
/*
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... |
#include <string.h>
#include "jpeg.h"
#include "utils.h"
#define Q_SHIFT 14
#define Q_2 0x2000 /* 1/2, Q14 */
#define Q_1SQRT2 0x2d41 /* 1/sqrt(2), Q14 */
static void unzigzag(int16_t block[8][8]);
static int quantization(int quality, int x, int y);
static void dequantize(int16_t block[8][8], int quality)... |
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/vmalloc.h>
#include <linux/pagemap.... |
/* This is part of the netCDF package.
Copyright 2021 University Corporation for Atmospheric Research/Unidata
See COPYRIGHT file for conditions of use.
Test quantization of netcdf-4 variables with parallel
I/O. Quantization is the zeroing-out of bits in float or double
data beyond a desired precision.
... |
/*
ZEsarUX ZX Second-Emulator And Released for UniX
Copyright (C) 2013 <NAME>
This file is part of ZEsarUX.
ZEsarUX 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 th... |
/*
* Copyright (c) 2008 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
* a... |
/* -*- mode: c; c-file-style:"stroustrup"; -*- */
/*
* Copyright (c) 2018 Mastercard
*
* 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
... |
/*
* Copyright (c) 2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <bluetooth/bluetooth.h>
#include <sys/byteorder.h>
#include "util/util.h"
#include "util/mem.h"
#include "util/memq.h"
#include "util/mayfly.h"
#include "hal/ccm.h"
#include "hal/radio.h"
#inc... |
/*
BLIS
An object-based framework for developing high-performance BLAS-like
libraries.
Copyright (C) 2014, The University of Texas at Austin
Copyright (C) 2018 - 2019, Advanced Micro Devices, Inc.
Redistribution and use in source and binary forms, with or without
modification, are permitted prov... |
/*
* regset-harness.c
* Copyright (c) 2019 K.Kosako
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <time.h>
#include "oniguruma.h"
#define RETRY_LIMIT 500
#ifdef WITH_READ_MAIN
//#define CHECK_EACH_REG... |
/* Target-dependent code for Motorola 68000 BSD's.
Copyright (C) 2004-2014 Free Software Foundation, Inc.
This file is part of GDB.
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; ei... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2011-2018 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2014 The University of Tennessee and The University
* of Tennessee Research Foundation. All righ... |
#include "lru.h"
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
lru*
lru_init(const uint64_t maxbytes, const unsigned int hashpower)
{
lru *l = calloc(sizeof(lru), 1);
if (l == NULL) {
fprintf(stderr, "lru init alloc lru failed.\n");
return NULL;
}
if (hashpower > 32) {
... |
/*
* 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... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include <mono/utils/mono-publib.h>
#include <mono/utils/mono-logger.h>
#include <mono/metadata/assembly.h>
#include <mono/metadata/mono-debug.h>
#include <mono/metadata/mono-gc.h>
#... |
/******************************************************************************
*
* Copyright (C) 2010 - 2019 Xilinx, 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 Softw... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.