text stringlengths 5.8k 28.2k |
|---|
#include "fft.h"
#include "gf.h"
#include "parameters.h"
#include "parsing.h"
#include "reed_solomon.h"
#include <stdint.h>
#include <stdio.h>
#include <string.h>
/**
* @file reed_solomon.c
* Constant time implementation of Reed-Solomon codes
*/
static void compute_syndromes(uint16_t *syndromes, uint8_t *cdw);
sta... |
#include <errno.h>
#include "nl80211.h"
#include "iw.h"
#include <unistd.h>
SECTION(measurement);
static int put_preamble(struct nl_msg *msg, char *s)
{
static const struct {
const char *name;
unsigned int val;
} preamble_map[] = {
{ .name = "legacy", .val = NL80211_PREAMBLE_LEGACY, },
{ .name = "ht", .val... |
/*
* Copyright (c) 2016~2017 Hisilicon Limited.
*
* 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.
*/
#include <l... |
/*
* rfcomm_sppd.c
*/
/*-
* Copyright (c) 2003 <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
* ... |
/**************************************************************************
*
* Copyright 2007 VMware, Inc.
* Copyright 2012 <NAME> <<EMAIL>>
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Sof... |
/* $NetBSD: score.c,v 1.5 1997/10/10 12:32:34 lukem Exp $ */
/*-
* Copyright (c) 1980, 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
* are met:
... |
/*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... |
#include "norm.h"
extern int current_module;
void init_r7rs(void){
current_module = 1; //(normal system)
defsubr("pair-length",(int)f_pair_length);
defsubr("last",(int)f_last);
defsubr("butlast",(int)f_butlast);
defsubr("sys-code",(int)f_vmcode);
defsubr("sys-env",(int)f_env);
defsubr("sys... |
/**
* \file savefile.c
* \brief Savefile loading and saving main routines
*
* Copyright (c) 2009 <NAME> <<EMAIL>>
*
* 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, versi... |
/*
* Copyright (C) SplinterGU (Fenix/BennuGD) (Since 2006)
* Copyright (C) 2002-2006 Fenix Team (Fenix)
* Copyright (C) 1999-2002 <NAME> (Fenix)
*
* This file is part of Bennu Game Development
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be... |
/** \file
* \brief DEC Tulip ethernet driver
*
* This file is a driver for the Tulip Ethernet controller
*/
/*
* Copyright (c) 2007, 2008, 2010, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by ... |
/* We encode backwards, to avoid pre-computing lengths (one-pass encode). */
#include "upb/encode.h"
#include <string.h>
#include "upb/msg.h"
#include "upb/upb.h"
#include "upb/port_def.inc"
#define UPB_PB_VARINT_MAX_LEN 10
#define CHK(x) do { if (!(x)) { return false; } } while(0)
static size_t upb_encode_varint... |
#include <curses.h>
#include <string.h>
#include "debug.h"
#include "data.h"
#include "execution.h"
#include "conversion.h"
#define HEADER_Y 1
#define WINDOW_X 2
#define WINDOW_Y HEADER_Y + 2
#define GAP 2
#define INSTRUCTION_X WINDOW_X
#define INSTRUCTION_WIDTH 52
#define REGISTER_X INSTRUCTION_X + INSTRUCTION_WIDTH ... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include "quizrunner_changedir.h"
#include "quizrunner_closefile.h"
#include "quizrunner_createbuffer.h"
#include "quizrunner_openfile.h"
#include "quizrunner_writetobuffer.h"
#include "quizrunner_printlist.h"
#include "qu... |
/* $Header: /cvsroot/osrs/libtiff/tools/gif2tiff.c,v 1.4 2003/03/12 14:05:05 dron Exp $ */
/*
* Copyright (c) 1990-1997 <NAME>ler
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted with... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* AD7291 8-Channel, I2C, 12-Bit SAR ADC with Temperature Sensor
*
* Copyright 2010-2011 Analog Devices Inc.
*/
#include <linux/device.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/module.h>
#in... |
/*
* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the
* disclaimer below) provided that the following conditions are met:
*
* * Redistributions of source ... |
// SPDX-License-Identifier: GPL-2.0+
/*
* NVIDIA Tegra210 QSPI controller driver
*
* (C) Copyright 2015 NVIDIA Corporation <www.nvidia.com>
*/
#include <common.h>
#include <dm.h>
#include <time.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch-tegra/clk_rst.h>
#include <spi.h>
#include <fdtdec.... |
/*++
/* NAME
/* master_ent 3
/* SUMMARY
/* Postfix master - config file access
/* SYNOPSIS
/* #include "master.h"
/*
/* void fset_master_ent(path)
/* char *path;
/*
/* void set_master_ent()
/*
/* MASTER_SERV *get_master_ent()
/*
/* void end_master_ent()
/*
/* void print_master_ent(entry)
/* MASTER_SERV *entry;
/*
/* vo... |
/*
* Copyright (c) 2020 Fuzhou Rockchip Electronic Co.,Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-03-04 <NAME> First version
*
*/
#include "main_page.h"
#define DBG_SECTION_NAME "MAINPAGE"
#define DBG_LEVEL DBG_INFO
#include "... |
/*
* 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 applicable law or agreed to in writing, sof... |
/* Non-preemptive scheduler for the threaded runtime of the C target of Lingua
Franca. */
/*************
Copyright (c) 2022, The University of Texas at Dallas. Copyright (c) 2022, The
University of California at Berkeley.
Redistribution and use in source and binary forms, with or without modification,
are permitted p... |
#include "header.h"
void bnb(THREADED) {
int ****workSpace, *plbValues, ***fitchArray, ***mpTree, **wosac;
int level=0, rsize, lsize, cctr, nctr, taxa, cost, indx, prevTID=0, currTID=0;
int done, rem, statesOver, statesRem, site, plbLen, plbIndx, mask,
bpos, maskRem, maskOver;
int ctsl, ctsr, ntsl, ntsr,... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "io.h"
#include "../port/error.h"
#include <image.h>
#include <memimage.h>
#include "vga.h"
/*
* ATI Mach64CT.
*/
enum { /* I/O select */
HTotalDisp = 0x00,
HSyncStrtWid = 0x01,
VTotalDisp = 0x02,
VSyncStrtWi... |
/*
* XERIS/APEX System I
* Autonomous Poly-Executive
*
* Release 1
*
* Copyright (C) 2016, <NAME>
* ALL RIGHTS RESERVED
*/
/*
* XERIS CORE
*
* SIPLEX%
* Strategic Imparative Planning Liason Executive
*
* SIPLEX/STARLINE (AVR5)
*
* Initilization Operator
*
*/
#include <xeris.h>
#include <xe... |
#include "xglk.h"
#include "xg_internal.h"
#include "greypm.bm"
fontset_t plainfonts;
#define EVENTMASK (ButtonPressMask | ButtonReleaseMask | ButtonMotionMask \
| KeyPressMask | StructureNotifyMask | ExposureMask)
static XPoint polydot[3]; /* For the cursor-dot. */
static void arrange_window(vo... |
#include "packetEngine.h"
#include "error.h"
#include "linuxsyscall.h"
FILE *logfile;
FILE *loghdr;
extern int stopThreads;
int sock_row;
int tcp = 0 , udp= 0, icmpp = 0, igmp = 0, raw = 0,stcp=0, others = 0,total = 0;
struct sockaddr_in source, dest;
void print_ethernet_header(const u_char *packet, int size)
{
... |
/******************************************************************************
* Copyright (c) 2005-2018 Broadcom. All Rights Reserved. The term "Broadcom"
* refers to Broadcom Inc. and/or its subsidiaries.
*
* This program is the proprietary software of Broadcom and/or its licensors,
* and may only be used, ... |
/*
* Copyright (c) 2014, 2015, <NAME>. All rights reserved.
* Copyright (c) 2015, Red Hat, 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 ret... |
/*-
* Copyright (c) 2014, 2015 <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 condit... |
#include "graph.h"
void graph_menu(){
struct graph *g=NULL;
while(1){
int optionn=0;
printf("Меню:\n");
printf("%d. Вывести граф.\n",++optionn);
printf("%d. Ввести граф.\n",++optionn);
printf("%d. Найти циклы в графе.\n",++optionn);
printf("%d. Произвести топологическую сортировку графа.\n",++optionn);
printf... |
#define NAN (0.0f / 0.0f)
#define INFINITY 1e5000f
#define HUGE_VALF INFINITY
#define SIGN_MASK 0x80000000u
#define EXPONENT_MASK 0x7f800000u
#define MANTISSA_MASK 0x007fffffu
static float utf(unsigned int i) {
union {
unsigned int i;
float f;
} u;
u.i = i;
return u.f;
}
static unsigned int ftu(float... |
#include <stdint.h>
#include "idt.h"
static void idt_set_entry(unsigned int pos, uint32_t base,
uint16_t selector, uint8_t type_attributes)
{
idt[pos].base_lower = base & 0xffff;
idt[pos].selector = selector;
idt[pos].unused = 0x0;
idt[pos].type_attributes = type_attributes;
idt[pos].base_h... |
#include "vectors.h"
#include "shapes.h"
#include "png_maker.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_timer.h>
#include <string.h>
// ------ Constants ------ //
#define WIN_WIDTH 100
#define WIN_HEIGHT 100
#define MAX_ITERATIONS 1000
#define MINIMUM_DISTAN... |
/*
* (file system) device subsystems
* '#k'.
* Follows device config in Ken's file server.
* Builds mirrors, device cats, interleaving, and partition of devices out of
* other (inner) devices.
*
* This code is from Plan 9, and subject to the Lucent Public License 1.02.
* Only the name changed for Inferno (name... |
/*
* SPDX-FileCopyrightText: 2016 <NAME>
* SPDX-FileCopyrightText: 2021-2022 Comcast Cable Communications Management, LLC
*
* SPDX-License-Identifier: MIT
*/
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <curl/curl.h>
#include "cb.h"
#include "receive.h"
#include "utf8... |
/*
* Copyright 2017 GoPro Inc.
*
* 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, Vers... |
/*
* Copyright © 2002, <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 disclaime... |
/*
* Copyright [1999-2013] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
*
* 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.o... |
/* SHA-512 code by Jean-Luc Cooke <<EMAIL>>
*
* Copyright (c) <NAME> <<EMAIL>>
* Copyright (c) <NAME> <<EMAIL>>
* Copyright (c) 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 Softwar... |
#include <math.h>
#include <stdlib.h>
#include "wcsmath.h"
#include "wcstrig.h"
#include "proj.h"
#define icopysign(X, Y) ((Y) < 0.0 ? -abs(X) : abs(X))
#define TPN 999
/*============================================================================
* TAN: gnomonic projection, with correction terms.
*
* This projec... |
/* eclipse_tt.c: Eclipse console terminal simulator
Copyright (c) 1998-2005, <NAME>
Portions copyright (c) 1993-2002, <NAME>
Written by <NAME>, used by gracious permission
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (t... |
/* $OpenBSD: audioctl.c,v 1.21 2010/07/15 03:43:12 jakemsr Exp $ */
/* $NetBSD: audioctl.c,v 1.14 1998/04/27 16:55:23 augustss Exp $ */
/*
* Copyright (c) 1997 The NetBSD Foundation, Inc.
* All rights reserved.
*
* Author: <NAME>
*
* Redistribution and use in source and binary forms, with or without
* modificat... |
/**
Generated Main Source File
Company:
Microchip Technology Inc.
File Name:
main.c
Summary:
This is the main file generated using PIC10 / PIC12 / PIC16 / PIC18 MCUs
Description:
This header file provides implementations for driver APIs for all modules selected in the GUI.
Generation I... |
/* 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.
*/
/* Loader for Imago Orpheus modules based on the format description
... |
//
//
// <NAME>
// v 1.5.1
//
//
#include "ofColor.h"
// Gray
const ofColor oc_gray_0 = ofColor(248,249,250);
const ofColor oc_gray_1 = ofColor(241,243,245);
const ofColor oc_gray_2 = ofColor(233,236,239);
const ofColor oc_gray_3 = ofColor(222,226,230);
const ofColor oc_gray_4 = ofColor(206,212,218);
const ofCol... |
/*
* Copyright (c) 2016 - 2020, Broadcom
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <string.h>
#include <drivers/delay_timer.h>
#include <chimp.h>
#include <chimp_nv_defs.h>
#define CHIMP_DEFAULT_STARTUP_ADDR 0xb4300000
/* ChiMP's view of APE scratchpad memory for fastboot */
#define CHIMP_FASTBOOT_... |
/*
* Copyright © 2020 Amazon.com, Inc. or its affiliates.
* Copyright © 2014,2015 Citrix Systems Ltd.
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code ... |
/* Definitions for 64-bit PowerPC running FreeBSD using the ELF format
Copyright (C) 2012 Free Software Foundation, Inc.
This file is part of GCC.
GCC 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 Foundatio... |
/*
* Copyright (c) 2012-2016, Juniper Networks, Inc.
* All rights reserved.
*
* You may distribute under the terms of :
*
* the BSD 2-Clause license
*
* Any patches released for this software are to be released under these
* same license terms.
*
* BSD 2-Clause license:
*
* Redistribution and use in source... |
/*
* \brief Driver for face detection on OMAP 4460.
*
* \see OMAP TRM rev Z
*/
/*
* Copyright (c) 2013, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, CAB F.78... |
/*
* Copyright (c) 2019 zhtlab
*
* 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, publis... |
#include "voxelGen.h"
/*
* Un-comment them to have debug messages or internal performance measurements
*/
//#define DEBUG_LOG
//#define PERF_LOG
/*
* the type Vertex is defined in the file "voxelGen.h", in any case
* the type definition is also written above (commented out) in
* between lines 7to 13
*/
void pr... |
#include <unistd.h>
#include <stdlib.h>
#include "umfileint.h"
#define file_pos(f) (lseek(f, 0, SEEK_CUR))
/*
* reads n words from file, storing them at ptr, with byte swapping as required
* returns number of words read (i.e. n, unless there's a short read)
*/
size_t read_words(int fd,
void *ptr,
size_t... |
/*
Author: <NAME> (c) 1997
Program to generate a random irreducible
polynomial contained in Zp p prime. See
"Handbook of Applied Cryptography" pages
157 - 158. Also see "A Course in Computa-
tional Algebraic Number Theory" by <NAME> pages 37 and 127.
*/
#include <ctype.h>
#include <stdio.h>
#... |
#include "../spectrum.h"
#include <time.h>
// TODO : fill memMap & set prt1 for reset to separate ROM pages
void atm2Reset(Computer* comp) {
comp->dos = 1;
comp->p77hi = 0;
kbdSetMode(comp->keyb, KBD_ATM2);
comp->keyb->submode = kbdZX;
comp->keyb->wcom = 0;
comp->keyb->warg = 0;
comp->z_i = 1;
kbdReleaseAll(c... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <elf.h>
#include "box86version.h"
#include "elfloader.h"
#include "debug.h"
#include "elfload_dump.h"
#include "elfloader_private.h"
const char* DumpSection(Elf32_Shdr *s, char* SST) {
static char buff[400];
switch (s->sh_type) {
case... |
/* G.721 decoder, from Sun's public domain CCITT-ADPCM sources,
* retrieved from ftp://ftp.cwi.nl/pub/audio/ccitt-adpcm.tar.gz
*
* For reference, here's the original license:
*
* This source code is a product of Sun Microsystems, Inc. and is provided
* for unrestricted use. Users may copy or modify this source c... |
/* Copyright (C) 2005, 2007, 2008, 2013 by <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 conditions and the follo... |
/* Molecular Surface Package */
/* Copyright 1995 by <NAME> */
/* February 3, 2000 */
#include "ms.h"
#include "msenum.h"
#include "mslimit.h"
#include "msdefault.h"
#include "msstruct.h"
#include "msglobal.h"
#include "msfunction.h"
struct vanity *smooth_density (long dimension, long dimensions[3], float *densities... |
/* $NetBSD: ipkdb_step.c,v 1.2 1997/10/14 09:57:29 mark Exp $ */
/*
* Copyright (C) 1994 <NAME>.
* Copyright (C) 1994 TooLs GmbH.
* 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. Re... |
/*
* 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... |
/*
The MIT License (MIT)
Copyright (c) 2017 <NAME>, <NAME>, <NAME>, <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 ri... |
/* $OpenBSD: pcap-bpf.c,v 1.20 2006/03/26 20:58:51 djm Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996, 1998
* 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: (1) source code d... |
/*
* drawtext.c: print text over the screen
******************************************************************************
* Options:
* -f <filename> font filename (MANDATORY!!!)
* -s <pixel_size> font size in pixels [default 16]
* -b print background
* -o outline glyphs (use the ... |
/*
* Copyright 2018 Google LLC
*
* 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 ... |
// Copyright (C) 2004-2011 <NAME> & <NAME>
// This file is part of the "Luxinia Engine".
// For conditions of distribution and use, see luxinia.h
#include "../common/vid.h"
#include "main.h"
// Common
#include "../common/memorymanager.h"
#include "../common/timer.h"
#include "../common/console.h"
#include "../commo... |
/*
** Copyright 2017 by Kvaser AB, Molndal, Sweden
** http://www.kvaser.com
**
** License: BSD-new
** ==============================================================================
** Redistribution and use in source and binary forms, with or without
** modification, are permitted pr... |
/** Main window.
Copyright (c) 2019 <NAME> */
#include <gui-gtk/gui.h>
#include <FF/path.h>
static void wmain_action(ffui_wnd *wnd, int id);
static uint tab_new(uint flags);
static void list_new();
static void list_chooseaddfiles();
static void list_del();
static void list_save();
static void hidetotray();
static vo... |
/*-------------------------------------------------------------------------
*
* bitmappage.c
* Bitmap index page management code for the bitmap index.
*
* Copyright (c) 2007, PostgreSQL Global Development Group
*
*
* IDENTIFICATION
* $PostgreSQL$
*----------------------------------------------------------... |
/**
* See README.rst for format details.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <sys/sendfile.h>
#include <sys/types.h> // for lseek
#include <unistd.h> // for lseek
#include <errno.h>
#include <err.h>
#include <assert.h>
#ifdef HAVE_MD5
#include "md5/m... |
#include "pistachio.h"
#define CONFIG_FILE "~/.config/pistachio/configuration"
#define FONT_PATH "/usr/share/fonts/noto/NotoSansMono-Regular.ttf"
#define SEARCH_SIZE 16.0
#define RESULTS_SIZE 12.5
#define ERROR_SIZE 14.0
#define FOREGROUND 0xfff8f8f8
#define BACKGROUND 0xe8303030
#... |
/* ============================================================================
* Copyright (c) 2013 <NAME> (Purdue University)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistrib... |
/* -*- C -*-
* Copyright (c) 1998-2006 <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 (c) 2007-2010 Marvell International Ltd. All Rights Reserved.
*
* Marvell Confidential
* ============================================================================
*/
/**
*
* \file platfo... |
// libav2yuv
// adapted from
// avcodec_sample.0.4.9.cpp
// A small sample program that shows how to use libavformat and libavcodec to
// read video from a file.
//
// This version is for the 0.4.9-pre1 release of ffmpeg. This release adds the
// av_read_frame() API call, which simplifies the reading of video frames
... |
/*******************************************************************************************
*
* raylib [core] example - Basic window (adapted for HTML5 platform)
*
* This example is prepared to compile for PLATFORM_WEB, PLATFORM_DESKTOP and PLATFORM_RPI
* As you will notice, code structure is slightly difer... |
/**
* @file ui.c
* @brief User interface
* @author <NAME> (avalera)
* @version
* @date 2017-03-07
*/
#include "ui.h"
#include "messagequeue/messagequeue.h"
#include "neighbor/friendlist.h"
#include "neighbor/neighborlist.h"
#include "neighbor/responseflags.h"
#include "network/packet.h"
#define TSU 175 //0xAF
#... |
/* ------------------------------------------------------------------------- */
/* coral.c - created 2007 by <NAME> (<EMAIL>) */
/* */
/* gcc -ansi -O3 -L/usr/X11R6/lib -L/opt/local/lib -I/opt/local/include */
/* -lX11 -lj... |
#include <stdlib.h>
#include <stdio.h>
#include <setjmp.h>
#include <stdalign.h>
#include <limits.h>
#include <string.h>
#include "gm/vector.h"
#include "base/mem.h"
#include "base/wbuf.h"
#include "base/tstack.h"
#include "text/str.h"
#include "fs/file.h"
#include "wf/wf.h"
#include "adt/hmap.h"
#include "glapi/api.h... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
// Orismos domhs gia stoixeia leoforeioy
typedef struct busdata {
char plate[8];
unsigned int seats;
} BUSDATA;
// Orismos domhs gia stoixeia epibati
typedef struct passenger {
char name[41];
unsigned short tel[10];
unsigned int seat;
} PA... |
/*******************************************************
*
* Author: <NAME>
*
* <EMAIL>
*
* Revision: 1.0
* Date: 01/09/05
*
*******************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <AR/ar.h>
#include <AR/matrix.h>
#include <AR/arMulti.h>... |
#pragma once
#include "compiler.h"
#include <stdint.h>
#define MZ_DOS_SIGNATURE UINT16_C(0x5a4d) /* MZ */
#define DOS_PE_OFFSET_LOCATION 0x3C
/**
* COFF file header
*/
struct __packed PE_COFF_header {
uint32_t signature;
uint16_t machine;
uint16_t number_of_sections;
uint32_t time_date_stamp;
... |
#include "surface_pri.h"
#include <xcb/xcb.h>
#include <vulkan/vulkan_xcb.h>
#include <stdlib.h>
typedef struct graph_surface_xcb_s {
graph_surface_s surface;
xcb_connection_t *connect;
xcb_colormap_t colormap;
xcb_window_t winid;
xcb_atom_t atom_close;
} graph_surface_xcb_s;
static const graph_surface_s* graph_... |
#include <fcntl.h>
#include <linux/fb.h>
#include <linux/input.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h> // mmap PROT_
#include <sys/poll.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <termios.h>
#include <time.h>
#include <unistd.h>
#include... |
/*
* 1-Wire implementation for Maxim Semiconductor
* MAX7211/MAX17215 stanalone fuel gauge chip
*
* Copyright (C) 2017 Radioavionica Corporation
* Author: <NAME> <<EMAIL>>
*
* Use consistent with the GNU GPL is permitted,
* provided that this copyright notice is
* preserved in its entirety in all copies and de... |
#include "Chacha20_Vec128.h"
static uint32_t Hacl_Impl_Chacha20_Vec128_State_blocks = vec_size / (uint32_t )4;
static uint32_t Hacl_Impl_Chacha20_Vec128_State_vecsizebytes = vec_size * (uint32_t )4;
inline static void Hacl_Impl_Chacha20_Vec128_State_state_incr(vec *k)
{
vec k3 = k[3];
k[3] = vec_add(k3, one_le);... |
/* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 only,
* as published by the Free Software Foundation.
*
* This program is distributed in... |
// Nokia5110.h
// Runs on LM4F120/TM4C123
// Use SSI0 to send an 8-bit code to the Nokia5110 48x84
// pixel LCD to display text, images, or other information.
// <NAME>
// September 16, 2013
// Font table, initialization, and other functions based
// off of Nokia_5110_Example from Spark Fun:
// 7-17-2011
// Spark Fun ... |
//
// BREthereumNode.h
// breadwallet-core Ethereum
//
// Created by <NAME> on 4/18/18.
// Copyright (c) 2018 breadwallet LLC
//
// 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 with... |
/* $(CROSS_COMPILE)cc -Wall -Wextra -g -lpthread -o testusb testusb.c */
/*
* Copyright (c) 2002 by <NAME>
* Copyright (c) 2010 by Samsung Electronics
* Author: <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 publ... |
/*
* Copyright 2012-2020 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Driver for BCM6358 GPIO unit (pinctrl + GPIO)
*
* Copyright (C) 2021 <NAME> <<EMAIL>>
* Copyright (C) 2016 <NAME> <<EMAIL>>
*/
#include <linux/bits.h>
#include <linux/gpio/driver.h>
#include <linux/kernel.h>
#include <linux/of.h>
#include <linux/pinctrl/pinmux.h>
#include... |
/*
Copyright (C) 2020 <NAME>
This file is part of "vetr - Trust, but Verify"
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.
... |
/*-
* 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) 2020-present, HexHacking Team. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to u... |
/*
* fir_semester_work.c
*
* Created: 2020-07-09 오후 6:44:22
* Author : <NAME>
*/
#define F_CPU 16000000UL
#include <avr/io.h>
#include <util/delay.h>
#include <stdlib.h>
#include "lcd1602a_h68.h"
#define SW_DDR DDRA
#define SW_PIN PINA
#define HEART_CHAR 4
#define PLAYER_CHAR 5
#define BV(n) (1 << n)
#define CH... |
/*---------
* Module: qresult.c
*
* Description: This module contains functions related to
* managing result information (i.e, fetching rows
* from the backend, managing the tuple cache, etc.)
* and retrieving it. Depending on the situation, a
* QResultClass will hold either data from the back... |
/*
* Server for osdep network driver. Uses osdep itself! [ph33r teh recursion]
*
* Copyright (c) 2007-2009 <NAME> <<EMAIL>>
*
* Advanced WEP attacks developed by KoreK
* WPA-PSK attack code developed by <NAME>
* SHA1 MMX assembly code written by <NAME>
*
* This program is free software; you ... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <immintrin.h>
#include <qnnpack/q8gemm.h>
static inline __m128i sse_reduce4_i32(__m128i x... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.