text stringlengths 3.12k 18.7k |
|---|
/* cairo-wasm - a vector graphics library with display and print output
*
* Copyright © 2005 Red Hat, Inc
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the... |
/*
* Copyright 2021 <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 code must retain the above copyright notice,
* this list of conditions and the following ... |
/*
* This code is designed to read a heartrate from a pulse sensor
* attached to the RPi and dump it into /var/ssipc/pilot/heartBPM.txt
* as often as possible.
*
* Much of this is copied/adapted from PulseSensor_timer.c.
*/
#include "pulsesensor-bpm.h"
// VARIABLES USED TO DETERMINE SAMPLE JITTER & TIME OUT
vo... |
/***************************************************************************
Copyright (c) 2013-2019, The OpenBLAS Project
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... |
/* xephemdbd: read lines of FOV requests and produce object lists in .edb or
* plain text format. Requests which specify their own output file are each
* handled by a separate child process.
*/
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <errno.h>
#include <math.h>
#inclu... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* 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:
* 1. Redistributions of source code must retain the abov... |
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/socket.h>
#include <linux/route.h>
#include <sys/un.h>
#include <pthread.h>
#include <sys/prctl.h>
#include <wpa_command.h>
#include <json-c/j... |
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <X11/keysym.h>
#include <X11/XF86keysym.h>
#include <X11/XKBlib.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
/* Defaults */
#define BARCLASS "Bar"
#define BARCOMMAND "$HOME/.config/lemonbar/le... |
/*
* 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... |
#include "cuckoo_filter.h"
#define CUCKOO_NESTS_PER_BUCKET 4
static inline uint32_t murmurhash (const void *, uint32_t, uint32_t);
static inline uint32_t hash (const void *, uint32_t, uint32_t, uint32_t,
uint32_t);
typedef struct {
uint16_t fingerprint;
} __attribute__((packed)) cuckoo_nest_t;
... |
/*
* Copyright (C) 2021 Red Hat
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list
* of conditions and the following disclaim... |
/**
@file spinbody.h
@brief Subroutines that control the integration of the N Body simulation
@author <NAME> ([smotherh](https://github.com/smotherh/))
@date Feb 21 2017
*/
//Option numbers
#define OPTSTARTSPINBODY 1600
#define OPTENDSPINBODY 1700
#define OPT_POSITIONXSPINBODY 1610
#define O... |
//===- ptreetime_interpose.c ----------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.t... |
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write... |
/*************************************************
*
* Copyright 2016 <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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... |
#include <stdio.h>
#include <stdlib.h>
#define STRMAX 100
struct LIVROS {
char nomel[STRMAX + 1];
char autor[STRMAX + 1];
int pg;
double valor;
};
/* Prototype das funções */
/* Função tamanho (mesmo que strlen) */
int tamanho(char[]);
/* Função lestring publicada no artigo do Viva o Linux */
int... |
/*
* arch/arm/mach-tegra/board-harmony-pinmux.c
*
* Copyright (C) 2010 Google, Inc.
* Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, dist... |
/*===========================================================================*
* *
* smtsimu.c - Network simulation agent *
* *
* ... |
// SPDX-License-Identifier: GPL-2.0
//
// mcp251xfd - Microchip MCP251xFD Family CAN controller driver
//
// Copyright (c) 2019, 2020, 2021 Pengutronix,
// <NAME> <<EMAIL>>
//
// Based on:
//
// CAN bus driver for Microchip 25XXFD CAN Controller with SPI Interface
//
// Copyright (c) 2019 <NAME> <<EMAIL>>... |
#include "board.h"
#include "pdm_i2c_bus.h"
#include "can_spec_constants.h"
// -------------------------------------------------------------
// Macro Definitions
#define CCAN_BAUD_RATE 500000 // Desired CAN Baud Rate
#define UART_BAUD_RATE 57600 // Desired UART Baud Rate
#define BUFFER_SIZE 8
// ---------... |
/*
* 3c359.h (c) 2000 <NAME> (<EMAIL>) All Rights Reserved
*
* Linux driver for 3Com 3C359 Token Link PCI XL cards.
*
* This software may be used and distributed according to the terms
* of the GNU General Public License Version 2 or (at your option)
* any later verion, incorporated herein by reference.
*... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* kdc/policy.c - Policy decision routines for KDC */
/*
* Copyright (C) 2017 by Red Hat, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following cond... |
#include "struct.h"
#include "rod_proto.h"
#define convertdist 1e3 //micro to nm
#define convertt 1e3 //ms to micro s
#define convertYI 1e6 //pN micron^2 to fN nm^2
#define convertk 1e-3 //spring constant - pN/micron to pN/nm
#define convertfric 1e-3 //pN.ms/micron^2 to N.s/m^2
void Qinv (real Q[4][8]... |
/**
* Copyright 2020 <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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
//for compile: gcc -ggdb -Wall -Wextra -o prova server.c -lcrypto
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <unistd.h>
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/bn.h>
#include <openssl/rsa.h>
#include ... |
/*
* Copyright (C) 2014 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRA... |
/*
* Copyright (C) 2015-2018 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup tests
* @{
*
* @file
* @brief Tests extension header han... |
/**
******************************************************************************
* File Name : USART.c
* Description : This file provides code for the configuration
* of the USART instances.
******************************************************************************
... |
/*
* $Id: //DTV/MP_BR/DTV_X_IDTV0801_002200_2_001_2_001_1210_001/chiling/driver/directfb/Source/DirectFB/gfxdrivers/sis315/sis315.c#1 $
*
* Copyright (C) 2003 by <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Licen... |
#include "common.h"
#include "ctl.h"
#include "argz.h"
#include <stdarg.h>
enum gt_path_show {
gt_path_show_mtu = 1,
gt_path_show_rtt = 2,
gt_path_show_stat = 3,
};
struct gt_path_hdr {
int m;
char v[MUD_PATH_MAX + 1][INET6_ADDRSTRLEN + 6];
};
static void
gt_path_print(struct gt_path_hdr *h, i... |
/*
* board/renesas/lager/lager.c
* This file is lager board support.
*
* Copyright (C) 2013 Renesas Electronics Corporation
* Copyright (C) 2013 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0
*/
#include <common.h>
#include <malloc.h>
#include <netdev.h>
#include <asm/processor.h>
#include <asm/mach... |
#include <unistd.h>
#include <stdlib.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include "log.h"
//default storage is 40 MByte.
#ifndef DEFAULT_STORAGE_SIZE
#define DEFAULT_STORAGE_SIZE 40
#endif
//default size of each log file is 5 MByte.
#ifndef DEFAULT_FILE... |
/*
AVL tree (self-balancing binary search tree) implementation written in C
BSD 2-Clause License
Copyright (c) 2019, <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... |
/******************** (C) COPYRIGHT 2011 **************************************
* File Name : tickadjust.c
* Hacker : deh
* Date First Issued : 08/20/2011
* Board : STM32F103VxT6_pod_mm
* Description : Adc thermistor reading adjustment of tick time
************************************... |
/*
* 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... |
#define _XOPEN_SOURCE 600
#include <getopt.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <time.h>
#include <unistd.h>
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/render/allocator.h>
#include <wlr/render/wlr_renderer.h>
#include ... |
/*
* OSPF Neighbor functions.
* Copyright (C) 1999, 2000 <NAME>
*
* This file is part of GNU Zebra.
*
* GNU Zebra 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, or (at your
* optio... |
/**
* \file main_qspi_flash_read_write_board.c
*
* \brief Example application main file. This application will write and read
* the data to/from QSPI NOR flash through board flash interface.
*
*/
/*
* Copyright (C) 2016 - 2017 Texas Instruments Incorporated - http://www.ti.com/
*
* Redistributio... |
/*
** Copyright 2005-2017 Solarflare Communications Inc.
** 7505 Irvine Center Drive, Irvine, CA 92618, USA
** Copyright 2002-2005 Level 5 Networks Inc.
**
** 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 ... |
/*
Team Name:happysnaker
Member 1 :qwewqewqqe:qwewqewqqe
Using default tracefiles in traces/
Perf index = 44 (util) + 40 (thru) = 84/100
*/
/*
* mm-naive.c - The fastest, least memory-efficient malloc package.
*
* In this naive approach, a block is allocated by simply incrementing
* the brk pointer.... |
/*
* Copyright 2018 The Hafnium Authors.
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/BSD-3-Clause.
*/
#include "hf/arch/vm/power_mgmt.h"
#include "hf/boot_params.h"
#include "hf/fdt_handler.h"
#include "hf/memiter... |
/**
* @file
* @brief API for key-value storage access.
* @details This file contains main functions and type definitions to access the key-value storage.
*/
#pragma once
#include "mdv_map.h"
#include <mdv_data.h>
#include <mdv_def.h>
/// Key-value storage descriptor
typedef struct mdv_lmdb mdv_lmdb;
/// Flags f... |
#include "types.h"
#include "user.h"
#include "bitmap.h"
#include "Graphics.h"
#include "windows.h"
void showRgbQuan(RGBQUAD* pRGB);
void showBmpHead(BITMAPFILEHEADER* pBmpHead);
void showBmpInforHead(BITMAPINFOHEADER* pBmpInforHead);
Point initPoint(int x, int y)
{
Point p;
p.x = x;
p.y = y;
return p;
}
void draw_... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
/* BubbleMon dockapp 1.2 - SunOS specific code
* Copyright 2001 <NAME> <<EMAIL>>
* Copyright 2001 <NAME> <<EMAIL>>
* vim: ts=4 sw=4
*
* 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... |
/*
*
* @file marco_colon_final.c
*
* COMPILING CODE:
sudo make marco_colon_final
sudo ./marco_colon_final
*
*/
#include <stdio.h>
#include <robotcontrol.h>
#include <unistd.h>
#include <stdlib.h>
#include <math.h>
#include <signal.h>
#include <getopt.h>
#include <rc/motor.h>
#include <rc/time.h>
#include <... |
/**********************************************************
* Copyright 2009-2015 VMware, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restrict... |
/********************************************************************
********************************************************************
**
** libhungarian by <NAME>, 2004
**
**
** Solving the Minimum Assignment Problem using the
** Hungarian Method.
**
** ** This file may be freely copied and distributed! *... |
/*
* Copyright (c) 2021 <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, including without limitation the rights
* to use, copy, modify, merge, pu... |
/*===========================================
GRRLIB (GX Version)
- Example Code -
How To use Bitmap Fonts
============================================*/
#include <grrlib.h>
#include <ogc/lwp_watchdog.h> // Needed for gettime and ticks_to_millisecs
#include <stdlib.h>
#include <ogc/pad.h>
#i... |
#include <stdio.h>
#include "RoundRobin.h"
#include "buddy.h"
#include "include/naiveConsole.h"
proc round_robin(tHeader *process_queue) {
proc current_proc = get_current_proc();
tNode *node = NULL;
if (process_queue->first == NULL) {
return current_proc;
}
switch (current_proc->state) {
... |
/* mysqlEscape - <NAME> 2006-03-31
* Reads data formatted with long string field and line terminators.
* it can be used to just parse the data and count the fields and rows,
* but it can also be used to do much more, i.e. convert to another set of terminators,
* insert \N to mark NULL values for mysql, and escap... |
#include "in_dl.h"
static int dds_shutdown(DDS_DomainParticipant *participant)
{
int status = 0;
DDS_ReturnCode_t retcode;
if (participant != NULL) {
retcode = DDS_DomainParticipant_delete_contained_entities(participant);
if (retcode != DDS_RETCODE_OK) {
flb_error("[out_dds] de... |
/*
* Copyright (C) 2008-2016 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
* The code contained herein is licensed under the GNU General Public
* License. You may obtain a copy of the GNU General Public License
* Version 2 or later at the following locations:
*
* http://www.opensource.org/licenses/gp... |
/**
* 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... |
/* $OpenBSD: tc921x.c,v 1.2 2003/10/21 18:58:49 jmc Exp $ */
/*
* Copyright (c) 2001, 2002 <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 code must retain the a... |
#define _GNU_SOURCE // required to get struct in6_pktinfo definition
#include <errno.h>
#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <zlog.h>
#include "filter.h"
static zlog_category_t *zc;
static uint8_t zerobuf[MAX_HOST_ADDR_LEN] = { 0 };
int bind_filter_socket(Filt... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <assert.h>
#include <errno.h>
#include <linux/capability.h>
#include <sys/capability.h>
#include <sys/prctl.h>
#include <limits.h>
#include <cap-ng.... |
//
// bookExam.c
// cTree2
//
// Created by <NAME> on 6/2/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
typedef struct node{
int data;
struct node *rightChild;
struct node *leftChild;
struct node *parent;
}node_t;
typedef struct charNode{
cha... |
/**
* @file cl_fd_watcher_test.c
* @author <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
* @brief Application-local file descriptor watcher unit tests.
*
* @copyright
* Copyright 2016 Cisco Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance w... |
/*===========================================================================*
* *
* smtslot.c - Timeslot agent *
* *
* ... |
#include <util/delay.h>
#include "i2cmaster.h"
#include "lcd_st7032.h"
#define LCD_ADDR 0x7c
#define CONTROL_BYTE 0x00 // followed by command bytes
#define CONTROL_BYTE_CO 0x80 // followed by 1 command byte
#define CONTROL_BYTE_RS 0x40 // after last control byte, followed by DDRAM data byte(s)
#define CLEAR... |
/*
** Copyright 2020 Telenor Digital AS
**
** 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... |
/**************************************************************************//**
* @file Smpl_DrvSPI.c
* @version V2.00
* $Revision: 4 $
* $Date: 8/09/12 7:19p $
* @brief M051 Series SPI Driver Sample Code
*
* @note
* Copyright (C) 2011 Nuvoton Technology Corp. All rights reserved.
*
*******... |
/*
* ESPRSSIF MIT License
*
* Copyright (c) 2015 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
*
* Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only, in which case,
* it is free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal... |
//
// Created by kkyse on 11/27/2017.
//
#include "run_commands.h"
#include <unistd.h>
#include <stdio.h>
#include <wait.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdatomic.h>
#include "shell_utils.h"
#include "builtins/builtins.h"
#include "builtins/cd.h"
#include "preprocessing.h"
#include "shell_io.h"... |
/*
* GHInput.c
*
* The user interacts with the system using a standard PS/2 keyboard. The PS/2 hardware is
* handled using the Altera University Program PS/2 core.
* This file provides a wrapper and a debouncer for the keyboard. It translates physical
* keypresses into predefined constants understandable by the r... |
#include <sys/signalfd.h>
#include <sys/signal.h>
#include <sys/select.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include "bw.h"
/*
* ... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
// NOTE that "length" here is the full height of the core!
static double
form_volume(double r_minor,
double x_core,
double thick_rim,
double thick_face,
double length)
{
return M_PI*(r_minor+thick_rim)*(r_minor*x_core+thick_rim)*(length+2.0*thick_face);
}
static double
radius_from_excluded_volume(d... |
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* lib/kdb/kdb_ldap/ldap_krbcontainer.c
*
* Copyright (c) 2004-2005, Novell, 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:
*
* * Redistribut... |
/* Created by <NAME> @ Oct. 26, 2017
*
* ////////////////////////////////////////
* THIS CODE IS ONLY A GUIDE FOR SOMEONE
* WHO DOES HAVE NO IDEA ABOUT ANYTHING.
* DO NOT USE THIS CODE AS YOUR PROJECT
* DIRECTLY.
* ////////////////////////////////////////
*
* This demo code is to recursively print
* out the... |
/*
* MIT License
*
* Copyright (c) 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, m... |
/* Standard Libraries */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
/* libconfig */
#include <libconfig.h>
/* libstrophe */
#include <strophe.h>
/* firebase-upstream-server */
#include "common.h"
/* libconfig < v1.5 - renamed function */
#if (LIBCONFIG_VER_MAJOR <= 1) && (LIBCONFIG_VER_MINOR <= 4)
#def... |
/* The MIT License
Copyright (c) 2008 Genome Research Ltd (GRL).
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... |
/* Copyright 2015 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Externally-callable APIs
* (Kernel portion)
*/
#include "2api.h"
#include "2misc.h"
#include "2nvstorage.h"
#include "2rsa.h"
#include "2secdat... |
/*
* This software is licensed under the terms of the MIT License.
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, <NAME> <<EMAIL>>.
* Copyright (c) 2012-2019, <NAME> <<EMAIL>>.
*/
#include "taisei.h"
#include "sprite.h"
#include "video.h"
#include "renderer/api.h"
static char *sprite_p... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <libbladeRF.h>
#ifdef _WIN32
#include "getopt.h"
#else
#include <unistd.h>
#endif
#define TX_FREQUENCY 1575420000
#define TX_SAMPLERATE 2600000
#define TX_BANDWIDTH 2500000
#define TX_VGA1 -25
#define T... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
#include <string.h>
#include <sys/time.h>
#include "mt19937ar.h"
#include "gsgp.h"
#include "data.h"
#include "readline.h"
struct data_set_details {
bool scale_data;
double **bounds;
double *centre;
double *scale;
... |
/*******************************************************************************
*
* COPYRIGHT(c) 2020, China Mobile IOT
*
* 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 th... |
/*
* Copyright (C) 2017-2020 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file wj_pmu_alkaid.c
* @brief CSI Source File for PMU Driver
* @version V1.0
* @date 19. Feb 2020
*********************************************************... |
/*
##########################################################################
# If not stated otherwise in this file or this component's LICENSE
# file the following copyright and licenses apply:
#
# Copyright 2019 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not ... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <SDL/SDL_image.h>
#include "../07-gcn_sprites-4/common.h"
enum
{
NB_SPRITES = 100
};
const char* helicopterFiles[] = {
"data/helico_BAS_001.png", "data/helico_BAS_002.png",
"data/helico_BAS_003.png", "data/helico_BAS_004.png",
... |
#include "yahdlc.h"
// HDLC Control field bit positions
#define YAHDLC_CONTROL_S_OR_U_FRAME_BIT 0
#define YAHDLC_CONTROL_SEND_SEQ_NO_BIT 1
#define YAHDLC_CONTROL_S_FRAME_TYPE_BIT 2
#define YAHDLC_CONTROL_POLL_BIT 4
#define YAHDLC_CONTROL_RECV_SEQ_NO_BIT 5
// HDLC Control type definitions
#define YAHDLC_CONTROL_TYPE_R... |
// window.c
#include "ruby2d.h"
/*
* Create a window
*/
R2D_Window *R2D_CreateWindow(const char *title, int width, int height,
R2D_Update update, R2D_Render render, int flags) {
R2D_Init();
SDL_DisplayMode dm;
SDL_GetCurrentDisplayMode(0, &dm);
R2D_Log(R2D_INFO, "Current disp... |
// Copyright 2020 ETH Zurich
//
// 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 in w... |
#include <dos/dos.h>
#include <exec/exec.h>
#include <proto/exec.h>
#include <proto/dos.h>
#include <proto/mathffp.h>
#include "math_fast.h"
#define INT_MIN (-2147483647-1)
#define INT_MAX 2147483647
struct Library *MathBase;
static void print_float(STRPTR prefix, FLOAT f)
{
const ULONG *u = (const ULONG *)(cons... |
#include "woverlay.h"
#include "i81xregs.h"
#include "drv_priv.h"
#define pRegs ((PI81XREGS)HWData)
ULONG I81X_VideoCaps(PHWVIDEOCAPS pCaps) {
if (pCaps->ulLength < sizeof(HWVIDEOCAPS)) {
pCaps->ulLength = sizeof(HWVIDEOCAPS);
return RC_ERROR_INVALID_PARAMETER;
}
pCaps->ulCapsFla... |
/* Copyright 2004,2007 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,... |
/****************************************************************************
** hw_silitek.c ***********************************************************
****************************************************************************
*
* routines for Silitek receiver
*
* Copyright (C) 1999 <NAME> <<EMAIL>>
* modif... |
/*
* Copyright © 2018 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify,... |
/*
========================================================================
D O O M R e t r o
The classic, refined DOOM source port. For Windows PC.
========================================================================
Copyright © 1993-2012 id Software LLC, a ZeniMax Media c... |
/*
* (C) 2001 Clemson University and The University of Chicago
*
* See COPYING in top-level directory.
*/
#include <assert.h>
#include <unistd.h>
#include <pthread.h>
#include "gossip.h"
#include "trove.h"
#include "trove-internal.h"
#include "trove-ledger.h"
#include "trove-handle-mgmt.h"
#include "dbpf.h"
#incl... |
/*
* This file is part of the coreboot project.
*
* Copyright 2014 Google Inc.
*
* 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; version 2 of the License.
*
* This program is distribute... |
/* $OpenBSD: print-lldp.c,v 1.9 2016/11/28 17:47:15 jca Exp $ */
/*
* Copyright (c) 2006 <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 c... |
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
#ifdef UNIX
#include <sys/types.h>
#include <sys/file.h>
#include <sys/stat.... |
/*
* WARNING: do not edit!
* Generated by Makefile from providers/common/include/prov/der_digests.h.in
*
* Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can ... |
/* Test qualification of components of qualified structures or unions:
should have qualifiers from both the component and the structure or
union. Bug 27697 from <NAME>. */
/* Origin: <NAME> <<EMAIL>> */
/* { dg-do compile } */
/* { dg-options "" } */
struct s {
int a;
int b[1];
int c[2][3];
const int d... |
/*
* Copyright (c) 2020 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of con... |
/* Copyright 2015-2017 The MathWorks, Inc. */
#include "coder_assumptions_app.h"
#include "coder_assumptions_data_stream.h"
#include "xil_interface_lib.h"
/*
* Include coder_assumptions.h for Hardware Implementation setting
* preprocessor validation checks.
* These checks verify fundamental data types that the com... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.