text stringlengths 3.12k 18.7k |
|---|
/**
* \file
* \brief x86-64 execution and miscellany
*/
/*
* Copyright (c) 2007, 2008, 2009, 2010, 2011, 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, Haldene... |
/*
* Support for SuperH MigoR Quarter VGA LCD Panel
*
* Copyright (C) 2008 <NAME>
*
* Based on lcd_powertip.c from Kenati Technologies Pvt Ltd.
* Copyright (c) 2007 <NAME> <<EMAIL>>,
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License ... |
/**
* @file nr_xmodem.c
* @author bruce.yin (<EMAIL>)
* @brief
* @version 0.1
* @date 2020-10-31
*
* @copyright Copyright (c) 2020
*
* @par ChangeLog:
* <table>
* <tr><th>Date <th>Version <th>Author <th>Description
* <tr><td>2020-10-31 <td>1.0 <td>bruce.yin <td>Modfiy context
* </table>
... |
#pragma config(Hubs, S1, HTMotor, HTMotor, HTMotor, HTServo)
#pragma config(Sensor, S1, controllers, sensorNone)
#pragma config(Sensor, S2, light, sensorCOLORNONE)
#pragma config(Sensor, S3, irSeek, sensorHiTechnicIRSeeker1200)
#pragma config(Sensor, S4, ultrasonicSensor, sensorSO... |
/*
BLIS
An object-based framework for developing high-performance BLAS-like
libraries.
Copyright (C) 2021, Advanced Micro Devices, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
m... |
#include <mach/mach_types.h> // task_t
#include "common.h" // file_t
#include "offsets.h" // offsets
#include "slide.h" // get_kernel_slide
#include "rop.h"
addr_t get_stack_pivot(void)
{
#ifdef __LP64__
return offsets.slid.gadget_ldp_x9_add_sp_sp_0x10;
#else
THROW("32-... |
/*
* GSM_RR_Cell_Reselection_Meas
*/
#include "consts.h"
#include "log_packet.h"
#include "log_packet_helper.h"
const Fmt GsmRrCellResMeas_Fmt [] = {
{UINT, "Serving BCCH ARFCN", 2}, // 12 bits
{PLACEHOLDER, "Serving BCCH Band", 0}, // 4 bits
{UINT, "Serving PBCCH ARFCN", 2}, // 12 bits
{PLACE... |
#include <stdlib.h>
#include "../readstat.h"
#include "test_types.h"
#include "test_error.h"
#include "test_readstat.h"
int strings_equal(const char *expected, const char *received) {
if ((expected == NULL || expected[0] == '\0') &&
(received == NULL || received[0] == '\0'))
return 1;
r... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* w1_ds2805 - w1 family 0d (DS28E05) driver
*
* Copyright (c) 2016 <NAME> <EMAIL>
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/device.h>
#include <linux/types.h>
#include <linux/delay.h>
#include <linux/w1.h>
#de... |
/* Copyright (C) 2011-2016 OldTimes Software
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed ... |
// SPDX-License-Identifier: GPL-2.0
/*
* dlfilter-test-api-v0.c: test original (v0) API for perf --dlfilter shared object
* Copyright (c) 2021, Intel Corporation.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
/*
* Copy original (v0) API instead of including current API
*/
#inc... |
/* mpfr_set_d -- convert a machine double precision float to
a multiple precision floating-point number
Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
Contributed by the Arenaire and Caramel projects, INRIA.
This file is part of the GNU... |
//
// Created by Kasun on 04/04/2017.
//
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#define DEFAULT_NUMBER 10
#define MAX_WIDTH 80
#define HORIZONTAL_BAR "\u2500"
#define VERTICAL_BAR "\u2502"
#define LEFT_BOTTOM "\u2514"
#define BOX_CHAR "\u2591"
#define COLOR_GRAY "... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/keysym.h>
#define CLEANMASK(mask) (mask & ~(numlockmask|LockMask) & (ShiftMask|ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask))
#define LENGTH(X) (sizeof X / sizeof X[... |
/*
Dynamic Array
Cannot expand an empty array.
*/
#include<stdlib.h>
#include<stdbool.h>
#include<string.h>
#include "acc.lib.h"
#include "da.lib.h"
//--------------------------------------------------------------------------------
// constructors / destructors
Da *da_init(Da *dap, size_t element_size, AccChannel ... |
/* This project is licensed under the New BSD License (see LICENSE). */
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "inih/ini.h"
#ifndef VERSION
#define VERSION ""
#endif /* VERSION */
#define NO_SECTION "."
#define DEFAULT_SECTION "DEFAULT"
#define st... |
/*
* <NAME>
* SDEV-385-81, Fall Semester 2020
* Week 10 Assignment
* Date: November 8, 2020
* Version: 2020-11-7-01
*
* Linux File Utility Program
* - This assignment will help you to understand Linux operating system file
* structure and basic file interface techniques
* ○ The systems adminis... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* o... |
/****************************************************************\
* *
* ipcress : in-silico PCR experiment simulation system *
* *
* <NAME>.. mailto:<EMAIL> *
*... |
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <time.h>
#include <sys/sysmacros.h>
extern char **environ; /* Or define _GNU_SOURCE to get it from <unistd.h> */
// questa variabile si trova nel segmento dei dati inizializzati
char ... |
/*
* lws-unit-tests-smtp-client
*
* Written in 2010-2019 by <NAME> <<EMAIL>>
*
* This file is made available under the Creative Commons CC0 1.0
* Universal Public Domain Dedication.
*
* This performs unit tests for the SMTP client abstract protocol
*/
#include <libwebsockets.h>
#include <signal.h>
static in... |
#include "system.h"
#include "vdl.h"
#include "vdl-utils.h"
#include "vdl-alloc.h"
#include "vdl-log.h"
#include "vdl-list.h"
#include "vdl-reloc.h"
#include "vdl-dl.h"
#include "glibc.h"
#include "valgrind.h"
#include "gdb.h"
#include "machine.h"
#include "stage2.h"
#include "futex.h"
#include "vdl-gc.h"
#include "vdl... |
#include <time.h>
#ifndef _WIN32
#include <sys/time.h>
#else
#include <sys/timeb.h>
#include <Winsock2.h> // for timeval structure
#endif
#include <VP_Api/vp_api.h>
#include <VP_Os/vp_os_malloc.h>
#include <VP_Api/vp_api_picture.h>
#include <ardrone_tool/Academy/academy.h>
#include <config.h>
#include <ardrone_tool/... |
#include "url_parser.h"
#define _GNU_SOURCE
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "zarray.h"
struct url_parser {
// consider the URL:
// http://www.google.com:80/search?q=a
//
char *protocol; // e.g. http://
char *host; // e.g. www.google.com
... |
/*
* Copyright (C) 2017-2018 Marvell International Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
* https://spdx.org/licenses
*/
#include <stdint.h>
#include <stdio.h>
#include <timers.h>
#include <platform_def.h>
#include <debug.h>
#include <assert.h>
#include <octeontx_common.h>
#include <hw_timers.h>
#incl... |
/*****************************************************************************\
** **
** FILE: offline.graffiti.c **
** AUTHORS: Alexios **
**... |
/*
* Copyright 1999-2006 University of Chicago
*
* 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... |
/* arrayExpressToTagStorm - Convert from ArrayExpress idf.txt + sdrf.txt format to tagStorm.. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "localmem.h"
#include "fieldedTable.h"
#include "tagStorm.h"
#include "csv.h"
void usage()
/* Explain usage and exit. */
{
errAbort(... |
/*
module.c: modular code loader
copyright 1995-2011 by the mpg123 project - free software under the terms of the LGPL 2.1
see COPYING and AUTHORS files in distribution or http://mpg123.org
initially written by <NAME>
*/
#include <dirent.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
... |
/* Copyright 2004,2007,2008 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
**... |
/****************************************************************************
*
* Copyright (c) 2020 Vivante 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 ... |
/* vmix.c: VIRTUAL MEMORY MAPPING (POSIX)
*
* $Id$
* Copyright (c) 2001-2018 Ravenbrook Limited. See end of file for license.
*
* .purpose: This is the implementation of the virtual memory mapping
* interface (vm.h) for Unix-like operating systems. It was created
* by copying vmfr.c (the FreeBSD) implementatio... |
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include "mcommon.h"
void mstrncpy(char *dest, const char *src, int n) {
strncpy(dest, src, n);
dest[n - 1] = 0;
}
/*
base64 encoding / decoding library based off https://github.com/litt... |
// Copyright (c) 2015-2021, NVIDIA CORPORATION.
// SPDX-License-Identifier: Apache-2.0
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
#include <errno.h>
#include <pthread.h... |
/*
(c) 2016 Microchip Technology Inc. and its subsidiaries. You may use this
software and any derivatives exclusively with Microchip products.
THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED
WA... |
/* Copyright (c) <NAME> and contributors. All rights reserved.
Released under the MIT license. See LICENSE file in the project root for full license information. */
#define DEFAULT_LOG_CATEGORY "sequential"
#include "lesequential.h"
#include <assert.h>
#include <stdlib.h>
#include <le/lelog.h>
#include <le/leloss.... |
/*---------------------------------------------------------------------------------------------------------*/
/* */
/* Copyright(c) 2009 Nuvoton Technology Corp. All rights reserved. ... |
/*
* huffdata.c
*
* Created on: 03/12/2015
* Author: ericm
*/
#include "huffdata.h"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include "byteswap.h"
#include "error.h"
#include "decodeUtil.h"
int readBint(... |
/*
* GPAC - Multimedia Framework C SDK
*
* Authors: <NAME>
* Copyright (c) Telecom ParisTech 2000-2012
* All rights reserved
*
* This file is part of GPAC / Scene Compositor sub-project
*
* GPAC is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General... |
/* /////////////////////////////////////////////////////////////////////////
* File: src/backends/bec.syslog.c
*
* Purpose: Implementation for the UNIX SysLog back-end
*
* Created: 29th June 2005
* Updated: 26th August 2009
*
* Thanks to: <NAME> for detecting Solaris compilation defects &
... |
/*******************************************************************************************
*
* raygui - Controls test
*
* TEST CONTROLS:
* - GuiTextEditor()
*
* DEPENDENCIES:
* raylib 3.0 - Windowing/input management and drawing.
* raygui 2.7 - Immediate-mode GUI controls.
*
* COMPILATION ... |
/*
* Copyright 2012 Red Hat 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, merge, publish, d... |
/*!\file udp_rev.c
* Reverse DNS lookup
*/
/*
* Reverse IPv4/IPv6 lookup functions
*
* Copyright (c) 1997-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 ... |
/*
* 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 di... |
// LLVM for c-like language w/ fn:
//
#include "gep.h"
#include "util.h"
//--- GEP ---
// https://llvm.org/docs/GetElementPtr.html, https://llvm.org/docs/LangRef.html#getelementptr-instruction
// - doesn't access memory, only computes
// - args
// - 1st is type for use as basis for calculation
// - 2nd pointer or... |
#include "OLED.h"
#include "SM1.h"
#include "OLED_DC.h"
#include "OLED_RESET.h"
#include "WAIT1.h"
void SSD1331_draw_point(int x, int y, unsigned short hwColor) ;
void SSD1331_clear()
{
int i, j;
for(i = 0; i < OLED_WIDTH; i++)
{
for(j = 0; j < OLED_WIDTH; j++)
{
SSD1331_draw_point(i, j, 0);
}
}
}
int s... |
/**
* xrdp: A Remote Desktop Protocol server.
*
* Copyright (C) <NAME> 2021
*
* 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... |
/*
* linux/arch/parisc/kernel/sys_hpux.c
*
* implements HPUX syscalls.
*/
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/file.h>
#include <linux/smp_lock.h>
#include <linux/slab.h>
#include <asm/errno.h>
#include <asm/uaccess.h>
int hpux_execve(struct pt_regs *regs)
{
int error;
char *filename;
... |
/*
* $Id: ictrap.c,v 1.27 2005-08-28 02:32:57 vektor Exp $
*
* Copyright © 2002 <NAME>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
... |
/****************************************************************************//**
* @file mw300_driver.c
* @brief This file provides MW300 driver common functions.
* @version V1.3.0
* @date 12-Aug-2013
* @author CE Application Team
*
* @note
* Copyright (C) 2012 Marvell Technology Group Ltd. All r... |
/*
* PSP Software Development Kit - https://github.com/pspdev
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* timing.c - Shows gu time messuaring
*
* Copyright (c) 2007 McZonk
*/
#include <pspkerne... |
/**
* \file
*
* \brief Backup mode widget for SAM toolkit demo application.
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <nicklib.h>
#define MAXG 100
#define MAXW 10
#include "badpairs.h"
#include "admutils.h"
#include "regsubs.h"
#include "egsubs.h"
int loadindx (Indiv ** xindlist, in... |
/***************************************************************************
* (c)2004-2009 Broadcom Corporation
*
* This program is the proprietary software of Broadcom Corporation and/or its licensors,
* and may only be used, duplicated, modified or distributed pursuant to the terms and
* conditions of a separ... |
#include "concurrent.h"
char* analysis_writer_ring_buffer_read_tail(GV gv, LV lv, int* source_p, int* block_id_p, int* writer_state_p){
char* pointer;
ring_buffer *rb = gv->consumer_rb_p;
pthread_mutex_lock(rb->lock_ringbuffer);
while(1) {
if(gv->ana_writer_exit==1){
pthread_mutex_unlock(rb->lock_rin... |
/*
* Copyright (C) 2018 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
* www.apache.org/l... |
/******************************************************************************
*******************************************************************************
Easy GL2D
Primitives example
A simple primitives for Easy GL2D DS
Relminator (<NAME> BSN RN)
Http://Rel.Phatcode.Net
*****************************... |
#include "driver.h"
#include "profiler.h"
#include "includes/buggychl.h"
UINT8 *buggychl_scrollv,*buggychl_scrollh;
static UINT8 buggychl_sprite_lookup[0x2000];
UINT8 *buggychl_character_ram;
static bitmap_t *tmpbitmap1,*tmpbitmap2;
static int sl_bank,bg_on,sky_on,sprite_color_base,bg_scrollx;
PALETTE_INIT( bugg... |
// 0x07011108 - 0x07011120
static const Lights1 ttc_seg7_lights_07011108 = gdSPDefLights1(
0x7f, 0x7f, 0x7f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x07011120 - 0x070111A0
static const Vtx ttc_seg7_vertex_07011120[] = {
{{{ 102, 0, 102}, 0, { 1982, 960}, {0x49, 0xb7, 0x49, 0xff}}},
{{{ ... |
/**********************************************************************
** \file TestCpuFeature.c
** \brief
** \author lihaicg
** \date Sun 27 May 2018 09:58:24 AM CST
** Mail: <EMAIL>
************************************************************************/
#include <stdio.h>
#include <cpu-features.h>
/*@constant ... |
#include <limits.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdbool.h>
#include <omp.h>
#include "hs.h"
#include "hs_compile_mnrl.h"
#include "ht.h"
#include "read_input.h"
typedef struct run_ctx_t {
r_map *report_map;
hs_database_t *database;
hs_scratch_t *scratch;
char *in... |
/*
* 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... |
/* Includes */
#include "MXR6202.h"
#include "HAL_MXR6202.h"
#include "OSConfig.h"
#include "stm32f10x.h"
/**
* @defgroup MXR
* @{
*/
/** @defgroup MXR_I2C_Function
* @{
*/
/**
* @brief Initializes the I2C peripheral used to drive the MXR
* @param None
* @retval None
*/
void MXR_I2C_Init(void)
{
I2C_InitTypeDef... |
/*
* Copyright (c) 2017, Intel Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of cond... |
#include "XSbench_header.h"
// Calculates the microscopic cross section for a given nuclide & energy
void calculate_micro_xs( double p_energy, int nuc, long n_isotopes,
long n_gridpoints,
GridPoint * restrict energy_grid,
NuclideGridPoi... |
#include <stdio.h>
#include <string.h>
#include "headers.h"
struct team {
int leaguescore;
char name[15];
};
int main(){
int teamA;
int teamAscore;
int teamB;
int teamBscore;
int arraylen;
arraylen = 19;
clearscrean();
printf("\n\nWelcome to the 18 Nations league tracker, open ... |
/*
* Copyright (c) 2013, 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... |
/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef MCTP_HAVE_FILEIO
#include <unistd.h>
#include <fcntl.h>
#else
static const size_t write(int fd, void *buf, size_t len)
... |
#include <l4/proc.h>
#include <l4/sys/types.h>
#include <l4/sys/chans.h>
#include <tol/maxmin.h>
#include <l4/iframe.h>
#include <assert.h>
#include <memory.h>
#include <errno.h>
#include <printk.h>
#include <panic.h>
tcb_t procs[MAX_PID];
channel_t channels[MAX_CHID];
#define CH(chid) (&channels[chid])
#defi... |
#include <minix/drivers.h>
#include "vbe.h"
#include "video_gr.h"
static int proc_args(int argc, char *argv[]);
static unsigned long parse_ulong(char *str, int base);
static long parse_long(char *str, int base);
static void print_usage(char *argv[]);
int main(int argc, char **argv) {
char *video_mem;
... |
#include "ri_fft.h"
#include <string.h>
#include <math.h>
#include <assert.h>
/* 円周率 */
#define RI_PI 3.14159265358979323846
/* 複素数型 */
typedef struct RIFFTComplex {
float real; /* 実部 */
float imag; /* 虚部 */
} RIFFTComplex;
/* FFT 正規化は行いません
* n 系列長
* flag -1:FFT, 1:IFFT
* x フーリエ変換する系列(入出力)
* y 作業用配列(xと同一サイズ... |
/* $Id$Revision: */
/* vim:set shiftwidth=4 ts=8: */
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
... |
/*
Communication protocol for the data server:
The program is launched on the redpitaya with
./monitor-server PORT-NUMBER AUTH-TOKEN
where
- the default port number is 2222, and
- the 32-hex-characters auth-token is by default 32 times '0'.
We allow for bidirectional data transfer. The client (python program) conn... |
#define _POSIX_C_SOURCE 200809L
#include <ctype.h>
#include <err.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define MIN(X,Y) ((X) < (Y)? (X) : (Y))
typedef uint8_t u8;
//-- Options ----------------
struct offset_rang... |
/*
* Copyright (c) 2016 Nordic Semiconductor ASA
* Copyright (c) 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... |
/*
* MACM : Multi-Precision Arithmetic Coder Module
*
* A Virtual Queue Based General Arithmetic Encoder
*
* by <NAME>
*
* <EMAIL>
* <EMAIL>
*
*
* commented by <NAME> ( <EMAIL> )
*
* 6-14-96
*
* posted to comp.compression.research
*
* posted to http:/ /wwwvms.utexas.edu/~cbloom/src/macm.zip
*
... |
/* Memory Map */
#define CONFIG 0x00
#define EN_AA 0x01
#define EN_RXADDR 0x02
#define SETUP_AW 0x03
#define SETUP_RETR 0x04
#define RF_CH 0x05
#define RF_SETUP 0x06
#define STATUS 0x07
#define OBSERVE_TX 0x08
#define CD 0x09
#define RX_ADDR_P0 0x0A
#define RX_ADDR_P1 0x0B
#defi... |
/*
* 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... |
/* Bluetooth Mesh */
/*
* Copyright (c) 2018 Nordic Semiconductor ASA
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "adaptation.h"
#include "net/buf.h"
#include "adv.h"
#include "net.h"
#include "foundation.h"
#include "beacon.h"
#include "prov.h"
#include "proxy.h"
... |
#include "sc25519.h"
/*Arithmetic modulo the group order m = 2^252 +
* 27742317777372353535851937790883648493 =
* 7237005577332262213973186563042994240857116359379907606001950938285454250989
*/
static const crypto_uint32 m[32] = {0xED, 0xD3, 0xF5, 0x5C, 0x1A, 0x63, 0x12, 0x58, 0xD6, 0x9C, 0xF7,
... |
// Implements a dictionary's functionality
#include <stdbool.h>
#include <string.h>
#include <strings.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <ctype.h>
#include "dictionary.h"
// Represents a node in a hash table
typedef struct node
{
int key;
char word[LENGTH + 1];
struct ... |
#include <math.h>
#include "ex03/main.h"
//#include "gui/bt_blackangle64_16.h"
//#include "gui/bt_blackangle48_12.h"
#include "gui/bt_dustknob48_12.h"
#include "macros.h"
// demo module declarations
#define NUM_DEMOS 4
static void demoWelcome();
static void demoGraph();
static void demoScribble();
stat... |
/*
* Copyright (c) <NAME> & Gas Technologies
*
* 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 copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D... |
/*******************************************************************************
* Copyright (C) 2021 <NAME> (AKA <NAME>)
* <EMAIL> https://hideoushumpbackfreak.com/
*
* This file is subject to the terms and conditions defined in the 'LICENSE'
* file, which is part of this source code package.
******************... |
/* --COPYRIGHT--,BSD_EX
* Copyright (c) 2013, 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 c... |
#include <stdio.h>
#include "awk.h"
#include "ytab.h"
#include "ios_error.h"
static char *printname[95] = {
(char *) "FIRSTTOKEN", /* 258 */
(char *) "PROGRAM", /* 259 */
(char *) "PASTAT", /* 260 */
(char *) "PASTAT2", /* 261 */
(char *) "XBEGIN", /* 262 */
(char *) "XEND", /* 263 */
(char *) "NL", /* 264 */
... |
/**
* Licensed under Apache License v2. See LICENSE for more information.
*/
#include <stdbool.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "celix_log.h"
#include "constants.h"
#include "node_discovery.h"
#include "node_discovery_impl.h"
#include "node_description_impl.h"
#include "wirin... |
/*
* dot.c
*
* Copyright (c) 2004 <NAME>
* Copyright (c) 1996-1999 Whistle Communications, Inc.
* All rights reserved.
*
* Subject to the following obligations and disclaimer of warranty, use and
* redistribution of this software, in source or object code forms, with or
* without modifications are expressly ... |
/*
* This file is part of ABCDK.
*
* MIT License
*
*/
#include <stdio.h>
#include <assert.h>
#include <unistd.h>
#include <string.h>
#include <sys/sendfile.h>
#include "abcdk-util/general.h"
#include "abcdk-util/getargs.h"
#include "abcdk-util/clock.h"
#include "abcdk-util/thread.h"
#include "abcdk-util/signal.h... |
#include "game.h"
#include "generate.h"
//Hints Format kNoHint, kSpell, kSymbol, kShield, kNumber, kGreek, kNHintTypes
// kNoHint is currently unused, any other bit true will indicate that reqHint is true
// Set levels which are not to be chosen at random to minL = 9
RoomDescriptor_t m_roomDescriptor[kNRoomTypes] = ... |
void
tile(Monitor *m)
{
unsigned int i, n, h, mw, my, ty;
Client *c;
for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
if (n == 0)
return;
if (n > m->nmaster)
mw = m->nmaster
? m->ww * (m->rmaster ? 1.0 - m->mfact : m->mfact)
: 0;
else
mw = m->ww;
for (i = my = ty = 0, c = nex... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <libgen.h>
#include <pthread.h>
#include <mach/mach.h>
#include "kernel_memory_helpers.h"
#include "offsets.h"
uint64_t allproc = 0;
uint64_t kernproc = 0;
uint64_t launchd_proc = 0;
uint64_t amfid_proc = 0;
uint64_t our_proc = 0;
uint64_t container... |
/*
* Broadcom Common Firmware Environment (CFE)
* Architecure dependent initialization,
* File: bcm947xx_machdep.c
*
* Copyright (C) 2012, Broadcom Corporation
* All Rights Reserved.
*
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
* the contents of this file may not be disclosed to th... |
#include "schedule_window.h"
static Window *s_window;
static MenuLayer *s_menu_layer;
static StatusBarLayer *s_status_layer;
static int s_chosen_hour = 0, s_chosen_minute = 0;
static int s_chosen_type = ToggleTypeWifi;
static int s_chosen_state = ToggleStateOff;
static int s_list_position;
static bool s_invalid = fal... |
// This provides the frozen (compiled bytecode) files that are included if
// any.
#include <Python.h>
#include "nuitka/constants_blob.h"
// Blob from which modules are unstreamed.
#define stream_data constant_bin
// These modules should be loaded as bytecode. They may e.g. have to be loadable
// during "Py_Initiali... |
/*
* Copyright(C) 2012 <NAME>. All Rights Reserved.
*
* This file is part of the YARD-ICE.
*
* 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 3.0 of the License,... |
/* See LICENSE file for license details. */
#define _POSIX_C_SOURCE 200809L
#include <ctype.h>
#include <stdarg.h>
#include <netdb.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/select.h>
#include <sys/wait.h>
#include <termios.h>
#define MSG_MAX ... |
/*
* Copyright (c) 2016, Wind River Systems, Inc.
*
* 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... |
// Copyright 2019 Shift Cryptosecurity AG
//
// 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 ... |
/*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*-
*
* librsync -- dynamic caching and delta update in HTTP
* $Id: tube.c,v 1.24 2004/09/10 02:48:58 mbp Exp $
*
* Copyright (C) 2000, 2001 by <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.