text stringlengths 3.08k 10.5k |
|---|
/*
* Copyright (C) 2014 BlueKitchen GmbH
*
* 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 follo... |
/*
* noseConeScaled.c
*
* Using glScalef() as a design tool.
*
* Exactly the same nose cone is made as in noseCone.c: the first piece is
* still a circular cylinder, while the second piece is now a hemisphere that
* is elongated by scaling to become exactly half of a circular ellipsoid.
*/
/* Use t... |
/**
****************************************************************************************************
* @file fm33lC0xx_fl_svd.c
* @author FMSH Application Team
* @brief Src file of SVD FL Module
****************************************************************************************************
* ... |
#include <caml/alloc.h>
#include <caml/callback.h>
#include <caml/mlvalues.h>
#include <caml/memory.h>
#include <caml/custom.h>
#include <string.h>
#include "range.h"
value *cb_range_parse;
value *cb_range_expand;
value *cb_range_compress;
value *cb_range_expand_sorted;
value *cb_range_set_altpath;
value *cb_range_... |
/*
* table.c
* Nroff/Troff.
* Tables.
*/
#include "roff.h"
/*
* Map escaped character.
*/
char esctab[ASCSIZE] ={
ENUL, ENUL, ENUL, ENUL, ENUL, ENUL, ENUL, ENUL, /* 0x00 to 0x07 */
ENUL, ENUL, EIGN, ENUL, ENUL, ENUL, ENUL, ENUL, /* 0x08 to 0x0F */
ENUL, ENUL, ENUL, ENUL, ENUL, ENUL, ENUL, ENUL, /* 0x10 to 0x... |
//Neutron project
//Standard library for userland projects
#pragma once
#include <stdarg.h>
//Definitions
#define NLIB_VERSION "1.0.0"
#define NULL ((void*)0)
#define true 1
#define false 0
#define CHAR_BIT 8
#define SCHAR_MIN -128
#define SCHAR_MAX 127
#define UC... |
// <NAME> and porres (2018)
// based on SuperCollider's PinkNoise UGen
#include "m_pd.h"
#include "random.h"
#define PINK_DEF_HZ 40
#define PINK_MAX_OCT 31
static t_class *pinknoise_class;
typedef struct _pinknoise{
t_object x_obj;
float x_signals[PINK_MAX_OCT];
float x_total;... |
#include "milone.h"
struct IntOption_;
struct IntOption_ MiloneStd_StdInt_tryParse(struct String );
int parseOk_(struct String s_2);
bool parseError_(struct String s_3);
void std_int_Program_tryParseTest(void);
int milone_main(void);
enum IntOption_Discriminant {
None_,
Some_,
};
struct IntOption_ {
... |
/*
Simple example to open a maximum of 4 devices - write some data then read it back.
Shows one method of using list devices also.
Assumes the devices have a loopback connector on them and they also have a serial number
To build use the following gcc statement
(assuming you have the d2xx library in the /usr/loca... |
/******************************************************
Copyright (c) 2012-2013 Percona LLC and/or its affiliates.
buffer datasink for XtraBackup.
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; ver... |
/* $NetBSD: t_renamerace.c,v 1.34 2017/01/13 21:30:40 christos Exp $ */
/*
* Modified for rump and atf from a program supplied
* by <NAME> in kern/40948
*/
#include <sys/types.h>
#include <sys/mount.h>
#include <sys/utsname.h>
#include <atf-c.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include ... |
/*
// Copyright (c) 2010-2017 Intel Corporation
//
// 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 la... |
/*
* linux/arch/arm/mach-omap2/sdrc2xxx.c
*
* SDRAM timing related functions for OMAP2xxx
*
* Copyright (C) 2005, 2008 Texas Instruments Inc.
* Copyright (C) 2005, 2008 Nokia Corporation
*
* <NAME> <<EMAIL>>
* <NAME>
* <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify... |
/*
* htpasswd.c: simple program for manipulating password file for NCSA httpd
*
* <NAME>
*/
/* Modified 29aug97 by <NAME> to accept new password on stdin,
** if stdin is a pipe or file. This is necessary for use from CGI.
*/
#include <sys/types.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#incl... |
/*******************************************************************************
* File: hw2.c
* Author: <NAME>
* Date: 12/3/2017
* Course: MAE 144, Fall 2017
* Description: Program calculates MIP body angle theta from raw accelerometer
* and gyroscope data and runs the raw angels through a complimentary filter.
* hw2.... |
/* *********************************************************************
* Broadcom Common Firmware Environment (CFE)
*
* SENTOSA-specific commands File: ui_sentosa.c
*
* A temporary sandbox for misc test routines and commands.
*
* Author: <NAME> (<EMAIL>)
*
****... |
// Meridian 59, Copyright 1994-2012 <NAME> and <NAME>.
// All rights reserved.
//
// This software is distributed under a license that is described in
// the LICENSE file that accompanies it.
//
// Meridian is a registered trademark.
/*
* maketrig.c: Automatically generate .c and .h file containing discrete trig tabl... |
/* $OpenBSD$ */
/*
* Copyright (c) 2007 <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... |
/*
* 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.
*
* This program is distributed in the hope that it will be use... |
#include <stdio.h>
#include <string.h>
/*
* this file contains the test for the added scheduling function
* ShortestJobFirstSched()
*/
// configuration.h
# define RoundRobin 1
# define QuantimSize 10
# define ShortestJobFirst 2
# define PriorityBased 3
# define MultiLevelFeedbackQueue 4
# define Default 5
# define Sc... |
// Copyright 2019-2021 <NAME> <<EMAIL>>
// SPDX-License-Identifier: ISC
#include "result.h"
#include "write_utils.h"
#include "exess/exess.h"
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
static inline ExessVariableResult
simple_read(const ExessResult result, const size_t write_count)
{
return vres... |
#include <stdio.h>
#include <stdlib.h>
#include "abpoa.h"
#include "abpoa_graph.h"
#include "utils.h"
/* example of dot file for graphviz */
/*
digraph test1 {
a -> b -> c;
a -> {x y};
b [shape=box];
c [label="hello\nworld",color=blue,fontsize=24,
fontname="Palatino-Italic",font... |
/* Copyright 2003-2018, University Corporation for Atmospheric
* Research. See COPYRIGHT file for copying and redistribution
* conditions. */
/**
* @file
* @internal This file contains functions that are used in file
* opens.
*
* @author <NAME>, <NAME>
*/
#include "zincludes.h"
#include "ncmodel.h"
#define NU... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "shogi.h"
int
is_move_valid( tree_t * restrict __ptree__, unsigned int move, int turn )
{
tree_t * restrict ptree = __ptree__;
int from = (int)I2From(move);
int to = (int)I2To(move);
int piece_move;
unsigned int u;
bitboard_t bb;
if ... |
/*
* Copyright (c) 2007 <NAME> <<EMAIL>>
* Copyright (c) 2007-2017 <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 ab... |
/*
* Multi2Sim
* Copyright (C) 2012 <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 option) any later version.
*
... |
/*
* Copyright (c) 2020 Bouffalolab.
*
* This file is part of
* *** Bouffalolab Software Dev Kit ***
* (see www.bouffalolab.com).
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* 1. Redistributions ... |
#include "clar_libgit2.h"
#include "remote.h"
#include "repository.h"
static git_repository *repo1;
static git_repository *repo2;
static char* repo1_path;
static char* repo2_path;
static const char *REPO1_REFNAME = "refs/heads/main";
static const char *REPO2_REFNAME = "refs/remotes/repo1/main";
static char *FORCE_FE... |
// Copyright (c) 2020 CloudMakers, s. r. o. & <NAME>
// All rights reserved.
//
// You can use this software under the terms of 'INDIGO Astronomy
// open-source license' (see LICENSE.md).
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHORS 'AS IS' AND ANY EXPRESS
// OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ... |
// SqlId
#define DOID(x) SqlId ADD_SCHEMA_PREFIX_CPP(x)(#x);
//#define DOID(x) SqlId x(#x);
#include SCHEMADIALECT
// constructor
#define TYPE(x) const S_info *S_##x::info; S_##x::S_##x() { ONCELOCK { info = &GetInfo(); }
#define COLUMN(type, ctype, name, width, prec) SqlSchemaIni... |
/*-
* Copyright (C) 1996 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
#include "pihm.h"
void InitRiver(river_struct *river, elem_struct *elem,
const rivtbl_struct *rivtbl, const shptbl_struct *shptbl,
const matltbl_struct *matltbl, const meshtbl_struct *meshtbl,
const calib_struct *cal)
{
int i;
for (i = 0; i < nriver; i++)
{
int ... |
#include "main.h"
#include "math.h"
#define LIFT_ACC_MOV_RANGE \
30 // amount lift will move before it is held in place
#define LIFT_MIN_SPEED 30 // lowest speed that will turn on the lift
#define LIFT_MIN_HEIGHT 100 // lowest potentiome... |
/*
* Copyright (C) 2011 Freescale Semiconductor, Inc.
*
* 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... |
#include "tic.h"
typedef signed int int8_t __attribute__((__mode__(__QI__)));
typedef unsigned int uint8_t __attribute__((__mode__(__QI__)));
typedef signed int int16_t __attribute__ ((__mode__ (__HI__)));
typedef unsigned int uint16_t __attribute__ ((__mode__ (__HI__)));
typedef signed int int32_t __attribute__ ((__mo... |
/*********************
* INCLUDES
*********************/
#include <stdlib.h>
#include <Windows.h>
#include <SDL.h>
#include "lvgl/lvgl.h"
#include "lv_drivers/display/monitor.h"
#include "lv_drivers/indev/mouse.h"
#include "lv_drivers/indev/keyboard.h"
#include "lv_examples/lv_examples.h"
#include "lvgl_network.h"... |
/*
* Copyright (c) 2010, <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D... |
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/in.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include "http.h"
#define BASE_FOLDER "www"
void processHttpRequest(int sock, int conSock)... |
#include "SDL.h"
#include "chipbox_sdl.h"
#include "core.h"
#include "cpu.h"
#include "vm.h"
#include "render.h"
#include "audio.h"
#include "argparse.h"
#include "chipbox_sdl_argparse.h"
#include "chipbox_sdl_config.h"
#include <stdio.h>
int main(int argc, char* argv[]) {
SDL_Window* window = NULL;
SDL_Render... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... |
// Copyright 2017 Vidrio Technologies
// by <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/licenses/LICENSE-2.0
#include "..... |
/**
*
* Copyright (c) 2009-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip products.
* It is your responsibility to comply with third p... |
/**
* @file retriever_api.h
* @author LowPower RF BU - AMG
* @version 1.3.0
* @date April, 2020
* @brief This is used to retrieve the SigFox data as ID, PAC and AES-KEY.
* The AES-KEY is a private variable and is not returned to the user.
* @details
*
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY ... |
/**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/ ... |
/*
* i2c-algo-sgi.c: i2c driver algorithms for SGI adapters.
*
* This file is subject to the terms and conditions of the GNU General Public
* License version 2 as published by the Free Software Foundation.
*
* Copyright (C) 2003 <NAME> <<EMAIL>>
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <... |
/***************************************************************************
machine.c
Functions to emulate general aspects of the machine (RAM, ROM, interrupts,
I/O ports)
***************************************************************************/
#include "driver.h"
/***************************... |
#define _XOPEN_SOURCE
#include <stdio.h>
#include <dirent.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <grp.h>
#include <pwd.h>
#include <unistd.h>
#include <time.h>
//set size of future path
#define BUFFER_SIZE (256)
//declaration of dirAttributes
void dirAttribute... |
#include "lista.h"
#include <stdlib.h>
#include <stdio.h>
typedef struct nodo {
struct nodo* proximo;
void* dato;
} nodo_t;
struct lista {
nodo_t* primero;
nodo_t* ultimo;
size_t largo;
};
// Primitivas de lista
lista_t* lista_crear(void){
lista_t* lista = malloc(sizeof(lista_t));
if (!lista)
return NULL;
... |
/**
*
* @copyright © 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der
* angewandten Forschung e.V. All rights reserved.
*
* BSD 3-Clause License
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. R... |
#include <stdlib.h>
#include <sys/select.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <netdb.h>
#include <ares.h>
#include "proxy.h"
#define DEFAULT_DNS_PORT "53"
struct config cfg;
#define READ_STRING(b, arg, dst) sscanf(b, #arg " \"%[^\"]\"", (dst)->arg)
#define READ_INT(b, arg, dst) ss... |
#define ENEMY_WIDTH 7
#define PLAYER_WIDTH 7
#define NUM_ENEMIES 35
#define NUM_COLS 7
#include <stdlib.h>
#include <time.h>
#include "lib/main.h"
#include "lib/player.h"
#include "lib/enemy.h"
#include "lib/img.h"
void initializeEnemies(GameWindow* GW){
EnemyLL* enemyLL = malloc(sizeof(EnemyLL));
e... |
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"
#include "plugin.h"
#include "etag.h"
#include "http_chunk.h"
#include "response.h"
#include <stdlib.h>
#include <string.h>
/**
* this is a staticfile for a lighttpd plugin
*
*/
/* plugin config for all request/connections */
typedef ... |
/**
* @file rtmp.h Real Time Messaging Protocol (RTMP) -- Internal API
*
* Copyright (C) 2010 <EMAIL>
*/
enum {
RTMP_PROTOCOL_VERSION = 3,
RTMP_DEFAULT_CHUNKSIZE = 128,
RTMP_HANDSHAKE_SIZE = 1536,
RTMP_MESSAGE_LEN_MAX = 524288,
};
/* Chunk IDs */
enum {
RTMP_CHUNK_ID_CONTROL = 2,
RTMP_CHUNK_ID_CONN... |
#include "types.h"
#include "defs.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "x86.h"
#include "proc.h"
#include "spinlock.h"
#include "kthread.h"
struct threadTable{
struct kthread threads[NTHREAD]; // Thread table for every process
};
struct ptable{
struct spinlock lock;
struct proc ... |
/**
* Copyright 2021 <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 w... |
// Created by <NAME> on 31.01.2021
// Copyright 2021 ETH Zurich
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "err.h"
#include "memory.h"
#define USED(x) \
if (x) \
; \
else { \
}
enum { SIZE = 999 };
int stl_read(
FILE* f, int* status, i... |
/*
* COMP20007 Design of Algorithms
* Semester 1 2016
*
* <NAME>
* March 2016
*
* This module provides all the IO functionality related to graphs.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "graphio.h"
#define MAX_LINE_LEN 256
#define INITIAL_SIZE 32
#def... |
#include <err.h>
#include <string.h>
#include "ast/ast.h"
#include "parser.h"
#include "utils/string_case.h"
struct ast *parse_expr(int argc, const char **argv, int *i,
struct myfind_env *env);
enum expression_case
{
EXPR_UNKNOWN = 0,
EXPR_NAME,
EXPR_TYPE,
EXPR_PRINT,
EXPR_... |
#define _CRT_SECURE_NO_WARNINGS
#define PROGRAM_FILE "../../matvec.cl"
#define KERNEL_FUNC "matvec_mult"
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#ifdef __APPLE__
#include <OpenCL/cl.h>
#else
#include <CL/cl.h>
#endif
int main() {
/* Host/device data structures */
cl_platform_id platform;... |
/*
Copyright (c) 2012-2020 <NAME> <<EMAIL>>
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
and Eclipse Distribution License v1.0 which accompany this distribution.
The Eclipse Public License is available at
https://www.eclipse.o... |
// Author: <NAME>
// Date: 11-Sept, 2017
// Unit: CAB403 Systems Programming
// Assignment: Process Management and Distributed Computing
/*---------------------------------------------------------------*/
/* ----- IMPORT HEADER FILES-------*/
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#inclu... |
/*********************************************************
* Copyright (C) 2011 VMware, Inc. All rights reserved.
*
* This program 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 version 2.1 and no ... |
#include <stdio.h>
#include <stdlib.h>
struct Node{
int num;
struct Node *prox;
};
typedef struct Node node;
int tam;
void inicia(node *LISTA);
int menu(void);
void opcao(node *LISTA, int op);
node *criaNo();
void insereFim(node *LISTA);
void insereInicio(node *LISTA);
void exibe(node *LISTA);
v... |
/*
*
* Copyright 2015, Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... |
//Based on Teeny SHA-1 project: https://github.com/CTrabant/teeny-sha1 , copyright (c) 2017 CTrabant
#include "sha1.h"
#define SHA1ROTATELEFT(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))
uint8_t sha1(uint8_t * const digest, const uint8_t * const data, size_t databytes)
{
uint32_t W[80];
uint32_t... |
/*
* Copyright (c) 1998,1999,2000
* Traakan, Inc., Los Altos, CA
* 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(C) 1999-2020 National Technology & Engineering Solutions
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
* NTESS, the U.S. Government retains certain rights in this software.
*
* See packages/seacas/LICENSE for details
*/
#include "params.h" // for MAXDIMS
#include <math.h... |
//
// Options for pcb-gcode.ulp.
// Often used options are at the top of the file.
// Copied to gcode-defaults.h by the setup program.
//
// author=<NAME>
// description=LinuxCNC
//
int FILENAMES_8_CHARACTERS = NO;
//
// Comments.
//
string COMMENT_BEGIN = "(";
string COMMENT_END = ")";
//
// Format strings for ... |
/* aes.h */
/* ---------- See examples at end of this file for typical usage -------- */
/* AES Cipher header file for ANSI C Submissions
<NAME>
Computer Security Division
National Institute of Standards and Technology
This sample is to assist implementers developing to the
Cryptographic API Profil... |
/****************************
Lista circular duplamente encadeada com sentinela - a melhor de todas!!!
****************************/
#include "lista_ocorrencias.h"
#include <ctype.h>
//#include "meu_indice.h"
typedef struct palavra{
char letras[50];
int qtdOcorrencias;
Ocorrencia *ocorrencias;
struct ... |
#include "drv_usart2.h"
#include "KS_Data_Transfer.h"
#include "include.h"
void USART2_Init(u32 br_num)
{
USART_InitTypeDef USART_InitStructure;
USART_ClockInitTypeDef USART_ClockInitStruct;
NVIC_InitTypeDef NVIC_InitStructure;
GPIO_InitTypeDef GPIO_InitStructure;
RCC_APB1PeriphClockCmd ( RCC_APB1... |
#include "PCD8544.h"
#include "font.h"
#include <Arduino.h>
#include <string.h>
#define SET_BIT(P, B) (P |= B)
#define CLR_BIT(P, B) (P &= (~B))
static struct rawports {
volatile uint8_t *sce;
volatile uint8_t *dc;
volatile uint8_t *sdin;
volatile uint8_t *sclk;
} port;
static struct bitmasks {
uint8_t sce;
ui... |
/*
* USB xHCI controller emulation
*
* Copyright (c) 2011 Securiforest
* Date: 2011-05-11 ; Author: <NAME> <<EMAIL>>
* Based on usb-ohci.c, emulates Renesas NEC USB 3.0
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as p... |
#include <u.h>
#include <libg.h>
#include <gnot.h>
#include "tabs.h"
#define swizbytes(a) (a)
#ifdef T386
#define LENDIAN
#endif
#ifdef Thobbit
#define LENDIAN
#endif
/*
* texture - uses bitblt, logarithmically if f doesn't involve D
* but special case some textures whose rows can be packed in 32 bits
*/
void
gte... |
/* Simple 156 based board
*/
#include "driver.h"
#include "deco16ic.h"
/*
offs +0
-------- --------
fFb ssy yyyyyyyy
s = size (multipart)
f = flipy
b = flash
F = flipx
y = ypos
offs +1
-------- --------
tttttttt tttttttt
t = sprite tile
offs +2
-------- --------
ppcccccx xxxxxxxx
c = colour palette
p = priori... |
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#define MAXWORD 100
#define MAXCHAR 100
#define SAMECHARS 6
int getword(char*, int);
struct tnode *addtree(struct tnode *p, char *w);
void treeprint(struct tnode *p);
void print_groups(char words[MAXWORD][MAXCHAR], int same_chars, int numw... |
/*****************************************************************************
* heartbeat_samples.c
* this file is part of https://github.com/ouistiti-project/putv
*****************************************************************************
* Copyright (C) 2016-2017
*
* Authors: <NAME> <<EMAIL>>
*
* Permissio... |
// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at
// the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights
// reserved. See files LICENSE and NOTICE for details.
//
// This file is part of CEED, a collection of benchmarks, miniapps, software
// libraries and APIs for effic... |
#include "tmpfs.h"
#include "alloc.h"
#include "printf.h"
#include "string.h"
#include "vfs.h"
void tmpfs_init() {
tmpfs_v_ops =
(struct vnode_operations*)malloc(sizeof(struct vnode_operations));
tmpfs_v_ops->lookup = tmpfs_lookup;
tmpfs_v_ops->create = tmpfs_create;
tmpfs_v_ops->set_parent = tmpfs_set_... |
/*
* GPAC - Multimedia Framework C SDK
*
* Author: <NAME>
* Copyright (c) <NAME> 2012-
* All rights reserved
*
* Note: this development was kindly sponsorized by Vizion'R (http://vizionr.com)
*
* This file is part of GPAC / TS to HDS (ts2hds) application
*
* GPAC is free software; you can... |
#include "rtc.h"
#define data_port 0x71
#define rw_port 0x70
#define reg_A 0x8A
#define reg_B 0x8B
#define reg_C_nmi 0x8C
#define reg_C 0x0C
#define rtc_irq 8
#define rtc_master 2
#define def_freq 0xF
#define max_freq 0x0F
#define lower4bit 0xF0
#define bit6 0x40
#define RTC_RAM 0x20
#define rtc_flag_idx0 0
#... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "pht2b.h"
#include "aliasing-test.h"
/*------------------------------ Experiment ----------------------------------*/
#define EXPERIMENT "pht2b-aliasing"
/* ---------------------------------------------------------------------------*/
/* BPU. */
#de... |
/*
* Placed in the public domain
*/
/* $OpenBSD: modpipe.c,v 1.6 2013/11/21 03:16:47 djm Exp $ */
#include "includes.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <errno.h>
#include <pwd.h>
#ifdef HAVE_LIB... |
#include <stdbool.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include "trdb_d5m.h"
#include "system.h"
#define I2C_FREQ (50000000) /* 50 MHz */
#define TRDB_D5M_COLUMN_SIZE_REG_DATA (2559)
#define TRDB_D5M_ROW_SIZE_REG_DATA (1919)
#define TRDB_D5M_ROW_BIN_REG_DATA (3)
#define TRDB_D5M_ROW... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <poll.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <ifaddrs.h>
#include <net/bpf.h>
#include <net/if.h>
#include <net/if_dl.h>
#include... |
#include<stdio.h>
#include<process.h>
#include<stdlib.h>
#include<math.h>
struct poly
{
int coef; /* structure of each node in the circular list */
int powx;
int powy;
int powz;
int flag;
struct poly *link;
};
typedef struct poly *term;
term getnode() /* Dynamic memory allocation for each term of the polynomia... |
/*
* Copyright (c) 2011 Surfnet
* Copyright (c) 2011 .SE (The Internet Infrastructure Foundation).
* Copyright (c) 2011 OpenDNSSEC AB (svb)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met... |
/*
* SecuDE Release 4.1 (GMD)
*/
/********************************************************************
* Copyright (C) 1991, GMD. All rights reserved. *
* *
* *
* ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
typedef struct{
char nama[255];
char title[255];
}Jabatan;
typedef Jabatan Infotype;
typedef struct elmt *address;
typedef struct elmt{
Infotype data;
address Parent;
address Child;
address NextSibling;
}Node;
typedef struct... |
/*
D64 Disk Utilities Version 1.0
Author: <NAME> Date: 4/11/2018
Disclaimer: I will NOT be held liable for any damages resulting
from the use of this software. Not sure what those damages
could be but I'll cover my ass anyway. I hope that this benefits
the community in some way and feel free t... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dbase300extract.h"
#include "makedir.h"
#include "types.h"
#include "pic_utils.h"
#include "tga_utils.h"
#define PALETTE_SIZE 768
extern char path[];
extern char *fileNamePtr;
enum fileType_e{
FILETYPE_GDV = 0x29111994,
FILETYPE_H... |
/*
* Microsemi Switchtec(tm) PCIe Management Library
* Copyright (c) 2021, Microsemi Corporation
*
* 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... |
/* Copyright 2004,2007,2008,2010,2011,2014 IPB, Universite de Bordeaux, INRIA & CNRS
**
** This file is part of the Scotch software package for static mapping,
** graph partitioning and sparse matrix ordering.
**
** This software is governed by the CeCILL-C license under French law
** and abiding by the rules of distri... |
#include "bpa.h"
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <assert.h>
#define ALIGN_SIZE 8
#define COLLECT_STEP_LENGTH 0x1000
#define HEAP_HEADER_SIZE ((sizeof(struct bpa_heap) + ALIGN_SIZE - 1) / ALIGN_SIZE)
#define HEAP_SLICE(H, off) (struct slice *)((char *)H + off *... |
/*
* 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
* purpose, commercial or non-commercial, and by any means.
*
* In jurisdictions ... |
/*
* Modifications Copyright (c) Microsoft. All rights reserved.
*
* Original code Copyright (c), NXP Semiconductors
*/
#include "phNciNfc_Pch.h"
#include "phNciNfc_RFReader4B.h"
#include "phNciNfc_RFReader4B.tmh"
NFCSTATUS
phNciNfc_Recv4BResp(
void *psCo... |
#include <stdio.h>
#include <string.h>
int tableSize = 4;
struct Item
{
char *subject; // 4 bytes
char* topic; // 4 bytes
struct Item* next;
};
// Create Array of objects to hold all items.
int main()
{
struct Item *HashTable[tableSize];
int numberofItems = 0, howManyItems = 0;
char subject[50], topic[50];
... |
/* $Id$ */
/*
* Copyright (c) 2017, 2019 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND... |
#include "hip/hip_runtime.h"
#include "track_ellipse.h"
// Host and device arrays to hold matrices for all cells
// (so we can copy to and from the device in a single transfer)
// The number of work items per work group
#define LOCAL_WORK_SIZE 256
#define FP_TYPE float
#define FP_CONST(num) num##f
#define PI_FP32 FP... |
#include "_brt.h"
#include <stdarg.h>
#include <exec/memory.h>
#include <clib/exec_protos.h>
#include <inline/exec.h>
void __DARRAY_T___init__ (_DARRAY_T *self, ULONG elementSize)
{
// _debug_puts ("__DARRAY_T___init__: elementSize="); _debug_puts2(elementSize); _debug_putnl();
self->data = NULL;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.