text stringlengths 3.12k 18.7k |
|---|
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <GDEngine/OpenGL.h>
#include <GDEngine/ModelReader.h>
#include <GDEngine/Camera.h>
#include <GDEngine/Maths.h>
#include <GDEngine/Alloc.h>
#define ANIMATION_TIMEOUT (24)
#define CAMERA_MOVE_UP_STEP (1.0f)
#de... |
/*******************************************************************************
* Copyright (C) 2016, Huada Semiconductor Co.,Ltd All rights reserved.
*
* This software is owned and published by:
* Huada Semiconductor Co.,Ltd ("HDSC").
*
* BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND
... |
/* GELL 15.26: include file for the module: "x11graph" */
/* translation done: "Tue Aug 24 93 10:48:26 " */
/* impure LLM3 predefined */
extern Ptr GIdlink, GIllink, GIfcons, GIevalst;
/* LLM3 functions */
extern Ptr GXunbind7(), GXunbind5(), GXunbind3(), GXunbind1();
extern Ptr G... |
/*
** Copyright 2007-2018 RTE
** Author: <NAME>
**
** This file is part of Sirius_Solver.
** This program and the accompanying materials are made available under the
** terms of the Eclipse Public License 2.0 which is available at
** http://www.eclipse.org/legal/epl-2.0.
**
** This Source Code may also be made availabl... |
/*
* Copyright 2015 <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 to in... |
/*-
* Copyright (c) 2011 NetApp, Inc.
* Copyright (c) 2018 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
*... |
/*
* refclock_zyfer - clock driver for the Zyfer GPSTarplus Clock
*
* <NAME>, Jan 2002
*/
#include "config.h"
#include "ntp.h"
#include "ntpd.h"
#include "ntp_io.h"
#include "ntp_refclock.h"
#include "ntp_stdlib.h"
#include <stdio.h>
#include <ctype.h>
#include <termios.h>
/*
* This driver provides support for... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
#include "csapp.h"
void doit(int fd);
void read_requesthdrs(rio_t *rp);
int parse_uri(char *uri, char *filename, char *cgiargs);
void serve_static(int fd, char *filename, int filesize);
void get_filetype(char *filename, char *filetype);
void serve_dynamic(int fd, char *filename, char *cgiargs);
void clienterror(int f... |
#include <sys/types.h>
#include <sys/select.h>
#include <termios.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <errno.h>
#include <err.h>
#include "simple_sio.h"
static speed_t
get_brate(int speed)
{
switch (speed) {
case 0: return B0... |
/******************************************************************************/
/* Copyright (C) 2010 Garz&Fricke GmbH */
/* No use or disclosure of this information in any form without */
/* the written permission of the author */
/***********************************************... |
/*
* Copyright (c) 2018, Sensirion AG
* 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 conditio... |
/*---------------------------------------------------------------------------*/
/* Copyright(C) 2017-2020 OMRON Corporation */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
... |
//**********************************************************************;
// Copyright (c) 2015, 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 s... |
/* large.c - Handles binary manipulation of large numbers */
/*
libzint - the open source barcode library
Copyright (C) 2008 <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 Software ... |
/* $OpenBSD: login_chpass.c,v 1.15 2006/03/09 19:14:09 millert Exp $ */
/*-
* Copyright (c) 1995,1996 Berkeley Software Design, 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:
* 1. Red... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <ctype.h>
#include <sys/wait.h>
#include "commands.h"
#include "environment.h"
#include "command_parser.h"
#include "file_processing.h"
#include "variables.h"
typedef enum{ false = 0 , true = 1 } bool ;
void sta... |
#include <memory.h>
#include "pogmalloc.h"
void pog_init(uintptr_t* heap_start, size_t heap_size,
pog_chunk* alloced_chunks_start, size_t alloced_chunks_size,
pog_chunk* freed_chunks_start, size_t freed_chunks_size,
pog_chunk* tmp_chunks_start, size_t tmp_chunks_size,
... |
#include <minix/drivers.h>
#include <minix/driver.h>
#include <minix/syslib.h>
#include <minix/sysutil.h>
#include "keyboard.h"
#include "i8042.h"
#ifdef LAB3
int g_inb_counter = 0;
int sys_inb_cnt(port_t port, unsigned long *byte);
#else
#define sys_inb_cnt(p,q) sys_inb(p,q)
#endif
int g_initialHookID_TIMER = 3;
int... |
/*
* measure.c
*
* Created on: Dec 19, 2017
* Author: kdolgikh
*/
#include "driverlib.h"
#include "sleep_timer.h"
#include "adc_driver.h"
#include "sdcard.h"
#include "crc8.h"
#include "data_prep.h"
#include "mux_adg706_driver.h"
#include "measure.h"
#include "real_time_clock.h"
#include "send_over_usb.h"
... |
/*
* Copyright (c) 2005 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
#include "../../../Dynamics/dynamics_2d_polar.h"
//#include "../../../Dynamics/winds.h"
#include "sarsa_alpha.h"
double reward_dt = h*decision_time;
#define dim 2
int main(int argc, char *argv[]){
if (num_saved_matrices > learning_episodes){
printf("===> Error: check save matrix step\n");
return ... |
/*
* Copyright (c) 2018-2019 Faculty of Engineering Ain Shams University Dr.<NAME> Email: <EMAIL> Eng.Mohamed abdelhay Email: <EMAIL>.
*
* This file is part of ASUSAR
* (see https://github.com/asusar/communication-stack).
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor licens... |
#include "Display.h"
#include "ssd1306.h"
#define F_CPU 16000000UL //16MHz
// Data to be sent back for USB command(s)
static uint8_t gRet[HID_IN_PACKET_1] = {0};
static uint8_t gSend = 0;
/** Buffer to hold the previously generated Keyboard HID report, for comparison purposes inside the HID class driver. */
static ... |
//
// Created by acien101 on 29/4/20.
//
#include <stdio.h>
#include <stdlib.h>
#include <bits/types/struct_tm.h>
#include <time.h>
#include "CCSDS.h"
/**
* Create the skeleton of a CCSDS_packet. Malloc primary_header and dataField and return the pointer
* @return CCSDS_packet
*/
CCSDS_packet ccsdsPacket_new(){
... |
/**************************************
* Algorithms, 2020-2021 *
* Set 2, Exercise 2: Bazaar *
* <NAME> 03114892 *
**************************************/
#include<stdio.h>
#include<stdlib.h>
#include<limits.h>
// Global declarations.
unsigned int N, M, _1A[1500][2], _1B[1500][2], ... |
/******************************************************************************
Copyright (c) Airoha 2016 - All rights reserved
FILE NAME
remote_gatt.c
DESCRIPTION
NOTES
********************************************************************************/
#include "ble_gatt_server.h"
#include "service_device_informati... |
/*
* Copyright (c) 2019 <NAME>. All rights reserved.
* Auther: <NAME> <<EMAIL>>
*/
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define NR_LOG 10
#define NR_LOG_ENTRY 100
#define STEP 100
#define MAX_LOG_VAL 0x1000
s... |
#include "stm32f1xx_hal.h"
#include "defines.h"
#include "setup.h"
#include "config.h"
volatile int posl = 0;
volatile int posr = 0;
volatile int pwml = 0;
volatile int pwmr = 0;
volatile int weakl = 0;
volatile int weakr = 0;
extern volatile int speed;
extern volatile adc_buf_t adc_buffer;
extern volatile uint32... |
/*
* Copyright (c) 2016, Cascoda
* 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 conditions and... |
// Copyright 2015 The Weave Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string.h>
#include <stddef.h>
#include "src/channel_encryption.h"
#include "src/crypto_defines.h"
#include "src/crypto_eax.h"
#include "src/crypto... |
#include <stdio.h>
#include <stdlib.h>
#include "../../header/menu.h"
extern void newParty();
extern void loadParty();
extern void setGoban19();
extern void setGoban13();
extern void setGoban9();
extern void choixJoueur1();
extern void choixJoueur2();
extern void validationAdversaire();
extern void backToMenu();
exter... |
/*
* YCSB Workload
*/
#include "headers.h"
#include "workload-common.h"
#define NB_REQ_PER_TRANSACTION 10
static char *create_unique_item_prod(uint64_t uid, uint64_t max_uid) {
size_t item_size;
if(uid*100LU/max_uid < 1) // 1%
item_size = 100;
else if(uid*100LU/max_uid < 82) // 81% + 1%
item_s... |
#include "lib9.h"
#include <kernel.h>
#include "image.h"
#include "tk.h"
#define O(t, e) ((long)(&((t*)0)->e))
char* tkimgbmcreate(TkTop*, char*, int, char**);
char* tkimgbmdel(TkImg*);
void tkimgbmfree(TkImg*);
typedef struct TkImgtype TkImgtype;
struct TkImgtype
{
char* type;
char* (*create)(TkTop*, char*, int,... |
/*
checkAgpAndFa - take a .agp file and a .fa file and validate
that they are in synch.
*/
#include "common.h"
#include "options.h"
#include "linefile.h"
#include "hash.h"
#include "fa.h"
#include "twoBit.h"
#include "agpFrag.h"
#include "agpGap.h"
static char const rcsid[] = "$Id: checkAgpAndFa.c,v 1.7 2006/08/23 2... |
/*
* Copyright (c) 2005 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
#include <sys/param.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <assert.h>
#include <errno.h>
#include <getopt.h>
#include <grp.h>
#include <netdb.h>
#include <netinet/in.h>
#include <pwd.h>
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
#includ... |
//
// Created by <NAME> on 2/14/22.
//
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define NBC 10
int g(int n, int (*f)()){
if(n==1){
return 1;
}
return 3* f(n/2);
}
int f(int n){
if(n == 2){
return 1;
}
return 2*g(n-1, f);
}
enum etat {VALIDEE, ENCOURS, EXPEDIEE}... |
/**
* \file
*
* \brief Management of C42048A LCD Glass component in a reduced form..
*
* Copyright (c) 2011-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... |
#include "u.h"
#include "lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "io.h"
#include "ip.h"
#include "etherif.h"
static Ether ether[MaxEther];
extern int ether2114xreset(Ether*);
extern int elnk3reset(Ether*);
extern int i82557reset(Ether*);
extern int igbepnp(Ether *);
extern int i82563pnp(Et... |
/*
* mon_memmap.c - The VICE built-in monitor, memmap/cpuhistory functions.
*
* Written by
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of ... |
#include "ibis.h"
/**
** Implementation of IBIS-2 I/O for Column-Oriented Files
** The only visible routine is _i_install_cfile_methods()
**/
static int grow_segments( XIBIS *ibis, int newsegment)
{
int status=1;
int oldsegment=ibis->segment;
int rows_now=0;
int inrow;
int inc;
int row;
int size;
int... |
/*
Institute for Formal Models and Verification (FMV),
<NAME> Linz, Austria
Copyright (c) 2006, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must r... |
#include "test_functions.h"
#include <signal.h>
#include <sys/types.h>
#include <sys/time.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#define RED "\x1b[31m"
#define GREEN "\x1b[32m"
#define YELLOW "\x1b[33m"
#define BLUE "\x1b[34m"
#define MAGENTA "\x1b[... |
#if defined(_DEBUG) && defined(_MSC_FULL_VER)
#include <crtdbg.h>
#endif
#include <taa/ui.h>
#include <taa/uirender.h>
#include <taa/glcontext.h>
#include "uitheme.h"
#include <GL/gl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void uilist(
taa_ui* ui,
const taa_ui_rect* rect,
int* vscrol... |
/*
* $QNXLicenseC:
* Copyright 2009, QNX Software Systems.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You
* may not reproduce, modify or distribute this software except in
* compliance with the License. You may obtain a copy of the License
* at: http://www.apache.org/license... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
//采用https://github.com/mackron/dr_libs/blob/master/dr_wav.h 解码
#define DR_WAV_IMPLEMENTATION
#include "dr_wav.h"
#include "aecm.h"
#include "timing.h"
#ifndef nullptr
#define nullptr 0
#endif
#ifndef MIN
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#end... |
//------------------------------------------------------------------------------
// SuiteSparse/GraphBLAS/Source/all_user_objects.c
//------------------------------------------------------------------------------
// This file is constructed automatically by cmake and m4 when GraphBLAS is
// compiled, from the Config/u... |
/*******************************************************************************
Copyright 2020 The "<NAME>" Project Authors. 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
... |
/*-------------------------------------------------------------------------
time.c - stdlib time conversion routines
Copyright (C) 2001, <NAME> <johan.knol AT iduna.nl>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by... |
/*
* Copyright (c) 1996-2001 <NAME>.
* See README file for details.
*
* This file contains functions for constructing and
* interpolating the adaptive tree structure. This is
* the default evaluation structure used by Locfit.
*/
#include "local.h"
/*
Guess the number of fitting points.
Needs impr... |
/*
Copyright (C) 2011, 2014, 2017 <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 Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is ... |
/*Copyright (c) 2010, <NAME>, PDTec AG
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 conditions and the followin... |
/*******************************************************************************************
*
* filters overlaps by various criteria
*
* Author : Martin
*
* Date : December 2018
*
*******************************************************************************************/
#include <assert.h>
#include <... |
/*
** This file has been pre-processed with DynASM.
** http://luajit.org/dynasm.html
** DynASM version 1.3.0, DynASM x64 version 1.3.0
** DO NOT EDIT! The original file is in "eol-fcall-x86.dasc".
*/
#line 1 "eol-fcall-x86.dasc"
/*
* eol-fcall-x86.dasc
* Copyright (C) 2015 <NAME> <<EMAIL>>
*
* Distributed under te... |
/* SCHEME->C */
#include <objects.h>
void plist__init();
DEFSTATICTSCP( c2125 );
DEFSTATICTSCP( _2aobarray_2a_v );
DEFCSTRING( t2131, "Index is not in bounds: ~s" );
DEFSTATICTSCP( c2107 );
DEFCSTRING( t2132, "Argument is not an INTEGER: ~s" );
DEFSTATICTSCP( c2103 );
DEFCSTRING( t2133, "Argument is not a VECTOR: ~s... |
/*
* Copyright (c) 2005 <NAME>
* Copyright (c) 2005 <NAME>
*
* 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 conditio... |
/**
* \file
*
* \brief ADC Sensor interface
*
* Copyright (c) 2011-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 conditions are met:
*
* ... |
//________________________READ VOLTAGE CHANNELS OF ADC_______________________________________________________________________________________//
unsigned int16 READ_vol_CHANNEL(int16 Address) //reads voltage from the received address
{
RC2 = 0;
spi_xfer(PORT2, Address)... |
#include "framework/memory.h"
#include "framework/logger.h"
#include "framework/parsing.h"
#include "wfobj_scanner.h"
//
#include "wfobj.h"
inline static void wfobj_init_internal(struct WFObj * obj, char const * text);
void wfobj_init(struct WFObj * obj, char const * text) {
wfobj_init_internal(obj, text);
}
void ... |
/*
* XDD - a data movement and benchmarking toolkit
*
* Copyright (C) 1992-2013 I/O Performance, Inc.
* Copyright (C) 2009-2013 UT-Battelle, LLC
*
* This 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
... |
#define min(a,b) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a < _b ? _a : _b; })
#define max(a,b) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a > _b ? _a : _b; })
#define __DIV(_PCLK_, _BAUD_) (((_PCLK_)*25)/(4*(_BAUD_)))
#define __DIVMANT(_PCL... |
//*****************************************************************************
// Filename : 'buttons.c'
// Title : Button debouncing/switches handling
//*****************************************************************************
#include <avr/interrupt.h>
#include <util/delay.h>
#include "global.h"
#include "bu... |
/***************************************************************************
vidhrdw.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "driver.h"
#include "vidhrdw/generic.h"
#define VIDEO_RAM_SIZE 0x40... |
/*
* 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... |
/*
* File: byte_profile.c
* CVS: $Id: byte_profile.c,v 1.18 2009/10/20 20:15:58 bsheely Exp $
* Author: <NAME>
* <EMAIL>
* Mods: <NAME>
* <EMAIL>
* Mods: <your name here>
* <your email address>
*/
/* This file profiles multiple events with byte level address resolution.
It'... |
/*
============================================================================
Name : hash-compare.c
Author : <NAME>
Version : 1.0
Copyright : BSD 3-clause
Description : Compare hashdeep hash-files for matches
============================================================================
*/
#i... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 <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,... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/* 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.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <asser... |
#include "afl-fuzz.h"
#include "list.h"
/**
* We should check symbolc_path is exist before bump into this function.
*
*
* Should be called only when fuzzer stucks.
* We use s2e as our symbolic execution engine,
* this function prepares all things needed by
* symbolic execution. Firstly, we apply
* taint infe... |
/* types.h - Input library data tyypes - Public Domain - 2013 <NAME>
*
* This library provides a cross-platform input handling in C11 providing for projects based on our
* foundation library. The latest source code is always available at
*
* https://github.com/mjansson/input_lib
*
* This library is built o... |
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <emmintrin.h>
#include "kbit.h"
// from bowtie-0.9.8.1
inline static int bt1_pop64(uint64_t x) // the kbi_popcount64() equivalence; similar to popcount_2() in wiki
{
x -= ((x >> 1) & 0x5555555555555555llu);
x = (x & 0x3333333333333333llu) + ((x >>... |
/*-------------------------------------------------------------------------
*
* hive_funcs.c
* Function Mapping handler for Hive
*
* This file contains logic to identify which built-in functions can be
* sent to Hive. These functions are part of the WHERE clause. In some
* cases we also need to tr... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <x86intrin.h>
#include "STD.h"
#if TI == 2
#define REDUCE(x) ((x >> 1) & 1) ^ (x & 1)
#elif TI == 3
#define REDUCE(x) ((x >> 2) & 1) ^ ((x >> 1) & 1) ^ (x & 1)
#elif TI == 4
#define REDUCE(x) ((x >> 3) & 1) ^ ((x >> 2) & 1) ^ ((x ... |
/*
Copyright 2019-2020 Netfoundry, 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softw... |
#include "snapconfig.h"
/* Header file for routines managing point data - lats, longs, doppler, etc */
/*
$Log: pntdata.c,v $
Revision 1.6 2004/04/22 02:35:44 ccrook
Setting up to support linux compilation (x86 architecture)
Revision 1.5 2003/11/25 01:29:59 ccrook
Updated SNAP to allow calculation... |
#include "traceroute.h"
#define OPTLEN 44
#define MAXSRR 9
#define LSRR 0x83
#define SSRR 0x89
char *device;
int Sport;
int Dport = 32768 + 666;
int probe = 3;
sigjmp_buf jumpbuf;
struct sockaddr_in from;
struct sockaddr_in to;
u_char *optr = NULL;
static void icmp_srr_print(u_char *buf)
{
struct ip *ip;
struct ip... |
/* sane - Scanner Access Now Easy.
Copyright (C) 2000 <NAME> <<EMAIL>>
This file is part of the SANE package.
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
... |
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, A... |
/*
* hashtools.c - Routine utama untuk proses indexing menggunakan hash table
*
* Author: <NAME> (<EMAIL>[at]gmail.com)
* Last edited: 10 December 2017
*
*/
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include "hashtools.h"
/* Inisialisasi info hash table */
HashTableInfo *init... |
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <mach.h>
#include "snap.h"
/* research 16-bit crc. good enough. */
static ulong
sumr(ulong sum, void *buf, int n)
{
uchar *s, *send;
if(buf == 0)
return sum;
for(s=buf, send=s+n; s<send; s++)
if(sum & 1)
sum = 0xffff & ((sum>>1)+*s+0x8000);
else
... |
#include "cpu.h"
#include "utils.h"
#include "frontend/ui.h"
#include "digits.h"
#include "timers.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#define stepDelay 2000000L
int cpuInit(struct CPU *cpu){
cpu->stackPointer = 0;
cpu->programCounte... |
/*-
* Copyright (c) 2003-2007 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... |
/*
MIT License
Copyright (c) 2021 PCSX-Redux authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... |
/*
* Copyright (c) 2014, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of ... |
/*
Copyright (C) 2018 <NAME>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2... |
#define BPI_M64_01 -1
#define BPI_M64_03 GPIO_PH03
#define BPI_M64_05 GPIO_PH02
#define BPI_M64_07 GPIO_PH06
#define BPI_M64_09 -1
#define BPI_M64_11 GPIO_PH07
#define BPI_M64_13 GPIO_PH10
#define BPI_M64_15 GPIO_PH11
#define BPI_M64_17 -1
#define BPI_M64_19 GPIO_PD02
#define BPI_M64_21 GPIO_PD03
#define BPI_M64_23 GPI... |
#define F_CPU 8000000UL
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
void conf_micro();
void conf_timer();
void conf_ADC();
void config_comun();
void tomardatos();
void luces();
void motor();
void cargardatos();
void transmitir(int dato);
int acelerador=0,freno=0,nivel=0, te... |
/***************************************************************************
* Copyright (C) 2008 by <NAME> *
* <EMAIL> *
* *
* This program is free software;... |
#include <ucw/lib.h>
#include <ucw/fastbuf.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <yaml.h>
#include <ucw/gary.h>
#include <osm.h>
#include <math.h>
#include <proj_api.h>
#include "include/types.pb-c.h"
#include "include/premap.pb-c.h"
#include "parse.h"
#include "y... |
#include "Drivers/rpi_mmu.h"
#define CACHED_TLB
//#undef CACHED_TLB
static volatile __attribute__ ((aligned (0x4000))) uint32_t page_table[4096];
static volatile __attribute__ ((aligned (0x400))) uint32_t leaf_table[256];
struct page {
uint8_t data[4096];
};
void mmu_init_page_table(void) {
ui... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
#include "m_pd.h"
#include <string.h>
#ifndef PAQ_FIRST
#define PAQ_FIRST(x) 0
#endif
#ifndef PAQ_INDEX
#define PAQ_INDEX(p) ((p)->idx)
#endif
typedef struct _paq t_paq;
typedef struct {
t_object obj;
t_paq *x;
t_gpointer *ptr; /* inlet's associated pointer */
int idx; /* inlet index */
} t_paq_pxy;... |
#include <isotp/send.h>
#include <isotp/protocol.h>
#include <bitfield/bitfield.h>
#include <string.h>
#define PCI_NIBBLE_INDEX 0
#define PAYLOAD_LENGTH_NIBBLE_INDEX 1
#define PAYLOAD_BYTE_INDEX 1
void isotp_complete_send(IsoTpShims* shims, IsoTpMessage* message,
bool status, IsoTpMessageSentHandler callback)... |
/**
***********************************************************************************************************************
* Copyright (c) 2020, China Mobile Communications Group Co.,Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the... |
#include "epoc.h"
const unsigned char F3_MASK[14] = {10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7};
const unsigned char FC6_MASK[14] = {214, 215, 200, 201, 202, 203, 204, 205, 206, 207, 192, 193, 194, 195};
const unsigned char P7_MASK[14] = {84, 85, 86, 87, 72, 73, 74, 75, 76, 77, 78, 79, 64, 65};
const unsigned ch... |
// Copyright (c) 2018, <NAME>, All rights reserved.
#include <fcntl.h>
#include <netdb.h>
#include <netinet/tcp.h>
#include <poll.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include "con.h"
#include "dtime.h"
#include "http.h"
#include "hook.h"
#include "log.h"
#include ... |
/*
* Copyright 2017-2020 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/***********************************************************************************************************************
* This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file
*... |
/*
* linux/fs/nfs/flushd.c
*
* For each NFS mount, there is a separate cache object that contains
* a hash table of all clusters. With this cache, an async RPC task
* (`flushd') is associated, which wakes up occasionally to inspect
* its list of dirty buffers.
* (Note that RPC tasks aren't kernel threads. Take a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.