text stringlengths 3.12k 18.7k |
|---|
#include "keypress.h"
// #include "../base/deadbeef_rand_init.h"
#include "../base/microsleep.h"
#include <ctype.h> /* For isupper() */
#if defined(IS_MACOSX)
#include <ApplicationServices/ApplicationServices.h>
#import <IOKit/hidsystem/IOHIDLib.h>
#import <IOKit/hidsystem/ev_keymap.h>
#elif defined(USE_X11)
#inc... |
/* Copyright (C) 2015 <NAME> */
/* All rights reserved. */
/* This file is part of phonopy. */
/* 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 cop... |
// Main.c
// Runs on TM4C123
/* This example accompanies the book
"Embedded Systems: Real Time Interfacing to Arm Cortex M Microcontrollers",
ISBN: 978-1463590154, <NAME>, copyright (c) 2015
Copyright 2015 by <NAME>, <EMAIL>
You may use, edit, run or distribute this file
as long as the above... |
#include <assert.h>
#include <regex.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#includ... |
//
// main.c
// tidy
//
// Created by <NAME> on 17/02/2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#include <stdlib.h>
#include <stdio.h>
#include <dirent.h>
#include <errno.h>
#include <limits.h>
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
#include <stdbool.h>
#include <string.h>
#de... |
/*
* 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... |
#include <stdio.h>
#include <string.h>
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include <rthw.h>
#include "SEGGER_RTT.h"
//#include <sockets.h>
#include "voice_handler.h"
#include "alpha_tasks.h"
#include "ser_alpha_data_handler.h"
#include "alpha_handler.h"
#include <button.h>
//#define ... |
#include <avr/io.h>
#include "cpu_speed.h"
#include "sprite.h"
#include "lcd.h"
#include "graphics.h"
#include <util/delay.h>
#include <stdio.h>
#include <stdlib.h>
/*
* snake teensy implmentation
* Name <NAME>
* Student Num: n9446800
*/
// use chars to memory
char lives = 3;
int length = 2;
char score = 0;
char ... |
/*
* JTAG_XFER_MODE: JTAG transfer mode. Used to set JTAG controller transfer mode
* This is bitmask for feature param in jtag_mode for ioctl JTAG_SIOCMODE
*/
#define JTAG_XFER_MODE 0
/*
* JTAG_CONTROL_MODE: JTAG controller mode. Used to set JTAG controller mode
* This is bitmask for feature param in jtag_mode f... |
#ifndef lint
static const char RCSid[] = "$Id: rview.c,v 2.37 2013/10/18 17:04:13 greg Exp $";
#endif
/*
* rview.c - routines and variables for interactive view generation.
*
* External symbols declared in rpaint.h
*/
#include "copyright.h"
#include <signal.h>
#include <ctype.h>
#include "ray.h"
#include "... |
/*
* lib/crypto/md4/md4.c
*/
/*
**********************************************************************
** md4.c **
** RSA Data Security, Inc. MD4 Message Digest Algorithm **
** Created: 2/17/90 RLR ... |
#include <stdbool.h>
#include <SDL2/SDL.h>
#include "io.h"
SDL_Window* window = NULL;
SDL_Surface* windowSurf = NULL;
SDL_Surface* renderSurf = NULL;
SDL_Surface* pixelSurf = NULL;
static bool border = true;
static int borderSize = 4;
int renderScale = 4;
int useScanLines = 0;
int useDotsFilter = 1;
char* emuNam... |
/*
* Copyright (c) Texas Instruments Incorporated 2018
* 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
* no... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <assert.h>
#include <math.h>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
const char* vertex_src = "\n"
"#version 330 core\n"
"layout(location = 0) in vec3 a_pos;\n"
"layout(location = 1) in vec2 a_uv;\n"
"u... |
//
// Pretty Sine program, written in C99.
//
// This little program generates a Bitmap .BMP file that is pretty enough to
// be used as a background image, in my opinion.
//
// Pretty Sine uses the trigonometric function Sine to generate said image,
// hence its name. (Don't ask me what the colors mean: I don't know.)... |
#include "mp3.h"
#include "playback.h"
#include <mpg123.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static size_t* buffSize;
static mpg123_handle *mh = NULL;
static uint32_t rate;
static uint8_t channels;
static u64 frames_read = 0, total_samples = 0;
// For MP3 ID3 tags
// Helper for v1 pr... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2008
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* (C) Copyright 2011
* <NAME>, Keymile GmbH Hannover, <EMAIL>
*/
#include <common.h>
#include <env.h>
#include <ioports.h>
#include <command.h>
#include <malloc.h>
#include <cli_hush.h>
#include <net.h>
#... |
// To create an interface instance of the cuckoo table for a certain key-value
// type, you must define the following constants in your header file:
//
// Name of table
// #define CUCKOO_TABLE_NAME ___
//
// Type of key
// #define CUCKOO_KEY_TYPE ___
//
// Type of mapped value
// #define CUCKOO_MAPPED_TYPE ___
//
// Th... |
// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
/*
* Copyright (C) 2019, STMicroelectronics - All Rights Reserved
*/
#include <common.h>
#include <fdt_support.h>
#include <asm/arch/sys_proto.h>
#include <dt-bindings/pinctrl/stm32-pinfunc.h>
#include <linux/io.h>
#define ETZPC_DECPROT(n) (STM32_ETZPC_BASE + 0x1... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "simd_abpoa_align.h"
#include "abpoa_align.h"
#include "utils.h"
void gen_simple_mat(int m, int *mat, int match, int mismatch) {
int i, j;
match = match < 0 ? -match : match;
mismatch = mismatch > 0? -mismatch : mismatch;
for (i = 0; i... |
/*
* Copyright 2017 <NAME>
*
* See LICENCE for the full copyright terms.
*/
#include "theft_libfsm.h"
#include <unistd.h>
#include <getopt.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <adt/xalloc.h>
#include "type_info_fsm_literal.h"
#define EXEC_NAME "fuzz_libfsm"... |
/* usb-urb.c is part of the DVB USB library.
*
* Copyright (C) 2004-6 <NAME> (<EMAIL>)
* see dvb-usb-init.c for copyright information.
*
* This file keeps functions for initializing and handling the
* BULK and ISOC USB data transfers in a generic way.
* Can be used for DVB-only and also, that's the plan, for
* ... |
/* ----------------------------------------------------------- */
/* */
/* ___ */
/* |_| | |_/ SPEECH */
/* | | | | \ RECOGNITION ... |
/*
* (C) 2010 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or with‐
* out modification, are permitted provided that the following con‐
* ditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and th... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2018 <NAME> <<EMAIL>>
* All rights reserved.
*
* This software was developed by BAE Systems, the University of Cambridge
* Computer Laboratory, and Memorial University under DARPA/AFRL contract
* FA8650-15-C-7558 ("CADETS"), as part of the DA... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifdef __linux__
#include <pty.h>
#elif __APPLE__
#include <util.h>
#endif
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stdio... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <GL/glew.h>
#include <GL/freeglut.h>
#define WINDOW_TITLE_PREFIX "Chapter 2"
int
CurrentWidth = 800,
CurrentHeight = 600,
WindowHandle = 0;
unsigned FrameCount = 0;
GLuint
VertexShaderId,
FragmentShaderId,
ProgramId,
VaoId,
VboId,
... |
/*
* Copyright 2013-2016 Guardtime, Inc.
*
* This file is part of the Guardtime client SDK.
*
* 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/LICENS... |
#include <gb/gb.h>
#include "defines.h"
#include "gamestate.h"
#include "fade.h"
#include "cos.h"
#include "highscore.h"
#include "ram.h"
#include "sound.h"
#include "characters.h"
#include "arrow.h"
#include "data/sprite/empty.h"
#include "data/bg/highscore.h"
#include "circles.h"
#include "selection1.h"
#include "s... |
/*-
* Copyright (c) 2008 Isilon Inc http://www.isilon.com/
* Authors: <NAME> <<EMAIL>>
* Developed with Red Inc: <NAME> <<EMAIL>>
*
* 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 ... |
/*
* Copyright (c) 2018-2020 <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... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <errno.h>
#include <math.h>
#include <time.h>
#include <pthread.h>
//32 bits, -2147483647 ~ 2147483647
#define MAX_INT_CHAR_SIZE 11
//maximum number of integers in one testcase in argv[1]
#define MAX_INT_EACH_TESTCASE 10000
//assum... |
#include "qmi_functions.h"
#define PROGRAM_NAME "qmicli"
#define PROGRAM_VERSION PACKAGE_VERSION
/* Globals */
static GMainLoop *loop;
static GCancellable *cancellable;
static QmiDevice *device;
static QmiClient *client;
//static QmiService service;
static gboolean operation_status;
static bool qmi_option_gps;
... |
/*
******************************************************************************
** CarMaker - Version 10.2.1
** Vehicle Dynamics Simulation Toolkit
**
** Copyright (C) IPG Automotive GmbH
** Bannwaldallee 60 Phone +49.721.98520.0
** 76185 Karlsruhe Fax ... |
/*
* Copyright (c) 1989, 1991, 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:
* 1. Redistributions of source code must retain the above... |
/**************************************************************************
*
* Copyright 2008 HPCNL-KICS, UET, Lahore, PAKISTAN.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification,are permitted provided that the following conditions
* are met:
*
* ... |
/**
* \file
*
* \brief AT CMD Application
*
* Copyright (c) 2014-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 products.
* It is y... |
/* sbdt03.f -- translated by f2c (version 20061008).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of... |
/* $OpenBSD: radix_mpath.c,v 1.35 2015/11/06 17:55:55 mpi Exp $ */
/* $KAME: radix_mpath.c,v 1.13 2002/10/28 21:05:59 itojun Exp $ */
/*
* Copyright (C) 2001 WIDE Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define COLNUMBER 2
#define TRUE 1
#define FALSE 0
#define RED "\x1B[31;1m" //kirmizi yazi
#define GRN "\x1B[32;1m" //yesil
#define YEL "\x1B[33;1m" //sari
#define BLU "\x1B[34;1m" //mavi
#define MAG "\x1B[35;1m" //magenta
#define... |
/* PackTab - Pack a static table
* Copyright (C) 2001 <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 of the License, or (at your option) any lat... |
#include <sugar.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <mempool.h>
#include <dynarray.h>
#include <mesh.h>
#include <vars.h>
struct vars_mgr_struct {
dynarray_t var_types;
int* node_vars;
int* branch_vars;
int* elt_branch_vars;
int var_count;
... |
/* ************************************************************
% ADA = getada1(ADA, A,Ajc2,perm, d, blkstart)
% GETADA1 Compute ADA(i,j) = (D(d^2; LP,Lorentz)*A.t(:,i))' *A.t(:,j),
% and exploit sparsity as much as possible.
% Ajc2 points just beyond LP/Lorentz nonzeros for each co... |
/*
* This module implements a simple but effective form of login access
* control based on login names and on host (or domain) names, internet
* addresses (or network numbers), or on terminal line names in case of
* non-networked logins. Diagnostics are reported through syslog(3).
*
* Author: <NAME>, Eindhoven Un... |
/*
* Copyright (C) 2010 <NAME> <<EMAIL>>
*
* Based on original Kirkwood support which is
* (C) Copyright 2009
* Marvell Semiconductor <www.marvell.com>
* Written-by: <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <netdev.h>
#include <asm/cache.h>
#include <asm/io.h>
#in... |
/* This is part of the CCR package. Copyright 2020.
Test BitGroom quantization.
<NAME> 9/18/20, <NAME> 1/20/20
*/
#include "config.h"
#include <math.h> /* Define fabs(), powf(), round() */
#include "ccr.h"
#include "ccr_test.h"
#include <hdf5.h>
#include <H5DSpublic.h>
#include <netcdf.h>
#define FILE_NAME "t... |
//
//
// Copyright 2016, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of condi... |
/*
* Mesa 3-D graphics library
*
* 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, including without limit... |
static const char version[] = "$Id$";
/*
* rc.c
*
* Copyright 2001-2003, Meiosys (www.meiosys.com). All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <log4c/rc.h>
#include <log4c/category.h>
#include <log4c/appende... |
/* MIT License
*
* Copyright (c) 2020 <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... |
#include "usb.h"
#include <libusb.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
static struct libusb_context *nvstusb_usb_context = 0;
static const int nvstusb_usb_debug_level = 3;
struct nvstusb_usb_device {
struct libusb_device_handle *handle;
};
/* convert a libusb error to ... |
/*
Copyright (C) 2014, The University of Texas at Austin
This file is part of libflame and is available under the 3-Clause
BSD license, which can be found in the LICENSE file at the top-level
directory, or at http://opensource.org/licenses/BSD-3-Clause
*/
#define PARAMETERS_FILENAME "input.glob... |
/* ----------------------------------------------------------------------------
* checksum.c --- Checksum generator functions
* nca-073-9
*
* Copyright (c) 1996-2000 by Netcetera AG.
* Copyright (c) 2001 by Apache Software Foundation.
* All rights reserved.
*
* See the file "license.terms" for information on us... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/usbdev.h"
#include "sw/device/lib/common.h"
#define USBDEV_BASE_ADDR 0x40020000
#include "usbdev_regs.h" // Generated.
#define EXTRACT(n, f) ... |
/*
Copyright 2017 <NAME> (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
without fee, provided that the above copyright notice appear in
all copies and that both that the copyright notice and ... |
/*
* pdesc.c
* ptunnel is licensed under the BSD license:
*
* Copyright (c) 2004-2011, <NAME> <<EMAIL>>,
* Yellow Lemon Software. All rights reserved.
*
* Copyright (c) 2017-2019, <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided tha... |
#include <sys/types.h>
#include <time.h>
#include <termios.h>
#include <signal.h>
#include <pwd.h>
#include <sched.h>
#include <sys/resource.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <stdint.h>
#include "dat.h"
#include "fns.h"
#include "error.h"
#include <semaphore.h>
#include <raise.h>
/* glibc 2.... |
//**********************************************************************;
// Copyright (c) 2015, Intel Corporation
// 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 s... |
/*
This file is part of JustGarble.
JustGarble is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
JustGarble is distribut... |
#include "all.h"
enum Imm {
Iother,
Iplo12,
Iphi12,
Iplo24,
Inlo12,
Inhi12,
Inlo24
};
static enum Imm
imm(Con *c, int k, int64_t *pn)
{
int64_t n;
int i;
if (c->type != CBits)
return Iother;
n = c->bits.i;
if (k == Kw)
n = (int32_t)n;
i = Iplo12;
if (n < 0) {
i = Inlo12;
n = -n;
}
*pn = n;
i... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <stdbool.h>
#include <unistd.h>
#include "dtype.h"
#include "report.h"
#include "table.h"
/* set being tested */
static set_ptr st_table;
/* Array of strings. These get set to NULL when element deleted */
static char **val_set... |
// Example program loading bakefont3 data
// COMPILE:
// gcc -std=c99 example.c bakefont3.c -lm -Wall -Wextra -o example.bin
// USAGE:
// ./example.bin example/test.bf3 example/test-rgba.png
#include "bakefont3.h"
#include <stdlib.h> // malloc, free
#include <string.h> // strcmp
#include <stdio.h>
#include <... |
/**
******************************************************************************
* @file stm32f4xx_it.c
* @date 31/10/2014 11:34:33
* @brief Interrupt Service Routines.
******************************************************************************
*
* COPYRIGHT(c) 2014 STMicroelectronics
*
*... |
#include <string.h>
#include <stdlib.h>
#include "stm32f103xb.h"
#include "client.h"
#include "ax.h"
#include "octo.h"
#include "algo.h"
#include "uart.h"
#include "arm_server.h"
#include "rgb_server.h"
TaskHandle_t xClientTask;
static BaseType_t prvDoColoursMatch(RgbColours_t xColourA, RgbColours_t xColourB);
void... |
#include <stdio.h>
#include <unistd.h>
#include <termios.h>
#include <wolfssl/options.h>
#include <wolfssl/wolfcrypt/aes.h>
#include <wolfssl/wolfcrypt/sha256.h>
#include <wolfssl/wolfcrypt/random.h>
#include <wolfssl/wolfcrypt/pwdbased.h>
#define SALT_SIZE 8
/*
* Makes a cyptographically secure key by s... |
#include "libcurl_async.h"
/**
* :setup_ssl_request
* Setup libcurl ssl dependencies
*/
void setup_ssl_request(CURL *eh, request* request)
{
/* THE FLAG DEFINES MAXIMUM SUPPORTED TLS VERSION AS TLS V1.2 */
if (LIBCURL_VERSION_NUM >= 0x073400)
curl_easy_setopt(eh, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2)... |
#include "fss7.h"
volatile fss_sharedwork_t* FSS_SharedWork;
fss_channel_t FSS_Channels[16];
u16 FSS_ChnVol[16];
int FSS_NoteLengths[16];
fss_player_t FSS_Players[FSS_PLAYERCOUNT];
fss_track_t FSS_Tracks[FSS_MAXTRACKS];
byte_t FSS_TrackUpdateFlags[FSS_MAXTRACKS];
u16 FSS_ChnLockMask;
int FSS_WorkUpdFlags;
// Adapted ... |
/*
* GENH demuxer
* Copyright (c) 2015 <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 the License, or (at your option... |
/* System headers */
#include <stdio.h>
#include <libgen.h>
#include <getopt.h>
/* Project headers */
#include "rlsuite.h"
#include "rltest.h"
#include "roptions.h"
#include "sargv.h"
/* Include the names of the functions implemented */
#include "README.c"
/* Program name/version */
#define _NAME_ "Run builtin... |
/*
* Copyright 2018 The Hafnium Authors.
*
* 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 ... |
//
// tutorial001.c
// KSMediaPlayer
//
// Created by saeipi on 2020/6/15.
// Copyright © 2020 saeipi. All rights reserved.
//
#include "tutorial001.h"
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libswscale/swscale.h"
#include "libavutil/hwcontext.h"
#include "libavutil/imgutils.h"
... |
/*
* This software is Copyright (c) 2016 <NAME>
* [denis_burykin yahoo com], [denis-burykin2014 yandex ru]
* and it is hereby released to the general public under the following terms:
* Redistribution and use in source and binary forms, with or without
* modification, are permitted.
*
*/
#include <stdlib.h>
#in... |
/* Copyright (c) 2010, <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:
* Redistributions of source code must retain the above copyright
notice, this list of ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "compearth.h"
#pragma omp declare simd
static void strikeDip(const double nRad, const double eRad, const double uRad,
double *strikeDeg, double *dipDeg);
/*!
* @brief Computes the strike, dip, and rake of the ... |
/*
* $Id: translate.c,v 1.10 2008-07-27 03:18:44 haley Exp $
*/
/************************************************************************
* *
* The use of this Software is governed by a License Agreement. *
* ... |
/*
* PowerSupplyTask.c
*
* Created on: May 13, 2019
* Author: wittich
*/
// includes for types
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
// local includes
#include "Tasks.h"
#include "common/i2c_reg.h"
#include "common/pinout.h"
#include "common/pinsel.h"
#include "co... |
/*
MIT License
Copyright © 2017 <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, distribut... |
/*-------------- Telecommunications & Signal Processing Lab ---------------
McGill University
Routine:
void FAfiltSI(AFILE *AFpI, AFILE *AFpO, long int NsampO, const double h[],
int Ncof, int Nsub, int Ir, long int moffs)
Purpose:
Filter an audio file with an FIR filte... |
#include "include/cinterface"
typedef TLnat4 TL_TL_priority_t;
struct TL_TL_ExceptionInfo {
TLint4 quitCode;
TLint4 libraryQuitCode;
TLstring errorMsg;
};
typedef TLnat1 __x503[1];
struct TL_TL_HandlerArea {
TLint4 quitCode;
TLnat4 lineAndFile;
TLaddressint fileTable;
struct TL_TL_HandlerAre... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "util_geometry.h"
#include "util_misc.h"
#define TWO_PI (2*M_PI)
static inline double square(double x)
{
return x * x;
}
static inline bool is_close(double a, double b, double fraction)
{
return fabs(a/b - 1) < fraction;
}
// ---------------... |
#include <onnc/Runtime/operator/conv.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
static inline bool next_dim(int32_t ndim, int32_t * restrict dim,
const int32_t * restrict dim_max) {
do {
ndim = ndim - 1;
dim[ndim] += 1;
if (dim[ndim] < dim_max[ndim]) {
... |
/* Opal BLAKE2b
* for Unix
* version 1.1
*/
/* pieces section */
#include <errno.h>
/* errno
*/
#include <stdio.h>
/* FILE
* NULL
* EOF
* stdin
* stderr
* getc()
* putc()
* putchar()
* fputs()
* getline()
* printf()
* fprintf()
* scanf()
* sscanf()
* fopen()
* fclose()
* perror()
*/
#include <... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
// a date structure: used to hold any date data
struct date
{
int d, m, y;
};
// declaration of month array
// note: this is a non leap year's no. of days in a month list
int months[13] = {0,31,28,31,30,31,30,31,31,30,31,3... |
#include<stdio.h> //library for input output
#include<stdlib.h> //library for memory allocation, process control, conversions etc
#include<stdbool.h> //library for boolean functions
#include<string.h> //library for string functions
#include<ctype.h> //library for testing and mapping characters
#define MAX 1000 ... |
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*********************************... |
/*
MIT License
Copyright (c) 2020 <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, distrib... |
/* $OpenBSD: dnsdefs.h,v 1.2 2011/03/27 17:39:17 eric Exp $ */
/*
* Copyright (c) 2009 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copi... |
/* Copyright (c) 2021 <NAME> <<EMAIL>>
* You may use, distribute and modify this code under the
* terms of the MIT license.
*/
#include "lexer.h"
#include "bigint.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static inline char next(Lexer* lexer) {
if (!lexer) return '\0';
... |
/*
* The X Men, June 1996
* Copyright (c) 1996 Probe Entertainment Limited
* All Rights Reserved
*
* Authors: Phillipd, Collinsd
*/
/*-------------------------------------------------------------------
Include File...
-----------------------------------------... |
/**
* Copyright (c) 2021 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
**/
#include <stdio.h>
#include "hardware/i2c.h"
#include "pico/binary_info.h"
#include "pico/stdlib.h"
/* Example code to talk to a BMP280 temperature and pressure sensor
NOTE: Ensure the device is capable of be... |
/*
* Spectravideo SVI Cassette file
*
* BLOAD "CAS:",R
*
* By <NAME>
*
* $Id: svi.c $
*/
#include "appmake.h"
static char *binname = NULL;
static char *crtfile = NULL;
static char *outfile = NULL;
static int origin = -1;
static char ... |
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/random.h>
#include "chacha.h"
#include "hex.h"
#define NUMROUNDS 20
void printHelp(){
printf( "Usage: chacha [OPTIONS]...\n"\
"Encrypts/Decrypts files using ChaCha20\n"
"\n"\... |
/*
* Copyright (c) 2007-2009 Google Inc. and <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... |
/*
* SEARCH.C
* <NAME>'s Simple Chess Program (TSCP)
*
* Copyright 1997 <NAME>
*/
#include <stdio.h>
#include <string.h>
#include "defs.h"
#include "data.h"
#include "protos.h"
#include "drivers.h"
/* see the beginning of think() */
#include <setjmp.h>
jmp_buf env;
BOOL stop_search;
// Globa... |
#include "rtmp-client.h"
#include "librtmp/log.h"
#include "librtmp/rtmp.h"
#include "h264/h264-sps.h"
#include "h264/h264-util.h"
#define inline static
#include "sock.h"
#include <assert.h>
#include <memory.h>
#include <android/log.h>
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, "rtmp", __VA_ARGS__)
#de... |
/***************************************************************************
Atari 400/800
Machine driver
<NAME>, June 1998
***************************************************************************/
#include "driver.h"
#include "cpu/m6502/m6502.h"
#include "includes/atari.h"
#include "so... |
/*
* Copyright (c) 2008, <NAME>, Communications & Systemes <<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
*... |
/* Wrapper for JSON-C functions
*
* Copyright (C) 2018 - 2021, <NAME> <<EMAIL>>
*
* License: see LICENSE file in root directory
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.