text stringlengths 3.12k 18.7k |
|---|
#include <stdint.h>
#include <string.h>
#include <hca/decryptor.h>
#include <hca/error.h>
static const uint8_t table_default[] = {
0x00, 0x0b, 0x9a, 0xdd, 0x44, 0x7f, 0x7e, 0x71, 0xc8, 0x33, 0xa2, 0x45, 0x8c, 0x27, 0x06, 0x59,
0x90, 0x5b, 0xaa, 0xad, 0xd4, 0xcf, 0x8e, 0x41, 0x58, 0x83, 0xb2, 0x15, 0x1c, 0x77, ... |
#include "alphabet.h"
#include "linked-list.h"
#include "parser-message.h"
#include "xlate-in.h"
struct xlate_reader {
XLATE_T translate;
LINKLST_T *messages;
bool had_error;
bool had_warning;
bool done;
};
/*
* add_msg
* Record an error message for reporting to the calling program
*/
static void add_ms... |
#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... |
/*
* (GBONDS) GNOME based Savings Bond Inventory Program
*
* doc-sbw.c: gbonds sbw import module
*
* Copyright (C) 2001-2003 <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 Softw... |
/**
* Copyright 2013-2014 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
/*
* Interface includes:
* void plescroll(Panel *p, int top);
* move the given character position onto the top line
* void plegetsel(Panel *p, int *sel0, int *sel1);
* read the selection back
* int plelen(Panel *p);
* read the length of the text back
* Rune *pleget(Panel *p);
* get a pointer to the text
*... |
// This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include <commands.h>
#include <libc.h>
#include <memoryTest.h>
#include <phylo.h>
#include <priorityTest.h>
#include <processTest.h>
#include <semaphoreTest.h>
#include ... |
#include <stdio.h>
#include <stdlib.h>
#include <propeller.h>
#include "fds.h"
#include "encoder.h"
#include "ws2812.h"
#include "eeprom.h"
#define RGB_LED_PIN 0
#define LCD_RX_PIN 8 // not really needed but fds requires an rx pin
#define LCD_TX_PIN 9
#define LCD_BAUD_RATE 19200
#define ... |
/* $OpenBSD: if_le_vsbus.c,v 1.12 2010/09/20 06:33:48 matthew Exp $ */
/* $NetBSD: if_le_vsbus.c,v 1.10 2000/06/29 07:14:18 mrg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
*
* Redist... |
/*
* Jim - Sqlite bindings
*
* Copyright 2005 <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 ... |
// startrail.c, star trail in terminal
// Written by <NAME> in 2015
//
// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, com... |
#include "archiver.h"
#include "decompressor.h"
#include "util.h"
#include "copy_file_data.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
// Convenience enum type to express tool's mode of operation
typedef enum {
MODE_normal,
MODE_stream,
MODE_debug
} ToolMode;
// Convenience enum type to... |
#include <hre/config.h>
#include <dm/dm.h>
#include <hre/user.h>
#include <ltsmin-lib/etf-util.h>
#include <pins-lib/pins-util.h>
#include <pins-lib/modules/etf-pins.h>
#include <hre/stringindex.h>
#include <util-lib/tables.h>
static void etf_popt(poptContext con,
enum poptCallbackReason reason,
... |
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
/* from arch/x86/include/asm/msr-index.h */
#define MSR_AMD64_IBSFETCHCTL 0xc0011030
#define MSR_AMD64_IBSFETCHLINAD 0xc0011031
#define MSR_AMD64_IBSFETCHPHYSAD 0xc0011032
#define MSR_AMD64_IBSFETCH_REG_COUNT 3
#define MSR_AMD64_IBSF... |
/* This file is part of GNU cflow
Copyright (C) 1997-2019 <NAME>
GNU cflow is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
... |
/*
* Copyright (C) 2009-2011 by <NAME> (<EMAIL>)
*
* Released under the MIT license, see LICENSE.txt
*/
#include "flowersShared.h"
#include "randomSequences.h"
#include "poaBarAligner.h"
#include "stCaf.h"
#include <stdio.h>
#include <ctype.h>
/**
* Validate MSA. Lengths is an array that is populated with the le... |
/*
* CRC.c
*
* Created on: 04.12.2017
* Author: LH
*
* This is a generic implementation for a CRC8 generator supporting
* both compile-time (1) and run-time initialized Lookup tables for efficient CRC8 calculation.
* You can store multiple tables for different polynomials and (non-)reflected CRCs.
* ... |
/* $OpenBSD: citrus_utf8.c,v 1.4 2011/04/21 00:16:06 yasuoka Exp $ */
/*-
* Copyright (c) 2002-2004 <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 ... |
#pragma ident "$Id: version.c,v 1.28 2018/01/18 23:37:49 dechavez Exp $"
/*======================================================================
*
* library version management
*
*====================================================================*/
#include "mseed.h"
static VERSION version = {2, 9, 1};
/* mseed... |
#include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <netdb.h>
#include <string.h>
#include <unistd.h>
#include "httplink.h"
// TODO: Make work with function handlers
//
// Difference between terminology
// - hostname: eg. google.com (could also be 127.0.0.1)
// - addr: eg. 12... |
/*
**************************************************************************
** STMicroelectronics **
**************************************************************************
** <EMAIL> **
************************************************************... |
/* Extended Module Player
* Copyright (C) 1996-2010 <NAME> and <NAME>
*
* This file is part of the Extended Module Player and is distributed
* under the terms of the GNU General Public License. See doc/COPYING
* for more information.
*/
/* Based on the format description written by <NAME>.
* Additional... |
/*
* Copyright © 2009 <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... |
/*
* test qp-trie.c
*
* Written by <NAME> <<EMAIL>>
* You may do anything with this. It has no warranty.
* <http://creativecommons.org/publicdomain/zero/1.0/>
*/
#include "config.h"
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "tpkg/cutest/cutest.h"
#include "region-a... |
#include <sys/epoll.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <sys/signalfd.h>
#include <signal.h>
#include <string.h>
#include <time.h>
#include <assert.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#in... |
/* Homekit - AWS-Iot Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdi... |
#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 <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <shmem.h>
// #include "debug.h"
#include "tc.h"
#include "termination.h"
// Comment this out to use blocking sends when passing the token down
#define TD_NONBLOCKING
/** Static function prototypes **/
static void token_reset(td_token_t *t);
static... |
// Author: <NAME> (<EMAIL>)
//
// Copyright 2006 <NAME>
// All Rights Reserved.
//
// See the README for this package for details about modifying or
// distributing this software.
#define ABNORMAL_RETURN_CODE 1
#define MAX_STRING_LENGTH 65535
#include <stdio.h>
#include <string.h>
#include <assert.h>
... |
/*
*radius_report.c
*
* Created on: May 7, 2018
* by: <NAME>
*/
#include <arpa/inet.h>
#include "../dpi_tool.h"
#include "../dpi.h"
#include <tcpip/mmt_tcpip.h>
#include "radius_report.h"
#include "../../../lib/limit.h"
#include "../../../lib/malloc_ext.h"
#define MMT_RADIUS_REPORT_ALL 0
struct radius_rep... |
/*
Author: <NAME>
Usage of the works is permitted provided that this instrument is
retained with the works, so that any entity that uses the works is
notified of this instrument.
DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.
*/
#include "my_nspapi.h"
#include "my_wsipx.h"
#include <windows.h>
#include <assert.h>
#incl... |
/**
* @file gl-threads.c
* @brief Glue based doubly linked-list
* @details
* In traditional a doubly linked-list each node will have a left and right
* pointer and a pointer to the data, so the structure of the node will contain
* 3 data members(next, prev, data). In Glue based doubly linked-list there will
* on... |
/*
* Timer_Counter_header.h
* This is a timer-counter header file having the following capabilities :
1.)Generating square waves with given duty cycle and time period using any three modes : normal , ctc , fast-pwm
2.)Reading the frequency of input pulse applied at a given pulse
* Created: 10-05-2018 15... |
/**HEADER*******************************************************************************
*
* Copyright (c) 2011 Freescale Semiconductor;
* All Rights Reserved
*
****************************************************************************************
*
* THIS SOFTWARE IS PROVIDED BY FREESCALE "AS... |
#pragma once
#ifndef WINDOWMODE
#define CUI 1
#define WINDOWMODE CUI
#endif // WINDOWMODE
#include "memoryleak.h"
#include "string.h"
#include "stdarg.h"
typedef struct Strings {
int sizes;
char *strings;
char *(*Get)(struct Strings *self);
int (*GetSizes)(struct Strings *self);
void (*Set)(struct ... |
/*
* id - POSIX.2 user identity
*
* (INCOMPLETE -- supplementary groups for other users not yet done)
*
* usage: id [-Ggu] [-nr] [user]
*
* The default output format looks something like:
* uid=xxx(chet) gid=xx groups=aa(aname), bb(bname), cc(cname)
*/
/*
Copyright (C) 1999-2009 Free Software Foundation, I... |
/** \ingroup rpmdep
* \file lib/rpmal.c
*/
#include "system.h"
#include <rpmio.h>
#include <rpmiotypes.h> /* XXX fnpyKey */
#include <rpmbf.h>
#include <rpmtag.h>
#include <rpmtypes.h>
#define _RPMDS_INTERNAL
#include <rpmds.h>
#include <rpmal.h>
#include "debug.h"
typedef /*@abstract@*/ struct availablePackag... |
/**
* \file player-quest.c
* \brief All quest-related code
*
* Copyright (c) 2013 Angband developers
*
* This work is free software; you can redistribute it and/or modify it
* under the terms of either:
*
* a) the GNU General Public License as published by the Free Software
* Foundation, version 2, or
*
... |
// Copyright <NAME> 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
//
#include <stdalign.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include ... |
#include "tokenizer.h"
#include "ds/list.h"
#include "global.h"
#include "mem.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static Token* token(TokenType type, char* literal, int line, int column, char* lexeme)
{
size_t length = 0;
Token* tokn = (Token*)alloc(sizeof(Token));
... |
#include <gb/gb.h>
#include <gb/console.h>
#include <gb/drawing.h>
#include <stdio.h>
#include "Graphics/slots.c"
#include "Graphics/slotsmap.c"
#define X_SLOT1 56
#define X_SLOT2 80
#define X_SLOT3 104
#define Y_SLOT 72
#define WIN_ANIM_SCX_START 90
#define WIN_ANIM_Y_START 103
#define WIN_ANIM_Y_END 127
#define ... |
/**
******************************************************************************
* @file LwIP/LwIP_StreamingServer/Src/rtp_protocol.c
* @author MCD Application Team
* @brief RTP client module
******************************************************************************
* @attention
*
* Copyrig... |
/*++
Copyright (c) 1991-1992 Microsoft Corporation
Module Name:
PWORD.C
Abstract:
Convert parsing routines for YES/NO and weekday
Author:
<NAME> (danhi) 06-Jun-1991
Environment:
User Mode - Win32
Revision History:
31-May-1989 chuckc
Created
24-Apr-1... |
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
/*
* File: cint_vlan_port_initial_vid.c
* Purpose: Examples of initial-VID.
* - By default, bcm API diff... |
#include "../include/petscutils.h"
#include "../include/petscmacros.h"
// -----------------------------------------------------------------------------
// Convert PETSc MemType to libCEED MemType
// -----------------------------------------------------------------------------
CeedMemType MemTypeP2C(PetscMemType mem_ty... |
// Utility that builds a Nanopore HDP from an alignment, allows for experimenting with hyperparameters
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include "pairwiseAligner.h"
#include "continuousHmm.h"
void usage() {
fprintf(stderr, "USAGE: \n");
exit(1);
}
void printStartMessage(int64_t hdpTy... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/wait.h>
#include <time.h>
#include <pcap.h>
#include <netinet/in.h>
#include <sys/select.h>
#include "thc-ipv6.h"
char mybuf[1024], mybuf2[28], *interface,... |
/*
* Copyright (c) 2015-2018 Nexenta Systems, inc.
*
* This file is part of EdgeFS Project
* (see https://github.com/Nexenta/edgefs).
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional informat... |
#include "op-solver.h"
#define CUTOFF 5
#define BNDS_DEPTH 5 /* When bnds info is recorded */
static int
find_max_spread(data_kdtree *kdtree, int lo, int hi);
static data_kdtree_node *
kdtree_create_(data_kdtree *kdtree, int lo, int hi, int depth,
data_kdtree_bnds *bnds);
static data_kdtree_node *
nod... |
/*
* Arm SCP/MCP Software
* Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <cmn700.h>
#include <fwk_assert.h>
#include <fwk_log.h>
#include <fwk_math.h>
/*
* Encoding bits size of the X and Y position in the Node info value.
* ... |
/*
* Mach Operating System
* Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all co... |
/* Lzlib - Compression library for the lzip format
Copyright (C) 2009-2021 <NAME>.
This library is free software. 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
* @brief
*
* @date 07.06.2021
* @author kpishere
*/
#include <assert.h>
#include <util/log.h>
#include <kernel/irq.h>
#include <embox/unit.h>
#include <framework/mod/options.h>
#include <module/embox/mem/bitmask.h>
#include <asm/cp15.h>
#include <drivers/dma/dma.h>
#include <drivers/dma/pl330_d... |
#include <errno.h>
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <csv.h>
#include <json-c/json.h>
#include "config.h"
#include "data-sources/tdameritrade.h"
#include "historical-data-scraper.h"
char output_path[2048] = ".";
float min_price = 0.0f;
float... |
/* ========================================================================
* Copyright 2008 University of Washington
*
* 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... |
/*
TP mémoire cache - <NAME> et <NAME>
Etat : Fini
Code : 'D' + 'Q' = 68 + 81 = 149, Gestion Ecriture = 149%2 = 1 = WB, Remplacement des blocs = 149%4 = 1 = LRU
*/
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
typedef struct s {
int valid;
double tag;
//On a besoin d'un compteur pour... |
/*
* Copyright 2016 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, m... |
#include "hal.h"
#include <string.h>
#include <stdlib.h>
#include <ndl.h>
#define NR_KEYS 18
#define W 320
#define H 200
static uint32_t systime;
static int key_state[128];
void PAL_KeyPressHandler(int);
void PAL_KeyReleaseHandler(int);
int
PAL_PollEvent(
SDL_Event *event
)
/*++
Purpose:
Poll and process... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <dirent.h>
#define PORT 2020
struct dirent *dir;
// Responsavel por responder a requisicao do cliente
void resposta_servidor(int cliente_... |
/* Test file for mpfr_cmpabs.
Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
Contributed by the AriC and Caramel projects, INRIA.
This file is part of the GNU MPFR Library.
The GNU MPFR Library is free software; you can redistribute it and/or modify
it under the t... |
#include <stdlib.h>
#include <lua.h>
#include <lauxlib.h>
#include <dbus/dbus.h>
#include "bus.h"
#include "connection.h"
#include "message.h"
#include "watch.h"
#include "ldbus.h"
int tostring(lua_State *L) {
if (!luaL_getmetafield(L, 1, "__udtype")) {
lua_pushstring(L, "object with a generic __tostring metameth... |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// VNC project. Version 1.1
//
// module: files.c
// $Revision: 137 $
// $Date: 2013-07-23 16:57:05 +0400 (Вт, 23 июл 2013) $
// description:
// VNC-server DLL.
#include "common.h"
#include... |
#pragma once
#include "os.h"
#include "utils.h"
#include "vdisk/raw.h"
#include "vdisk/vdi.h"
#include "vdisk/vmdk.h"
#include "vdisk/vhd.h"
#include "vdisk/vhdx.h"
#include "vdisk/qed.h"
#include "vdisk/qcow.h"
#include "vdisk/phdd.h"
#define VDISK_M_ERR(vd,ERR) vdisk_i_err(vd,ERR,__LINE__,__func__)
//
// Constants... |
#include <errno.h>
#include <resolv.h>
#include <stddef.h>
#include "local_ns_parser.h"
static void local_ns_setsection(ns_msg *msg, ns_sect sect);
static int local_ns_skiprr(const unsigned char *ptr, const unsigned char *eom, ns_sect section, int count);
static int local_ns_dn_skipname(const unsigned char *ptr, const... |
/*
* Copyright (c) 2014 <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 copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... |
/*
u4.h version $Date: 2014/11/11 10:46:58 $
<NAME>
<NAME>
Public domain.
*/
#define likely(x) __builtin_expect((x),1)
#define unlikely(x) __builtin_expect((x),0)
if (unlikely(!bytes)) return;
u32 in12, in13;
/* the naive way seems as fast (if not a bit faster) than the vector way */
__m128i s... |
#include "parser.h"
#include <stdlib.h>
#include <string.h>
void lab_parser_init(lab_parser_t* parser) {
parser->container = NULL;
parser->current = NULL;
parser->bytecode = NULL;
parser->was_error = false;
parser->panic_mode = false;
}
void lab_parser_free(lab_parser_t* parser) {
pars... |
#include "define_TAS6424.h"
#define TAS1_ADDR 0x6A
#define TAS2_ADDR 0x6B
#define TAS3_ADDR 0x6C
#define TAS4_ADDR 0x6D
/*void A2B_Reset_TAS6424() { // сброс через шину A2B
writeByte(A2B_MASTER_ADDR, 0x01, 0x00); //Выбираем ноду для отправки команды
writeByte(0x69, 0x01, 0x00);
writeByte(0x69, 0x00, 0x6A); // ... |
/*
* Copyright (c) 2016 RedBear
*
* 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... |
#include "Data.h"
#include "Graph.h"
#include "Heap.h"
#include "List.h"
#include "Room.h"
#include <limits.h>
#define NDEBUG
#include <assert.h>
enum Metadata {
IS_VISITED,
IS_DONE,
TIME,
PREV,
};
static int time_comp_func(const unsigned first, const unsigned second) {
if (first < second) { return -1; }
if (... |
#include "private-libwebsockets.h"
struct libwebsocket *__libwebsocket_client_connect_2(
struct libwebsocket_context *context,
struct libwebsocket *wsi
) {
struct pollfd pfd;
struct timeval tv;
struct hostent *server_hostent;
struct sockaddr_in server_addr;
int n;
int plen = 0;
char pkt[512];
int opt = 1;
#i... |
/*
* MIT License
*
* Copyright (c) 2018 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... |
#include "declarationsHeader.h"
extern struct keyWords keys[];
extern symPtr symTableHead;
/*
* The func takes as input a string and returns it without any white chars.
*/
void removeSpaces(char *sym) {
int cnt = 0, i = 0;
for (; sym[i]; i++) {
if (!isspace(sym[i])) {
sym[cnt++] = sym[... |
/*
* Constants.h
* Transient Events
*
* Created by <NAME> on 9/2/09.
* Copyright 2009 Diffraction Limited Design LLC. All rights reserved.
*
*/
/**
@brief Constants used throughoug Transient Events
Contains various constants used throughout the program. All .m files should import
this file.
*/
//tim... |
/*
* addi_apci_16xx.c
* Copyright (C) 2004,2005 ADDI-DATA GmbH for the source code of this module.
* Project manager: <NAME>
*
* ADDI-DATA GmbH
* Dieselstrasse 3
* D-77833 Ottersweier
* Tel: +19(0)7223/9493-0
* Fax: +49(0)7223/9493-92
* http://www.addi-data.com
* <EMAIL>
*
* This program is free software;... |
/**
* vnc2rdp: proxy for RDP client connect to VNC server
*
* Copyright 2014 <NAME> <<EMAIL>>
*
* 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/L... |
/*
*******************************************************************************
* BOLOS Enclave Samples
* (c) 2017 Ledger
*
* 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
*
* ... |
/* Copyright (c) 2015-2017 OpenSky Network <<EMAIL>> */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <error.h>
#include <errno.h>
#include <time.h>
#include <pthread.h>
#include <inttypes.h>
#include <stdbool.h>
#include "core/gps.h"
#include "core/network.h"
#include "trimble_input.h"
#include "trimble_pa... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <omp.h>
#define TOL 10e-3
void printMatrix(double *matrix, int xDim, int yDim, FILE* fout) {
int i = 0, j = 0;
for (i = 0; i < xDim; i++) {
for (j = 0; j < yDim; j++) {
fprintf(fout, "%lf ", *(matrix + i * y... |
/*
Copyright (C) 2014 Parrot SA
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 dis... |
#include "sprite.h"
#include "components/components.h"
#include "resm/resm.h"
#include "core/gll/gll.h"
#include "cglm/cglm.h"
#include "core/globals.h"
#include "core/logger/logger.h"
#define MAX_SPRITES 100000
#define MAX_Z 10000.0f
#define MIN_Z -10000.0f
/*
* SPRITE
*
* Make sure all sprites are on one sprit... |
/* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 versio... |
/* Print CPUID the right way
*
* Copyright (c) 2014, <NAME>.
*
* 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 conditi... |
/*
* dhcpcd - DHCP client daemon -
* Copyright (C) 1996 - 1997 <NAME> <<EMAIL>>
* Copyright (C) January, 1998 <NAME> <<EMAIL>>
*
* dhcpcd is an RFC2131 and RFC1541 compliant DHCP client daemon.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public Licen... |
/*
$RCSfile$
Copyright (C) 1996-1997 Id Software, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program i... |
/*
* Copyright (c) 2018 <NAME>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <i2c.h>
#include <init.h>
#include <sensor.h>
#include <logging/log.h>
LOG_MODULE_REGISTER(lsm303dlhc_accel);
#include "lsm303dlhc_accel.h"
static int lsm303dlhc_sample_fetch(struct device *dev,
enum sensor_channel chan)
{
... |
/* -*- C -*-
*
* Lua binding of Cairo
*
*/
#ifndef LUACAIRO
# error private include file
#endif
//---------------------------------------------------------------------------
// Matrix userdata for cairo_matrix_t
//---------------------------------------------------------------------------
#define check_Matrix... |
/*
* Graphics functions that don't need opcodes to be executed
* */
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <SDL2/SDL.h>
#include "graphics.h"
#include "chip8.h"
uint8_t sprites[4] = {104, 195, 163, 1};
/*
* background colors
*
* bg[0] = red
* bg[1] = blue
*... |
/* vim: ts=3 sw=3 sts=3 tw=80 sta noet list
*/
/**
* \file t_ael_sel.c
* \brief select() specific implementation for T.Loop.
* Handles implmentation specific functions such as registering events and
* executing the loop
* Being based on the select() system call this version shall ... |
/*
Copyright (C) 1996-1997 Id Software, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in th... |
#include "definitions.h"
/*
https://sites.google.com/site/qeewiki/books/avr-guide/timers-on-the-atmega328
// CS BITS
CS02 CS01 CS00 DESCRIPTION
0 0 0 Timer/Counter0 Disabled
0 0 1 No Prescaling
0 1 0 Clock / 8
0 1 1 Clock / 64
1 0 0 Clock / 256
1 0 1 Clock / 1024
CS12 CS11 CS10 DESCRIPTI... |
/*
* Use is subject to license terms, as specified in the LICENSE file.
*/
#include "_q_rhashmap_I8_I8.h"
#include "_q_rhashmap_mk_hash_I8.h"
#include "q_rhashmap_mk_loc.h"
#include "q_rhashmap_mk_tid.h"
#include "_invariants_I8_I8.h"
#define VALTYPE int64_t
#define KEYTYPE uint64_t
//-------------------------------... |
#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 <errno.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/mac.h>
#include <sys/queue.h> /* for shill.h */
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/module.h>
#include <sys/syscall.h>
#include <sys/wait.h>
#include <sys/typ... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2021 Google LLC
* Author: <NAME> <<EMAIL>>
*/
#include <linux/kvm_host.h>
#include <linux/mm.h>
#include <nvhe/fixed_config.h>
#include <nvhe/trap_handler.h>
/*
* Set trap register values based on features in ID_AA64PFR0.
*/
static void pvm_init_traps_a... |
/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Keyborg board-specific configuration */
#include "common.h"
#include "cpu.h"
#include "debug.h"
#include "master_slave.h"
#include "register... |
#include "svm/instructions.h"
#include <stdbool.h>
#include <string.h>
const char *svm_instruction_type_to_string(svm_instruction_type_t inst_type)
{
switch (inst_type) {
case SVM_INST_NOP: return "SVM_INST_NOP";
case SVM_INST_HALT: return "SVM_INST_HALT";
case SVM_INST_PUSH: return "SVM_INST_PUSH";
... |
/*
* Copyright 2013-2015 Guardtime, Inc.
*
* This file is part of the Guardtime client SDK.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENS... |
/**
* @file
* @brief Embox specific implementation of FUSE
*
* @date 16.11.2015
* @author <NAME>
*/
// Needed by fuse_common.h
#define _FILE_OFFSET_BITS 64
// it is from fuse-ext2fs.c
#define FUSE_USE_VERSION 25
#include <fuse_lowlevel.h>
#include <fuse_opt.h>
#include <assert.h>
#include <errno.h>
#include <s... |
/*
Comments
*/
// #include <omp.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#ifndef FIM_H
#include "fim.h"
#endif
#include "base/io/ioAbc.h"
// function to convert circuit into abc Ntk format
Abc_Ntk_t * Cir_2_Ntk(struct circuit *p)
{
// Vec_Ptr_t * vTokens;
Abc_Ntk_t * pNtk;
Abc_Obj_t * pNode;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.