text stringlengths 3.12k 18.7k |
|---|
/*-
* 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 conditions a... |
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
/*
*/
/* This program probes for ethernet interfaces.
It opens the g... |
/**
*
* \section COPYRIGHT
*
* Copyright 2013-2015 Software Radio Systems Limited
*
* \section LICENSE
*
* This file is part of the srsLTE library.
*
* srsLTE is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Soft... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
# include <stdio.h>
# include <stdlib.h>
// Estrutura para guardar um número racional na forma de fração.
typedef struct {
int num, den;
} rationalNumber;
// Header - funções declaradas "oficialmente" após a main.
void GetObjectEquation(char obj_type, rationalNumber*** eq_system, int* cur_eq_num, int coef_num);... |
#include <stdio.h>
#include <atomic.h>
#include <sys.h>
#include <kth.h>
#include <drv/drv.h>
#include "common/include/abi.h"
#include "libk/include/mem.h"
/*
* Shift buffer
*/
typedef volatile struct shiftbuf {
union {
unsigned long value;
struct {
unsigned long count : 8;
... |
/*
* Copyright (c) 2014, Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
* the U.S. Government retains certain rights in this software.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... |
/*
* @XMHF_LICENSE_HEADER_START@
*
* eXtensible, Modular Hypervisor Framework (XMHF)
* Copyright (c) 2009-2012 Carnegie Mellon University
* Copyright (c) 2010-2012 VDG Inc.
* All Rights Reserved.
*
* Developed by: XMHF Team
* Carnegie Mellon University / CyLab
* VDG Inc.
* ... |
/*
* Copyright (c) 2011 The Native Client 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 <windows.h>
#include "native_client/src/shared/platform/nacl_check.h"
#include "native_client/src/shared/platform/nacl_log.h"
#i... |
/*
* author: <NAME>
*
* File contains the second 1/4th of the optcodes
*/
#include "optcodes.h"
#include "address.h"
#include "memory.h"
//RTI stack
void opt40 (void) {
RTI();
}
//EOR direct indexed indirect (X)
void opt41 (BYTE i) {
EOR(directIndexedIndirect(i));
}
//WDM N/A
//TODO
void opt42 (BYTE i);
... |
#pragma ident "$Id: main.c,v 1.6 2013/05/14 21:07:58 dechavez Exp $"
/*======================================================================
*
* Test harness for exercising the ISI database access routines
*
*====================================================================*/
#include "dbio.h"
#include "isi/dl... |
#include <webots/camera.h>
#include <webots/display.h>
#include <webots/distance_sensor.h>
#include <webots/robot.h>
#include "../../../lib/ts_assertion.h"
#include "../../../lib/ts_utils.h"
#define TIME_STEP 32
#define BLACK 0x00000000
#define WHITE 0x00FFFFFF
#define RED 0x00FF0000
#define GREEN 0x0000CF06
#define... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"
#include "io.h"
#include "devtab.h"
#include "ether.h"
/*
* 3Com 503 (EtherLink II).
* This driver doesn't work under load, the card gets blasted by
* overwrite-warning interrupts and eventually ju... |
/****************************************************************************************************************/
/* Purpose: Bouncy spectrogram! */
/* Author: Copyright (c) 2019, W.B.Hill <<EMAIL>> All rights reserved. ... |
/*
* Copyright (c) 1983 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* @(#)externs.h 5.1 (Berkeley) 5/29/85
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#incl... |
/* $OpenBSD: arc4random.c,v 1.48 2014/07/19 00:08:41 deraadt Exp $ */
/*
* Copyright (c) 1996, <NAME> <<EMAIL>>
* Copyright (c) 2008, <NAME> <<EMAIL>>
* Copyright (c) 2013, <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, ... |
/* Copyright (c) 2019 <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 DISCLAI... |
#include "disk.h"
#include "btree.h"
#include "fileio.h"
static imcs_file_h imcs_file;
static imcs_disk_cache_t* imcs_disk_cache;
inline static void imcs_unlink(int pid)
{
imcs_disk_cache_t* cache = imcs_disk_cache;
imcs_cache_item_t* item = &cache->items[pid];
cache->items[item->prev].next = item->next;... |
#include <stdbool.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#include "e/window.h"
#include "e/definitions.h"
// rhc implementation source file, only once in a project
#include "rhc/rhc_impl.h"
#define MAX_DELTA_TIME 5.0 // seconds
// not declared in window.h
void e_window_handle_window_event(const SDL_Event *... |
//I figured a table would be easier and faster than an actual algorithm for
//computing the parity bit since we're always limited to 8 bits
char par_tab[256] =
{1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,
0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,
0,1,1,0,1,0,0,1,1,0,0,1,0,1... |
/* -*- c++ -*- ***************************************************************
*
* System : Serial GLCD
* Module : Sprite functions
* Object Name : $RCSfile: sprite.c,v $
* Revision : $Revision: 1.13 $
* Date : $Date: 2015/05/31 19:12:12 $
* Author : $Author: jon $
* Crea... |
#include <stdlib.h>
#include <stdio.h>
#include "hdf5.h"
#include "hdf5_hl.h"
#include "mpi.h"
/* DGESVD prototype */
extern void dgesvd( char* jobu, char* jobvt, int* m, int* n, double* a,
int* lda, double* s, double* u, int* ldu, double* vt, int* ldvt,
double* work, int* lwork, int* ... |
/*
* Name: kstat v.1.1 if.c
* Date: Sun Feb 10 02:49:49 CET 2002
* Author: FuSyS [<EMAIL>, <EMAIL>]
*
* SoftProject Digital Security for Y2K
* Sikurezza.org - Italian Security Mailinglist
*
* MOJITO-WARE LICENSE - This source code is like "THE BEER-WARE LICENSE" by
* <NAME> <<EMAIL>> but you can give me in ret... |
/* -*- mode: C -*- */
/*
IGraph library.
Copyright (C) 2009-2012 <NAME> <<EMAIL>>
334 Harvard st, Cambridge MA, 02139 USA
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; eithe... |
/**
* Copyright (c) 2016, <NAME> <<EMAIL>>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of con... |
/*
*
* \file test.c
* \brief
*
*
*/
#include "base.h"
#include "typedef.h"
#include "archive.h"
#include "catalog.h"
#include "simulation.h"
typedef struct Options
{
Archive param;
Archive output;
Catalog catalog;
Simulation simulation;
} Options;
void test_usage (in... |
/*
* Copyright 2011-2012 the Redfish authors
*
* 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 ... |
#include "conge/conge.h"
#include "world.h"
#define HOTBAR_SIZE 9
static struct
{
conge_bool up, down, left, right, jump;
conge_bool breaking, placing;
tile_t hotbar[HOTBAR_SIZE];
int hotbar_selection;
int cursor_x, cursor_y; /* centered around the player */
} controls;
/* Hotbar bounds set at the start o... |
/************************************************************************************[lrat-check.c]
Copyright (c) 2017-2020 <NAME>, <NAME>, Carnegie Mellon University
Last edit: June 1, 2020
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files... |
#include "z80_instructions_extended.h"
#include "z80_instructions_common.h"
#include "bitmath.h"
// Extended instruction set implementation
// 0x40
// 0x50
// 0x60
// 0x70
void LD_nnm_SP(Z80_CPU *z) {
// TODO: backwards operands?
SetMemVal(z, split_1(z->SP), Op(z, 3));
SetMemVal(z, split_2(z->SP), Op(... |
/* mailfeeder
*
* This is a wrapper which accepts Xamime output (ie, from stdin) and
* redelivers it in a suitable fasion for the postfix 10025 port
* delivery method.
*
* Started : 02/02/02
* Finished (initial) 09/05/02
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include... |
#include <stdbool.h> // bool
#include <string.h> // memcpy()
#include <stdio.h> // snprintf()
#include <float.h> // FLT_EPSILON, DBL_EPSILON
#include "../tests.h"
#include "../../pwasm.h"
#include "../result-type.h"
#define LEN(ary) (sizeof(ary) / sizeof(ary[0]))
static bool
test_native_on_add_one(
pwasm_env_t * co... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int target = 0;
char ftemp[] = "city011";
char fmichi[] = "city012";
float matching(char *ftemp, char *fmichi)
{
FILE *fp1, *fp2, *fp3, *list, *test;
char *flist = "list.txt";
char *ftest = "test.txt";
int n, m, k, i, j;
float a, b, c... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache license, Version 2.0
* (the "License"); you may n... |
/*
* This file is part of the ESO cpl package
* Copyright (C) 2001-2017 European Southern Observatory
*
* 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
... |
/*
* File - sym1.c
*/
#include "cgen.h"
#include "alloc128.h"
/*********************************************************
* sub_17E0 OK++ PMO Used in: sub_6D1, sub_4192
*
* Two related Basic Blocks moved and one optimisation
* loading a from l rather then sb->b_size
********************************... |
// ----------------------------------------------------------------------
//
// ▐ ▄ ▪ ▐ ▄ ▄ •▄ ▄▄▄· .▄▄ · ▪
// •█▌▐███ •█▌▐██▌▄▌▪▐█ ▀█ ▐█ ▀. ██
// ▐█▐▐▌▐█·▐█▐▐▌▐▀▀▄·▄█▀▀█ ▄▀▀▀█▄▐█·
// ██▐█▌▐█▌██▐█▌▐█.█▌▐█ ▪▐▌▐█▄▪▐█▐█▌
// ▀▀ █▪▀▀▀▀▀ █▪·▀ ▀ ▀ ▀ ▀▀▀▀ ▀▀▀
//
// -------------------------... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "phash.h"
#include "misc.h"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
static HCCs hauxCnts;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
static void StartPHash(PHASH *H){
... |
/* See LICENSE file for copyright and license details. */
/* appearance */
static const unsigned int borderpx = 4; /* border pixel of windows */
static const unsigned int snap = 20; /* snap pixel */
static const int showbar = 0; /* 0 means no bar */
static const int topbar ... |
/**
* Kickstart
*
* Copyright (C) 2020 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <linux/kdev_t.... |
/*
* Copyright (C) 2018-2020, 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 met:
* 1. Redistributions of source code must retain the above copyright notice,
* this... |
/*******************************************************************************
* Copyright (c) 2009-2016, MAV'RIC Development Team
* 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. R... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define PORT 8080
int extract_command(char *);
void main()
{
int sockfd, ret;
struct sockaddr_in serverAddr;
int newSocket;
struct sockaddr_... |
#include <xc.h>
#include <string.h>
#include "types.h"
#include "main.h"
#include "leds.h"
#include "usb.h"
#include "i2c.h"
#include "si7021A10.h"
#include "descriptors.h"
// CONFIG1
#pragma config FOSC = INTOSC // * Oscillator Selection Bits
#pragma config WDTE = OFF // Watchdog Timer Enable
#pragma config PWRTE ... |
#include "pickle.h"
#include <assert.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <time.h>
#define UNUSED(X) ((void)(X))
#define ok(i, ...) pickle_result_set(i, PICKLE_OK, __VA_ARGS__)
#define error(i, ...) pickle_result_set(i, ... |
#include "KeyboardStateFunctions.h"
void KeyboardState_Create(KeyboardState* keyboardState)
{
memset(keyboardState, 0, sizeof(KeyboardState));
SDL_Keycode codes[240] = {
SDLK_UNKNOWN,
SDLK_RETURN,
SDLK_ESCAPE,
SDLK_BACKSPACE,
SDLK_TAB,
SDLK_SPACE,
SDLK_EXCLAI... |
/*
This is a simple testcase for the logic in bd_ropart.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <assert.h>
#include "bd_ropart.h"
#include "blockdevif.h"
#include "blkidcache.h"
#define BLKSZ 4096
#define PHYS_SIZE 31 //w... |
/* Copyright (c) 2014-2021, <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR... |
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "ws.h"
#include "ws_base64.h"
#include "ws_http.h"
#include "ws_sha1.h"
#include "ws_socket.h"
#include "ws_string.h"
#define count_of(a) (sizeof(a) / sizeof(a[0]))
#define MAX_HTTP_HEADERS (8 * 1024) /* HTTP RF... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <hurd.h>
#include <hurd/trivfs.h>
#include <hurd/ports.h>
#include "ip.h"
#include "logging.h"
#include "ports.h"
#include "proto.h"
#include "timer.h"
#include <fcntl.h>
#define MAX_SIZE (1 << 16) - 20
#define IPv4 4
#define VERSION IPv4
#define... |
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <string.h>
#include <libgen.h>
#define PIN_NAME_SIZE 48
typedef struct _iomux_cfg
{
int ecspi1_4;
int ecspi1_5;
int ecspi1_dev;
int audio4;
int ecspi2_4;
int ecspi2_5;
int ecspi2_dev;
int audio5;
int ecspi3_5... |
/*
* pc_speaker.h: Definitions and functions for emulated (maybe hardware?) pc speaker
*/
#pragma once
#include "../C/time.h"
#include "../interrupts/pic.h"
#include "../ports/io.h"
#define PC_SPEAKER_PORT 0x61
// TODO: Mess with PWM and get it to work for pc speaker sound?
// ...
// Frequency rates to divide PIT... |
/*
AF_UNIX socket routines.
<NAME>
Routines:
socket_open(lstn, caller_name, caller_hdr, callee_name, callee_hdr, wfc)
Opens either a client or a server socket. Returns fd of the
socket open to the server, or fd of the server to be listened on,
or -1 on error.
int lstn (in)
... |
/*
* This file is part of b6b.
*
* Copyright 2017 <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 a... |
/*****************************************************************************
* rawdv.h : raw DV helpers
*****************************************************************************
* Copyright (C) 2001-2011 VLC authors and VideoLAN
* $Id: e8039f397fb0a6c399d3db412de04d5984e77694 $
*
* Authors: <NAME> <<EMAIL>>... |
#include "gc.h"
void
swit1(C1 *q, int nc, int32 def, Node *n)
{
int dw;
Node tn, nod, rnod;
if(typev[n->type->etype]) {
regsalloc(&nod, n);
nod.type = types[TVLONG];
dw = 1;
} else {
regalloc(&nod, n, Z);
nod.type = types[TLONG];
dw = 0;
}
cgen(n, &nod);
if(dw) {
regalloc(&rnod, ®node, Z);
... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/** \file
* \brief ThingRendevous's Stream Private implementation
*
* Private types known only to Stream and trTi code generator Trtgen.
*
* \author <NAME> <EMAIL>
*/
/*
* MIT License
*
* Copyright (c) 2018, 2017 <NAME> <EMAIL>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of t... |
/*
Copyright (c) 2017, Plume 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. Redistributions of source code must retain the above copyright
notice, this list of conditions and the... |
#include "dat.h"
#include "fns.h"
#include <libusb.h>
extern libusb_context *usbctxt;
#define UNL 0x3f
#define LISTEN 0x20
#define TALK 0x40
#define SAD(x) ((((UCHAR)(x))-1 & 0xff)+1)
#define CMD(x) (0x200|(x))
#define ChESC 0xf0
#define ChEOI 0xf1
#define CmdATN0 0x0
#define CmdATN1T 0x1
#define CmdATN1L 0x2
#defin... |
/* ThreadMain.cu */
/******************************************************************************/
/* */
/* The content of ThreadMain() are essentially the same as main() in the */
/* original program utrwt69. The particle is inserted a... |
/* LVGL Example project
*
* Basic project to test LVGL on ESP32 based projects.
*
* 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 O... |
/*************************************************************************
> File Name: local_alignment.c
> Author:
> Mail:
> Created Time: Sun May 3 15:20:52 2020
************************************************************************/
#include<stdio.h>
#include "ksw2.h"
#define PY_SSIZE_T_CLEAN
#include <P... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <linux/if_ether.h>
#include <net/if.h>
#include <netpacket/packet.h>
#include <linux/filter.h> // CHANGE: include lsf
#i... |
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include "telehash.h"
// simple packet list
typedef struct qlob_s {
struct qlob_s *next;
lob_t pkt;
} qlob_s, *qlob_t;
struct util_frames_s {
uint32_t magic;
uint32_t max;
// inlen is expected, inat is partial progress
uint8... |
/* $OpenBSD: syslog.c,v 1.29 2007/11/09 18:40:19 millert Exp $ */
/*
* Copyright (c) 1983, 1988, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* a... |
// util.c
#include <localtime.h>
#include <ansi.h>
// filter color
string filter_color(string arg)
{
arg = replace_string(arg, BLK, "");
arg = replace_string(arg, RED, "");
arg = replace_string(arg, GRN, "");
arg = replace_string(arg, YEL, "");
arg = replace_string(arg, BLU, "");
arg = replace_... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 <NAME> (tinyusb.org)
*
* 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
... |
/*
* nessDB storage engine
* Copyright (c) 2011-2012, BohuTANG <overred.shuttler at gmail dot com>
* All rights reserved.
* Code is licensed with BSD. See COPYING.BSD file.
*
*/
#include "config.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <s... |
#include <errno.h>
#include <caf/errors.h>
static char *g_noerrno = "Error code not found in errno table";
#ifdef __AROS__
static struct ErrnoEntry ErrnoTable[MAX_ERRNO] =
{
{ EPERM, "Operation not permitted" },
{ ENOENT, "No such file or directory" },
{ ESRCH, "No such process" },
{ EINTR, "Interrupted system ca... |
/* Copyright 2012-present Facebook, Inc.
* Licensed under the Apache License, Version 2.0 */
#include "watchman.h"
// Each root gets a number that uniquely identifies it within the process. This
// helps avoid confusion if a root is removed and then added again.
static long next_root_number = 1;
static const size_t... |
/**
* Interface to a color TFT display.
*
* Copyright (C) 2019 <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 ... |
/*
* Copyright (c) 2009-2012, Freescale Semiconductor, 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:
*
* o Redistributions of source code must retain the above copyright notice, this... |
// Copyright (c) 2015-2017 Nuxi (https://nuxi.nl/) and contributors.
//
// SPDX-License-Identifier: BSD-2-Clause
#include <errno.h>
#include <float.h>
#include <inttypes.h>
#include <locale.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <... |
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include "Headers/array.h"
#include "Headers/op.h"
/*Given the received codeword msg and the number of error correcting symbols (nsym), computes the
syndromes polynomial. Mathematically, it's essentially equivalent to a Fourrier Transform
(Chien search bei... |
/*
* embedded IPsec
* Copyright (c) 2003 <NAME> and <NAME>, HTI Biel/Bienne
* 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 ab... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/**
*******************************************************************************
* @file sdram.cpp
* @version
* @date 18. 6. 2018
* @brief
*******************************************************************************
copied from original source http://en.radzio.dxp.pl/stm32f429idiscovery/sdra... |
#include "mantle_internal.h"
static GR_ALLOC_FUNCTION mAllocFun = NULL;
static GR_FREE_FUNCTION mFreeFun = NULL;
// Initialization and Device Functions
GR_RESULT grInitAndEnumerateGpus(
const GR_APPLICATION_INFO* pAppInfo,
const GR_ALLOC_CALLBACKS* pAllocCb,
GR_UINT* pGpuCount,
GR_PHYSICAL_GPU gpus[G... |
/*
* header.c
*
* Copyright (c) 2015 <NAME> <<EMAIL>> All rights reserved.
*
* This file is part of a non-commercial software. For more details please
* refer to the license agreement that comes with this software.
*
* If you have not received a license file please contact:
* <NAME> <<EMAIL>>
*
*/
#include ... |
/*
* paging.c: enable PAE paging and map pages in tboot
*
* Copyright (c) 2006-2010, 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:
*
* * Redistributions of source... |
/*
* Copyright (C) 2013 <NAME>
* 2020 <NAME> Six
* 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, cop... |
/**
*
* @generated d Tue Jan 7 11:45:26 2014
*
**/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <cblas.h>
#include <lapacke.h>
#include <plasma.h>
#include <core_blas.h>
#include "auxiliary.h"
/*-------------------------------------------------------------------
* Check t... |
#include "backend.h"
/*
* Param: sock - The socket to check for acknowledgements.
* Param: seq - Sequence number to check
*
* Purpose: To tell if a packet (sequence number) has been acknowledged.
*
*/
int check_ack(cmu_socket_t *sock, uint32_t seq) {
int result;
while (pthread_mutex_lock(&(sock->window.ack_l... |
#include "Http.h"
#define BUFFER_SIZE 8192
int DealWithRequest(Socket sock){
//libevent并发
struct event_base* base = event_base_new(); //event_init();
Eventarg* eventarg = (Eventarg*)malloc(sizeof(Eventarg));
eventarg->base = base;
eventarg->firsttime = true;
eventarg->sock = &soc... |
// TODO
// Add Mode switching
// Add config option on command line
// Add debug print statements
// Add debug option on command line
// keypress vs keyrelease distinct
// Serial vs Parallel commands in actions
// Handle Errors more carefully
#include <xkbcommon/xkbcommon.h>
#include <xkbcommon/xkbcommon-x11.h>
#includ... |
/*
*-----------------------------------------------------------------------------
* Filename: vmdisplay-parser.c
*-----------------------------------------------------------------------------
* Copyright 2012-2018 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining
* a cop... |
#include <string.h>
#include <signal.h>
#include <libwebsockets.h>
#define RING_DEPTH 4096
struct msg
{
void *payload;
size_t len;
char binary;
char first;
char final;
};
struct per_session_data
{
struct lws_ring *ring;
char ip[32];
uint32_t fd;
uint32_t msglen;
uint32_t tail;
uint8_t comple... |
#define SW_TIMING_ENABLE 0
#define SW_TIMING_ENABLE_CT 8000
#define SW_TIMING_READING 1
#define SW_TIMING_READING_CT 2000
// the RCVINDI-Pin goes low when the MCU starts capturing a new Packet.
// It goes high when a complete Packet has been received
// it can be used to connect a LED which glows when a successfull da... |
/* $Id$ */
/* Copyright (c) 2006-2020 <NAME> <<EMAIL>> */
/* This file is part of DeforaOS Graphics GToolkit */
/* 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... |
#include "main.h"
#define TEST_WRITE
#define IoT_TRANSMIT
int main(void)
{
/* STM32F103xB HAL library initialization:
- Configure the Flash prefetch
- Systick timer is configured by default as source of time base, but user
can eventually implement his proper time base source (a general purpose... |
#include "driverctl.h"
#include <stdio.h>
#pragma warning (disable : 4996)
void printeye(void) {
const unsigned int char_count = 49;
const unsigned int line_count = 27;
char sigaint[][49] = {
" 64RWLAZER64R ",
" ZER64RWLAZER64RWLAZER6 ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <omp.h>
#include <math.h>
// get the size of elements on an array
#define NELEMS(x) (sizeof(x) / sizeof((x)[0]))
typedef int bool;
#define false 0
#define true 1
struct Puzzle {
int row;
int col;
int depth;
long double priority;
in... |
/*
* Copyright 2020 NXP
*
* SPDX-License-Identifier: Apache-2.0
*
*/
/**
* @file
* @brief codes required for AArch64 multicore and Zephyr smp support
*/
#include <cache.h>
#include <device.h>
#include <devicetree.h>
#include <kernel.h>
#include <kernel_structs.h>
#include <ksched.h>
#include <soc.h>
#include ... |
#ifdef _WIN32
#include <windows.h>
void win_install(void);
#endif
#include "mupdf/fitz.h"
#include "mupdf/ucdn.h"
#include "mupdf/pdf.h" /* for pdf specifics and forms */
#ifndef __APPLE__
#include <GL/freeglut.h>
#else
#include <GLUT/glut.h>
#endif
/* UI */
enum
{
/* regular control characters */
KEY_ESCAPE = 27... |
/* ====================================================================
* Copyright (c) 2016 The GmSSL Project. 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 so... |
/*
* @Author: cpu_code
* @Date: 2020-05-03 19:23:27
* @LastEditTime: 2020-05-03 22:06:26
* @FilePath: \linux_network\introduction\arp\arp_fork.c
* @Gitee: https://gitee.com/cpu_code
* @CSDN: https://blog.csdn.net/qq_44226094
*/
#include <stdio.h>
#include <sys/socket.h>
#include <netpacket/packet.h>
#include <ne... |
/*
* Copyright (c) 2016, NVIDIA CORPORATION.
*
* SPDX-License-Identifier: GPL-2.0
*/
#include <common.h>
#include <asm/io.h>
#include <dm.h>
#include <mailbox-uclass.h>
#include <dt-bindings/mailbox/tegra186-hsp.h>
#define TEGRA_HSP_INT_DIMENSIONING 0x380
#define TEGRA_HSP_INT_DIMENSIONING_NSI_SHIFT 16
#define T... |
/*
* List files and extract file from rars by using external executable unrar.
*
* Copyright (C) 2005 <NAME> <<EMAIL>>
* Copyright (C) 2007 Ulion <<EMAIL>>
*
* This file is part of MPlayer.
*
* MPlayer is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Licens... |
/*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.