text stringlengths 5.8k 28.2k |
|---|
/*!
* @file python_commands.c
* @brief Definitions for the python command bindings.
*/
#include "Python.h"
#include "marshal.h"
#include "python_main.h"
#include "python_commands.h"
#include "python_meterpreter_binding.h"
#include "Resource Files/python_core.rh"
#include "common_metapi.h"
///! @brief Struct that co... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: RCSL 1.0/RPSL 1.0
*
* Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved.
*
* The contents of this file, and the files included with this file, are
* subject to the current version of the RealNetworks Public Source License
* Version ... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/vga256/drivers/ark/ark_blt16.c,v 3.4 1996/10/13 11:20:22 dawes Exp $ */
/*
Copyright (c) 1989 X Consortium
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 Soft... |
//
// gravity_hash.c
// gravity
//
// Created by <NAME> on 23/04/15.
// Copyright (c) 2015 CreoLabs. All rights reserved.
//
#include <inttypes.h>
#include "gravity_hash.h"
#include "gravity_macros.h"
#if GRAVITYHASH_ENABLE_STATS
#define INC_COLLISION(tbl) ++tbl->ncollision
#define INC_RESIZE(tbl) ++... |
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2006-2010 Nokia Corporation
* Copyright (C) 2004-2010 <NAME> <<EMAIL>>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Softwa... |
/*
* This source code is public domain.
*
* Authors: <NAME> <<EMAIL>>
*/
///////////////////////////////////////////////////////
// DMF DELUSION DIGITAL MUSIC FILEFORMAT (X-Tracker) //
///////////////////////////////////////////////////////
#include "libmodplug.h"
#pragma pack(1)
typedef struct DMFHEADER
{
DWORD... |
/*
* Copyright (C) 2014 <NAME>
* HSR Hochschule fuer Technik Rapperswil
*
* Copyright (c) 2008 <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 ... |
/** \file \internal
Basic diskless API tests.
Copyright 2011, UCAR/Unidata. See COPYRIGHT file for copying and
redistribution conditions.
*/
#undef DDBG
#include <config.h>
#include <nc_tests.h>
#include "err_macros.h"
#include <stdio.h>
#include <stdlib.h>
#include <netcdf.h>
/*
netcdf tst_diskless {
variables:
... |
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
*
* 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 requi... |
/******************************************************************
iLBC Speech Coder ANSI-C Source Code
enhancer.c
Copyright (C) The Internet Society (2004).
All Rights Reserved.
******************************************************************/
#include <math.h>
#include... |
/*
* 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... |
/*
* Magic Lantern Video (MLV) demuxer
* Copyright (c) 2014 <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 Licens... |
#include <all.h>
#define SLIDER_START -0.2
#define SLIDER_LEN 1.4
static uint8_t set_type = 0;
uint8_t tracker_cmd(char *name, float x, float y, int8_t button, float data, uint8_t action) {
if (strcmp(name + 1, "PAN_TRIM") == 0) {
TrackerData[TRACKER_PAN_TRIM].value = tracker_pan_dir;
} else if (strcmp(name + ... |
/*
Name: <NAME>
ID: 1001529110
*/
#define _GNU_SOURCE
#include <stdint.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/wait.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
#include <readline/history.h>
#include <err... |
/*
* Copyright © 2018 alibaba. All rights reserved.
*/
#include <hal.h>
#include <stdio.h>
#include <string.h>
#include <be_osal.h>
#include <be_jse_module.h>
#include <be_osal.h>
#include <hal.h>
#include "be_jse_api.h"
#include "module_wifi.h"
#define JS_WIFI_TAG "WIFI"
#define TEST_TRACK_PRINT pri... |
/* Copyright 2018 Canaan Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
/*
* Copyright (c) 2013-2019, <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 ... |
#include "server.h"
//#include "html.h"
#if HAVE_OPENSSL
#include <openssl/ssl.h>
#endif
#if ! COMPILED_IN_RESOURCES && ! defined(LWS_WITH_ZIP_FOPS)
#error Must configure --enable-compiled-in-resources since zip support missing in libwebsockets
#endif
#if LWS_LIBRARY_VERSION_NUMBER < (3*1000000+0*1000+0)
// Copied a... |
#include "skynet.h"
#include "atomic.h"
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <pthread.h>
#if defined(__APPLE__)
#include <mach/task.h>
#include <mach/mach.h>
#endif
#define NANOSEC 10000000... |
/* Copyright (c) 2009 Atmel 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:
* Redistributions of source code must retain the above copyright
notice, this list of cond... |
/*
bttv-i2c.c -- all the i2c code is here
bttv - Bt848 frame grabber driver
Copyright (C) 1996,97,98 <NAME> (<EMAIL>)
& <NAME> (<EMAIL>)
(c) 1999-2003 <NAME> <<EMAIL>>
(c) 2005 <NAME> <<EMAIL>>
- Multituner support and i2c address binding
This program is free software; you can redi... |
/*
* Builtin "git replace"
*
* Copyright (c) 2008 <NAME> <<EMAIL>>
*
* Based on builtin/tag.c by <NAME> <<EMAIL>>
* and <NAME> <<EMAIL>> that was itself based on
* git-tag.sh and mktag.c by <NAME>.
*/
#include "cache.h"
#include "config.h"
#include "builtin.h"
#include "refs.h"
#include "parse-options.h"
#incl... |
/* -*- mode: C; c-basic-offset: 3; -*- */
/*--------------------------------------------------------------------*/
/*--- Launching valgrind m_launcher.c ---*/
/*--------------------------------------------------------------------*/
/*
This file is part of Valgrind, a dynamic binary ins... |
/*
Copyright (c) 2005-2006, 2008-2009, 2013 Genome Research Ltd.
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 notice,
this lis... |
/* Minimal port of neslib for chase game */
#define NAMETABLE_A P3_TOP_LEFT_NAMETABLE
#define NAMETABLE_B P3_TOP_RIGHT_NAMETABLE
#define NAMETABLE_C P3_BOTTOM_LEFT_NAMETABLE
#define NAMETABLE_D P3_BOTTOM_RIGHT_NAMETABLE
#define TRUE 1
#define FALSE 0
#define NT_UPD_HORZ 0x40
#define NT_UPD_VERT 0x80
#defi... |
/*
* BK Id: SCCS/s.process.c 1.34 11/23/01 16:38:29 paulus
*/
/*
* linux/arch/ppc/kernel/process.c
*
* Derived from "arch/i386/kernel/process.c"
* Copyright (C) 1995 <NAME>
*
* Updated and modified by <NAME> (<EMAIL>) and
* <NAME> (<EMAIL>)
*
* PowerPC version
* Copyright (C) 1995-1996 <NAME> (... |
#include "../include/acconfig.h"
#include "include/int_types.h"
#include "common/crc32c_aarch64.h"
#include "arch/arm.h"
#ifndef HAVE_ARMV8_CRC_CRYPTO_INTRINSICS
/* Request crc extension capabilities from the assembler */
asm(".arch_extension crc");
#ifdef HAVE_ARMV8_CRYPTO
/* Request crypto extension capabilities fr... |
#include "xz_decompress.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define XZ_BASE_SIZE 1846
#define XZ_LIT_SIZE 768
#define kNumTopBits 24
#define kTopValue ((uint32_t)1 << kNumTopBits)
#define kNumBitModelTotalBits 11
#define kBitModelTotal ... |
/**********************************************************
* 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... |
/* Copyright (c) 2007 <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, distr... |
/*
* Copyright © 2014-2017 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... |
/*
* Copyright (C) 2009, 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
*
* 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... |
#include "sdl_udon_private.h"
double_t easing_none(double_t nowTime, double_t initNum, double_t changeNum, double_t duration) {
return initNum + nowTime / duration * changeNum;
}
double_t easing_in_quad(double_t nowTime, double_t initNum, double_t changeNum, double_t duration) {
double_t nowTimeRate = nowTim... |
/*
* Copyright 2014-2016, Intel Corporation
*
* 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 ... |
/*
* aikquote.c
*
* Produce a PCR quote using an AIK.
*
* PCRs are specified on command line. Nonce is fixed at 0 for now.
*
* The format of the quote file output is as follows:
* 2 bytes of PCR bitmask length (big-endian)
* PCR bitmask (LSB of 1st byte is PCR0, MSB is PCR7; LSB of 2nd byte is PCR8, e... |
// NMAKE.H -- main header file
//
// Copyright (c) 1988-1990, Microsoft Corporation. All rights reserved.
//
// Purpose:
// This file is the main header file for NMAKE and contains global typedef and
// macros. Global constants are also defined here. Global data is in global.h
//
// Revision History:
// ... |
/*
* 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... |
/*
* Copyright (c) 2015, Xerox Corporation (Xerox)and Palo Alto Research Center (PARC)
* 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 t... |
/*
* Copyright (C) 2009-2011 by <NAME> (<EMAIL>)
*
* Released under the MIT license, see LICENSE.txt
*/
#include <assert.h>
#include "cactus.h"
#include "sonLib.h"
#include "recursiveThreadBuilder.h"
#include "blockMLString.h"
Cap *getCapForReferenceEvent(End *end, Name referenceEventName) {
/*
* Get the... |
/*
* isph3a_af.c
*
* TI OMAP3 ISP - H3A AF module
*
* Copyright (C) 2010 Nokia Corporation
* Copyright (C) 2009 Texas Instruments, Inc.
*
* Contacts: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the term... |
/*
* General Purpose functions for the global management of the
* Communication Processor Module.
* Copyright (c) 1997 <NAME> (<EMAIL>)
*
* In addition to the individual control of the communication
* channels, there are a few functions that globally affect the
* communication processor.
*
* Buffer descriptors... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Driver for MAX20730, MAX20734, and MAX20743 Integrated, Step-Down
* Switching Regulators
*
* Copyright 2019 Google LLC.
*/
#include <linux/bits.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/modul... |
/* systemcalls.c
*
*/
#include "systemcalls.h"
uint8_t process_status[6] = {0, };
/*jump table that holds file operations*/
fops_t std_in_functions = {none, none, terminal_read, none};
fops_t std_out_functions = {none, none, none, terminal_write};
fops_t dir_functions = {directory_close, directory_open, directo... |
/*
* Sigv4 support for Secure Streams
*
* libwebsockets - small server side websockets and web server implementation
*
* Copyright (C) 2020 <NAME> <<EMAIL>>
* <EMAIL>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentat... |
/* Simulation code for the CR16 processor.
Copyright (C) 2008-2020 Free Software Foundation, Inc.
Contributed by <NAME> <<EMAIL>>
This file is part of GDB, the GNU debugger.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as publ... |
#pragma once
// NOTE: this file has been generated with "va_args_gen.py 30", do not edit - use the generator instead
// Used merely for working around an MSVC++ bug:
// http://stackoverflow.com/questions/5134523/msvc-doesnt-expand-va-args-correctly
// Triggers another level of macro expansion, use whenever passing __... |
////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2016 <NAME>. //
// ... |
#ifdef __linux__
#define _GNU_SOURCE 1
#endif
#include "libcpucaps.h"
#include <stdint.h>
#include <stdio.h>
#include <string.h> /* memcpy, memset, memcmp */
#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__) || defined(__ICC) || defined(__INTEL_COMPILER)
#include <cpuid.h>
#endif
#ifdef __linux__
... |
/* $OpenBSD: http_log.c,v 1.19 2008/05/14 09:25:38 mbalmer Exp $ */
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binar... |
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "direntry.h"
#include "alloc.h"
#include "stralloc.h"
#include "buffer.h"
#include "strerr.h"
#include "error.h"
#include "open.h"
#include "lock.h"
#include "scan.h"
#include "str.h"
#include "byte.h"
#include "seek.h"
#include "timestamp.h"
#in... |
/* Kelompok : UAS
Nama file : main.c
Deskripsi : Program utama Engi's Kitchen Expansion */
#include "gameConstant.h"
#include "std.h"
#include "ADT.h"
/* tampilan main menu */
ArrKata MainMenu(){
/* KAMUS LOKAL */
ArrKata hasil;
/* ALGORITMA */
AK_CreateEmpty(&hasil);
AK_AddAsLastEl(&hasil,K_MakeKata... |
/*
* Copyright (c) 2016 Igel Co., Ltd
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of condit... |
/*
* Tencent is pleased to support the open source community by making IoT Hub available.
* Copyright (C) 2018-2020 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain a cop... |
#include "xdraw.h"
#include "x.h"
DC dc;
/*
* Absolute coordinates.
*/
void xclear(int x1, int y1, int x2, int y2) {
XftDrawRect(xw.draw, &dc.col[IS_SET(MODE_REVERSE) ? defaultfg : defaultbg],
x1, y1, x2 - x1, y2 - y1);
}
void xdrawline(Line line, int x1, int y1, int x2) {
int i, x, ox, numspecs;
Gl... |
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <<EMAIL>> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a be... |
/*
*
* Copyright 2015, 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... |
#include <stdio.h>
#include <string.h>
#include "faerg_ui.h"
#include "faerg_common.h"
#include "faerg_chars_gfx.h"
static unsigned int ui_palette[16] = {
0x00000000, /* 0 transparent */
0x000000FF, /* 1 black */
0x121212FF, /* 2 dark gray */
0x7F7F7FFF, /* 3 medium gray */
0xAFAFAFFF, /* 4 light g... |
/*Program to read in a list of orid pairs and find the matching phases to be
cross-correlated for each event pair and then compute the cross-correlation.
It assumes "event_pairs" has been run. That preprocessor makes a list of
origin pairs and their respective julian dates, in freeform, thus
orid1 orid2 jdate... |
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "loli.h"
#include "loli_parser.h"
#include "loli_symtab.h"
#include "loli_utf8.h"
#include "loli_value_structs.h"
#include "loli_value_raw.h"
#include "loli_value_flags.h"
#include "loli_alloc.h"
... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#ifdef __APPLE__
#include <OpenCL/opencl.h>
#include <unistd.h>
#else
#include <CL/cl.h>
#endif
#include "err_code.h"
#include "device_picker.h"
#include "utilsopencl.h"
#define MAX_ITERS 100000
#define TEST_CASE 3
#define X_DIM ... |
// Copyright 2019 <NAME>. All rights reserved.
// SPDX-License-Identifier: BSD-2-Clause
#include "avif/internal.h"
#include <string.h>
#define MAX_ASSOCIATIONS 16
struct ipmaArray
{
uint8_t associations[MAX_ASSOCIATIONS];
uint8_t count;
};
static void ipmaPush(struct ipmaArray * ipma, uint8_t assoc)
{
ip... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "StaticTrie.h"
#include "Queue.h"
#include "BloomFilter.h"
#include "StaticLinearHash.h"
#include "AssistingFunctions.h"
/*
Project team:
1) <NAME> 1115201400193
2) <NAME> 1115201400069
3) <NAME> 1115201400173
*/
/* Every Boo... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"
#include "../port/netif.h"
enum {
Ntypes= 9, /* max number of ethernet packet types */
Maxrb= 128, /* max buffers in a ring */
};
#define RSUCC(x) (((x)+1)%l.nrrb)
#define TSUCC(x) (((x)+1)%l.ntrb)... |
/*
* util/data/packed_rrset.c - data storage for a set of resource records.
*
* Copyright (c) 2007, NLnet Labs. All rights reserved.
*
* This software is open source.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* a... |
//
// Display.c
// nanoVGTest3
//
// Created by <NAME> on 27/04/2017.
// Copyright © 2017 Unlimited Development. All rights reserved.
//
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h> /* strerror() */
#include <errno.h> /* errno */
#include <unistd.h> ... |
/****************************************************************************
* Project : IoT enabled DEVICE MONITORING APPLICATION
* Name of the file : mini_proj_1.c
* Brief Description of file : reads real time calendar (date & time) over i2c interface.
* Name of Author : <NAME>
... |
/*
* Copyright (C) 2015 The Regents of the University of California.
*
* 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... |
/*
* $Id: math_pow.c,v 1.11 2021-01-31 12:04:24 clib2devs Exp $
*/
#ifndef _MATH_HEADERS_H
#include "math_headers.h"
#endif /* _MATH_HEADERS_H */
static const double
bp[] = {
1.0,
1.5,
},
dp_h[] = {
0.0,
5.84962487220764160156e-01,
}, /* 0x3FE2B803, 0x4... |
#include "unes.h"
#define PPU_FRAME_TICKS (341)
// cpu.c
extern bool cpu_nmi;
// ppu.c globals
nt_mirroring_mode_t ppu_ntmirroring_mode;
const void* ppu_pattern_base_addr;
uint8_t* ppu_pattern[2]; // lower and upper tables
bool ppu_need_screen_update;
uint8_t ppu_oam[0x100];
// ppu.c
static uint8_t ppuopenbus;
st... |
/* this is a lattice boltzmann method code to solve a 2D lid driven cavity problem
D2Q9 with multi-relaxation time and BGK model
author: Btli
*/
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define NX 200
#define NY 200
const int SRT = 1, MRT = 2;
const int model = 2;
const double pi = 3.14159265358... |
/*
* MikroSDK - MikroE Software Development Kit
* Copyright© 2020 MikroElektronika d.o.o.
*
* 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 ... |
/**
Copyright (c) 2017 <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, publish, distribut... |
// file for debugging utilities, unit tests
// and performance test (PERFT)
#include <stdio.h>
#include "board.h"
#include "moves.h"
#include "move_generation.h"
#include "evaluation.h"
#include "search.h"
const char pieceToStringArr[13][8] = {
"wPawn",
"bPawn",
"wKnight",
"bKnight",
"wBishop",
... |
#include <asf_terrcorr.h>
#include <stdio.h>
#include <assert.h>
#include <gsl/gsl_spline.h>
#include <asf_raster.h>
static float *
read_dem(meta_parameters *meta_dem, const char *demImg)
{
int ns = meta_dem->general->sample_count;
int nl = meta_dem->general->line_count;
float *demData = MALLOC(sizeof(float)*ns*... |
/*
* [ECE XX37] - Embedded Systems
* Spring 2017
*
* Team 6
* Authors: <NAME>, <NAME>, <NAME>
*
* Milestone 10: Rewriting of main in RTOS
*
*/
//----------------------------------------
// BIOS header files
//----------------------------------------
#include <xdc/std.h> //mandatory - have to include f... |
#include <time.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "../lib/rbltree.h"
// bold, Red, Green, Yellow, Blue, End
#define Tb "\033[1m"
#define TR "\033[31m"
#define TG "\033[32m"
#define TY "\033[33m"
#define TB "\033[34m"
#define TE "\033[0m"
#defin... |
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <pthread.h>
/* cfg register map
* 0-3 control
* 4-7 ... |
/* $NetBSD: race.c,v 1.4 2014/12/10 04:37:55 christos Exp $ */
#ifndef lint
static char *rcsid = "Id: race.c,v 1.1 2003/06/04 00:26:07 marka Exp ";
#endif
/*
* Copyright (c) 2000,2001,2002 Japan Network Information Center.
* All rights reserved.
*
* By using this file, you agree to the terms and conditions set ... |
#include <assert.h>
#include <getopt.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "firmware.h"
#include "serial.h"
static const char *DEFAULT_DEV_NAME = "/dev/ttyUSB0";
static const int DEFAULT_BAUD = 115200;
st... |
#include <stdio.h>
#include <stdlib.h>
#include "btree.h"
void traverse(btree T)
{
int i;
for(i=0;i<T->numkeys;i++) //n keys and n children. so first through n children
{
if(T->leaf==false)
traverse(T->child[i]); //if not leaf then traversing child
printf("%d ",T->keys[i]);
}
if(T->leaf==false) //pr... |
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME> (<EMAIL>)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
////////////////////////////////////////////////////////////////////////
// COMP2521 20T2 ... the Fury of Dracula
// hunter.c: your "Fury of Dracula" hunter AI.
//
// 2014-07-01 v1.0 Team Dracula <<EMAIL>>
// 2017-12-01 v1.1 Team Dracula <<EMAIL>>
// 2018-12-31 v2.0 Team Dracula <<EMAIL>>
// 2020-07-10 v3.0 Team Dracul... |
/* ----------------------------------------------------------------<Prolog>-
Name: sflmail.c
Title: SMTP mailer functions
Package: standard function library (sfl)
Written: 1997/06/18 <NAME> <<EMAIL>>
Revised: 2000/01/19 iMatix SFL project team <<EMAIL>>
Synopsis: Funct... |
/********************************************************
* *
* Licensed under the Academic Free License version 3.0 *
* *
********************************************************/
#include <stdlib.h>
#include... |
/*
* Modified in 2018 by <NAME> "@val314159" <<EMAIL>>
*/
/*
*
* RIPEMD160.c : RIPEMD-160 implementation
*
* Written in 2008 by <NAME> <<EMAIL>>
*
* ===================================================================
* The contents of this file are dedicated to the public domain. To
* the extent that dedica... |
/*
Program to display POSIX and X/Open version info
AUP2, Sec. 1.5 (not in book)
Not written by <NAME>.
The Example Files are provided "as is," without any warranty;
without even the implied warranty of merchantability or fitness
for a particular purpose. The author and his publisher are not
responsible for any... |
/*Created by <NAME>*/
// Inlcude C library
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <error.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
// Include DevIL library
#include "IL/il.h"
#include "IL/ilu.h"
#include "IL/ilut.h"
// Include OpenCL Library
#include "CL/cl.h"
#include... |
/* ckfrot.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 integer c__2 = 2;
static integer c__6 = 6;
/* $Procedure CKFROT ( CK frame, find position rotation ) */
/* Subrou... |
/*
* hostapd / main()
* Copyright (c) 2002-2011, <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Alternatively, this software may be distributed under t... |
#include <string.h>
#include <ovr53.h>
#include <ovr54.h>
#include <ovr55.h>
/* defines, enums ------------------------------------------------------------- */
#define AllocBuf 0xBB00
#define OVR_DO_MISC 41
#define OVR_DO_MISC_TO 50
#define OVR_DO_PARSE_ACTION_EX1 53
#define OVR_DO_PARSE_ACTION_EX2 5... |
/***************************************************************************
ks0108b.c
Driver support file for the serial graphical LCD backpack project. This file
adds support for ks0108b-flavored graphical LCDs, providing functions to
initialize and interface with the controller.
02 May 2013 - <NAME>, SparkFun El... |
/* $NetBSD: arcvideo.c,v 1.2 2002/03/24 23:37:45 bjh21 Exp $ */
/*-
* Copyright (c) 1998, 2000 <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 m... |
/** @file
@brief BME280 温湿度・気圧センサ
@date 2018.01.22
@authoer <NAME>
*/
#include "device.h"
#include "str.h"
#include "device/i2c_ioctl.h"
#include "device/envsnsr_ioctl.h"
//#define DEBUGKBITS 0x01
#include "dkprintf.h"
static struct st_device *i2c_dev;
static char dev_name[MAX_DEVNAMELRN];
typedef int... |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - <NAME>
* Copyright (C) 2011-2017 - <NAME>
*
* RetroArch 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 Found-
* ation, either version 3 of the... |
/*
* Copyright (c) 2018 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... |
/**
* Proof of concept offloaded memcopy using AXI Direct Memory Access v7.1
*/
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <termios.h>
#include <sys/mman.h>
#define DMA_BASE_ADDRESS 0x40400000
#define MM2S_CONTROL_REGISTER 0x00
#define MM2S_STATUS_REGISTER 0x04
#define MM2S_S... |
#include <glob.h>
#include <libgen.h>
#include <limits.h>
#include <regex.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "INCL/opencl.h"
#include <inaccel/runtime.h>
struct _cl_buffer {
void *ptr;
size_t size;
cl_command_queue command_queue;
cl_mem mem;
};
struct _cl_compute_unit {
cl_co... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "READ_WRITE.h"//Inclusão do cabeçalho do Tipo Abstrato de Dados
char *RetornaValorReg(char *registrador){//Retorna qual o valor do registrador passado como parâmetro
if(registrador[1] == 's'){//Verifica se o registrador é do tipo 's'
if(r... |
// Mutual exclusion spin locks.
#include "types.h"
#include "defs.h"
#include "param.h"
#include "x86.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
#include "spinlock.h"
void
initlock(struct spinlock *lk, char *name)
{
lk->name = name;
lk->locked = 0;
lk->cpu = 0;
}
// Acquire the lock.
// Loo... |
#pragma ide diagnostic ignored "hicpp-signed-bitwise"
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include "dissassembler.h"
#include "fake6502.h"
#define STR_SIZE 32
typedef struct {
char const * address; // String representation of the address
size_t length; // Number of bytes require to the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.