text stringlengths 7.55k 41.9k |
|---|
/**
* @file gui_w_list.c
* @brief list implementation; use GUI_M_List instead
* @author <NAME> <<EMAIL>>
* @version N/A -- draft / experimental
* @date (yyyy-mm-dd) 2014-03-08
* Licence: MIT
*/
#include "gui_w.h"
#include "resources.h"
#define LIST_W_MIN 100 /*minimal width, in pixel*/
#define LIST_H_MIN 3... |
/*
* Copyright 2012 <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:
* - Redistributions of source code must retain the above copyright
* notice, this list of ... |
#include "SkyCOM.h"
#include <string.h>
//stdio only neccesairy for debugging
//#include <stdio.h>
char StrBits[255]; //all characters from message are in this array
char StrResv[127];
unsigned char DataBits[1500]; //holds the DataBits/ receive buffer
unsigned char SetpBits[200]; //holds all non data values ex... |
#include "gpio.h"
#include <stdint.h>
#include <stdbool.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
enum PIN_DIRECTION{
INPUT,
OUTPUT
};
struct Pin* find_pin(const uint8_t port, const uint8_t pin) {
for (int i = 0; i < get... |
#include <stdio.h>
#include "functions.h"
/*Funzione benvenuto in cui stampo alcune frasi a schermo*/
void welcome(){
printf("Benvenuto al gioco del monopoly!\n");
printf("Progetto di PR1, AA 2015/2016\n");
printf("Desideri iniziare una nuova partita o caricarne una salvata in precedenza?\n");
}
... |
/*-------------------------------------------------------------------------
*
* hba.c--
* Routines to handle host based authentication (that's the scheme
* wherein you authenticate a user by seeing what IP address the system
* says he comes from and possibly using ident).
*
*
* IDENTIFICATION
* $H... |
/*
* Copyright 2020 Makani Technologies 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 ... |
/*
* Home: https://github.com/tiiuae/cryptolib.git
*/
#include <stdio.h>
#include <string.h>
#include "ecies.h"
#define err(fmt, ...) \
do { \
printf("ERROR:" fmt, ##__VA_ARGS__); \
exit(1); ... |
/* code.c - Handles Code 11, 39, 39+ and 93 */
/*
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 Foundation; ei... |
/*
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. Redistributions in binary form must ... |
/*
Copyright (C) 1999-2002 Voxi AB. All rights reserved.
This software is the proprietary information of Voxi AB, Stockholm, Sweden.
Use of this software is subject to license terms.
*/
/*
Voxi's Event Manager
*/
#ifdef _WIN32_WCE
#include <windows.h>
/* all of a sudden we needed time_t to be defined in tim... |
// Simple code editor. I just thought it would be nice to include a DOS-style
// text editor, but it is not at all an attempt to make a serious editor.
// The code ended up being really messy, mostly because I only find 10 minutes
// here and there to work on it over the course of a few days. There are most
// likely ... |
/* ----------------------------------------------------------------------
*
* Create a single image stereogram from a height map.
* by <NAME> <<EMAIL>>
* Adapted to Netbpm conventions by <NAME>.
* Revised by <NAME>.
*
* The core of this program is a simple adaptation of the code in
* "Displaying 3D Images: Algo... |
/*******************************************************************************
* *
* BREAKOUT GAME *
* ... |
struct menuLevel {
char name[16];
struct menuLevel *next;
struct menuLevel *prev;
struct menuLevel *down;
struct menuLevel *up;
void (*DoWork)(void);
};
//struct ADCCONFIG {
//
// void (adcInterrupt) (void);
// //void (adc
//};
#define dacChipSelect 28
MCP492X DAC(dacChipSelect);// (MOSI,SCK,CS,LDAC)
Ad... |
/*
Copyright 2012-2016 <NAME> <http://drobilla.net>
Copyright 2013 <NAME> <<EMAIL>>
Copyright 2011-2012 <NAME>, <NAME>
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 ... |
// Options: --no-argc --no-arrays --no-bitfields --checksum --concise --no-consts --no-float --no-inline-function --max-array-dim 3 --max-array-len-per-dim 10 --max-block-depth 5 --max-block-size 4 --max-expr-complexity 2 --max-funcs 1 --max-pointer-depth 2 --no-pointers --no-structs --no-unions --no-volatiles --no-b... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// This is the main module for corpusPropertyExtractor.exe
// It's job is to read a text corpus from a specified input file and
// to generate a set of property files.
//
// CHARACTER SET: All internal processing and output... |
/* msend.c */
/* Program to send multicast packets in flexible ways to test multicast
* networks.
* See https://community.informatica.com/solutions/1470 for more info.
*
* Authors: The fine folks at 29West/Informatica
*
* Redistribution and use in source and binary forms, with or without
* modification, are pe... |
#include <assert.h>
#include <emmintrin.h>
#include <inttypes.h>
#include <string.h>
#include <tmmintrin.h>
#include <wmmintrin.h>
#include <xmmintrin.h>
#include "aes-ni.h"
#include <ay/aes.h>
#include <ay/aes/hedley.h>
#include "inner.h"
/**
* @name Common functions
* Functions used in AES-128, AES-192, AES-256 ... |
/**
******************************************************************************
* File Name : main.c
* Description : Main program body
******************************************************************************
*
* COPYRIGHT(c) 2016 STMicroelectronics
*
* Redistribution and use in ... |
/* $NetBSD: if_eca.c,v 1.1 2002/03/24 15:47:16 bjh21 Exp $ */
/*-
* Copyright (c) 2001 <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 ret... |
////////////////////////////////////////////////////////////////////////////////
//
// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any... |
#include "mmu.h"
#include "pmap.h"
#include "printf.h"
#include "env.h"
#include "error.h"
/* These variables are set by mips_detect_memory() */
u_long maxpa; /* Maximum physical address */
u_long npage; /* Amount of memory(in pages) */
u_long basemem; /* Amount of base memory(in bytes) ... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2016 The University of Tennessee a... |
/* sgeqpb.f -- translated by f2c (version 20041007).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the e... |
#include "param.h"
#include "conf.h"
#include "systm.h"
#include "buf.h"
#include "reboot.h"
#define SECTSIZE 512 /* size of SD card sector */
size_t physmem; /* total amount of physical memory */
u_int swapstart, nswap; /* start and size of swap space */
const struct linesw linesw[] = { ... |
/*
* Copyright (c) 1995
* <NAME> (hereinafter referred to as the author)
*
* 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 li... |
/* $Id: transport_test.c 5311 2016-05-20 04:17:00Z ming $ */
/*
* Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
* Copyright (C) 2003-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
* ... |
#include <stdio.h>
#include <stdlib.h>
#include <vic411_vicNl.h>
static char vcid[] = "$Id: vic411_solve_snow.c,v 5.9.2.10 2009/10/08 21:30:59 vicadmin Exp $";
double vic411_solve_snow(char overstory,
double BareAlbedo,
double LongUnderOut, // LW from understory
... |
/*s: networking/ip/imap4d/mbox.c */
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <auth.h>
#include "imap4d.h"
/*s: global [[flagChars]] */
static NamedInt flagChars[NFlags] =
{
{"s", MSeen},
{"a", MAnswered},
{"f", MFlagged},
{"D", MDeleted},
{"d", MDraft},
{"r", MRecent},
};
/*e:... |
/******************************************************************************
* usbd/usbd.c
* by <NAME>
*
* A light weight implementation of the USB protocol stack fit for a simple
* driver.
*
* usbd.c contains code relating to the generic USB driver. USB
* is designed such that this driver's interface would be virt... |
/**************************************************************************
*
* Copyright 2009 VMware, Inc.
* 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 wit... |
/*
* iplink_bond.c Bonding device support
*
* 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 yo... |
/* Instruction printing code for the MAXQ
Copyright 2004, 2005, 2007 Free Software Foundation, Inc.
Written by <NAME>(<EMAIL>) <NAME>.(<EMAIL>)
This file is part of the GNU opcodes library.
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU General Publ... |
// RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +sse4.1 -emit-llvm -o - -Wall -Werror | FileCheck %s
// RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +sse4.1 -fno-signed-char -emit-llvm -o - -Wal... |
/*
* File: park_right.c
*
*
* --- THIS FILE GENERATED BY S-FUNCTION BUILDER: 3.0 ---
*
* This file is an S-function produced by the S-Function
* Builder which only recognizes certain fields. Changes made
* outside these fields will be lost the next time the block is
* used to load, edit, and resave ... |
#include "CodingParameters.h"
#include "HuffmanTableDataStructures.h"
#include "FunctionDeclerations.h"
#include "Utilities.h"
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
// THIS IMPLEMENTATION IS FOR D = 20
unsigned char seeded;
unsigned char encode;
unsigned int p... |
/* mainPage - draws the main hgGenome page, including some controls
* on the top and the graphic. */
/* Copyright (C) 2013 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "psGfx.h"
#include "pscmGfx.h"
#include "linefil... |
/* regionPicker - Code to pick regions to annotate deeply.. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "obscure.h"
#include "bits.h"
#include "dnautil.h"
#include "hdb.h"
#include "featureBits.h"
#include "axt.h"
#include "htmshell.h"
static char const rcsid[] = "$Id:... |
/* armor.c - Armor filters
* Copyright (C) 1998-2012 Free Software Foundation, Inc.
*
* Author: <NAME>
*
* This file is part of OpenCDK.
*
* The OpenCDK library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Softw... |
#include "pipe/p_screen.h"
#include "pipe/p_state.h"
#include "util/u_format.h"
#include "util/u_format_s3tc.h"
#include "util/u_simple_screen.h"
#include "nouveau/nouveau_screen.h"
#include "nouveau/nv_object.xml.h"
#include "nvfx_context.h"
#include "nvfx_screen.h"
#include "nvfx_resource.h"
#include "nvfx_tex.h"
#... |
/* This code was developed as part of graduate coursework at Embry-Riddle Aeronautical University
* under the guidance of Dr. <NAME> and Dr. <NAME>.
*
* Author: <NAME>
* Assistant Developers: <NAME>, <NAME>, and <NAME>
* Support: <EMAIL>
*
* Oct. 25, 2012
* Version 1.0
*
*/
/*
* File: Arduino_GPS_sfcn.c
*
*
*... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "seccomon.h"
#include "cert.h"
#include "secutil.h"
#include "nspr.h"
#include "nss.h"
#include "blapi.h"... |
/*
* OpenSplice DDS
*
* This software and documentation are Copyright 2006 to TO_YEAR PrismTech
* Limited, its affiliated companies and licensors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... |
/********************************************************
* *
* Licensed under the Academic Free License version 3.0 *
* *
********************************************************/
// Standard library
#include... |
// This file is part of Deark.
// Copyright (C) 2018 <NAME>
// See the file COPYING for terms of use.
// Ogg multimedia format
#include <deark-config.h>
#include <deark-private.h>
#include <deark-fmtutil.h>
DE_DECLARE_MODULE(de_module_ogg);
struct localctx_struct;
typedef struct localctx_struct lctx;
struct page_inf... |
/*
Copyright (c) 2018 <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... |
/*
* 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.
*/
/*---------------------------------------------------------------------------... |
static char help[] ="Attempt X-ray propagation in matter based on ex3\n\
Solves a simple time-dependent linear PDE .\n\
Input parameters include:\n\
-m <points>, where <points> = number of grid points\n\
-debug : Activate debugging printouts\n\n";
/* ------------------------------------------------------... |
#include "lcd.h"
//============================内部函数===================================
void LCDSetValue(uint_8 index,uint_8 value);
void LCDShow1(uint_8 index,uint_8 value);
//显示码表
const uint_8 LEDcodetable[30] =
// 0 1 2 3 4 5 6 7 8 9
// 0 1 2 3 4 5 6 7 8 9
... |
/* Author: <NAME>
email: <EMAIL>
CHESS Telemetry Interface.
*/
#include <dm7820_library.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/resource.h>
#include <sys/time.h>
#i... |
//
// Created by rsnook on 11/10/20.
//
#include <stddef.h>
#include <string.h>
#include <math.h>
#include <stdio.h>
#include "bitmap.h"
#include "stripe_filter.h"
#define SF_GRADIENT_POSITIVE_ANNOTATION_COLOR (0)
#define SF_GRADIENT_NEGATIVE_ANNOTATION_COLOR (1)
#define SF_GRADIENT_CLUSTER_ANNOTATION_COLOR (2... |
/*
* Copyright (C) 2011 by <NAME> and <NAME>
*
* The authors of this code have given their permission
* to distribute and redistribute this code within this software product,
* however they require that any further incorporation or copying
* be permitted by request only, hence the BSD/MIT license which
* applies... |
/* ====================================================================
* Copyright (c) 2015 - 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. Redistribution... |
#include "driver.h"
#include "streams.h"
#include "sound/samples.h"
#include "includes/galaxian.h"
#define VERBOSE 0
#define NEW_LFO 0
#define XTAL 18432000
#define SOUND_CLOCK (XTAL/6/2) /* 1.536 MHz */
#define RNG_RATE (XTAL/3) /* RNG clock is XTAL/3 */
#define NOISE_RATE (XTAL/3/192/2/2) /* 2V = 8kHz */
#d... |
/*
* @Author: <NAME>
* @Date: 2016-12-21 23:34:13
* @Last Modified by: ksvbka
* @Last Modified time: 2017-01-13 09:15:29
*/
#include "angle_calculate.h"
#include "math.h" /* For sqrt and atan2*/
/* Scale Value config for ACC of mpu6050*/
extern float g_acc_scale;
/* Scale Value config for GYRO of mpu6050*/
exter... |
/*
* mtrr.c: setting MTRR to decent values for cache initialization on P6
*
* Derived from intel_set_mtrr in intel_subr.c and mtrr.c in linux kernel
*
* Copyright 2000 Silicon Integrated System Corporation
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU G... |
// (c) 2020 MotoLegacy
// This code is licensed under MIT license (see LICENSE for details)
//
// includes
//
#include "engine/defs.h"
#include <stdio.h>
anima_t Animas[G_NUM_ANIMAS];
camera_t Camera;
gamestate_t Game;
// Text Elements
textelement_t Hour_Text;
textelement_t Night_Text;
textelemen... |
#include "tree_list.h"
#include "union.h"
#include <time.h>
long long* init_array_with_zeroes(long long count);
void get_chars_frequency(char filename[], long long* freq_arr, long* length);
void add_to_list (NODE** init, unsigned long long freq, unsigned char symbol, NODE* branch);
void make_list(NODE** init, long lon... |
#include <unistd.h>
#include <stdio.h>
#include "JLinkARMDLL.h"
#include "device.h"
#include "trace.h"
#include "common.h"
static void AFL_ERROR_OUT(const char* sError) {
printf("\nERROR: %s\n", sError);
// printf("press any key to exit.\n");
// system("pause");
// exit(-1);
}
void STM32F407VE_OneTimeTr... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <libgen.h>
#include <cuda.h>
#include <nvrtc.h>
#define lengthof(array) (sizeof (array) / sizeof ((array)[0]))
static const char *cmdname;
static void usage(void)
... |
#include <stdlib.h>
#include "../cpu.h"
#include "z80_macro.h"
#include "z80_nop.h"
extern opCode fdcbTab[256];
extern opCode ddTab[256];
extern opCode edTab[256];
// 09 add iy,bc 11 mptr = iy+1 before adding
void fd09(CPU* cpu) {
ADD16(cpu->iy, cpu->bc);
}
// 19 add iy,de 11 mptr = iy+1 before adding
void fd19(CPU... |
// This file implements the C preprocessor.
//
// The preprocessor takes a list of tokens as an input and returns a
// new list of tokens as an output.
//
// The preprocessing language is designed in such a way that that's
// guaranteed to stop even if there is a recursive macro.
// Informally speaking, a macro is appl... |
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Thread management for memcached.
*/
#include "config.h"
#include "memcached.h"
#include <assert.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <stdint.h>
#include <signal.h>... |
/*
* Author: <NAME> (<EMAIL> / <EMAIL>)
* Data encoding/decoding util
*/
#include "encutil.h"
const uint DATA_HEADER = 0x5533FF0F; //0F FF 33 55
const uint DATA_FOOTER = 0x0FFF3355; //55 33 FF 0F
uint8_t *byteToBit(uint8_t *bt, uint len, uint *bitlen) {
uint8_t *b = calloc(sizeof(uint8_t), len * 8);
uint i = 0;
... |
#define ELFMAG "\177ELF"
char str_e_ident_class[3][13] = {
"ELFCLASSNONE",
"ELFCLASS32",
"ELFCLASS64"
};
char str_e_ident_data[3][12] = {
"ELFDATANONE",
"ELFDATA2LSB",
"ELFDATA2MSB"
};
#define EV_CURRENT "1"
char str_e_type[7][10] = {
"ET_NONE",
"ET_REL",
"ET_EXEC",
"ET_DYN",
"ET_CORE",
"ET... |
// TODO: add total word count to vocabulary, instead of "train_words"
//
// Modifed by <NAME>, Jan-Feb 2014
// Removed:
// hierarchical-softmax training
// cbow
// Added:
// - support for different vocabularies for words and contexts
// - different input syntax
//
/////////////////////////////////////////////... |
/*
* OpenAL Multi-Zone Reverb Example
*
* Copyright (c) 2018 by <NAME> <<EMAIL>>
*
* 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... |
/*
* DRM driver for Ilitek ILI9225 panels
*
* Copyright 2017 <NAME> <<EMAIL>>
*
* Some code copied from mipi-dbi.c
* Copyright 2016 <NAME>
*
* 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 Foundat... |
/**
* FreeRDP: A Remote Desktop Protocol Client
* X11 Windows
*
* Copyright 2011 <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licen... |
/************************************
Seta custom ST-0016 chip
driver by <NAME>
************************************/
#include "driver.h"
#include "st0016.h"
UINT8 *st0016_charram,*st0016_spriteram,*st0016_paletteram;
UINT8 *macs_ram1,*macs_ram2;
UINT32 st0016_game;
static INT32 st0016_spr_bank,st0016_sp... |
/*
* 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... |
/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2018 The PHP Group |
+---------... |
/*******************************************************************************
System Initialization File
File Name:
initialization.c
Summary:
This file contains source code necessary to initialize the system.
Description:
This file contains source code necessary to initialize the system. It
... |
/*
** $Id: monthcalendar.c 224 2007-07-03 09:38:24Z xwyan $
**
** monthcalendar.c: A part of calendar module for Feynman PMP solution.
**
** Copyright (C) 2007 Feynman Software, all rights reserved.
**
** Use of this source package is subject to specific license terms
** from Beijing Feynman Software Technology Co., Lt... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(C) 2019 Marvell International Ltd.
*/
#include <rte_string_fns.h>
#include "l2fwd_event.h"
#include "l2fwd_poll.h"
/* display usage */
static void
l2fwd_event_usage(const char *prgname)
{
printf("%s [EAL options] -- -p PORTMASK [-q NQ]\n"
" -p PORTMASK... |
#include <time.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <immintrin.h>
#include "fftw3.h"
#include "macros-sse.h"
#ifdef WIN32
#include <Windows.h>
#else
#include <malloc.h>
#endif
#include "libfft.h"
plan_t * fft_init(size_t n, int direct)
{
plan_t* p = (plan_t*)malloc(sizeof(plan_t... |
/* Emacs style mode select -*- C++ -*-
*-----------------------------------------------------------------------------
*
*
* PrBoom: a Doom port merged with LxDoom and LSDLDoom
* based on BOOM, a modified and improved DOOM engine
* Copyright (C) 1999 by
* id Software, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
... |
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include "windefs.h"
#include "restok.h"
#include "exentres.h"
#include "resread.h"
#include "checksum.h"
#define SAME 0 //... Used in string compares
#define MAXLEVELS 3 //... Max # of levels in resource directory
typedef struct... |
/*-
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... |
/*
* Copyright (c) 2011-2016 <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 ... |
/*********************************************************************
8255ppi.c
Intel 8255 PPI I/O chip
NOTE: When port is input, then data present on the ports
outputs is 0xff
The 8255 PPI has three basic modes:
Mode 0: Basic Input/Output
Mode 1: Strobed Input/Output
... |
/************************************************************************
**
** GSC-18128-1, "Core Flight Executive Version 6.7"
**
** Copyright (c) 2006-2019 United States Government as represented by
** the Administrator of the National Aeronautics and Space Administration.
** All Rights Reserved.... |
/*
* Copyright 2017 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, m... |
/*
* Have attacker and victim client's 2 connections. No Model1.
* Used for build the model (phase 2)
*/
//#include <stdio.h>
#include "TCP_Model.h"
//#define Model0_SEQ_RANGE 6
//#define Model1_SEQ_RANGE 6
int seq_val = 2; //= 1; //seq for server, its value will update by SYN skb's seq value (TODO: is it good? rcv... |
/* ieee802154_kw41z.c - NXP KW41Z driver */
/*
* Copyright (c) 2017 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
#define SYS_LOG_LEVEL CONFIG_SYS_LOG_IEEE802154_DRIVER_LEVEL
#define SYS_LOG_DOMAIN "IEEE802154_KW41Z"
#include <logging/sys_log.h>
#include <zephyr.h>
#include <kernel.h>
#include <board... |
/*-
* Copyright (c) 2018 <NAME>, W8BSD
*
* 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 ... |
/*
wiring.c - Partial implementation of the Wiring API for the ATmega8.
Part of Arduino - http://www.arduino.cc/
Copyright (c) 2005-2006 <NAME>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software... |
/** @file scalespace.c
** @brief Scale Space - Definition
** @author <NAME>
** @author <NAME>
** @author <NAME>
**/
/*
Copyright (C) 2007-12 <NAME> and <NAME>.
All rights reserved.
This file is part of the VLFeat library and is made available under
the terms of the BSD license (see the COPYING file).
*/
/**
<!-... |
/*
* (C) Copyright 2014 Kurento (http://kurento.org/)
*
* 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 applicab... |
/*
OrionSocket - HTTP Request and Response handling Impl
--------------------------------
Author: <NAME> <<EMAIL>>
Copyright 2007, 2008 by <NAME>. 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.
... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2007-2009 coresystems GmbH
* Copyright (C) 2014 Google Inc.
* Copyright (C) 2015-2017 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published ... |
#include "factor.h"
#include "gmp_main.h"
#include "prime_iterator.h"
#include "utility.h"
#include "small_factor.h"
#include "ecm.h"
#include "simpqs.h"
#define _GMP_ECM_FACTOR(n, f, b1, ncurves) \
_GMP_ecm_factor_projective(n, f, b1, 0, ncurves)
#define NPRIMES_SMALL 2000
static unsigned short primes_small[NPRIM... |
/*
* 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... |
/*
* af_ipc_server.c
*
* The IPC Server layer infrastructure.
*
* Copyright (c) 2015-2016 Afero, Inc. All rights reserved.
*
*/
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include <semaphore.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sy... |
#include "sithTrackThing.h"
#include "General/stdConffile.h"
#include "General/stdMath.h"
#include "Engine/sithSoundClass.h"
#include "Engine/sithCollision.h"
#include "World/jkPlayer.h"
#include "Cog/sithCog.h"
#include "jk.h"
void sithTrackThing_MoveToFrame(sithThing *thing, int goalFrame, float a3)
{
if ( goal... |
/*
** .: (C) by <NAME> (<EMAIL>)
**
** This software is distributed under the terms of the BSD license:
** http://creativecommons.org/licenses/BSD/
** http://opensource.org/licenses/bsd-license.php
** ..
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <ass... |
/*******************************************************************************
* utest-vin.c
*
* ADAS unit-test. VIN LVDS cameras backend
*
* Copyright (c) 2015 Cogent Embedded Inc. ALL RIGHTS RESERVED.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and ass... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2005 <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 2 of the License, or
* (at your o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.