text stringlengths 5.8k 28.2k |
|---|
/*-------------------------------------------------------------------------
*
* ftsprobe.c
* Implementation of segment probing interface
*
* Portions Copyright (c) 2006-2011, Greenplum inc
* Portions Copyright (c) 2012-Present Pivotal Software, Inc.
*
*
* IDENTIFICATION
* src/backend/fts/ftsprobe.c
*
... |
/* $XConsortium: miRndrPick.c,v 1.11 94/04/17 20:37:26 hersh Exp $ */
/************************************************************
Copyright (c) 1992 X Consortium
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to de... |
/* new.c -- as new, list all folders with unseen messages
* -- as fnext, move to next folder with unseen messages
* -- as fprev, move to previous folder with unseen messages
* -- as unseen, scan all unseen messages
* This code is Copyright (c) 2008, by the authors of nmh. See the
* COPYRIGH... |
/* Copyright 2004,2007,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 distribution of ... |
#include "high-io.h"
#include "base-io.h"
#include "clock.h"
#include "constants.h"
#include "game.h"
#include "joystick.h"
#include "logger.h"
#include "memory.h"
#include "numeric.h"
#include "physics.h"
#include "player.h"
#include "profiler.h"
#include "random.h"
#include "record.h"
#include "settings.h"
#include "... |
#include "gpu_utility.h"
#include <cuda.h>
// fallback for 5.0
#if (CUDA_VERSION < 5050)
cudaError_t cudaStreamCreateWithPriority(cudaStream_t *stream, unsigned int flags, int priority) {
printf("WARNING: priority streams are not supported in CUDA 5.0, falling back to regular streams");
return cudaStreamCrea... |
/*
* this file is derived from "sixel" original version (2014-3-2)
* http://nanno.dip.jp/softlib/man/rlogin/sixel.tar.gz
*
* Initial developer of this file is <EMAIL>.
*
* He distributes it under very permissive license which permits
* useing, copying, modification, redistribution, and all other
* public activi... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "crun.h"
graph_t *new_graph(int width, int height, int nedge, int nzone) {
bool ok = true;
graph_t *g = malloc(sizeof(graph_t));
if (g == NULL)
return NULL;
int nnode = width * height;
g->width = width;
g->height = height;
g->nnode = nnode;
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <limits.h>
#define nil NULL
// pointer size. only works with 32 bit pointers!!
#define PTRSZ 4
typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef struct Zfile Zfile;
... |
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2019 Western Digital Corporation or its affiliates.
*
* Authors:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#include <sbi/riscv_asm.h>
#include <sbi/riscv_atomic.h>
#include <sbi/riscv_barrier.h>
#include <sbi/sbi_bitops.h>
#include <sbi/sbi_domain... |
// Options: --no-argc --no-arrays --no-bitfields --checksum --concise --no-consts --no-float --no-inline-function --max-array-dim 3 --max-array-len-per-dim 10 --max-block-depth 5 --max-block-size 4 --max-expr-complexity 2 --max-funcs 1 --max-pointer-depth 2 --no-pointers --no-structs --no-unions --no-volatiles --no-b... |
#include "factory_test_unique.h"
#include "v141_adc_test.h"
#include "v141_gpio_test.h"
#include "kernel.h"
#include "my_misc.h"
#include "msg_structure.h"
#include "fifo.h"
#include "modbus_rtu.h"
#include "hw_rs485.h"
//#include "my_misc.h"
#define V14_FAC_UNIQ_THREAD_STACK_SIZE 1024
K_THREAD_STACK_DEFIN... |
/*
* BIOS Decode
*
* (C) 2000-2002 <NAME> <<EMAIL>>
* (C) 2002-2005 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* ... |
/*
This code contains an implementation of a simple note synthesizer.
It was originally created for CSC B63, and has now been updated
for use in A48.
*** YOU DO NOT NEED TO READ OR UNDERSTAND THE CODE HERE ***
It is provided only to complement the assignment you're working
on.
However - if... |
#include <stdint.h>
// Various memory addresses defined here for readability
// Based on MemoryMap.txt
// Characters read from/written here go from/to stdin/stdout
#define STDOUT_ADDR 0xBFF00004
// If a component is to be called it's address has to be written to here
#define COMPONENT_ADDR_START 0xBFF00200
#define COM... |
/*------------------------------------------------------
Maximum likelihood estimation
of migration rate and effectice population size
using a Metropolis-Hastings Monte Carlo algorithm
-------------------------------------------------------
W O R L D R O U T ... |
/*
This code simulates a resonating n-dimensional space using a simplified
physical model.
The code iterates over two arrays representing the positions and velocities of
points moving in the (n+1)th dimension in an n-dimensional grid. At each step, new
values are calculated for each point by following these steps:
1)... |
/* Copyright (c) 2018 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and t... |
/* X3F_PRINT_META.C
*
* Library for printing meta data found in X3F files.
*
* Copyright 2015 - Roland and <NAME>
* BSD-style - see doc/copyright.txt
*
*/
#include "x3f_print_meta.h"
#include "x3f_io.h"
#include <stdio.h>
/* --------------------------------------------------------------------- */
/* Hacky ext... |
/*
* Copyright (c) 2008 <NAME> (snavely (at) cs.washington.edu)
* and the University of Washington
*
* 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 Licens... |
/*
* Copyright (c) 1997-1999 Massachusetts Institute of Technology
*
* 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 versio... |
/*
Transmutate your STM32F1 BluePill into a cheap USB-UART dongle!
Copyright (C) 2020 by <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
*/
/*
* This sample application uses:
*
* @li USB port for PC connection
... |
/* $OpenBSD: ht.c,v 1.14 2010/12/04 17:06:31 miod Exp $ */
/*
* Copyright (c) 2005 <NAME>
*
* 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... |
// Over-the-air update HTTP handlers
// By <NAME>, 2015
#include <c_types.h>
#include <user_interface.h>
#include <mem.h>
#include "osapi_release.h"
#include <upgrade.h>
#include <espconn.h>
#include <espmissingincludes.h>
#include "ota.h"
#define OTA_BUFF_SZ 512
#define OTA_CHUNK_SZ 512
// Request handler
struct Ot... |
/*
* fExpenses.c
*/
#include "Include.h"
/* macros */
#define LOffDate 16
#define LOffCategory (LOffDate+28)
#define LOffCurrency (LOffCategory+70)
#define ExpensesCategoryLength 64
/* protos */
static void ExpensesListDraw(Int16, RectangleType *, Char **);
static void ExpensesCategoryListDraw(Int16, RectangleType ... |
/*
* Keystone2: pll initialization
*
* (C) Copyright 2012-2014
* Texas Instruments Incorporated, <www.ti.com>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm-generic/errno.h>
#include <asm/io.h>
#include <asm/processor.h>
#include <asm/arch/clock.h>
#include <asm/arch/clock_de... |
/*
* Copyright (C) 2018 Southern Storm Software, Pty Ltd.
*
* 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, ... |
/*
* simpleTest.c
*
* gsub-based example code to demonstrate use of ARToolKit.
*
* Press '?' while running for help on available key commands.
*
* Disclaimer: IMPORTANT: This Daqri software is supplied to you by Daqri
* LLC ("Daqri") in consideration of your agreement to the following
* terms, and your ... |
/*!
* @file mandelbrot.c
*
* @brief A very cool, fractal test.
*
* Written by <NAME> sometime aeons ago, improved by sully
* to support panning and zooming in Spring 2014.
*
* This version compromises on some of the original behaviors of
* mandelbrot in order to get panning/zooming to perform better
* in Simi... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "io.h"
#include "../port/error.h"
/*
* basic read/write interface to 4xx IIC bus (master mode)
* ``referred to as IIC to distinguish it from the Phillips IC bus [itself]''
*
* TO DO:
* power management ref count
... |
#include <stdio.h>
#include <string.h>
#define maxKeyBytes 400
#define nstart 12
#define nstep 1
#define nstride 6
#define Ketje_BlockSize 4
#define nrLanes 25
#define FRAMEBITS0 0x02 //0010
#define FRAMEBITS00 0x04 //0100
#define FRAMEBITS10 0x05 //0101
#define FRAMEBITS01 0x06 //0110
#define FR... |
#include <sc_reduce.h>
#include <pXest.h>
#include <d4est_util.h>
#include <d4est_linalg.h>
#include <problem.h>
#include <d4est_elliptic_data.h>
#include <d4est_elliptic_eqns.h>
#include <d4est_estimator_bi.h>
#include <d4est_solver_cg.h>
#include <d4est_solver_fcg.h>
#include <d4est_amr.h>
#include <d4est_amr_smooth_... |
/*
* Copyright © 2016 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL ... |
/**
* @file linux-io.c
* @author <NAME>
* <EMAIL>
*
* @ingroup papi_components
*
* @brief io component
* This component provides access to the I/O statistics in the
* system file /proc/self/io. It typically contains 7 counters,
* but for robusness we read the file and create whatever events
*... |
/******************************************************************************
NAME: gen_filt_params - Generate filter parameters for cpx_filter
SYNOPSIS:
gen_filt_params <cpx img1> <cpx img2> <out_filt_params>
*no extensions are required for this program*
*the program ... |
#include "stdio.h"
#include "gsl/gsl_integration.h"
#include "gsl/gsl_errno.h"
#include "limber.h"
#include <gsl/gsl_interp2d.h>
//#include <gsl/gsl_spline2d.h>
//#include <gsl/gsl_spline.h>
// This is a workspace size for the gsl integrator
#define LIMBER_FIXED_TABLE_SIZE 4096
// data that is passed into the integr... |
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <zlib.h>
#include <stdlib.h>
typedef struct strip {
struct strip *next;
uint32_t offset;
uint32_t size;
uint32_t srcoffset;
#define LITTERAL_STRIP ((uint32_t)0xFFFFFFFF)
} strip;
// Returns 1 if strips cover the whole range specified by size,... |
#include "gpio_lib.h"
#include <gtk/gtk.h>
struct _s_EXT_GPIO
{
char EXT_Num, EXT_Pin, GPIO_Port, GPIO_Pin;
};
typedef struct _s_EXT_GPIO EXT_GPIO;
EXT_GPIO GPIO_Data [] =
{
// Ext 1
{1, 1, 'N', -1},
{1, 2, 'N', -1},
{1, 3, 'N', -1},
{1, 4, 'N', -1},
{1, 5, 'G', 0},
{1, 6, 'N', -1},
{1, 7, 'G', 1},
... |
#include "drally.h"
#include "drally_race.h"
typedef struct x2c_s {
__DWORD__ __0; // +00
__DWORD__ __4; // +04
__DWORD__ __8; // +08
__DWORD__ __C; // +0c
__DWORD__ _10; // +10
__DWORD__ _14; // +14
__DWORD__ _18; // +18
__... |
/*+
TITLE: AVLtree.c general purpose balanced trees.
DESCRIPTION:
General purpose binairy-tree functions. This package uses AVL-trees
to ensure proper balancing. (The heigth of the tree will never exceed
ceil(1.44 * lg(n)), where lg is the logarithm base 2 and n the number
of elements.) Thi... |
#define NUMBUTTONS 10
#define NUMFREQS 8
typedef struct node {
//t represents both
//time held and time not held
int t;
int f;
struct node *next;
} NODE;
//list
typedef struct list {
NODE *head;
NODE *tail;
} LIST;
//declare list
LIST l;
//long count = 0;
//speake... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "ec2.h"
#include "mplogic.h"
#include "mp_gf2m.h"
#include <stdlib.h>
#ifdef ECL_DEBUG
#include <assert.h... |
/*
* 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... |
#if !defined(lint)
static char *sccsid = "@(#)nt386.c (c) ELIGIS, <NAME> 2009/01/17";
#endif
/*
* nt386.c :
*/
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
#define _CRT_SECURE_NO_DEPRECATE 1
#define _CRT_NONSTDC_NO_DEPRECATE 1
#endif
#include <stdio.h>
#include <stdlib.h>
#incl... |
/*
swsharp - CUDA parallelized Smith Waterman with applying Hirschberg's and
Ukkonen's algorithm and dynamic cell pruning.
Copyright (C) 2013 <NAME>, contributor <NAME>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free So... |
#include "Lighting.h"
#include "Block.h"
#include "Funcs.h"
#include "MapRenderer.h"
#include "Platform.h"
#include "World.h"
#include "ErrorHandler.h"
#include "Event.h"
Int16* Lighting_heightmap;
PackedCol shadow, shadowZSide, shadowXSide, shadowYBottom;
#define Lighting_Pack(x, z) ((x) + World_Width * (z... |
/*
acsappend.c: Append a bundle ID to an aggregate custody signal.
Authors: <NAME>, <NAME>,
University of Colorado at Boulder
Copyright (c) 2008-2011, Regents of the University of Colorado.
This work was supported by NASA contracts NNJ05HE10G, NNC06CB40C, and
NNC07CB47C.
*/
#include "acsP.h"
sta... |
/*
* Copyright (C) 2006 <NAME> <<EMAIL>>
*
* This file is part of libass.
*
* 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 PR... |
/*
* BSDv2
* Copyright (c) 2014 <NAME> <<EMAIL>>
*/
#define _BSD_SOURCE
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <ctype.h>
#include <pthread.h>
#include <errno.h>
#include <assert.h>
#include <err.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#in... |
/* $NetBSD: pms.c,v 1.2 2004/03/18 21:05:19 bjh21 Exp $ */
/*-
* Copyright (c) 1994 <NAME>.
* Copyright (c) 1992, 1993 <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. Redis... |
/*
* smallapp/unbound-host.c - replacement for host that supports validation.
*
* Copyright (c) 2007, NLnet Labs. All rights reserved.
*
* This software is open source.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
*... |
/*
Copyright (C) 2014, The University of Texas at Austin
This file is part of libflame and is available under the 3-Clause
BSD license, which can be found in the LICENSE file at the top-level
directory, or at http://opensource.org/licenses/BSD-3-Clause
*/
#include "FLAME.h"
#include "test_libflame.h... |
/*---------------------------------------------------------------
* Programmer(s): <NAME> @ SMU
*---------------------------------------------------------------
* LLNS/SMU Copyright Start
* Copyright (c) 2015, Southern Methodist University and
* Lawrence Livermore National Security
*
* This work was performed u... |
/******************************Module*Header*******************************\
* Module Name: textout.c
*
* There are three basic methods for drawing text with hardware
* acceleration:
*
* 1) Glyph caching -- Glyph bitmaps are cached by the accelerator
* (probably in off-screen memory), and text is drawn by
... |
/**
* MojoShader; generate shader programs from bytecode of compiled
* Direct3D shaders.
*
* Please see the file LICENSE.txt in the source's root directory.
*
* This file written by <NAME>.
*/
#include <stdio.h>
#include <stdlib.h>
#include "mojoshader.h"
#ifdef _MSC_VER
#define snprintf _snprintf
#endif
#i... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "cvtunit.h"
#include "lfa.h"
void observer_init (struct observer *obs,
double longitude, /* WGS84 longitude, E positive */
double latitude, /* WGS84 latitude, N positive */
double height) { /* Height above geoid, m */
double si... |
#include <sys/time.h>
#include <math.h>
#include <stdlib.h>
#include "stdio.h"
#include <pthread.h>
#include "compute.h"
#define M_SQRT2 1.41421356237309504880
static const double c_cdir = 0.25 * M_SQRT2 / (M_SQRT2 + 1.0);
static const double c_cdiag = 0.25 / (M_SQRT2 + 1.0);
pthread_barrier_t barrier;
typedef stru... |
/*
* Mesa 3-D graphics library
* Version: 7.0.3
*
* Copyright (C) 1999-2007 <NAME> 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, incl... |
/*
* Copyright (c) 2008 vmrsss
* Copyright (c) 2009 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg 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 (a... |
/*
** connect / disconnect two subscriber ports
** ver.0.1.3
**
** Copyright (C) 1999 <NAME>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License version 2 as
** published by the Free Software Foundation.
**
** This program ... |
/* FFTease for Pd */
#include "fftease.h"
static t_class *pvharm_class;
#define OBJECT_NAME "pvharm~"
typedef struct _pvharm
{
t_object x_obj;
t_float x_f;
t_fftease *fft;
t_fftease *fft2;
short mute;
short peakflag;
t_float hifreq;/* highest frequency to synthesize */
t_float lofreq... |
/*
* Copyright (c) 1999-2000 Image Power, Inc. and the University of
* British Columbia.
* Copyright (c) 2001-2003 <NAME>.
* All rights reserved.
*/
/* __START_OF_JASPER_LICENSE__
*
* JasPer Software License
*
* IMAGE POWER JPEG-2000 PUBLIC LICENSE
* ************************************
*
* GRANT:
* ... |
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2004 Red Hat, Inc.
* Copyright © 2005 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Fr... |
/* -*- mode: C -*- */
/*
IGraph library.
Copyright (C) 2007-2012 <NAME> <<EMAIL>>
334 Harvard street, Cambridge, MA 02139 USA
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; e... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <signal.h>
#include <semaphore.h>
#include <pthread.h>
#include <sys/prctl.h>
#include <math.h>
#include "sample_comm_ive.h"
... |
/* TA-LIB Copyright (c) 1999-2007, <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 co... |
/* gapCalc - Stuff to calculate complex (but linear) gap costs quickly,
* and read specifications from a file. */
/* Copyright (C) 2011 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "linefile.h"
#include "gapCalc.h"
... |
/*
* Copyright (c) 2014-2017 Advanced Micro Devices, 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 rig... |
/*
* Duktape 1.x compatible module loading framework
*/
#include "duktape.h"
#include "duk_module_duktape.h"
#if 0 /* Enable manually */
#define DUK__ASSERT(x) do { \
if (!(x)) { \
fprintf(stderr, "ASSERTION FAILED at %s:%d: " #x "\n", __FILE__, __LINE__); \
fflush(stderr); \
} \
} while (0)
#define D... |
/*
* Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
* All rights reserved.
*
* 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 opt... |
/* --------------------------------------------------------------------
Copyright (C) 2016 The Crown (i.e. Her Majesty the Queen in Right of Canada)
This file is an add-on to RAVE.
RAVE is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
... |
/********************************************************************
* *
* THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
* GOVERNED BY A BSD-STYLE SOURCE LICENS... |
/*-
* Copyright (c) 2013 Netflix, 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. Redistributions of source code must retain the above copyright
* notice, this list of conditi... |
/*******************************************************
* *
* volInt.c *
* *
* This code computes volume integrals needed for *
* determining mass ... |
/*
* Copyright (c) 2021 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... |
/*
* Copyright (c) 2016-present <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, pub... |
// This file computes and sets best-effort clock speeds for the STM32. Note that
// it is (for now) quite conservative and does not use over-drive functionality
// to hit the maximum possible clock rates. It further expects that the MCU is
// powered from 3.3 volts. Lower voltages incur additional FLASH wait states.
/... |
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* massF1.c
*
* Code generation for function 'massF1'
*
*/
/* Include files */
#include <string.h>
#include "... |
#include "main.h"
static const char *TAG = "MAIN";
static void debug_register_http_print_data();
static void initialize_services(void *arg);
httpd_handle_t http_server = NULL;
void app_main(void)
{
#ifdef CONFIG_DEBUG_UART1
enable_debug_uart1();
userlog("DEBUG UART1: %s\n", __func... |
/*
* Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2011 The University of Tennessee and The University
* of Tennessee Resea... |
/* ====================================================================
* Copyright (c) 1999-2004 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... |
/* Copyright 2016-2019, Laboratorio de Microprocesadores
* Facultad de Ciencias Exactas y Tecnología
* Universidad Nacional de Tucuman
* http://www.microprocesadores.unt.edu.ar/
* All rights reserved.
*
* Copyright 2016,2019, <NAME> <<EMAIL>>
* Copyright 2016, <NAME> <<EMAIL>>
*
* Redistribution and use in ... |
/*
* 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 this list
* of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce t... |
#include <stdint.h>
#include <assert.h>
#include "liquid.h"
#include "vm.h"
#include "variable_lookup.h"
#include "intutil.h"
#include "document_body.h"
ID id_render_node;
ID id_vm;
static VALUE cLiquidCVM;
static void vm_mark(void *ptr)
{
vm_t *vm = ptr;
c_buffer_rb_gc_mark(&vm->stack);
context_mark(&... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2016-2017 Intel Corporation
*/
#include <rte_memcpy.h>
#include <rte_malloc.h>
#include <rte_efd.h>
#include <rte_byteorder.h>
#include <rte_random.h>
#include <rte_debug.h>
#include <rte_ip.h>
#include "test.h"
#define EFD_TEST_KEY_LEN 8
#define TABLE_SIZE (... |
/* Copyright (c) 2007-2017 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "str.h"
#include "message-address.h"
#include "test-common.h"
static bool cmp_addr(const struct message_address *a1,
const struct message_address *a2)
{
return null_strcmp(a1->name, a2->name) == 0 &&
null_... |
/**************************************
**************************************
* EVENT FINDING
**************************************
**************************************/
#include "eventFinding.h"
double dummyevent(unsigned n, double x, double *y, double *p) {
return 0.0;
}
/* Takes IData struct... |
/*
* Copyright (c) 2009, Mozilla Corp
* Copyright (c) 2012, 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 copyrig... |
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <string.h>
#include <unistd.h>
#include <net/if.h> //estrutura ifr
#include <netinet/ether.h> //header ethernet
#include <netinet/in.h> //definicao de protocolos
#include <arpa/inet.h> //funcoes para m... |
/* -----------------------------------------------------------------------------
* Programmer(s): <NAME> @ LLNL
* -----------------------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-2021, Lawrence Livermore National Security
* and Southern Methodist Univers... |
/*
atom.c
The Acorn Atom was a very simple 6502-based home computer
(just a MOS 6502 CPU, Motorola MC6847 video
display generator, and Intel i8255 I/O chip).
Note: Ctrl+L (clear screen) is mapped to F1.
NOT EMULATED:
- the audio beeper
- the optional VIA 6522
- REPT ke... |
/*
* Copyright (C) 2012 The Android Open Source Project *
* 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 appl... |
/* swffont.c
Functions for loading external fonts.
Extension module for the rfxswf library.
Part of the swftools package.
Copyright (c) 2003, 2004 <NAME>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
th... |
/*
* 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... |
/**
* Behavior for bhvMontyMole, bhvMontyMoleHole, and bhvMontyMoleRock.
* The monty mole holes are placed statically. The monty moles repeatedly
* search for an available hole to pop out of.
*/
/**
* The first hole in the list of monty mole holes. The list is a singly linked
* list using the parentObj field.
... |
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* egg-openssl.c - OpenSSL compatibility functionality
Copyright (C) 2007 <NAME>
The Gnome Keyring Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
pub... |
#include <float.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include "object.h"
#include "spec.h"
#include "vecmath.h"
#include "util.h"
#define MAX_OBJECTS 128
#define A 0
#define B 1
#define C 2
#define D 3
#define E 4
#define F 5
#define G 6
#define H 7
#define I 8
#define J 9
/////////////////... |
#include "scheduler.h"
/* ====================== DECLARE GLOBAL VARIABLES ====================== */
/* Process ID Array to start a new process - only can have 6 at a time */
uint8_t pid_array [NUM_MAX_PROCESSES] = {0, 0, 0, 0, 0, 0};
/* keeps track of which current process it is running */
uint32_t curr_process = 0;
/... |
/*
* Copyright (c) 2014-2018 Cesanta Software Limited
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the ""License"");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
/*
* adm_files.c: helper routines for handling files & dirs in the
* working copy administrative area (creating,
* deleting, opening, and closing). This is the only
* code that actually knows where administrative
* information is kept.
*
* ====================... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.