text stringlengths 3.08k 10.5k |
|---|
/*
* tabread4~~: a tabread with 2 inputs for higher precision
*
* (c) 1999-2011 <NAME>, forum::für::umläute, institute of electronic music and acoustics (iem)
*
* 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... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
typedef enum InstructionType {
ASSIGNMENT,
MASK
} InstructionType;
typedef struct Assignment {
uint64_t memory_address;
uint64_t value;
} Assignment;
typedef struct Instruction {
InstructionType instruction_type;
u... |
/*
* $Id$
*
* Copyright (c) 2010 .SE (The Internet Infrastructure Foundation).
* All rights reserved.
*
* Written by <NAME> <<EMAIL>> for .SE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistribut... |
#include<stdio.h>
#include<stdlib.h>
// create a struct called `Node` that holds an int
// and pointers to two other Node structs
struct Node{
int val;
struct Node* left;
struct Node* right;
};
// create the pointer of type Node called 'top' and set its value to NULL
struct Node* top=NULL;
// create a Queue stru... |
/* Copyright (c) 2008, 2009 Nicira Networks
*
* 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 ... |
/*
* socket.c -- DHCP server client/server socket creation
*
* Moreton Bay DHCP Server
* Copyright (C) 1999 <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Rewrite by <NAME> <<EMAIL>> July 2001
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Li... |
/*
* Copyright (c) 2017, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at w... |
/*
* Copyright (c) 2010, <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 ... |
/*
** Module loaders for bundled Lua and Lua/C modules.
** By <NAME>, no (c) claimed.
**
** Major portions taken verbatim or adapted from LuaJIT's lib_package.c.
** Copyright (C) 2005-2014 <NAME>. See Copyright Notice in luajit.h
**
** Major portions taken verbatim or adapted from the Lua interpreter.
** Copyright (C) ... |
#include "memory.h"
#include "printk.h"
#include "util.h"
unsigned long PAGE_2M_UPPER_ALIGN(unsigned long addr)
{
return ((addr + PAGE_2M_SIZE - 1) & PAGE_2M_MASK);
}
unsigned long PAGE_4K_UPPER_ALIGN(unsigned long addr)
{
return ((addr + PAGE_4K_SIZE - 1) & PAGE_4K_MASK);
}
unsigned long PAGE_2M_LOWER_ALIGN(u... |
/**
* \file
*
* \brief Unit tests for GPIO driver.
*
* Copyright (c) 2012 - 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 me... |
// File: mumps/seqio/SQ_Tcpip.c
//
// This module implements the following sequential input/output ( ie IO )
// operations for TCP/IP sockets:
//
// SQ_Tcpip_Open Determines the type of socket to open
// SQ_Tcpip_Accept Accepts a connection on a server socket
// SQ_Tcpip_Write Writes to a socket
// SQ_Tcpip_Read Re... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#define STATE_SIZE (4*3*4)
#define MASK_VAL(a,x,n) { \
uint ## n ##_t val = a; \
for (int _i = 1; _i < MASKING_ORDER; _i++) { \
uint ## n ##_t mask = rand(); ... |
/*
* ISC License
*
* Copyright (C) 1990-2018 by
* <NAME>
* <NAME>
* <NAME>
* Delft University of Technology
*
* 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 appea... |
/*
* Copyright (c) 2006, Swedish Institute of Computer Science
* 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
* ... |
/* $OpenBSD: wsfontload.c,v 1.11 2006/08/07 10:43:20 kettenis Exp $ */
/* $NetBSD: wsfontload.c,v 1.2 2000/01/05 18:46:43 ad Exp $ */
/*
* Copyright (c) 1999
* <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follo... |
/*
* 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... |
// Final Project COMP 310
// Your Name:
// <NAME>:
//
// kernel.c
//
#include "kernel.h"
#include <stdlib.h>
#include "shell.h"
#include "shellmemory.h"
#include "ram.h"
#include "cpu.h"
#include "pcb.h"
#include "memorymanager.h"
#define DEFAULT_QUANTA 2
struct QueueNode{
struct PCB *PCB;
str... |
/* Copyright 2018 <NAME> (Wilba)
*
* 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 distribute... |
/*
* File: Board.c
* Author: <NAME>
* Brief: Sets up the microprocessor with the correct timing and vectored int
* Created on 11/09/2020
* Modified on 11/10/2020
*/
/*******************************************************************************
* CPU Configuration ... |
#include "measures.h"
LOG_MODULE_REGISTER(measures, LOG_LEVEL_DBG);
void swap(measure_t *a, measure_t *b)
{
measure_t tmp;
memcpy(&tmp, a, sizeof(measure_t));
memcpy(a, b, sizeof(measure_t));
memcpy(b, &tmp, sizeof(measure_t));
}
void shuffle(measure_t *m, uint32_t n)
{
for (int i = 0; i < n; i++... |
#include <stdio.h>
#include <sndfile.h>
#include <math.h>
#include <stdlib.h>
#include "kiss_fft.h"
#define BUFFER_LEN 1024
#define WINDOW_LEN 655 // fundamental frequency is 220hz,
//the window size needs to be two cycles of the period of fund freq
//3/220*48000(samplerate) = 655 is the numb... |
/*
The MIT License
Copyright (c) 2015 by <NAME>, University of New Hampshire <<EMAIL>>
Copyright (c) 2011 by <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 wit... |
/**
* Authors: <NAME>, <NAME>
*/
#include "include/render.h"
void render(Model* model, void *base, int player_count) {
render_spaceship(&model->player, (uint16*) base);
render_armada(&model->armada, (uint16*) base);
render_shots(model->armada.shots, alien_bomb, base);
render_shots(model->player.shots, space... |
/*
* Copyright (C) 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, including
* without limitation the rights to use, copy,... |
//*****************************************************************
// DMA features packed into the functions
// This library is borrowed from easyelectronics.ws lessons
//
//
//*****************************************************************
#include "dma.h"
/* DMA1 Channelx interrupt pending bit masks */
#defin... |
/*! \file
* timer.c
* xenon-lib
*
* The MIT License (MIT)
*
* 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 li... |
#include "postgres.h"
#include "funcapi.h"
#include "miscadmin.h"
#include "access/heapam.h"
#include "access/genam.h"
#include "cdb/cdbvars.h"
#include "libpq/ip.h"
#include "postmaster/postmaster.h"
#include "postmaster/primary_mirror_transition_client.h"
#include "utils/builtins.h"
#include "utils/faultinjector.h"
... |
/*
* FreeRTOS Kernel V10.4.3
* 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, includ... |
#define _GNU_SOURCE
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
#include<errno.h>
#include<unistd.h>
#include<sys/socket.h>
#include<sys/un.h>
#include<sys/wait.h>
#define streq(x, y) (strcmp((x) , (y)) == 0)
int main(int argc, char **argv) {
//parse args
char *logfile = NULL;
char *pidf = NULL... |
/*
* CC6303: A C compiler for the 6803/6303 processors
* (C) 2019 <NAME>
*
* This compiler is built out of a much modified CC65 and all new code
* is placed under the same licence as the original. Please direct all
* cc6303 bugs to the author not to the cc65 developers unless you find
* a bug that is also prese... |
/*
* Copyright (c) 2018 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <logging/sys_log.h>
#include <net/net_pkt.h>
#include <net/net_context.h>
/* Set this to 1 if you want to see what is being sent to server */
#define DEBUG_PRINTING 0
static struct net_context *ctx;
static struct socka... |
/*
* Copyright (c) 2013 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* complia... |
/*
* Name : testhacf_param.c
* Author : <NAME>
* The Author licenses this file to You 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.... |
/* V I E W F R A C . C
* BRL-CAD
*
* Copyright (c) 1990-2014 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 a... |
/*
* Copyright (c) 2015-2018, Renesas Electronics Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdint.h>
#include <string.h>
#include <arch_helpers.h>
#include <common/debug.h>
#include <lib/mmio.h>
#include "rcar_def.h"
#include "cpg_registers.h"
#include "rcar_privat... |
/* $XFree86$ */
/*
* Copyright 2003-2004 Red Hat Inc., Durham, North Carolina.
*
* 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... |
#include "startup.h"
#include "blitter.h"
#include "copper.h"
#include "memory.h"
#include "pixmap.h"
#include "random.h"
#include "fx.h"
#define WIDTH (320 - 32)
#define HEIGHT 256
#define DEPTH 0
#define HTILES (WIDTH / 8)
#define VTILES (HEIGHT / 4)
#undef X
#undef Y
/* Don't change these settings without readin... |
/*
(c) Copyright 2012-2013 DirectFB integrated media GmbH
(c) Copyright 2001-2013 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by <NAME> <<EMAIL>>,
<NAME> <<EMAIL>>,
<... |
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <limits.h>
#include "libpng/png.h"
#include "mkdirs_open.h"
#include "ulog.h"
png_size_t pngcount=0;
FILE *fp;
png_structp png_ptr;
png_infop info_ptr,end_info;
void
read_row_callback(png_structp pngp,png_... |
#include "stepmotor.h"
/******interrupciones del timer********/
static void stepperMotorCycle() {
if (stepCount != 0) {
gpioWrite(stepper.pulsePin, ON);
stepCount--;
//establezco que elestado deleje del motor tuvo un movimiento reciente y
//se debe realizar el calculo de la posición de la compuerta
if (ste... |
/* mnspde.f -- translated by f2c (version 19961017).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__1 = 1;
/* ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc */
/* c ... |
#include "sonometer_task.h"
#include "task.h"
#include "sapi.h"
#include "peripheral_driver.h"
#define MUY_BAJO 4
#define BAJO 3
#define MEDIO 2
#define ALTO 1
#define alpha 0.05
#define VENTANA_MUESTRA 20
#define CANTIDAD_MUESTRA 10
#define PRIMERA_VENTANA 10
#define MUESTRA_VENTANA_VENTANA 10
static void updateSign... |
/* Femc Driver
* Copyright (C) 2015-2020 <NAME>
*
* Licensed under The MIT License, see file LICENSE.txt in this source tree.
*/
#define _GNU_SOURCE
#include "tcplogger.h"
#include "../generic.h"
#include "../dispatcher.h"
#include "../utils.h"
#include <arpa/inet.h>
#include <ctype.h>
#include <errno.h>
#inclu... |
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <mosquitto_broker.h>
#include <mosquitto.h>
#include <mosquitto_plugin.h>
#include <libpq-fe.h>
static struct pg_obj {
PGconn *conn;
char *dsn;
char *password_query;
} pg;
void auth_log(const char *fmt, ...) {
va_list va;
va_star... |
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#include "iotx_ota_internal.h"
/* ofc, OTA fetch channel */
#define OFC_HTTP_HEADER_MAXLEN (128)
typedef struct {
char *payload;
int alread_download;
int payload_len;
} ota_http_response_t;
typedef struct {
const cha... |
/*********************************************************************
This file is part of the argtable2 library.
Copyright (C) 1998-2001,2003-2007 <NAME>
<EMAIL>
The argtable2 library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "efficiency.h"
#include "tree.h"
#include "constants.h"
#include "hash.h"
int deleted_in_file(int number)
{
int len = 0;
FILE *f1 = fopen("data_copy.txt", "r");
FILE *f2 = fopen("data_copy_2.txt", "w");
char *word =... |
/*
** mouse:~ppr/src/ppr-papd.h
** Copyright 1995--2006, Trinity College Computing Center.
** Written by <NAME>.
**
** 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 ... |
/**
* Hei Platform Library
* Copyright (C) 2017-2021 <NAME> <<EMAIL>>
* This software is licensed under MIT. See LICENSE for more details.
*/
#include <plcore/pl_physics.h>
#include <float.h>
float PlComputeSphereFromCoords( const PLVector3 *vertices, unsigned int numVertices ) {
float maxRadius = 0.0f;
for ( ... |
/*
TiMidity++ -- MIDI to WAVE converter and player
Copyright (C) 1999-2002 <NAME> <<EMAIL>>
Copyright (C) 1995 <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... |
//buf for screen
#define ROWS 24
#define COLUMNS 80
//buf for read buffer, notice buffer, etc.. should >= 64
#define _BUFSIZ 2048
//buf for hold the whole file*2, orginal is 10KB
#define MIN_FILE (0)
//buf for status line.. should >= 64
#define STATUS_LEN (200)
//platform header
#include "sleep.h"
#include <strin... |
//-------------------------------------------------------------------
//
// OBJECT Edit Line Implementation:
//
//-------------------------------------------------------------------
//
#include "app.h"
typedef struct {
char *text; // The text displayed.
int fg; // The text color
int ... |
// load R headers
#include <R.h>
#include <Rinternals.h>
#include "macros.h"
// The BBOB header file use function with names ERROR
// and WARNING, but these are macros defined in Rcpp
// seemingly. We this 'undefine' this Rcpp stuff here.
// Probably it is not the best idea. We should rather
// rename the BBOB functi... |
/*
* Thread-safe guest to host memory mapping
*
* Copyright 2012 Red Hat, Inc. and/or its affiliates
*
* Authors:
* <NAME> <<EMAIL>>
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*
*/
#include "exec/address-spaces.h"
#inclu... |
/**
* \file
*
* \brief AVR XMEGA Digital to Analog Converter Driver Example 1
*
* Copyright (C) 2010 - 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 ... |
/*
Copyright (c) 1991-1999 <NAME>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use, copy,
modify, merge, publi... |
#include <stdio.h>
#include <string.h>
#ifdef __APPLE__
# include <stdlib.h>
#else
# include <malloc.h>
#endif
#include <clib/regex.h>
#define PASSFAIL(x) ((x) ? "PASS" : "FAIL")
int main(int argc, char **argv)
{
char *err;
regex *rx = regexCreate("ab[0-9]c([0-9]+)", REGEX_DEFAULT, &err);
if(err) { printf("%s\n... |
/* then read several cube specifications
*/
#include <stdio.h>
#include <stdlib.h>
int totalPos;
int totalNeg;
int countPos;
int countNeg;
//void CubeStats(int first, int edge,int dimension,int size,int * averageNeg,int * averagePos);
int power(int base, int exponent)
{
int r = 1;
int t;
for(t = exponent ... |
/**************************************************************
*
* MFUTILS.C : mfutils.c - standard code utilites I use while
* programming
*
*
**************************************************************
*
* REVISION HISTORY:
*
* DATE .Comment .AUTHOR
* =... |
/* ncdu - NCurses Disk Usage
Copyright (c) 2007-2019 <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, mo... |
/*-------------------------------------------------------------------------
*
* prov_plan_all.c
* PERM C - Generates rewritten Query trees for all applicable rewrite strategies, uses the optimizer to get a
* cost estimation for each one and executes the cheapest one.
*
* Portions Copyright (c) 2008 <NAME>... |
/*
* Copyright (c) 2018, Swiss Federal Institute of Technology (ETH Zurich).
* 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
*... |
/* apg_unicode
Unicode <-> UTF-8 Multibyte String Functions for C & C++
<NAME>
Version: 0.2. 3 May 2020.
Licence: see bottom of file.
C89 ( Implementation is C99 )
TODO:
* Find out why some vars in bitwise ops are unused - feels like a copy-paste mistake between versions.
* Compile with all warnings and address unused... |
#include "lucre.h"
/*
ONL_COIN =
[
int keyversion
MPI n
MPI sig
int value ; optional
]
*/
EC_M_Onl_coin EC_M_new_onl_coin(UInt32 keyversion, BIGNUM *n, BIGNUM *sig,
UInt32 value)
{
EC_M_Onl_coin newonl_coin;
newonl_coin =
(EC_M_Onl_coin) EC_G_malloc(sizeof(s... |
/*
* NCEP_uv
*
* duplicate ncep files by puting U and V into one grib messsage
*
* U and V must be adjacent
*
* if (cleanup) {
* if (saved_U) write saved_U
* return
* }
* if (saved_U) {
* if (current_message != V) {
* write saved_U
* saved_U = NULL
* write current_mess... |
/**
* Short example to describe how to trigger an sensor balance
*
* for analogue channels of a specific board
*
*
* In this example no application-owned acquisition is running
* so the balancing-operation will execute blocking, and will not
* return until finished
*
* After execution the offset-va... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <time.h>
#include <SDL.h>
#include "chip8.h"
#define SDL_SCALE_FACTOR 20
#define SDL_SCREEN_WIDTH (SCREEN_WIDTH * SDL_SCALE_FACTOR)
#define SDL_SCREEN_HEIGHT (SCREEN_HEIGHT * SDL_SCALE_FACTOR)
#def... |
#include "io.h"
#include "framebuffer.h"
#include "serial.h"
extern void interrupt_handler_0();
extern void interrupt_handler_1();
extern void interrupt_handler_2();
extern void interrupt_handler_3();
extern void interrupt_handler_4();
extern void interrupt_handler_5();
extern void interrupt_handler_6();
extern void i... |
#include "headers.h"
void hash_insert(Hash *hash, Unt h1, Unt h2, Value key, Value data);
Unt hash_calculate1(const Value *key);
Unt hash_calculate2(const Value *key);
Unt hash_index(Unt h1, Unt h2, Unt i, Unt size);
void hash_resize(Hash *hash);
Hash *hash_create(void) {
assert_build((1.0 / HASH_EXPANSION_FACT... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */
/*
* Fortezza support is removed.
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in... |
/*
libdrawtext - a simple library for fast text rendering in OpenGL
Copyright (C) 2011-2016 <NAME> <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, o... |
/*
* stringutil.c - some tools for string handling
*
* Copyright (c) 2007 <NAME>, Skype Technologies OÜ
*
* 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... |
/* -*- fill-column: 80; -*- */
/*
Copyright (c) 2020 <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 SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DI... |
//***********************************************************
//*
//* This test program writes a netCDF file using the parallel
//* netCDF library using MPI-IO.
//*
//***********************************************************
//
//cc test_write_alloc3d.c -o genarray_pnc -I/ccs/home/sklasky/parallel-netcdf/jaguar/inc... |
/*
ISC License
Copyright (c) 2016, Autonomous Vehicle Systems Lab, University of Colorado at Boulder
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.
... |
/* Copyright (C) 2002 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 published by the Free Software Foundation; either
version 2.1 of the Licen... |
#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... |
/*
* MikroSDK - MikroE Software Development Kit
* Copyright© 2020 MikroElektronika d.o.o.
*
* 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 ... |
/*
* $Id: signal_sigaction.c,v 1.0 2022-02-16 20:25:00 clib2devs Exp $
*/
#ifndef _SIGNAL_HEADERS_H
#include "signal_headers.h"
#endif /* _SIGNAL_HEADERS_H */
/* This implementation of sigaction is tailored to native Windows behavior:
signal() has SysV semantics (ie. the handler is uninstalled before
... |
/*
* fs/cifs/smb2transport.c
*
* Copyright (C) International Business Machines Corp., 2002, 2011
* Etersoft, 2012
* Author(s): <NAME> (<EMAIL>)
* <NAME> (<EMAIL>) 2006
* <NAME> (<EMAIL>) 2012
*
* This library is free software; you can redistribute it and/or mo... |
/*
* Copyright (C) 2004-2010 NXP Software
* Copyright (C) 2010 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/... |
/*
Copyright (C) 1996-1997 Id Software, 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 is distributed in th... |
//---------------------------------------------------------------------------
// Copyright (C) 2000 Dallas Semiconductor Corporation, 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"),
// t... |
//--------------------------------------------------------------------------------------
// File: MorphTarget.h
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#include "DXUT.h"
/*
File Structure
MORPH_TARGET_FIL... |
/*++
Copyright (c) 1990 Microsoft Corporation
Module Name:
DATA.C
Abstract:
This file contains all the global data elements of the eventlog service.
Author:
<NAME> (rajens) 10-Jul-1991
[Environment:]
User Mode - Win32, except for NTSTATUS returned by some functions.
Re... |
#include <stdlib.h>
#include "ibm.h"
#include "device.h"
#include "io.h"
#include "mem.h"
#include "pci.h"
#include "pic.h"
#include "sis496.h"
typedef struct sis496_t
{
uint8_t pci_conf[256];
} sis496_t;
void sis496_recalcmapping(sis496_t *sis496)
{
int c;
for (c ... |
/*
* Copyright (c) 2015, EURECOM (www.eurecom.fr)
* 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
* li... |
/** @file agility_drill.c
*
* **> Public: Yes
* **> Covers: mutex_lock,mutex_release
* **> For: P2
* **> NeedsWork: Yes
* **> Authors: geoffl
*
* @brief Test program for mutex lock/release
*
* Tests: Aggressively tests acquire/release of lots of mutexes with the
* occasional sleep or yield call in the mid... |
/* i2s_audio_example.c - Plays wav file from spiffs.
*
* This example demonstrates how to use I2S with DMA to output audio.
* The example is tested with TDA5143 16 bit DAC. But should work with
* any I2S DAC.
*
* The example reads a file with name "sample.wav" from the file system and
* feeds audio samples into ... |
/*s: kernel/devices/screen/swconsole.c */
/*
* Text output using memdraw
*/
#include "u.h"
#include "../port/lib.h"
#include "../port/error.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include <draw.h>
#include <font.h>
#include <memdraw.h>
#include <memlayer.h>
#include <c... |
#include "pattern.h"
void gen_input(t_img_desc *img, double *dst)
{
assert(img->comp == 1);
for (int i = 0; i < img->x * img->y; ++i)
dst[i] = img->data[i];
}
void gen_output(double *dst, size_t n, char c)
{
assert(n == 52);
for (size_t i = 0; i < n; ++i)
dst[i] = 0;
if ('a' <= c... |
////////////////////////////////////////////////////////////////////////////////
/// Copyright (c) 2018-2019 <NAME> - 0xFAB
/// See provided LICENSE file for more information
////////////////////////////////////////////////////////////////////////////////
#include "uart.h"
/// UART register file description
typedef s... |
#define att_FACTOR 1
#define aKP1 0.55*att_FACTOR // PI observer velocity gain
#define aKP2 1.0*att_FACTOR // PI observer position gain
#define aKI 0.001/att_FACTOR // PI observer integral gain (bias cancellation)
boolean att_initialized =false;
float attitude_error_i[2] = {0,0};
float attitude_error[2] = {0,... |
#include "visuals.h"
#include <cairo.h>
#include <cairo-xlib.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define PX_PER_POSITION 20
#define PX_MARGIN 2
// Note: This code is verbatim from cairo's examples! I did not write it,
// nor do I claim to, but i... |
//*****************************************************************************
// Filename : 'speeddial.c'
// Title : Animation code for MONOCHRON speed dial clock
//*****************************************************************************
#include <math.h>
#include "../global.h"
#include "../glcd.h"
#include ... |
/* ===========================================================================
* lispe, Scheme interpreter.
* ===========================================================================
*/
#include "lex.h"
#include <string.h>
#include <ctype.h>
#ifndef STDIO_H
#include <stdio.h>
#endif
#include <stdlib.h>
#include ... |
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef BENCH
#include <time.h>
#endif
#define MAX_LINES 100
#define MAX_ROWS 100
#define parentIndex(i) (((i)-1) / 2)
#define leftChildIndex(i) (2 * (i) + 1)
#define rightChildIndex(i) (2 * (i) + 2)
#define swap(a, b) ... |
#include <assert.h>
#include <asf.h>
#include <libasf_proj.h>
/* Return the spheroid generally associated with a given datum.
Unfortunately, in the larger world, a given datum isn't really
always necessarily associated with a particular spheroid. For the
purposes of the data on the insdie of the ASF tools wo... |
// enables paging and the MMU
/* flow of mmu setup:
get memory size from mailbox
page table must be at a 16Kib aligned address
probably after the kernel, because the stack is before the kernel
0x200000 - 2 MiB into memory, assumes kernel is never larger than 2 megabytes (which it probably won't reach, even wit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.