text stringlengths 3.08k 10.5k |
|---|
/*******************************************************************************************
*
* raylib [core] example - Font selector (adapted for HTML5 platform)
*
* This example has been created using raylib 1.3 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for de... |
/* prot.c
Protocol support routines to move commands and data around.
Copyright (C) 1991, 1992 <NAME>
This file is part of the Taylor UUCP package.
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 Soft... |
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the AML project.
* For more info, see https://github.com/anlsys/aml
*
* SPDX-License-Identifier: BSD-3-Clause
******************************... |
/**
Mouse Game
Copyright 2021 <NAME>
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclai... |
#include <string.h>
#include <gst/gst.h>
#define MIME "application/x-rtp"
#define MEDIA "audio"
#define CLOCK_RATE 48000
#define ENCODING "X-GST-OPUS-DRAFT-SPITTKA-00"
typedef struct _Receiver {
GstElement *rpipeline;
GstElement *rsource;
GstElement *rjitterbuffer;
GstElement *rdepay;
GstElement *rdeco... |
/*
* 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... |
// appmaster.c - change ensemble test/demo
//
// This program works with appslave.c. Synopsis:
// connect to appslave as ensemble test1,
// establish clock sync,
// receive "hello" message from slave,
// shut down and reinitialize as ensemble test2,
// establish clock sync,
// receive "hello" messa... |
/* See LICENSE file for copyright and license details */
#include <string.h>
#include "vm16.h"
#define M3(x) ((x) & 0x7)
#define M7(x) ((x) & 0x7F)
#define MA(x) ((x) & 0x3FF)
void
vm16_dump(FILE *out, struct vm16 const *v)
{
fprintf(out, "ir: 0x%x\n", v->ir);
fprintf(out, "pc: 0x%x\n", v->pc);
fprintf(out, "r: ... |
#include "core.h"
#include "dascore.h"
#include <string.h>
#include <stdio.h>
struct chipbox_instruction_info disassemble_instruction(dbyte instruction) {
struct chipbox_instruction_info info;
info.num_args = 0;
switch (instruction >> 12) { /* get highest/left-most nybble */
case 0:
sw... |
/* *INDENT-OFF* */
/*INDENT OFF*/
/* Description: C source code for handling file and directory paths
*/
/******************************************************************************
* This software is covered by the zlib/libpng license.
* The zlib/libpng license is a recognized open source license by
* the Open Sour... |
/*
Copyright (c) 2019, <NAME>
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute, execute,
and transmit the Software, and to prepare derivative works ... |
#include "cf/inferno/clink/eoc/atom.h"
#include "cf/x/core/tools.h"
#define FRAME_SLEEP_MICROSECONDS 10000
#define MAX_CONCEPTS 9
#define MAX_LINKS 9
#define WORLD_WIDTH 80 /* 157 */
#define WORLD_HEIGHT 40 /* 58 */
#define SPARKS_PER_FRAME ((WORLD_WIDTH * WORLD_HEIGHT) / 2)
struct cf_inferno_clink_eoc_t {
cf_infe... |
/**
* \file
*
* \brief AVR XMEGA Analog to Digital Converter Driver Example 3
*
* Copyright (c) 2011-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 fo... |
#define _XOPEN_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
float *setup(char *fn, int maxdays, int verbose) {
float *f = calloc(sizeof(float), maxdays);
FILE *fp = fopen(fn, "rt");
float a,b,c;
if (fp) {
if (verbose) fprintf(stderr,"*info* opening survival rate file '%s'\n", fn);
... |
/*
* SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/* this is an example program that creates an object, opens an object by path, and does some
* manipulation */
/* normal C + POSIX headers work! */
#include <stdio.h>
/* access to the twizzler object API */
#include ... |
/*
* Generic array/list implementation for arbitrary data objects.
*
* Copyright (C) 1999-2020 <NAME>. All Rights Reserved.
* See the LICENSE file accompanying the distribution your rights to use
* this software.
*/
#include "array.h"
#include "mem.h"
/**
* Initialize the provided array instance to the indicat... |
/* Este header contiene, ademas de un par de macros, la estructura 'topologia'
* (de red) y la funcion (void) 'redes' que se utiliza para definir la forma
* de interacccion entre las neuronas
*/
#include "funcredes.h"
// constantes para redes
#define MAXLABEL 20
#define MAXPARAM 5
#define MAXLEND 30
#define MAXLEN... |
/*
* Copyright (C) 2014 - 2015 Xilinx, Inc.
*
* 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 i... |
#include "stm32_p103.h"
#include "stm32f10x.h"
#include "stm32f10x_gpio.h"
#include "stm32f10x_rcc.h"
#include "stm32f10x_usart.h"
#include "stm32f10x_exti.h"
#include "stm32f10x_adc.h"
#include "misc.h"
void init_led(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
/* Enable GPIO C clock. */
RCC_APB2PeriphCl... |
/* Test for the long double variants of *w*printf_chk functions.
Copyright (C) 2019-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... |
/*
* all.c
*
* Code generation for function 'all'
*
* C source code generated on: Fri Aug 31 09:23:48 2012
*
*/
/* Include files */
#include "rt_nonfinite.h"
#include "epu_n_unit_accumulator.h"
#include "all.h"
#include "interp1.h"
#include "isequal.h"
#include "epu_n_unit_accumulator_mexutil.h"
/* Type Defini... |
/* mmapPerf - Test perfomance of mmap. */
#define _XOPEN_SOURCE 1
#define _BSD_SOURCE 1
#include "common.h"
#include "linefile.h"
#include "options.h"
#include "verbose.h"
#include <math.h>
#include <time.h>
#include <float.h>
#include <sys/mman.h>
void usage()
/* Explain usage and exit. */
{
errAbort(
"mmapPerf - T... |
#include <hid.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h> /* for getopt() */
#include <signal.h>
#include <suinput.h>
#include "gkos.h"
// uinput device (see gkos.c for my explanation of why a global var)
static int uinput_fd;
bool match_serial_number(struct usb_dev_handle* usbdev, void* custom, u... |
/* A simple character device, "memory", that allows a character to be read */
/* or written from memory */
/* Necessary includes for device drivers */
#include <linux/init.h>
// #include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h> /* printk() */
#include <linux/slab.h> /* kmalloc() */
#include... |
/**
* @file bsp_lcd.c
* @brief
* @version 0.1
* @date 2021-06-25
*
* @copyright Copyright 2021 Espressif Systems (Shanghai) Co. Ltd.
*
* 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 o... |
/* $NetBSD: search.c,v 1.24 2013/05/06 08:02:20 skrll Exp $ */
/*
* Copyright 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 m... |
/* clock.c
*
* This program is the stepper motor driver program for a 3D printer analog clock.
* The stepper motor is driven at an accurate rate, and when engaged with 3D printer gears it moves the clock.
* The stepper motor is a simple unipolar 28BJY-48 5v motor with a ULN2003 driver.
* The controller is an ATtin... |
# include <stdio.h>
# include <stdint.h>
# include <string.h>
# include <stdlib.h>
# include <ctype.h>
# include "data_structure_definitions.h"
# include "function_definitions.h"
void findMaximumNumberOfReadsMappedToOneNucleotide (char *input_samfilename, char *output_filename, char *name_of_total_number_of_alignments... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <pthread.h>
#include <errno.h>
#include <assert.h>
#include <unistd.h>
#include "hop.h"
#include "rmt.h"
static void *connrproc(void *a);
static void *connwproc(void *a);
static HopMsg *vcalloc(void);
static void vcfree(HopMsg *vc);
static HopReq *req... |
/**
* @file main.c
* @brief Main.
*
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include "hid.h"
#include "protocol.h"
#ifndef MIN
#define MIN(a,b) ((a)<(b)?(a):(b))
#endif
static void assert_message_size(void) __attribute__((unused));
#define BUILD_ASSERT(cond) do { (void)... |
/****
Author: <NAME>,
email: <EMAIL>
MSc Student,
Department of Computer Science,
University of Manitoba, Winnipeg, MB, Canada
****/
#include<stdio.h>
#include<string.h>
#include <stdlib.h>
#include<time.h>
#include "omp.h"
//macros
#define ALPHABET_LENGTH 4
#define max(x,y) ((x)>(y)?(x):(y))
... |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/signalfd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <poll.h>
#include <errno.h>
#include <termios.h>
#def... |
/*
Copyright (c) 1999-2002 <NAME>
"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, including without limitation the rights to use, copy, modify, merg... |
#include "ReedSolomonDecoder.h"
#include "GenericGF.h"
#include "../../Memory.h"
void ReedSolomonDecoder_decode(int *received, int size, int twoS)
{
struct GenericGFPoly poly = new_GenericGFPoly(received, size);
int *syndromeCoefficients = Memory_allocate(twoS * SIZEOF_INT);
bool noError = true;
for (int i = 0... |
/*
Copyright (C) 2009-2019 Parallel Realities
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 t... |
#include "adb_parser.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "util/log.h"
#include "util/str.h"
bool
sc_adb_parse_device(char *line, struct sc_adb_device *device) {
// One device line looks like:
// "0123456789abcdef device usb:2-1 product:MyProduct model:MyModel "
// ... |
//From standard
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdbool.h>
#include <time.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <linux/uinput.h>
//From project
#include "pigrrlread.h"
#include "pigrrlout.h"
#define PIGRRL_DEV_ID_VENDOR 0x0fff
#define PIGRRL_DEV_ID_... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
*
* SunAlarm
* @date Jan-2022
* @author <NAME>
* @s... |
/*!
******************************************************************************
* @file model.c
* @author <NAME> <<EMAIL>>
* @version V1.0.0
* @brief This file implements a T9 model.
******************************************************************************
* @attention
*
* MIT License
... |
/*
* Copyright (c) 2000-2001 <NAME>
*/
/*
* Gunze AHL-51S touchscreen driver for Linux
*/
/*
* 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
* (... |
#pragma once
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <limits.h>
#include <dirent.h>
#include <sys/stat.h>
#include <unistd.h>
#ifndef __APPLE__
#include <malloc.h>
#endif
#include <math.h>
#ifdef __SWITCH__
#include <switch.h>
#en... |
/**
* @brief openspblas trsm csr test
* @author <NAME> <<EMAIL>>
*/
#include <alphasparse.h>
#include <stdio.h>
#include <mkl.h>
static void mkl_trsm(const int argc, const char *argv[], const char *file, int thread_num, const MKL_Complex8 alpha, MKL_Complex8 **ret, size_t *size)
{
MKL_INT m, k, nnz;
MKL_IN... |
/*
* Copyright (c) 2013 Mellanox Technologies, Inc.
* All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "oshmem_config.h"
#include <stdio.h>
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#e... |
/*
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the ... |
/** @license 2014 <NAME>, distributed under the terms of the
[MIT License](https://opensource.org/licenses/MIT). Contains some syllables
from [SMAUG](http://www.smaug.org/), which is a derivative of
[Merc](http://dikumud.com/Children/merc2.asp), and
[DikuMud](http://dikumud.com/); used under fair-use.
@subtitle R... |
/*
* Copyright 2020 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 (c) 1988 University of Utah.
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* the Systems Programming Group of the University of Utah Computer
* Science Department, and code der... |
#include <stdio.h>
#include<stdlib.h>
#include<time.h>
typedef struct l{
int valor;
int quant_escolhido; //quantidade de vezes que o valor foi escolhido
struct l *prox;
}lista;
int num_aleatorio(){
return rand() % 500;
}
void inicia(lista **inicio, lista **fim){
*inicio = *fim = NULL;
}
void aloca(lista... |
/* $OpenBSD: sshlogin.c,v 1.35 2020/10/18 11:32:02 djm Exp $ */
/*
* Author: <NAME> <<EMAIL>>
* Copyright (c) 1995 <NAME> <<EMAIL>>, Espoo, Finland
* All rights reserved
* This file performs some of the things login(1) normally does. We cannot
* easily use something like login -p -h host -f use... |
#include <stdlib.h>
#include <string.h>
#include "nes.h"
#include "cpu.h"
#include "rom.h"
#include "backend.h"
static struct nes_header header;
static unsigned char memory[65536];
static int pad1_state[8];
static int pad1_readcount = 0;
static int running = 1;
static char *romfn;
static int OS_MIRROR = 0;
static int ... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* File Name : freertos.c
* Description : Code for freertos applications
******************************************************************************
* @attention
*
* <h2><cente... |
/*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redist... |
/*
** Copyright (C) 2002-2011 <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.
**
** This program... |
/* $OpenBSD: bcrypt_pbkdf.c,v 1.13 2015/01/12 03:20:04 tedu Exp $ */
/*
* Copyright (c) 2013 <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 al... |
/*
* Copyright (c) 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, publish, dis... |
#include <stdint.h>
#include <pico_socket.h>
#include <pico_stack.h>
#include <pico_protocol.h>
#include <pico_ipv4.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include "pico.h"
#include "utils.h"
#include "pico_dev_ipc.h"
#include "pico_dev_sock.h"
struct pico_socket *sock;
short so... |
/* $NetBSD: jensenio_dma.c,v 1.1.2.1 2000/07/12 20:59:12 thorpej Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
*
* Redistribution and use in source and binary forms, with or without
*... |
#include "interrupt_in.h"
static void (*interrupt0)() = NULL;
static void (*interrupt4)() = NULL;
static void (*interrupt5)() = NULL;
static void (*interrupt6)() = NULL;
static void (*interrupt7)() = NULL;
static void (*interrupt8)() = NULL;
static void (*interrupt9)() = NULL;
static void (*interrupt10)() = NULL;
stat... |
// $Id: git.c,v 1.21 2004/12/22 12:40:07 iain Exp $
#include "git.h"
#include <gi_blorb.h>
#include <stdlib.h>
#include <stdio.h>
// The four-char code 'FORM' as a big-endian value.
// This is the magic number at the start of Blorb files.
#define FORM 0x464f524d
static void gitMain (const git_uint8 * game, git_uint3... |
/**********
Copyright 1991 Regents of the University of California. All rights reserved.
Author: 1991 <NAME>, U. C. Berkeley CAD Group
Modified: 2001 <NAME>
**********/
#include "ngspice/ngspice.h"
#include "ngspice/cktdefs.h"
#include "ngspice/elctdefs.h"
#include "ngspice/meshext.h"
#include "ngspice/twomesh.h"
#in... |
/*
* sdpcontrol.c
*
* Copyright (c) 2001-2003 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... |
/*
* tload.c - terminal version of xload
*
* Options:
* -s initial scaling exponent (default = 6)
* -d delay
*
* Copyright (c) 1992 <NAME>
* /proc changes by <NAME> (<EMAIL>)
* Made a little more efficient by <NAME> (<EMAIL>)
*
* This library is free software; you can redistribute it and/or
* modify it unde... |
#include "void_queue.h"
#include <malloc.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
// Global Queue List
static pthread_mutex_t gql_lock = PTHREAD_MUTEX_INITIALIZER;
static void_queue **gql = 0;
static unsigned int gql_count = 0;
int void_queue_init(void_queue *queue, unsigned int size, const cha... |
/*
* Copyright (c) 2014 Nordic Semiconductor ASA
* 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... |
/* Copyright (c) 2017-2018 ARM Limited
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... |
/*
* Copyright 2020 Intel Corporation
* SPDX-License-Identifier: Apache 2.0
*/
/*!
* \file
* \brief Implementation of interface between crypto library and FDO library.
*/
#include "crypto_utils.h"
#include "util.h"
#include <stdlib.h>
#include "safe_lib.h"
#include "snprintf_s.h"
#include "base64.h"
#include "f... |
#include "processors.h"
#include "memory.h"
#include <string.h>
#include <math.h>
typedef struct
{
size_t in;
size_t out;
} in_out_counter;
size_t gexnet_compute_node_count(NetworkStream* links)
{
size_t max_index = 0;
if (!links || !links->elementCount)
return 0;
NetworkStreamLockData* links_stream = net... |
/*
* Copyright (c) 1997-2005 <NAME>
* (Royal Institute of Technology, Stockholm, Sweden).
* 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 reta... |
/*
* init.c - initializes the runtime
*/
#include <pthread.h>
#include <base/cpu.h>
#include <base/init.h>
#include <base/log.h>
#include <base/limits.h>
#include <runtime/thread.h>
#include "defs.h"
static pthread_barrier_t init_barrier;
struct init_entry {
const char *name;
int (*init)(void);
};
static init... |
/*===========================================================================*
* *
* sfltron.c - Tracing functions *
* *
* ... |
#include "smps2asm2bin.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "common.h"
#include "dictionary.h"
#include "error.h"
#include "instruction.h"
#include "memory_stream.h"
typedef struct DelayedInstruction
{
struct DelayedInstruction *next;
char... |
// Name: Align.m
// Description: Mex function to perform DTW
// The DTW implementation is based on <NAME> and <NAME>'s DTW code written in C, and available here:
// http://www.phon.ox.ac.uk/files/slp/Extras/dtw.html
// Authors: <NAME>, <NAME>, and <NAME>
// Data: March 23, 2015
#include <math.h>
#include <stdio.h... |
/*
* Copyright (c) 2013 <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... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <string.h>
#include <ctype.h>
#include <fcntl.h>
#include <string.h>
#include <signal.h>
#include <time.h>
#define MAX 200
#define SERVER 1L
#define TRUE 1
#define FALSE !TRUE
struct pa... |
///
/// @file
/// @copyright All code copyright Movidius Ltd 2015, all rights reserved.
/// For License Warranty see: common/license.txt
///
/// @brief Camera wrapper.
///
/// This implements additional CIF re-synchronization functionality using MIPI interrupts
///
///
// 1: Includes
// ----------------... |
/*
-----------------------------------------------------------------------------
$Id: tsp_tun.c,v 1.1 2009/11/20 16:53:20 jasminko Exp $
-----------------------------------------------------------------------------
Copyright (c) 2001-2006 gogo6 Inc. All rights reserved.
For license information refer to CLIENT-LICEN... |
#include "defs.h"
// define BASE p8 (defs1.h)
// define EXPO p9 (defs1.h)
// BASE and EXPO are numbers
void
power_numbers(void)
{
int h, i, j, n;
uint32_t *a, *b;
// n^0
if (iszero(EXPO)) {
push_integer(1);
return;
}
// 0^n
if (iszero(BASE)) {
if (isnegativenumber(EXPO))
stop("divide by zero");
... |
/* util.c: Various utility functions that can be linked with both the kernel and user code. */
/* Do not change this file */
#include "util.h"
int line_all =0;
#define PORT3F8 (0xbfe48000)
#define PORT3FD (0xbfe48006)
void printstr(char *s){
int i;
unsigned long port = PORT3F8;
while(*s){
i = 3000;
while(i... |
#include <stdio.h>
#include <stdlib.h>
#include "QueueSingly.h"
#include <stdbool.h>
#include <limits.h>
struct BinaryTree
{
struct BinaryTree *lchild;
int data;
struct BinaryTree *rchild;
};
typedef struct BinaryTree BinaryTree;
BinaryTree *create_BinaryTree();
BinaryTree *build_BinaryTree(BinaryTree *)... |
/*
* Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
/*
** Copyright 2012-2016 by Kvaser AB, Molndal, Sweden
** http://www.kvaser.com
**
** This software is dual licensed under the following two licenses:
** BSD-new and GPLv2. You may use either one. See the included
** COPYING file for details.
**
** License: BSD-new
** ===============... |
/** \file
* \brief iupmatrix control
* keyboard control
*
* See Copyright Notice in "iup.h"
*/
/**************************************************************************/
/* Functions to control keys in the matrix and in the text edition */
/****************************************************************... |
/*******************************************************************************
* Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries.
*
* Subject to your compliance with these terms, you may use Microchip software
* and any derivatives exclusively with Microchip products. It is your
* responsibility to ... |
/*
* Copyright 2020 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "nr_axiom.h"
#include <stddef.h>
#include "nr_synthetics.h"
#include "nr_synthetics_private.h"
#include "util_logging.h"
#include "util_memory.h"
#include "util_object.h"
nr_synthetics_t* nr_syntheti... |
/******************************************************************************
* Jacobi2D benchmark
* Basic parallelisation with OpenMP
*
* Usage:
* make omp
* export OMP_NUM_THREADS=8
* bin/Jacobi2D-NaiveParallel-OMP \
* `cat src/Jacobi2D-NaiveParallel-OMP.perfexecopts`
* For a run on 8 threads
********... |
/*
* Copyright 2017-2021 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include "overflow.h"
#include "rc.h"
#include "string.h"
/**
* This file implements dynamically growable arrays.
*/
typedef struct dy_array {
void *buffer;
size_t elem_size;
size_t elem_alignment;
size_... |
#include <stdint.h>
#include "reg.h"
#include "asm.h"
#include "processor.h"
#include "sp804_timer.h"
#include "gic.h"
#include "uart.h"
#include "mm.h"
#include "task.h"
#include "io.h"
/* start address for the initialization values of the .data section.
defined in linker script */
extern uint32_t _etext;
/* start a... |
/*
* Copyright (c) 2015 Google Inc. All rights reserved
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, mo... |
/*
Copyright 2020 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distribu... |
/*
* Copyright (C) 2003,2004 Red Hat, Inc.
* Copyright (C) 2003,2004 <NAME> <<EMAIL>>
*
* Licensed under the Academic Free License version 2.0
* Or under the following terms:
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lice... |
/*
Copyright (c) 2012 <NAME>, <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 and the following d... |
/* Copyright (C) 2005 Red Hat, Inc. */
struct semanage_user_base;
struct semanage_user_key;
typedef struct semanage_user_base record_t;
typedef struct semanage_user_key record_key_t;
#define DBASE_RECORD_DEFINED
struct dbase_file;
typedef struct dbase_file dbase_t;
#define DBASE_DEFINED
#include <stdlib.h>
#include ... |
/*
* Copyright (C) 2008-2009 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,... |
#include "fileio.h"
#include "common/math.h"
#include <fcntl.h> // fcntl, posix_fadvise
#include <dirent.h> // readdir, opendir, closedir
#include <sys/resource.h> // getrlimit
#include <unistd.h> // read, open, write, close, lseek, pread
#include <assert.h>
#include <string.h>
#include <err... |
/*
Copyright (c) 2011, 2018 MariaDB 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; version 2 of the License.
This program is distributed in the hope that it will be usefu... |
/*
* SPDX-License-Identifier: MIT
*
* Copyright (C) 2018 <NAME> <<EMAIL>>
*/
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <signal.h>
#include <fcntl.h>
#include <errno.h>
#include <pthread.h>
#include <string.h>
#include <stdio.h>
#include <linux/types.h>
#inclu... |
/*
* Phoenix-RTOS
*
* Operating system loader
*
* Loader commands
*
* Copyright 2012, 2017, 2020-2021 Phoenix Systems
* Copyright 2001, 2005 <NAME>
* Author: <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include "cmd.h"
#include <hal/hal.h>
#include <lib... |
#include <gtk/gtk.h>
#include <stdint.h>
#include <time.h>
#include <math.h>
#include <stdlib.h>
#include <sys/types.h>
#include <ifaddrs.h>
#include "cube.h"
#define CUBE_DIM 6
void *cubeSim(void*);
GtkBuilder* builder;
GtkWidget* interfaceSelectBox;
GtkListStore* liststore;
int main(int argc, char *argv[])
... |
/* void DGEMV(int A_nrows, int A_ncols, double A[A_ncols][A_nrows], int e_nrows, double e[e_nrows], int w_nrows, double w[w_nrows], int x_nrows, double x[x_nrows], int p_nrows, double p[p_nrows], int y_nrows, double y[y_nrows], int z_nrows, double z[z_nrows]){
int ii,i,j;
double t2[A_nrows];
*/
/*@ begin PerfTuning ... |
/*
hstr_favorites.c favorite commands
Copyright (C) 2014 <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
Unless requir... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.