text stringlengths 5.8k 28.2k |
|---|
#define OP_WIDE -1
#define OP_TABLESWITCH -2
#define OP_LOOKUPSWITCH -3
typedef uint8_t U1;
typedef uint16_t U2;
typedef uint32_t U4;
typedef uint64_t U8;
typedef int8_t I1;
typedef int16_t I2;
typedef int32_t I4;
typedef int64_t I8;
/* heap object structure */
typedef struct Heap {
struct Heap *prev, *ne... |
/* Copyright 1995-2020 Mersenne Research, Inc. */
/* Author: <NAME> */
/* Email: <EMAIL> */
/* Include files needed by all ports */
#include <ctype.h>
#include <fcntl.h>
#include <math.h>
#include <memory.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include ... |
/** \file
* \author This code was written by <NAME> for gphoto
*
* \par License
* 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 Foundation; either
* version 2 of the License, or (at your optio... |
#include <e-hal.h>
#include <e-loader.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
#include "common.h"
#include "mb_utils.h"
#define SHM_OFFSET 0x01000000
typedef struct fl_ind {
float value;
unsigned index;
} fl_ind;
int cmp(const void *a, const void ... |
// parse barcode sequence from raw sequences for sci library and QC
#include "utils.h"
#include "fastq.h"
#include "thread_pool.h"
#include "number.h"
#include <zlib.h>
#include <htslib/kstring.h>
#include <ctype.h>
#define PLT_UNKNOWN -1
#define PLT_SCI 0
#define PLT_DROP 1
#define PLT_RENAME 2
#define PLT... |
/*
* The public APIs of the pam-afs-session PAM module.
*
* Provides the public pam_sm_setcred, pam_sm_open_session, and
* pam_sm_close_session functions, plus whatever other stubs we need to
* satisfy PAM.
*
* Written by <NAME> <<EMAIL>>
* Copyright 2006, 2007, 2008, 2010
* The Board of Trustees of the Le... |
/*
* Copyright (C) 2006 <NAME>, <<EMAIL>>
* Copyright (C) 2005 <NAME>, Pengutronix
* Copyright (C) 2006 <NAME>, Varma Electronics
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the version 2 of the GNU General Public License
* as published by the Free Software Fo... |
#define _XOPEN_SOURCE 500
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#define GLEW_STATIC
#include <GL/glew.h>
#define GL_GLEXT_PROTOTYPES
#include <GLFW/glfw3.h>
#include "./la.h"
#define SCREEN_WIDTH 800
#define SCREEN_HEIGHT 600
const char *vert_shader_s... |
/* $XFree86: xc/programs/Xserver/lbx/lbxprop.c,v 1.6 2005/10/14 15:17:20 tsi Exp $ */
/*
Copyright 1986, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all ... |
/* redbuf.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__2 = 2;
/* $Procedure REDBUF ( Read input data into the buffer line ) */
/* Subroutine */ int redb... |
// 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... |
/* This file is part of Motion.
*
* Motion 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.
*
* Motion is distributed... |
/*
* FAAC - Freeware Advanced Audio Coder
* Copyright (C) 2002 <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 Foundation; either
* version 2.1 of the License, or (at your option) any... |
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#define _LARGEFILE64_SOURCE
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/sysinfo.h>
#include <string.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "mpi.h"
#include <unistd.h>
#include <stdint.h>
#include <fcntl.h>
#include <sys/sta... |
/* FUNCTION list --- --- --- --- --- --- ---
_TableInit cseg 000055DA 00000016
_ReadObjStatus cseg 000055F0 000000AA
_DrawNewCel cseg 0000569A 0000006D
_DrawViewPri cseg 00005707 000000AE
_BlitMirrorCell c... |
/*-
* Copyright (c) 2003-2004 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... |
#include "rdma-client-fun.h"
static const int RDMA_BUFFER_SIZE = 1024;
static void build_context(struct ibv_context *verbs);
static void build_qp_attr(struct ibv_qp_init_attr *qp_attr);
static void on_completion(struct ibv_wc *);
static void read_remote(struct connection *conn, int HoB, uint64_t offset);
static void ... |
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include "stringlib.h"
int strcmp_lcase(char* str1, char* str2) {
int i;
char* lcase1 = (char*) malloc(sizeof(char) * (strlen(str1)+1));
char* lcase2 = (char*) malloc(sizeof(char) * (strlen(str2)+1));
strcpy(lcase1, str1);
strcpy(lcas... |
#include "p3_globals.h"
int isFrameUsed(int frameId){
int accessPtr;
USLOSS_MmuGetAccess(frameId, &accessPtr);
int used = accessPtr & USLOSS_MMU_REF;
if(used == USLOSS_MMU_REF){
return TRUE;
}
return FALSE;
}
void setFrameUnused(int frameId){
int accessPtr;
USLOSS_MmuGetAccess(frameId, &accessPtr);
USLO... |
/*
* Copyright 2013 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... |
/*
* Copyright 2000-2018 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... |
/*-----------------------------------------------------------*/
/*--- Block recoverer program for bzip2 ---*/
/*--- bzip2recover.c ---*/
/*-----------------------------------------------------------*/
/* -------------------------------------------------------... |
#include <stdlib.h>
#include <math.h>
#include <float.h> /* for DBL_EPSILON */
#include <string.h> /* for memset() */
#include "eos_mise.h"
#include "eos_heap.h"
#include "eos_memory.h"
#include "eos_types.h"
#include "eos_util.h"
#include "eos_log.h"
/*
* Given a BIP array of U16 data, compute the mean pixel and s... |
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <signal.h>
#include "asm.h"
#include "processor.h"
#include "spinlock.h"
#include "lwp.h"
#include "lwp_threads.h"
#include "sys_state.h"
#include "context.h"
#include "cache.h"
#include "video.h"
#include "ogcsys.h"
#include "lwp_c... |
/*
*******************************************************************************
*
* Copyright (C) 1998-2008, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
*
* File genrb.c
*
* Modification History:... |
/*
** Purpose: Manage child task command dispatching
**
** Notes:
** 1. 'Command' does not necessarily mean a ground command.
** 2. See header file for prototype notes.
**
** License:
** Written by <NAME>, licensed under the copyleft GNU
** General Public License (GPL).
**
** References:
** 1. OpenSatKit... |
// Copyright 2009 The Go 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 "runtime.h"
#include "type.h"
#include "defs_GOOS_GOARCH.h"
#include "os_GOOS.h"
#include "../../cmd/ld/textflag.h"
#pragma dynimport runtime·CloseHan... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2017 General Electric Company
*
* Based on board/freescale/mx53loco/mx53loco.c:
*
* Copyright (C) 2011 Freescale Semiconductor, Inc.
* <NAME> <<EMAIL>>
*/
#include <common.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
#i... |
/******************************************************************************/
/* */
/* Copyright (c) 1990-2016, KAIST */
/* All rights reserved. ... |
/*
* 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.
*/
/* qwnoesyA.c
2D cross relaxation experiment. It can be performed i... |
/*****************************************************************************
C-DAC Tech Workshop : HEMPA-2011
Oct 17 - 21, 2011
Example : ScalarMatrixGlobalMemSP.c
Objective : Perform scalar-matrix multiplication using global memory
... |
/*
* tkVisual.c --
*
* This file contains library procedures for allocating and freeing
* visuals and colormaps. This code is based on a prototype
* implementation by <NAME>.
*
* Copyright (c) 1994 The Regents of the University of California.
* Copyright (c) 1994-1997 Sun Microsystems, Inc.
*
* See the file "... |
/*
Copyright (c) 2007-2008 <NAME>
This software originally derived from <NAME>'s pivotal_gmtime_r.c.
The MIT License:
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, inclu... |
/**
* @file view.c
* @date 15 May 2020
* @brief TIZEN Native Example App view entry with NNTrainer/CAPI.
* @see https://github.com/nnstreamer/nntrainer
* @author <NAME> <<EMAIL>>
* @bug No known bugs except for NYI items
*/
#include "view.h"
#include "data.h"
static Evas_Object *create_layout_(Evas_Object *par... |
/* btss.c: BIT TABLE COVERAGE TEST
*
* $Id: //info.ravenbrook.com/project/mps/version/1.113/code/btcv.c#1 $
* Copyright (c) 2001-2013 Ravenbrook Limited. See end of file for license.
*
* .readership: MPS developers
*
* .coverage: Direct coverage of BTFind*ResRange*, BTRangesSame,
* BTISResRange, BTIsSetRange, ... |
/*
* planets.c: Display zd/az of planets from ephemeris data
*
* Derived from software developed by:
*
* U. S. Naval Observatory
* Astronomical Applications Dept.
* Washington, DC
* http://aa.usno.navy.mil/software/novas/novas_info.php
*/
#define _XOPEN_SOURCE
#include <novas.h>
#include <ephutil.h>
#i... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <malloc.h>
#include <setjmp.h>
#include <assert.h>
#include <getopt.h>
/* cheap attempt at emulating tms320c54x */
/* just enough to run the IR AMBE Codec decoding */
#define R_SIZE 0xffff
#define S_SIZE 0x8000
//uint16_t ram[R_S... |
//
// BRRippleSerialize.c
// Core
//
// Created by <NAME> on 4/16/19.
// Copyright © 2019 Breadwinner AG. All rights reserved.
//
// See the LICENSE file at the project root for license information.
// See the CONTRIBUTORS file at the project root for a list of contributors.
//
#include <stdlib.h>
#include <strin... |
/*
* Copyright 2012 Red Hat Inc.
* Copyright (C) 2015 <NAME> <<EMAIL>>, Raptor Engineering
*
* 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 li... |
#define _USE_GNU
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <unistd.h>
#include <pwd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
FILE *server_r, *server_w;
int server_fd;
const char ... |
/* Copyright (C) 2010-2020 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (m3u_file.c).
* ---------------------------------------------------------------------------------------
*
* Permiss... |
/*
* Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2006 The University of Tennessee and The University
* of Tennessee Resea... |
#pragma ident "@(#)__libmcr_mx_atan.c 1.6 04/02/25 SMI"
/* ************************************************************ */
/*
* Copyright (c) 2002 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that th... |
/*
* SPDX-License-Identifier: BSD-3-Clause
*
* example_08-StructOfArrays-CellLinkedList-OuterOmp.c :
* Example of SPH Density Calculation using
* fast neighbor search the main density loop via
* Cell Linked List method, Struct of Arrays (SoA)
* data layout, OpenMP parallelization at the ... |
#include "MSPd.h"
#define F_LEN 16384
#define MAX_DELAY_TIME 3600000.0 // in seconds
#define OBJECT_NAME "vdp~"
static t_class *vdp_class;
typedef struct
{
float coef;
float cutoff;
float x1;
} t_lpf;
typedef struct {
t_word *b_samples;
long b_valid;
long b_nchans;
long b_frames;
t_symbol *wavename... |
/*
* Copyright 2013 Red Hat 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, merge, publish, d... |
#include "drelease.h"
char TOOLKIT_ID[]=
"\0@(#) " __FILE__ " $Revision: 1.12 $$Date: 2014/12/17 07:20:39 $";
D_REL_IDSTR;
/*
* filename toolkit.c
* $Revision: 1.12 $ $Date: 2014/12/17 07:20:39 $
*
* ~~ Copyright 1999-2014 <NAME> and <NAME>
*
* All rights are reserved. Copying or other reproduction of
... |
/* SPDX-License-Identifier: BSD-3-Clause */
/*****************************************************************************
* Copyright 2021, Fraunhofer Institute for Secure Information Technology SIT.
* All rights reserved.
****************************************************************************/
/**
* @file c... |
/* This file contains routines to construct GNU OpenMP constructs,
called from parsing in the C and C++ front ends.
Copyright (C) 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
Contributed by <NAME> <<EMAIL>>,
<NAME> <<EMAIL>>.
This file is part of GCC.
GCC is free software; you can redist... |
#include "copyright.h"
/*============================================================================*/
/*! \file par_linearwave1d.c
* \brief Problem generator for plane-parallel, grid-aligned linear wave tests
* with Lagrangian particles.
*
* PURPOSE: Problem generator for plane-parallel, grid-aligned linear wa... |
/*
connect cities v. 2.0
github.com/return5
license: MIT
simple game running in terminal. objective is to connect the cities with train tacks.
see 'readme.txt' for controls and game info
*/
//----------------------------------headers ----------------------------------------
#include "connectcities.h"
//--------... |
/*
* Skin image drawing
*
* Copyright (C) 2009 Nokia 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 by the Free Software Foundation; either version 2 or
* (at your option) version 3 of the License.
*
* ... |
/*
* response.c - send messages of various kinds to clients
* pianod
*
* Created by <NAME> on 2012-03-16.
* Copyright 2012-2014 Devious Fish. All rights reserved.
*
*/
#include <config.h>
#include <stdarg.h>
#include <assert.h>
#include <piano.h>
#include <fb_public.h>
#include "logging.h"
#include "resp... |
/**
* @file video_capture/testcard2.c
* @author <NAME> <<EMAIL>>
*
* @todo
* Passing grabbed frames from thread is terribly broken. It needs to be reworked.
*/
/*
* Copyright (c) 2011-2013 CESNET z.s.p.o.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* mo... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
U T I L I T I E S
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include "../include/externs.h"
#include "../include/utilities.h"
#i... |
/*
** queens.c -- Find solutions to the Eight-Queens chess problem.
** <NAME> 3/19/84 Version 1.1
**
** Description:
** This program finds all the possible ways that N queens can
** be placed on an NxN chessboard so that the queens cannot
** capture one another -- that is, so that no rank, file or
** diagonal... |
/*
* Copyright (c) 2022 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include... |
#include "can.h"
#include "delay.h"
#include "sys.h"
// CAN初始化
// tsjw:重新同步跳跃时间单元.范围:CAN_SJW_1tq~ CAN_SJW_4tq
// tbs2:时间段2的时间单元. 范围:CAN_BS2_1tq~CAN_BS2_8tq;
// tbs1:时间段1的时间单元. 范围:CAN_BS1_1tq ~CAN_BS1_16tq
// brp :波特率分频器.范围:1~1024; tq=(brp)*tpclk1
//波特率=Fpclk1/((tbs1+1+tbs2+1+1)*brp);
// mode:CAN_Mode_Normal,普通模式;C... |
/*
* Copyright (C) 2007 aCaB <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <string.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <ctype.h>
#include <errno.h>
#include <sys/stat.h>
#include <fcntl.h>
extern int errno;
typedef void (*sighandler_t)(int);
static char *my_argv[100], *my_envp[100];
... |
//<NAME> - Prof(s): <NAME>;
//<NAME> - (ECO);
//09/07/2020;
//Bibliotecas usadas
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
//variaveis globais
int i, j, lin, col;
int jogadas = 0;
int semente = 0, agua = 5, adubo = 5, n = 2;
char area[25][50];
void inicializa(){
int a... |
/*
* Copyright 2018, Amazon.com, Inc. or its affiliates. All Rights Reserved
*/
#include "al_hal_common.h"
#include "al_tpm.h"
enum tis_access {
TPM_ACCESS_VALID = 0x80,
TPM_ACCESS_ACTIVE_LOCALITY = 0x20,
TPM_ACCESS_REQUEST_PENDING = 0x04,
TPM_ACCESS_REQUEST_USE = 0x02,
};
enum tis_status {
TPM_STS_VALID = 0... |
/**
* @file _linreg_internal.c
* @author <NAME> <<EMAIL>>
* @brief Wrappers for internal C functions in `_linreg.c`.
*/
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/arrayobject.h>
#include <numpy/npy_math.h>
// gives access to internal C functions... |
/*
* Virtual Keyboard Device (vkeyboard.c)
* Part of libpogo, a c-library replacent for GBA
* Programmed by <NAME> (Sasq)
*
* DESCRIPTION
* Implements a virtual keyboard that lets the user enter keys into
* stdin by using combinations of L+R to select a group and joypad,
* A and B to select a key in tha... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <limits.h>
#include <math.h>
#ifdef _WIN32
#include <windows.h>
#define HDN 1
#endif
#define DEBUG 0
unsigned long long int p, pi, l, gn=0x00, vs=0x00; char **gnrc, *cdc=(char)0x00;
double pcrs=0.5, pmtz=0.1, **gnrd, *cfit; i... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
#include "snes.h"
#include "cpu.h"
#include "apu.h"
#include "dma.h"
#include "ppu.h"
#include "cart.h"
#include "input.h"
static const double apuCyclesPerMaster = (32040 * 32) / (1364 * 262 * 60.0);
static void snes... |
/* GStreamer
* Copyright (C) 2004 <NAME> <<EMAIL>>
* Copyright (C) 2006 <NAME> <tim centricular net>
* Copyright (C) 2008 <NAME> <<EMAIL>>
* Copyright (C) <2011-2012> <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
... |
struct tree {
int type;
char *name;
struct tree *kid1;
struct tree *kid2;
struct tree *kid3;
};
struct tree *CreateTreeNode(int nodetype, char *id, struct tree *child1, struct tree *child2, struct tree *child3);
struct tree *CreateLeaf(int leaftype, char *id);
typedef int sigset_t;
typedef unsigned int speed_t; ... |
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <string.h>
#include <errno.h>
#include <libgen.h>
#include <fcntl.h>
#include <poll.h>
#include "bloomFilter/bloomFilter.h"
#include "readDirs.h"
#include "database/... |
#include "cbd.h"
#include "indcpa.h"
#include "ntt.h"
#include "poly.h"
#include "polyvec.h"
#include "randombytes.h"
#include "rejsample.h"
#include "symmetric.h"
/*************************************************
* Name: pack_pk
*
* Description: Serialize the public key as concatenation of the
* ... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <inttypes.h>
#include <getopt.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "libzdb.h"
static struct option long_options[] = {
{"in-data", required_argument, 0, 'd'},
{"... |
#include "ant_stream_native_internal.h"
#include "../../../common/native/ant_common.h"
#include <gio/gio.h>
#include <glib.h>
#include <glib/gstdio.h>
#include <gst/gst.h>
#include <dbus/dbus-glib-lowlevel.h>
#include <dbus/dbus-glib.h>
#include <dbus/dbus-protocol.h>
#include <assert.h>
#include <fcntl.h>
#include ... |
/**********************************************************************************************
A sample demo that shows flappy bird clone.
The drawing of the sprites and backgrounds are rendered into a 2D layer using the 2D DMA hardware acceleration.
Rendering the sprites, however are written using direct memory a... |
/*! \file
Copyright (c) 2003, The Regents of the University of California, through
Lawrence Berkeley National Laboratory (subject to receipt of any required
approvals from U.S. Dept. of Energy)
All rights reserved.
The source code is distributed under BSD license, see the file License.txt
at the top-level directory.
... |
/****************************************************************************/
/* */
/* This file is part of CONCORDE */
/* */
/* ... |
/// nekowin: OpenGL and Vulkan compatible library for context / surface window generation
/// licence: Apache, see LICENCE.md
/// file: key_translation.c - native api key code translator source file
/// author: <NAME>
#define __KEY_TRANSLATION_C
#include <key_translation.h>
#ifdef __linux__
/// X11 key tr... |
// Scheherezade -> Hasherezade
#define ROL(x, n) (((x) << (n)) | ((x) >> (32-(n))))
#define HashTableSize 18
//
// Revision: 1, 2012-Feb-01, the main disadvantage: the preprocessing overhead PLUS a hasher.
// Caution: For better speed the case 'if (cbPattern==1)' was removed, so Pattern must be longer than 1 char.
#ifn... |
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#define GRAPH_SIZE 490000
#define BOX_SIZE 200
#define ATOM_SIZE 3000
#define CONVEXH_SIZE 300
#define DEGREE_SIZE 565
long box[BOX_SIZE][BOX_SIZE][BOX_SIZE];
int satisfy[GRAPH_SIZE][3];
int compids[GRAPH_SIZE];
float atoms[ATO... |
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#define NOKNET
#define import_spp
#define import_finfo
#define import_knames
#include <iraf.h>
#include "../boo... |
/*
* Red Pixel, a violent game.
* Copyright (C) 1999 Psyk Software.
*
* Game loop (including rendering)
*/
#include <stdio.h>
#include "a4aux.h"
#include "gameloop.h"
#include "anim.h"
#include "blood.h"
#include "colours.h"
#include "cpu.h"
#include "demo.h"
#include "engine.h"
#include "globals.h"
#includ... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2017 RDK Management
*
* 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 ... |
//
// PC-Wahl 10.0 Update-Archive Decrypter/Creator (c) 2017
// by Thorsten (<NAME> <ths [at] ccc [dot] de>
//
/*
BSD 3-Clause License
Copyright (c) 2017, Chaos Computer Club
Author: Thorsten (THS) Schroeder <ths [at] ccc [dot] de>
All rights reserved.
Redistribution and use in source and binary form... |
#ifndef TB_INI_H
#define TB_INI_H
#include <stddef.h>
typedef enum
{
TB_INI_OK,
TB_INI_BAD_NAME,
TB_INI_BAD_VALUE,
TB_INI_BAD_SECTION,
TB_INI_BAD_PROPERTY,
TB_INI_UNKOWN_ERROR
} tb_ini_error;
typedef struct
{
char* name;
size_t name_len; /* bytelen of name */
char* start;
s... |
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980, 1986, 1990 The Regents of the University of California.
* All rights reserved.
*
* Redi... |
#include <elf/lib32.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
/* - mapping the elf accroding to program headers
* @ elf_hdr
*
*
*/... |
/*
* Copyright (c) 2018 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following d... |
#include <stdio.h>
#include <rand.h>
#include <gb/gb.h>
#include <gb/font.h>
#include "gbtplayer/gbt_player.h"
#include "sprites/Hero.c"
#include "sprites/Items.c"
#include "sprites/SplashFont.c"
#include "sprites/BackgroundSprites.c"
#include "backgrounds/Backgrounds.c"
#include "backgrounds/splash_data.c"
#include "... |
/*
* Copyright (C) 2005 to 2007 by <NAME>
* email: <EMAIL>
* Copyright (C) 2013-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 Foundation; either version 3 of the License, or
* (at yo... |
/******************************************************************************
* *
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except ... |
/* hgHubConnect - the CGI web-based program to select track data hubs to connect with. */
#include "common.h"
#include "hash.h"
#include "linefile.h"
#include "errabort.h"
#include "errCatch.h"
#include "hCommon.h"
#include "dystring.h"
#include "jksql.h"
#include "cheapcgi.h"
#include "htmshell.h"
#include "hdb.h"
#i... |
/* BSD 2-Clause License
*
* Copyright (c) 2019, <NAME> All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this lis... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* File Name : freertos.c
* Description : Code for freertos applications
******************************************************************************
* @attention
*
* <h... |
/* PLASMA CLIENT: Client library for using the plasma store and manager */
#include <assert.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <strings.h>
#include <netinet/in.h>
#include <ne... |
/*******************************************************************************
* - FILE: matrix_3d_sparse.c
* - DESC: MATRIX_3D_SPARSE Float object.
*******************************************************************************/
/* imports */
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#inc... |
/*---------------------------------------------------------------
* Programmer(s): <NAME> @ SMU
*---------------------------------------------------------------
* LLNS/SMU Copyright Start
* Copyright (c) 2015, Southern Methodist University and
* Lawrence Livermore National Security
*
* This work was performed u... |
/*-
* Copyright (c) 2016 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the followi... |
/**
******************************************************************************
* @file irq.c
* @author <NAME>, enimai
* @version V1.0.0
* @date 5-October-2013
* @brief Interrupt Service Routines for I2C and other peripherals
********************************************************************... |
/* Copyright (c) 2016, ENEA Software AB
* Copyright (c) 2016, Nokia
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <unistd.h>
#include <getopt.h>
#include <string.h>
#include <inttypes.h>
#include <sys/socket.h>
#include "nfp.h"
#include "cli_arg_parse.h"
#define MAX_WORKERS 32
#d... |
/*
* Copyright (c) 2007 - 2015 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... |
#include "coordPlane.h"
#include "SDL2/SDL.h"
#include "SDL2/SDL_ttf.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
const static int AXIS_THICKNESS = 2;
static void draw_x_axis(CoordPlane *coord_plane);
static void draw_y_axis(CoordPlane *coord_plane);
static void draw_horizontal_line_and_label(CoordPla... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.