text stringlengths 3.12k 18.7k |
|---|
#include <jni.h>
#include <android/log.h>
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include <sys/time.h>
#include <GLES2/gl2.h>
#include "debug.h"
#include "native_main.h"
#include "engine.h"
#include "matrix.h"
#include "shaders.h"
#include "gamearea.h"
#include "player_death.h"
#include "object.h"
... |
/*
* Copyright (c) 1986 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/map.h>
#include <sys/vm.h>
/*
* Resource map handling routines.
... |
/*
* SysDB - src/tools/sysdb/command.c
* Copyright (C) 2014 Sebastian 'tokkee' Harl <<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 ret... |
/*
* 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... |
/**
* \file
* \brief Barrelfish library initialization.
*/
/*
* Copyright (c) 2007-2019, ETH Zurich.
* Copyright (c) 2014, HP Labs.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich... |
#include "internal.h"
#include "shellfront.h"
#include "test.h"
#include <assert.h>
#include <glib.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
struct err_state define_error(char *msg);
struct err_state _shellfront_start_process(int argc, char **argv, char *accepted_opt,
GOptionEntry *custom_opt, ... |
// based on code from http://en.literateprograms.org/Hash_table_(C)
// Copyright (c) 2010 the authors listed at the following URL, and/or
// the authors of referenced articles or incorporated external code:
// http://en.literateprograms.org/Hash_table_(C)?action=history&offset=20100122102906
// Permission is hereby g... |
#include "overhead.h"
#include "proto.h"
#include "ngbtree3d.h"
//float *r_along_ray;
//LOCALVAL *local_quantities;
float simp(float *dx, float *y, int n)
{
float z;
int i;
z = 0.5 * (y[0]*dx[0] + y[n-1]*dx[n-1]);
for (i=1; i<n-1; i++) {
z += y[i]*dx[i];
}
return z;
}
/* revised routine to carry a ray out... |
/*++
/* NAME
/* forward 3
/* SUMMARY
/* message forwarding
/* SYNOPSIS
/* #include "local.h"
/*
/* int forward_init()
/*
/* int forward_append(attr)
/* DELIVER_ATTR attr;
/*
/* int forward_finish(request, attr, cancel)
/* DELIVER_REQUEST *request;
/* DELIVER_ATTR attr;
/* int cancel;
/* DESCRIPTION
/* This module imple... |
/*
* Tilengine - The 2D retro graphics engine with raster effects
* Copyright (C) 2015-2019 <NAME> <mailto:<EMAIL>>
* All rights reserved
*
* 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://moz... |
/* normalscan.c
============
Author: R.J.Barnes & J.Spaleta
*/
/*
LICENSE AND DISCLAIMER
Copyright (c) 2012 The Johns Hopkins University/Applied Physics Laboratory
This file is part of the Radar Software Toolkit (RST).
RST is free software: you can redistribute it and/or modify
it under the terms of t... |
#include "mp_config.h"
#include "../mem/memlayout.h"
#include "../asm/asm.h"
#define NULL (void *)0
mp_floating_pointer_t* m_floating_pointer;
mp_config_table_header_t* m_config_table_header;
void mp_floating_dump(){
char *signature=(char *)&(m_floating_pointer->m_signature);
printk("mp floating pointer: \n"... |
/* Copyright 2016 BitPay, Inc.
* Copyright 2016 <NAME>
* Distributed under the MIT/X11 software license, see the accompanying
* file COPYING or http://www.opensource.org/licenses/mit-license.php.
*/
#include <bitc/hdkeys.h>
#include <bitc/buffer.h>
#include <bitc/serialize.h>
#include <bitc/util.h>
#include <bitc/... |
/*
* Copyright (c) 2013-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... |
/* //////////////////////////////////////////////////////////////////////////////////////
* trace
*/
#define TB_TRACE_MODULE_NAME "path"
#define TB_TRACE_MODULE_DEBUG (0)
/* //////////////////////////////////////////////////////////////////////////////////////
* includes
*/
#include "path.h"
... |
#include "tmap_cigar_util.h"
#include "../sw/tmap_sw.h"
#include "samtools/bam.h"
#include <string.h>
#include <ctype.h>
#include <assert.h>
static const char ellipsis_ [] = "..";
static const char _CIGAR_OP2CHAR [] = BAM_CIGAR_STR;
static char _CIGAR_CHAR2OP [128];
static uint8_t _CIGAR_translator_init = 0;
#define ... |
#include <FreeRTOS.h>
#include <task.h>
#include <boot.h>
#if (configSUPPORT_DYNAMIC_ALLOCATION == 0)
#error This file must not be used if configSUPPORT_DYNAMIC_ALLOCATION is 0
#endif
typedef struct block block_t;
typedef struct block *block_p;
typedef struct memory *memory_t;
/* The code assumes block & memory stru... |
/*
* Author: <NAME>, <EMAIL>
* Course: CSE 1001, Section 01 Fall 2019
* Filename: memory.c
* Play a memory game through the CLI
*/
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <stdlib.h>
#define BOARD_SIZE 4
/* Function Prototypes */
void print_board(char in_board[][BOARD_SIZE]);
void fill_board(... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <stdint.h>
#include <time.h>
#include <signal.h>
#include <unistd.h>
#include <sys/time.h>
struct mm_entry {
unsigned int status;
size_t size;
struct mm_entry *next;
struct mm_entry *prev;
};
#define STATUS_ALLOCATED ... |
#include "asf_baseline.h"
#include "parse_funcs.h"
void read_srf(char *input_dir, char *inFile,
struct srf_orbit **srf_orbits, int *nOrbits)
{
FILE *fp, *fpList;
struct srf_orbit *srf_orbit;
int i, k, n, nSegments, nFrames, nTotalFrames, sequence;
char sensor[5], file_name[50], line[1024], list[1024], ... |
#include <stdio.h> // NULL, fprintf(), perror()
#include <stdlib.h> // NULL, EXIT_FAILURE, EXIT_SUCCESS
#include <string.h> //
#include <errno.h> // errno
#include <sys/types.h> // ssize_t
#include <signal.h>
#include <time.h>
#include "libtwirc.h"
#define NICK "kaulmate"
#define CHAN "#domsson"
#de... |
/*
* File: wbt_event.c
* Author: Fcten
*
* Created on 2014年9月1日, 上午11:54
*/
#include "wbt_event.h"
#include "../common/wbt_string.h"
#include "../common/wbt_heap.h"
#include "../common/wbt_log.h"
#include "../common/wbt_connection.h"
#include "../common/wbt_module.h"
#include "../common/wbt_time.h"
#include ".... |
#include <simple2d.h>
S2D_Window *window;
S2D_Image *controller;
double scale = 80;
double axis_LEFTX = 0;
double axis_LEFTY = 0;
double axis_RIGHTX = 0;
double axis_RIGHTY = 0;
double axis_TRIGGERLEFT = 0;
double axis_TRIGGERRIGHT = 0;
double axis_MAX = 0;
bool btn_A = false;
bool btn_B = false;
bool btn_X = false;... |
/*
* 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 disclaimer.
*
* 2. Redistrib... |
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#include <limits.h>
#include <pwd.h>
#include <grp.h>
#include <sched.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#i... |
/*
* utils/mountd/auth.c
*
* Authentication procedures for mountd.
*
* Copyright (C) 1995, 1996 <NAME> <<EMAIL>>
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <sys/stat.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include <unistd.h>
#include "misc.h"
#include "nfslib.h"
#i... |
/* $NetBSD: icpsp.c,v 1.2 2002/04/25 18:45:35 ad Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modification, a... |
#include "spi_lib.h"
// Sources: Multiple slaves?! https://devzone.nordicsemi.com/f/nordic-q-a/11056/nfr51822-spi-multi_slave-conrtol
// Control the SS Signal/Pin outside the functions of the SPI-library!!
#include "nrf_gpio.h"
#include "sdk_config.h"
#define SPI_PERIPHERAL_NUMBER SPI_COUNT /**< Number of ac... |
/*
This file is part of GNUnet.
Copyright (C) 2001, 2002, 2004, 2005, 2006, 2007, 2009 GNUnet e.V.
GNUnet 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, or (at your
... |
/*
* This file is part of Espruino, a JavaScript interpreter for Microcontrollers
*
* Copyright (C) 2013 <NAME> <<EMAIL>>
*
* 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/... |
/*
* Copyright (C) 2008 <NAME> <<EMAIL>>
*
* Inspired by libvolume_id by
* <NAME> <<EMAIL>>
*
* This file may be redistributed under the terms of the
* GNU Lesser General Public License.
*/
#include <ctype.h>
#include <errno.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
... |
/**
* \file
*
* \brief unit tests for ATSHA204 components mounted on a Security Xplained extension board
*
* Copyright (C) 2012-2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are per... |
/*
* OptimalCurrentVector.c
*
* Created on: 8 Apr, 2017
* Author: PhuongLe
*/
#include <stdio.h>
#include "IQmathLib.h"
#include "OptimalCurrentVector.h"
int16_t tblId[81] =
{
//speed= 0 0.125 0.25 0.375 0.5 0.625 0.75 0.875 1
0, 0, 0, 0, 0, -3446, -7318, -10083, -12157, //torque=0
0, 0, 0, ... |
/**
* merge.c
*
* Merge sort with MPI
*
* @author pikryukov
* @version 3.2
*
* e-mail: <EMAIL>
*
* Copyright (C) <NAME> 2012
* for MIPT MPI course.
*/
#include <stdio.h> /* fprintf, fscanf, fopen, fclose, rewind, fgets */
#include <stdlib.h> /* malloc, free */
#include <string.h> /* strcat */
#include ... |
void NewGame(){
u8 b;
ResetGameVars();
//setup hero vars
game.maxshots = 0;
game.level = 1;
game.totaltime = 0;
hero.totalexp = 0;
hero.incammo = 0;
hero.weapon = 0;
sprites[0].shootangle = 0;
if(data.mode==0){
hero.lives = 5;
hero.totalexp = 5000;
}
else if(data.mode==1){
hero.lives = 2;
hero.t... |
/* @source splitter application
**
** Split a sequence into (overlapping) smaller sequences
**
** @author Copyright (C) <NAME> (<EMAIL>)
** @Modified: Rewritten for more intuitive overlaps (<EMAIL>)
** @@
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of the GNU General... |
/*
No copyright is claimed in the United States under Title 17, U.S. Code.
All Other 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 limitat... |
/*
Image Steganography
Written in 2021 by <NAME> (Captain4LK) email: captain4lk [at] tutanota [dot] com
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
Y... |
#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... |
#include <stdint.h>
#include "src/parser.h"
typedef struct ssl_version_s ssl_version_t;
struct ssl_version_s {
uint8_t major;
uint8_t minor;
};
static const uint8_t kRecordTypeHandshake = 22;
static const uint8_t kHandshakeTypeClientHello = 1;
static const uint8_t kExtensionTypeServername = 0;
static void dan... |
/* Copyright (c) 2022 <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, di... |
/*******************************************************************************
NAME GCTP
VERSION PROGRAMMER DATE
------- ---------- ----
<NAME> 2-26-93 Conversion from FORTRAN to C
<NAME> 12-14-93 Added assign2ments to inunit and
outunit for State Plane purposes.
c.1.0 <... |
//
// patterns.c
// mbeep
//
// Copyright (C) 2018 <NAME>. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted
// provided that the following conditions are met:
//
// Redistributions of source code must retain the above copyright notice, this list... |
#include "global.h"
#include "gpath_store.h"
#include "util.h"
// If num_paths != 0, we ensure at least num_paths capacity
// @split_linked_lists whether you intend to have traverse linked list and
// all linked list separate
void gpath_store_alloc(GPathStore *gpstore, size_t ncols, size_t graph_c... |
/**
* @file sys.c
* @date Tue Jul 20 16:19:46 2010
*
* @brief Code to call kernel time routines and also display server statistics.
*
*
*/
#include "../ptpd.h"
int
isTimeInternalNegative(const TimeInternal * p)
{
return (p->seconds < 0) || (p->nanoseconds < 0);
}
int
snprint_T... |
/*
* The Yices SMT Solver. Copyright 2014 SRI International.
*
* This program may only be used subject to the noncommercial end user
* license agreement which is downloadable along with this program.
*/
/*
* Test of sup/inf/subtype/compatibility between types
*/
#include <stdio.h>
#include <stdlib.h>
#include ... |
/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 only,
* as published by the Free Software Foundation.
*
* This program is distributed... |
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005-2014 <NAME>
//
// 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 ... |
/*
* Copyright (C) 2016 Nutanix, Inc. All rights reserved.
*
* Author: <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
* ... |
/*
* Copyright © 2012 Intel Corporation
*
* 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, pub... |
/*
* Copyright (C) 2012 - 2015 Nominum, Inc.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation 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... |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <aos/aos.h>
#include <netmgr.h>
#include <atparser.h>
#define TAG "hdlcclient"
#define HDLC_ECHO_PRFIX "HDLC_ECHO:"
#define AT_PREFIX "AT+CIPSEND:"
#define HDLC_BUF_M... |
/*
* Copyright (c) 2017 Baidu, Inc. All Rights Reserved.
*
* 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 Apac... |
#define X86STEPPING(x) ((x) & 0x0F)
#define X86MODEL(x) (((x)>>4) & 0x0F)
#define X86FAMILY(x) (((x)>>8) & 0x0F)
enum {
VectorNMI = 2, /* non-maskable interrupt */
VectorBPT = 3, /* breakpoint */
VectorUD = 6, /* invalid opcode exception */
VectorCNA = 7, /* coprocessor not available */
VectorCSO = 9, /* cop... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2013 Altera Corporation <www.altera.com>
*/
#include <common.h>
#include <errno.h>
#include <asm/io.h>
#include <asm/arch/freeze_controller.h>
#include <asm/arch/scan_manager.h>
#include <asm/arch/system_manager.h>
#include <linux/delay.h>
/*
* Maximum polli... |
/*
* Copyright (C) 2013 <NAME> <<EMAIL>>
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use,... |
/* PressionDetector_mapping.c */
#include "PressionDetector_type.h"
#include "PressionDetector_interface.h"
#include "PressionDetector_mapping.h"
#include "SmuTypes.h"
#include "SmuMapping.h"
#include "kcg_sensors.h"
/* mapping declaration */
#define DECL_ITER(name) extern const MappingIterator iter_#... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
// This is a structure that acts as a node for both the landing and takeoff queue
typedef struct queue{
int plane_number;
struct queue *next_plane;
} Queue;
// two struct queue pointer for landing queue a... |
#define MQTT_TOPIC_RESPONSE "esp32/response"
#define MQTT_TOPIC_COMMANDS "esp32/commands"
#define MQTT_TOPIC_LISTENERS "esp32/retrieve/listeners/#"
#define MQTT_TOPIC_LISTENERS_ALL "esp32/retrieve/all_listeners"
#define MQTT_TOPIC_BUTTONS_COUNT "esp32/retrieve/buttons"
#define MQTT_TOPIC_GET_IP "esp32/retrieve/ip"
#def... |
/**
******************************************************************************
* @file ili9325.c
* @author <NAME>, SICEIEC-UESTC
* @date 2019.3.3
* @brief ILI9341 TFT LCD low-level driver based on FSMC parallel port
*
* @note You need to initialize FSMC in advance to use the... |
/*
Copyright 2016, <NAME>.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions, and the following disclaime... |
#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... |
#pragma once
#include <SDL_keyboard.h>
#include <cctype>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#ifdef USE_SDL1
#include "utils/sdl2_to_1_2_backports.h"
#endif
#include "engine/point.hpp"
namespace devilution {
#ifndef MAX_PAT... |
/* P I X - P S . C
* BRL-CAD
*
* Copyright (c) 1986-2019 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as ... |
//#include <AppleEvents.h>
#include "SoundFile.h"
#include "SoundHack.h"
#include "Hypot.h"
#include "Dialog.h"
#include "PhaseVocoder.h"
#include "Analysis.h"
#include "Misc.h"
extern long gNumberBlocks;
extern float Pi, twoPi;
/* Scale analysis and synthesis windows */
short
ScaleWindows(float analysisWindow[], ... |
/* $OpenBSD: head.c,v 1.12 2014/01/17 18:42:30 okan Exp $ */
/* $NetBSD: head.c,v 1.6 1996/12/28 07:11:03 tls 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 permi... |
/* main.c - Application main entry point */
/*
* Copyright (c) 2015-2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <logging/log.h>
#include <zephyr.h>
#include <linker/sections.h>
#include <errno.h>
#include <stdio.h>
#include <net/net_pkt.h>
#include <net/net_if.h>
#include <net/net... |
/* Copyright 2018 Espressif Systems (Shanghai) PTE LTD
*
* 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 applic... |
/*
* binary_diff.c: handling of git like binary diffs
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional informati... |
#include "vm.h"
#include "libcflat.h"
#include "vmalloc.h"
#include "alloc_page.h"
#include "smp.h"
static pteval_t pte_opt_mask;
pteval_t *install_pte(pgd_t *cr3,
int pte_level,
void *virt,
pteval_t pte,
pteval_t *pt_page)
{
int level;
pteval_t *pt = cr3;
unsigned offset;
... |
/*
* broadvoice - a library for the BroadVoice 16 and 32 codecs
*
* encoder.c -
*
* Adapted by <NAME> <<EMAIL>> from code which is
* Copyright 2000-2009 Broadcom Corporation
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesse... |
#include <arpa/inet.h>
#include <linux/if_packet.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <net/if.h>
#include <netinet/ip.h>
#include <netinet/udp.h>
#include <netinet/ether.h>
#include <linux/if_packet.h>
#define MY_DEST_MAC0 0x00
#define MY... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2019 NXP
*/
#include <common.h>
#include <asm/arch/sci/sci.h>
#include <asm/arch/sys_proto.h>
#include <dm/ofnode.h>
#include <fdt_support.h>
DECLARE_GLOBAL_DATA_PTR;
static bool check_owned_resource(sc_rsrc_t rsrc_id)
{
bool owned;
owned = sc_rm_is_resource_o... |
/* See LICENSE for Copyright etc. */
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include "usitwislave_devices.h"
#include "usitwislave.h"
enum
{
of_state_check_address,
of_state_send_data,
of_state_request_ack,
of_state_check_ack,
of_state_receive_data,
of_state_store_data_and_send_a... |
/* See LICENSE file for license and copyright information */
#include <math.h>
#include <girara/datastructures.h>
#include <girara/utils.h>
#include <girara/session.h>
#include <girara/settings.h>
#include "render.h"
#include "zathura.h"
#include "document.h"
#include "page.h"
#include "page-widget.h"
#include "utils... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/etc/pcitweak.c,v 1.23 2008/06/23 14:42:22 tsi Exp $ */
/*
* Copyright (c) 1999-2002 by The XFree86 Project, Inc.
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files ... |
/**
\file spi_Arduino_comm.c
\author <NAME>
\date 2017-12-19
\version 0.1
\brief implementation of SPI routines voa Arduino USB<->SPI bridge
implementation of routines for SPI communication using the Arduino
USB<->SPI bridge available from https://github.com/gicking/Arduino_SPI_bridge
*/
... |
// This file was generated by queries.rb
typedef struct analytics_query_str { const char *comment; size_t query_len; const char *query; } analytics_query_str;
size_t num_queries = 27;
analytics_query_str queries[28] = {
{"Display dataverses defined by Analytics service",
50,
"{\"statement\":\"SELECT * FROM Metadata.`... |
/**
* \file
*
* \brief SAM SPI Quick Start for SAMB
*
* Copyright (c) 2015-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.
... |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if the `closedir' function returns void instead of `int'. */
/* #undef CLOSEDIR_VOID */
/* Define to 1 if you have the <curses.h> header file. */
#define HAVE_CURSES_H 1
/* Define... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ObjLoader.h"
#define D_ABS( X ) ( ( X ) < 0 ? -( X ) : ( X ) )
typedef struct _dMODELPOSITIONNODE {
struct _dMODELPOSITIONNODE *next;
dVEC4 value;
} dPOSITIONNODE;
typedef struct _dMODELNORMALNODE {
struct _dMODELNORMALNODE... |
/* zzdasgri.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static logical c_false = FALSE_;
static integer c__256 = 256;
static integer c__1 = 1;
/* $Procedure ZZDASGRI ( DAS, g... |
#ifndef ISP2401
/*
* Support for Intel Camera Imaging ISP subsystem.
* Copyright (c) 2015, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
... |
/*******************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only
* intended for use with Renesas products. No other uses are authorized. This
* software is owned by Renesas Electronics Corporation and is protecte... |
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
/* Copyright (c) 2019 Mellanox Technologies. */
#include <linux/mlx5/driver.h>
#include <linux/mlx5/port.h>
#include "mlx5_core.h"
#include "lib/port_tun.h"
struct mlx5_port_tun_entropy_flags {
bool force_supported, force_enabled;
bool calc_supported, calc_enab... |
/* -*- linux-c -*- ------------------------------------------------------- *
*
* Copyright (C) 1991, 1992 <NAME>
* Copyright 2007 rPath, Inc. - All Rights Reserved
* Copyright 2009 Intel Corporation; author H. <NAME>
*
* This file is part of the Linux kernel, and is made available under
* the terms of ... |
/*
* Copyright (c) 1993 <NAME> <<EMAIL>>
* Copyright (c) 1993, 1994, 1995 <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... |
/**
* \file acpi_generic.c
* \brief
*/
/*
* Copyright (c) 2017 ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetsstrasse 6, CH-8092 Zurich. Attn: Sy... |
/*
* Server signal handling
*
* Copyright (C) 2003 <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 later vers... |
/* $OpenBSD: xlights.c,v 1.7 2015/06/24 11:58:06 mpi Exp $ */
/*
* Copyright (c) 2007 <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 copie... |
#include "builtin.h"
#include "tree-walk.h"
#include "xdiff-interface.h"
#include "blob.h"
#include "exec_cmd.h"
#include "merge-blobs.h"
static const char merge_tree_usage[] = "git merge-tree <base-tree> <branch1> <branch2>";
struct merge_list {
struct merge_list *next;
struct merge_list *link; /* other stages for... |
/*
* svn_types.c : Implementation for Subversion's data types.
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional ... |
/**
* @file main.c
* @author <NAME>
* @date 02 May 2016
* @brief Implementation file.
* @copyright Copyright © 2016 <NAME> <<EMAIL>>
* <NAME>
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as publ... |
/* This file generates the #defines needed for Fortran examples of PAPI.
Its output is usually directed to fpapi.h. See Makefile.inc for details.
*/
/* Modified to produce any of cpp, f77, or f90-style include files.
Accepts an optional command-line argument, one of -c, -f77, or -f90
(-c default, as in ... |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2012 <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) ... |
// SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2020-2021, Intel Corporation */
/* Copyright 2021, Fujitsu */
/*
* peer.c -- librpma peer-related implementations
*/
#include <errno.h>
#include <inttypes.h>
#include <stdlib.h>
#include "conn_req.h"
#include "log_internal.h"
#include "peer.h"
#ifdef TEST_MOCK... |
/*
* ----------------------------------------------------------------------------
* Low level driver vom MCP2515 CAN chip
*
* Version: 0.0.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, a... |
/*
* Mykaiser.c
*
* Code generation for function 'Mykaiser'
*
*/
/* Include files */
#include "rt_nonfinite.h"
#include "yaapt.h"
#include "Mykaiser.h"
#include "yaapt_emxutil.h"
#include "Mybesseli.h"
#include "sqrt.h"
#include "yaapt_data.h"
#include "blas.h"
#include "lapacke.h"
/* Variable Definitions */
sta... |
//
// Created by leoll2 on 10/4/20.
// Copyright (c) 2020 <NAME>. All rights reserved.
//
// Options:
// -f <func> : function ('send' or 'recv')
//
#include <arpa/inet.h>
#include <netinet/in.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <allegro5/allegro.h>
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_image.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_ttf.h>
#define DISPLAY_WIDTH 900
#define DISPLAY_HEIGHT 400
#define BACKGR... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.