text stringlengths 3.12k 18.7k |
|---|
/***************************************************************************
vidhrdw.c
Functions to emulate the video hardware of Astro Fighter hardware games.
<NAME> 28/11/1997
***************************************************************************/
#include "driver.h"
#include "vidhrdw/generic.h"
uns... |
/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include "f... |
/*
Copyright (c) 2015, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions a... |
// Copyright (C) 2015 University of Oregon
// You may distribute under the terms of either the GNU General Public
// License or the Apache License, as specified in the LICENSE file.
// For more information, see the LICENSE file.
/* TOCSY - MLEV17c spinlock
Features included:
States-TPPI in F1
z-filter pulse wit... |
/*
* ObsidianOS floppy image builder
* Produces bootable single partition, FAT12 disk image
*
* Required arguments (in this order):
* --boot bootloader.bin | bootloader, loaded to 0x7C00
* --kernel kernel.bin | kernel, will be first file in filesystem, and must fit between
*
* Pass list of system files (... |
/* -*- Mode: C; c-file-style: "python" -*- */
#include <Python.h>
#include <locale.h>
/* ascii character tests (as opposed to locale tests) */
#define ISSPACE(c) ((c) == ' ' || (c) == '\f' || (c) == '\n' || \
(c) == '\r' || (c) == '\t' || (c) == '\v')
#define ISDIGIT(c) ((c) >= '0' && (c) <= '9... |
/*Server Code*/
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <netinet/in.h>
#include <err.h>
#include <errno.h>
#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <tls.h>
static void usage()
{
extern char *... |
#include "stdlib.h"
#include "stdint.h"
#include "configuracion.h"
#include "myLib.h"
#include "led.h"
#include "lab2.h"
#include <string.h>
#include <ctype.h>
#define USB_UART LPC_USART2
#define MODEM_UART LPC_USART3
#define OVERRUN "OVERRUN ERROR\r\n"
#define PARITY "PARITY ERROR\r\n"
#define FRAMING "FRAMING ERROR... |
/* linux.c - boot Linux */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2003,2004,2005,2007,2009 Free Software Foundation, Inc.
*
* GRUB 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, e... |
/**
* This file contains function definitions for the service manager.
*/
#include <unistd.h>
#include <sys/wait.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <stdio.h>
#include <math.h>
#include <errno.h>
#include <fcntl.h>
#include "sm.h"
#define NORMAL 0
#define LOG 1
#define KILL 2
#de... |
/*
* interface-userport.c - Userport printer interface.
*
* Written by
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* ... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
/*
Autor: <NAME>
Número: 2019126638
Email: <EMAIL>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "espaco.h"
#include "pessoas.h"
#include "utils.h"
#include "modeloPropagacao.h"
#include "menu.h"
void transferir(pessoast multidoes, local *salas, int total_locais, int total_pe... |
#include <u.h>
#include <libc.h>
#include <bio.h>
#include "dict.h"
/*
* Routines for handling dictionaries in the "Paperback Collins"
* format (with tags surrounded by >....<)
*/
enum {
Buflen=1000
};
/* More special runes */
enum {
B = MULTIE+1, /* bold */
H, /* headword start */
I, /* italics */
Ps, /* ... |
/*
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* of Tennessee Resea... |
#include <stdio.h>
#include <gencon-impl.h>
#include <genmap-impl.h>
typedef struct{
ulong *elements;
uint *offsets;
ulong *globalIds;
uint size;
} VToEMap;
typedef struct{
ulong elementId;
} ElementID;
typedef struct{
ulong procId;
} ProcID;
VToEMap *getVToEMap(Mesh m,struct comm *c)
{
sint nelt=m->... |
/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
#include <assert.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#undef pr_fmt
#define pr_fmt(fmt) "core: " fmt
#include "libmctp.h"
#include "libmctp-alloc.h"
#include "libmctp-log... |
/*
* 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... |
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <sys/un.h>
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <pwd.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <uni... |
/**
* \file
*
* \brief Clock system example 3
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. ... |
#include "famicom/cpu.h"
#include "famicom/memory.h"
/* Global CPU */
CPU cpu;
/* --- Stack operations --- */
static void pushb(BYTE val) {
Memory_WriteByte(MAP_CPU, (STACK_ADDR | cpu.SP--), val);
}
static void pushw(WORD val) {
pushb((val >> 8) & 0xFF);
pushb(val & 0xFF);
}
static BYTE pullb() {
return Memory_... |
#include <math.h>
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
#include <limits.h>
#include "halcyonix.h"
#include "hc_backend.h"
#define NSAMPLES HC_BUFFER_SIZE
#define HIPASS_FACTOR 0.996336633f
#define XIIRT2 1.059463094f
#define CHAN_IDX_SQUARE0 0
#define CHAN_IDX_SQUARE1 1
#define CHAN_IDX_WAVE ... |
#include "../common/relax.c"
double **finalGrid;
double guessPotentialAgainstExact(struct Grid *grid, unsigned long i, unsigned long j)
{
return finalGrid[i][j];
}
struct Grid *createGrids(
double linearDimension,
unsigned long finalPowerOfTwo,
double (*initialValue)(struct Grid *grid, unsigned long, un... |
/*
* 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... |
///////////////////////////// 8INF854 - ARCHITECTURES PARRALLELES - DEVOIR #1 ///////////////////////////
///////////////////////////// Fibonacci - <NAME> - <NAME> /////////////////////////////////////
#include <stdio.h>
#include <stdlib.h>
#include <time.h>//pour la fonction rand()
#include <pthread.h>/... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*#include <stdint.h>*/
#include "akuhei2c.h"
#include <dos/dos.h>
#include <dos/rdargs.h>
#include <signal.h>
/* My custom RDArgs */
struct RDArgs *myrda;
/*#define TEMPLATE "A=Address/A,R=Register,V=Value,W=WordMode/S"*/
#define TEMPLATE "A=Address/A,R=R... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2018, hathach (tinyusb.org)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights... |
void Add(unsigned a[], unsigned b[]);
void Sub(unsigned a[], unsigned b[]);
void Mul(unsigned a[], unsigned d);
void LongMul(unsigned a[], unsigned b[]);
unsigned Div(unsigned a[], unsigned d);
void LongDiv(unsigned a[], unsigned b[], unsigned quot[], unsigned res[]);
int DivCheck(unsigned a[], unsigned b[], unsigned ... |
///////////////////http://br.groups.yahoo.com/group/GrupoSanUSB/////////////////
#include <18F4550.h> //This library 18F4550.h is valid for the whole family USB PIC18Fx5xx
#device PASS_STRINGS=IN_RAM
#byte OSCCON=0XFD3
#byte SPBRGH=0xFB0
#byte SPBRG=0xFAF
#byte BAUDCON= 0xFB8
#byte TXSTA=0xFAC
#byte RCSTA=0xFAB
#BYTE R... |
//
// liparse.c
// liquidreader
//
// Created by <NAME> on 3/2/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
#include "liparse.h"
#include <assert.h>
#include <ctype.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
// Parsing library
//
// We compose parsers from functions with the signa... |
/*******************************************************************************
*
* This file is part of the General Hidden Markov Model Library,
* GHMM version __VERSION__, see http://ghmm.org
*
* Filename: gql.c
* Authors: <NAME>, <NAME>
*
* Copyright (C) 1998-2004 <NAME>
* Copy... |
/*
* Copyright 2009 Red Hat Inc., Durham, North Carolina.
* All Rights Reserved.
*
* 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 ... |
/**
* MIT License
*
* Copyright (c) 2020 <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, ... |
/*D***********************************************************
* Modul: DBI - database select
* Kategorie
* prepare free KAT select list
*
* Copyright: yafra.org, Basel, Switzerland
**************... |
/*
* Copyright (c) 2016 <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,
* publish, ... |
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
#include <string.h>
#include <assert.h>
#include <sys/wait.h>
#include <sys/types.h>
#include "proc-common.h"
#include "request.h"
/* Compile-time parameters. */
#define SCHED_TQ_SEC 2 /* time quantum */
... |
/*******************************************************************************
* @file implicit.c
* @author <NAME>
* @brief
* @version 1.0.0
* @date 2022-02-22
* @copyright Copyright (c) 2022 by <NAME>.
* This work is licensed under terms of the MIT license (<LICENSE>).
**************************************... |
/*
Copyright 2011-2018 Stratify Labs, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... |
#include <stdint.h>
#include "registers.h"
volatile int send_trigger = 0;
volatile int measure_trigger = 0;
volatile uint32_t temperature = 0;
volatile int16_t voltage = 0;
#define MESSAGE_TEMP_OFFSET 19
#define MESSAGE_VOLT_OFFSET 25
uint8_t radio_frequency_whiteniv[] = {55,1,37,3,0,5,1,7,2,9,3,11,4,13,5,15,6,17,... |
#include "gidShuffle.h"
#include <stdlib.h>
#include <mpi.h>
#include <math.h>
#include <limits.h>
#include "ddcMalloc.h"
#include "mpiUtils.h"
#include "random.h"
#define MAX(A,B) ((A) > (B) ? (A) : (B))
typedef struct GidShuffle_st
{
double order;
gid_type label;
} GIDSHUFFLE;
static int gidShuffleLess(c... |
/************************************************************************
* dlb_pmd
* Copyright (c) 2021, Dolby Laboratories Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1... |
#include <stdlib.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <glib.h>
#include <locale.h>
#define max 30
#define GETTEXT_PACKAGE "gtk20"
const char *title = "Convertor Celsius to Fahrenheit";
const char *authors[] = {"<NAME>", NULL};
const char *license = "GPLv3";
GtkWidget *en_fahr = NULL;
const gchar ... |
/************************************************************************/
/* */
/* es4h.h: Hardware definition of the ES/4h Ethernet Switch, from */
/* both the host and the 3051's point of view. */
/* NOTE: this name is a misnomer now that there is a PCI */
/* board. Everything that says "es4h" should re... |
#define MICROPY_HW_BOARD_NAME "NUCLEO DFU SOCK"
#define MICROPY_HW_MCU_NAME "STM32F411RE"
// 1 = use internal flash
// 0 = use onboard SPI flash
#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (0)
#define MICROPY_HW_SPIFLASH_ENABLE_CACHE (1)
#define MICROPY_HW_HAS_SWITCH (1)
#define MICROPY_HW_... |
/*-
* Copyright (c) 1997, <NAME> <<EMAIL>>
* Copyright (c) 2000, <NAME> <<EMAIL>>
* Copyright (c) 2000, BSDi
* Copyright (c) 2003, <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... |
#include <stdint.h>
#include "bnr_firmware.h"
#include "bl_img_utils.h"
#include "bl_comm_aaa.h"
#define PIXEL_BW (12)
#define PIXEL_MAX ((1 << PIXEL_BW) - 1)
#define LPF_WEIGHT_PRECISION (4)
#define LPF_WEIGHT_MAX (1 << LPF_WEIGHT_PRECISION)
#define TH_BW ... |
#include "clar_libgit2.h"
#include "diff_helpers.h"
static git_repository *g_repo = NULL;
void test_diff_tree__initialize(void)
{
g_repo = cl_git_sandbox_init("attr");
}
void test_diff_tree__cleanup(void)
{
cl_git_sandbox_cleanup();
}
void test_diff_tree__0(void)
{
/* grabbed a couple of commit oids from the his... |
/*
* Copyright (c) 2006 <NAME> <<EMAIL>>
* Copyright © 2006-2008 Intel Corporation
* <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... |
/* Copyright (c) Microsoft Corporation. All rights reserved.
Copyright (c) Codethink Ltd. All rights reserved.
Licensed under the MIT License. */
// This sample C application for the real-time core demonstrates intercore communications by
// sending a message to a high-level application every second, and printin... |
const int HYUNDAI_HDA2_MAX_STEER = 409;
const int HYUNDAI_HDA2_MAX_RT_DELTA = 112; // max delta torque allowed for real time checks
const uint32_t HYUNDAI_HDA2_RT_INTERVAL = 250000; // 250ms between real time checks
const int HYUNDAI_HDA2_MAX_RATE_UP = 3;
const int HYUNDAI_HDA2_MAX_RATE_DOWN = 7;
const int H... |
/**
* @mainpage Laboratory work #8. Dijkstra algorithm for finding shortest path
*/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include "solution.h"
/**
* @def Macros for catching global errors.
*/
#define ERR(x) if (x) {perror(__func__); return errno;};
/**
* @function Entry point. At begin get ... |
/**
* Copyright (c) 2017 <NAME>
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See LICENSE for details.
*/
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
#include <dos.h>
#include <dpmi.h>
#includ... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "defines.h"
void mk_res(float *, unsigned char *, int, int, int, int, int, int*, int*) ;
/**
* @param intFilename input interferogram
* @param flagFilename name of the flag file
* @param width number of samples per row
* @param ... |
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <linux/hidraw.h>
#include "hid.h"
#include "hidraw.h"
#include "remote.h"
#include "utils.h"
/* Keymaps */
static const char *keymap_strings[] = {
[0x00] = "KEY_1", /* number pad */
[0x01] = "KEY_2",
[0x02] = "KEY_3",
[0x03] ... |
//=============================================================================
// CTR_EncryptDecrypt.c
//=============================================================================
// Copyright 2011 Silicon Laboratories, Inc.
// http://www.silabs.com
//
// C File Description:
//
//
// Target:
// Si102x/... |
/*
* lib/gssapi/generic/oid_ops.c
*
* Copyright 1995 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility of any person or organization... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* o... |
/* ===========================================================================
* Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005
*
* Use of this software is controlled by the terms and conditions found in the
* license agreement under which this software has been supplied.
* ==============... |
#pragma ident "$Id: ida_decode.c,v 1.8 2015/12/09 18:36:06 dechavez Exp $"
/*======================================================================
*
* Reformat a raw IDA data record into a xfer_packet. It is assumed
* that the NRTS has taken care of *ALL* possible data problems, so if
* any unexpected problems... |
/*
* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the
* disclaimer below) provided that the following conditions are met:
*
* * Redistributions of source c... |
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include "display/display.h"
#include "font8x8_basic.h"
#include "platform/platform.h"
#include "ufp_config.h"
#include "i2c_singleton.h"
#define DEFAULT_ADDRESS (0x3C)
#define CHAR_LINE 16
#define INFO_LINE 0
#define... |
/*
* Copyright (C) 2018 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
* www.apache.org/l... |
/*=====================================================================================================*/
/*=====================================================================================================*/
#include "QuadCopterConfig.h"
/*============================================================================... |
#include "external/miniz.h"
#include "forgelight_lib.h"
#include "internal.h"
//----------------------------------------------------------------
// Function definitions
//----------------------------------------------------------------
//// Helper Functions
// TODO(rhett): Clean this up
// NOTE(rhett): Calculates a ... |
/**
@authors Copyright (c) 2017 <NAME> <<EMAIL>>
@par License
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 fol... |
unsigned long _if_9_1=0;
unsigned long _if_9_0=0;
unsigned long _if_8_1=0;
unsigned long _if_8_0=0;
unsigned long _if_7_1=0;
unsigned long _if_7_0=0;
unsigned long _if_6_1=0;
unsigned long _if_6_0=0;
unsigned long _if_5_1=0;
unsigned long _if_5_0=0;
unsigned long _if_4_1=0;
unsigned long _if_4_0=0;
unsigned long _if_3_... |
/**
* Copyright (c) 2018 <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, publish, di... |
#include "utils.h"
/* Update the header with the cursor date */
void update_date(WINDOW* header, struct tm* curs_date) {
// TODO: dstr for strlen(CONFIG.format) > 16 ?
char dstr[16];
mktime(curs_date);
strftime(dstr, sizeof dstr, CONFIG.fmt, curs_date);
wclear(header);
mvwaddstr(header, 0, 0, ... |
#include <math.h>
#include <string.h>
#include "simint/boys/boys.h"
#include "simint/constants.h"
#include "simint/recur_lookup.h"
#include "simint/osoei/osoei.h"
#define NCART(am) ((am>=0)?((((am)+2)*((am)+1))>>1):0)
int simint_compute_osoei_potential(int ncenter,
double * Z, doub... |
#pragma once
#include <Windows.h>
#define UInt64 DWORD_PTR
#define UInt32 DWORD
enum EntityRenderModel : int {
None,
Chicken = 5,
Cow = 6,
Pig = 8,
Sheep = 9,
Wolf = 11,
Villager = 12,
Mushroom_Cow = 7,
Squid = 36,
Rabbit = 46,
Bat = 10,
Iron_Golem = 42,
Snow_Golem = 44,
Ocelot = 43,
Horse = 48,
Zombi... |
static char xxxDecodeByte(unsigned char inputByte)
{
if (inputByte >= 0x80)
return (char)((-~inputByte) - 1);
return ((char)inputByte);
}
/*! Reads a file with the given \a fileName and loads the data into \a pattern.
* Returns \c true if successful, otherwise returns \c false. */
static int readXxx(... |
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "stm32f446xx.h"
#define BTN_PRESSED 0
#define LED_ON 1
#define LED_OFF 0
/* MACROS FOR CMD CODES */
#define COMMAND_LED_CTRL 0x50
#define COMMAND_SENSOR_READ ... |
/**
******************************************************************************
* @file ../stm32f103-hal-i2c-two-boards-slave-basic-dma/src/main.c
* @author <NAME>
* @version 1.0
* @date 6 Feb 2017
* @brief This example shows how to use I2C HAL API to transmit and receive
* a data buf... |
#include<stdio.h>
#include<stdint.h>
#include<stdlib.h>
#include<string.h>
#include "math_ext.h"
struct point {
uint8_t x;
uint8_t y;
};
struct kanji {
wchar_t kji;
point **xy;
int c_strokes;
int *c_points;
};
void print_kanji(kanji k) {
printf("\nStrokes: %i\n",k.c_strokes);
for(int i=0;i<k.c_str... |
/*
* Copyright (c) 2016, Freescale Semiconductor, Inc.
* Copyright 2016-2017 NXP
* All rights reserved.
*
* THIS SOFTWARE IS PROVIDED BY NXP "AS IS" AND ANY EXPRESSED OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AR... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
#include <cuddle/meta.h>
#include <cuddle/tokenize.h>
#include "token_parse.h"
#define X(name) #name
const char KDL_TOKEN_TYPES[][32] = { KDL_TOKEN_TYPES_X };
const char KDL_TOKENIZER_STATES[][32] = { KDL_TOKENIZER_STATES_X };
#undef X
void kdl_tokenizer_make(kdl_tokenizer_t *tzr, kdl_u8ch_t *buffer, size_t buf_size)... |
/**
* @file demo-strobe-sts.c
* @author <NAME> <<EMAIL>>
* @date 2012-11-07
*
* Demonstrate how to set the lamp and strobe period on an STS via raw USB.
*
* In particular, the current version of this code has been tested on an STS-VIS
* with hardware revision 0x03 and firmware revision 0x0036. Other revision... |
/* Benchmark driver.
*
* Copyright (C) 2019 <NAME>
* Copyright (C) 2019 <NAME>
*
* The driver was originally written by <NAME> as part of the bench_lua
* project:
*
* https://github.com/vkrasnov/bench_lua
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software an... |
/*
* Copyright (c) 2013-2014, Ixonos Denmark ApS
* Copyright (c) 2013-2014, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the ... |
#include "masked-poly.h"
#include "masked.h"
#include "poly.h"
#include "masked-cbd.h"
#include "fips202-masked.h"
#include "randombytes.h"
#include "a2b.h"
void masked_poly_tobytes(unsigned char *r, masked_poly *a) {
poly a2;
masked_poly_unmask(&a2, a);
poly_tobytes(r, &a2);
}
extern int16_t asm_barrett... |
#include <stdio.h> /* A 2D Poisson solver on a uniform mesh using multigrid with */
#include <stdlib.h> /* red/black smoothing. The RHS vector is assumed to be scaled */
#include <math.h> /* such that the discretized Laplace operator has a 1 on the */
#include <sys/types.h> /* diagonal element. ... |
// ACKRTNRecode.c
// ACK-3D C source
// <NAME>'s reimplementation of needed routines from ACKRTN*.ASM
// Copyright (c) 2012, except functions based off C or ASM routines in book
#include "ACKRTNRecode.h"
//BuildUpView - our big workhorse to make sure the view and everything gets built properly.
void BuildUpView(void)... |
#include <stdlib.h>
#include <string.h>
#include "sb_crypt.h"
static unsigned char keyrand(GOACryptState *state, int limit,
unsigned char *user_key,
unsigned char keysize,
unsigned char *rsum,
unsigned *keypos)
{
unsigned int u, // Value from 0 to limit to return.
... |
/**
* 2mm.c: This file was adapted from PolyBench/GPU 1.0 test suite
* to run on GPU with OpenMP 4.0 pragmas and OpenCL driver.
*
* http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU
*
* Contacts: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include ... |
//------------------------------------------------------------------------------
// debugtext-context-sapp.c
//
// sokol_debugtext.h: Demonstrate rendering to offscreen render targets
// with contexts.
//
// Renders a cube with a different render target texture on each side,
// and each render target containing de... |
#include <getopt.h>
#include <pthread.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <ncurses.h>
#define SQRT_CELL 3
#define N (SQRT_CELL * SQRT_CELL)
WINDOW *win;
WINDOW *infowin;
int backtrace = 0;
bool verbose = false;
#ifdef CLOCK_PROCESS_CPUTIME_... |
/* $Id$ */
/* Copyright (c) 2018 <NAME> <<EMAIL>> */
/* This file is part of DeforaOS uKernel */
#include <stdlib.h>
#include <errno.h>
#include <kernel/drivers/clock.h>
#include "cmos.h"
/* private */
/* types */
typedef struct _ukClock CMOSClock;
typedef struct _ukClockData
{
ukBus * bus;
} CMOSClockData;
/*... |
/*
u8x8_d_monoView.c
developed by <NAME>
e-mail: <EMAIL>
*/
#include "u8x8.h"
static const uint8_t u8x8_d_monoView_init_seq[] = {
U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */
U8X8_C(0xE2), /* display off */
U8X8_C(0xA4), ... |
/**
* @file integrate.c
* @authors <NAME>, <NAME>, <NAME>,
* <NAME> and <NAME>
* @date 12 November 2015
* @brief It contains two functions to call from Fortran the
* corresponding C functions.
*/
#include "vofi_GL.h"
#include "vofi_stddecl.h"
/* ------------------------------------------------... |
/* $Id: iommu_common.c,v 1.9 2001/12/17 07:05:09 davem Exp $
* iommu_common.c: UltraSparc SBUS/PCI common iommu code.
*
* Copyright (C) 1999 <NAME> (<EMAIL>)
*/
#include "iommu_common.h"
/* You are _strongly_ advised to enable the following debugging code
* any time you make changes to the sg code below, run it ... |
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#include <stdio.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
#include "core.h"
#include "content.h"
#include "patch.h"
#include "unzip.h"
#include "util.h"
static int alloc_readfile(const char *path,... |
/* ====================================================================
* Copyright (c) 1999-2006 Carnegie Mellon University. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redi... |
/*
* $Id: state.c,v 1.13 2003/05/25 18:19:16 skyper Exp $
*
* ChangeLog
* - added variable length state support (struct _state_* ).
*/
#include "default.h"
#include <sys/time.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include ... |
/*
This file is part of "fitsverify" and was imported from:
http://heasarc.gsfc.nasa.gov/docs/software/ftools/fitsverify/
*/
#include "fverify.h"
static HduName **hduname;
static int total_err=1; /* initialzed to 1 in case fail to open file */
static int total_warn=0;
int get_total_warn()
{
return (total... |
// SPDX-License-Identifier: GPL-2.0
/*
* Texas Instruments' K3 Interrupt Router irqchip driver
*
* Copyright (C) 2018-2019 Texas Instruments Incorporated - https://www.ti.com/
* <NAME> <<EMAIL>>
*/
#include <linux/err.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/io.h>
#include <linu... |
// SPDX-License-Identifier: GPL-2.0+
/*
* virtio-snd: Virtio sound device
* Copyright (C) 2021 OpenSynergy GmbH
*/
#include <sound/pcm_params.h>
#include "virtio_card.h"
/**
* struct virtio_pcm_msg - VirtIO I/O message.
* @substream: VirtIO PCM substream.
* @xfer: Request header payload.
* @status: Response he... |
/**
* \file arch/x86/mmu.c
* \brief Contains functions to manage MMU context.
* The management of the current MMU's context is
* done through the functions of paging.c.
*/
#include <types.h>
#include <string.h>
#include <kernel/kprintf.h>
#include <kernel/panic.h>
#include <kernel/mm/slab.h>
#inc... |
#include <assert.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <scc/cstd.h>
#include <scc/scc.h>
#include "cc1.h"
#define NR_SYM_HASH 64
#define NR_CPP_HASH 32
#define NR_LBL_HASH 16
unsigned curctx;
static unsigned short counterid;
static Symbol *head, *labels;
static S... |
/*
-----------------------------------------------------------------------------
$Id: tsp_local.c,v 1.22 2008/03/20 14:49:12 cnepveu Exp $
-----------------------------------------------------------------------------
Copyright (c) 2001-2007 Hexago Inc. All rights reserved.
For license information refer to CLIENT-LI... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.