text stringlengths 5.8k 28.2k |
|---|
/*
BLIS
An object-based framework for developing high-performance BLAS-like
libraries.
Copyright (C) 2020-21, Advanced Micro Devices, Inc. All rights reserved.
modification, are permitted provided that the following conditions are
met:
- Redistributions of source code must retain the above copy... |
#include "hid_keyboard.h"
#include <assert.h>
#include "input_events.h"
#include "util/log.h"
/** Downcast key processor to hid_keyboard */
#define DOWNCAST(KP) container_of(KP, struct sc_hid_keyboard, key_processor)
#define HID_KEYBOARD_ACCESSORY_ID 1
#define HID_MODIFIER_NONE 0x00
#define HID_MODIFIER_LEFT_CONTR... |
/* tablesTables - this module deals with two types of tables SQL tables in a database,
* and fieldedTable objects in memory. It has routines to do sortable, filterable web
* displays on tables. */
#include "common.h"
#include "hash.h"
#include "obscure.h"
#include "linefile.h"
#include "jksql.h"
#include "jsHelper.h... |
//***************************************************************************
// DS18B20 module for ESP8266 with nodeMCU
// fetchbot @github
// MIT license, http://opensource.org/licenses/MIT
//***************************************************************************
#include "module.h"
#include "lauxlib.h"
#include... |
/* bobheap.c - bob heap management routines */
/*
Copyright (c) 2001, by <NAME>
All rights reserved
*/
#include <stdlib.h>
#include <string.h>
#include "bob.h"
/* VALUE */
#define ValueSize(o) (BobQuickGetDispatch(o)->size(o))
#define ScanValue(c,o) (BobQuickGetDis... |
/* testKSM() */
/* Rip_KSM() */
/* Depack_KSM() */
#include "globals.h"
#include "extern.h"
int16_t testKSM ( void )
{
PW_Start_Address = PW_i;
if ( (PW_Start_Address + 1536) > PW_in_size)
return BAD;
/* test "a" */
if ( in_data[PW_Start_Address+15] != 'a' )
return BAD;
/* test volumes */
for ... |
/* tell znet include all implement details into here */
#define ZN_IMPLEMENTATION
/* if you want use select backend on *nix or Mac, define this: */
/*#define ZN_USE_SELECT*/
/* include znet library: only need a header file! */
#include "znet.h"
#include <stdio.h>
/* we make a macro to compute a literal string's... |
/*
* Copyright © 2009-2012 <NAME> <<EMAIL>>
*
* This file is part of Bennu - Game Development
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to... |
/**
******************************************************************************
* @file DCMI/DCMI_CaptureMode/Src/main.c
* @author MCD Application Team
* @brief This example discribe how to configure the camera in continuous mode
* and QVGA resolution.
*************************************... |
/* filelist.c
Copyright (C) 1999-2003 <NAME>.
Copyright (C) 2010-2011 <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, ... |
// Copyright (c) 2011 Google, 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, merge, publish, ... |
/*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
publish... |
/* wrap libwebp libray for write
*
* 6/8/13
* - from vips2jpeg.c
* 31/5/16
* - buffer write ignored lossless, thanks aaron42net
* 2/5/16 <NAME>
* - used advanced encoding API, expose controls
* 8/11/16
* - add metadata write
* 29/10/18
* - target libwebp 0.5+ and remove some ifdefs
* - add animated w... |
// Copyright 2018 The Wuffs Authors.
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... |
/*
Copyright (c) 2007, Adobe Systems, Incorporated
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 ... |
/*****************************************************************************
* PSTAMP.C: A POE module to reduce a screen to a postage stamp image.
*
* Major POE items/features demonstrated herein:
*
* - Using a virtual raster for output.
* - Using simple floating point math in a POE module.
* - Using... |
/* program ADVENT.C *\
\* WARNING: "advent.c" allocates GLOBAL storage space by *\
\* including "advdef.h". *\
\* All other modules use "advdec.h" */
#include <stdio.h> /* drv = 1.1st file 2.def 3.A */
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include "advent.h" /* #define preprocessor e... |
// compiling & running
// clang -Xpreprocessor -fopenmp answers.c -lomp
// ./a.out
#include <stdlib.h> // rand, malloc, calloc, realloc and free.
#include <stdio.h> // printf, scanf
#include <math.h>
#include <omp.h>
#include "string.h"
#include <mpi.h>
#define PI 3.14159265
#define EXP 2.71828
double power(double ... |
//------------------------------------------------------------------------------
// plmpeg-sapp.c
//
// Video streaming via
// https://github.com/phoboslab/pl_mpeg
// ...and sokol_fetch.h for streaming the video data.
//
// The video file is streamed in fixed-size blocks via sokol_fetch.h, decoded
// via plmpeg i... |
/*
* trafoTypes.c
*
* Created on: 05.01.2022
* Author: <NAME>, <NAME>
*
* Collects functions that are necessary to transform ov object to ua nodes via UA_Nodestore as a custom interface.
*/
#ifndef OV_COMPILE_LIBRARY_opcua
#define OV_COMPILE_LIBRARY_opcua
#endif
#include "trafoTypes.h"
#in... |
/*
* Copyright 2017-2018 The MCUSim Project.
*
* 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 th... |
/*
* Raw_GFX_ST7789.c
*
* Created: 3/22/2020 1:26:53 AM
* Author: <NAME>
*/
#include "atmel_start.h"
#include "Graphics_Lib/Display_ST7789/ST7789.h"
#include "Graphics_Lib/Display_ST7789/ST7789_SPI_driver.h"
#include "Graphics_Lib/Font/fonts.h"
#include <math.h>
#include <fastmath.h>
#include "stdlib.h"
struct ... |
/*
* The Python Imaging Library.
* $Id$
*
* TK interface for Python Imaging objects
*
* Copies (parts of) a named display memory to a photo image object.
* Also contains code to create an display memory. Under Tk, a
* display memory is simply an "L" or "RGB" image memory that is
* allocated in a single block.... |
/*
Generates an image of the Mandelbrot set and saves it as "mandel.ppm".
Copyright (c) 2010-2016 Ce, D34N4L3X, StealthyC, Phillips1012, <NAME>.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2
or any later version publis... |
/*
* videotex.datatype - <NAME>
*/
#include "class.h"
#define RGB8to32(RGB) (((uint32)(RGB) << 24)|((uint32)(RGB) << 16)|((uint32)(RGB) << 8)|((uint32)(RGB)))
uint32 ClassDispatch (Class *cl, Object *o, Msg msg);
void overlaytext(long xoffset,long yoffset,UBYTE text,ULONG pix,ULONG pix2,struct TextFont *tfont,lon... |
/* so_util.c -- utils to load and hook .so modules
*
* Copyright (C) 2021 <NAME>, fgsfds
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include <switch.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>... |
/*
* 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.
*
* qrsolve.c
*
* Code generation for function 'qrsolve'
*
*/
/* Include files */
#include <string.h>
#include... |
/* testTheDarkDemon() */
/* Rip_TheDarkDemon() */
/* Depack_TheDarkDemon() */
#include "globals.h"
#include "extern.h"
int16_t testTheDarkDemon ( void )
{
/* test #1 */
if ( PW_i < 137 )
{
/*printf ( "#1 (PW_i:%ld)\n" , PW_i );*/
return BAD;
}
PW_Start_Address = PW_i-137;
/* len of file */
if ( ... |
/*
* Copyright (c) 2018 by Farsight Security, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
#include <odroid_system.h>
#include <assert.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "githash.h"
#include "gui.h"
#include "gw_buttons.h"
#include "gw_flash.h"
#include "gw_lcd.h"
#include "gw_linker.h"
#include "main.h"
#include... |
/*
*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2019 Broadcom Inc. All rights reserved.
*
* File: l2.c
* Purpose: Hurricane2 L2 functions
*/
#include <soc/drv.h>
#include <bcm/error.h>
#in... |
#include "r_dopri.h"
#include "dopri.h"
#include <R.h>
#include <Rinternals.h>
#include "util.h"
enum dopri_idx {
DOPRI_IDX_TARGET,
DOPRI_IDX_PARMS,
DOPRI_IDX_ENV,
DOPRI_IDX_OUTPUT,
DOPRI_IDX_EVENT,
};
// There are more arguments from lsoda not implemented here that will
// be needed:
//
// - rootfunc (once... |
/*
* This file or a portion of this file is licensed under the terms of
* the Globus Toolkit Public License, found in file GTPL, or at
* http://www.globus.org/toolkit/download/license.html. This notice must
* appear in redistributions of this file, with or without modification.
*
* Redistributions of this Softwar... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/xf4bpp/ppcCpArea.c,v 1.8 2005/03/28 02:51:07 dawes Exp $ */
/*
* Copyright IBM Corporation 1987,1988,1989
*
* All Rights Reserved
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted,... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <string.h>
//learning rate
#define eta 0.5
//number of input neurons
#define d 3
//number of categories
#define K 3
//nuber of neurons per layer
#define H1 7
#define H2 4
//activation function for second layer
#define activationH2(x,y... |
/* mdbPrint - Prints metadata objects and variables from the mdb metadata table. */
#include "common.h"
#include "linefile.h"
#include "dystring.h"
#include "options.h"
#include "mdb.h"
static char const rcsid[] = "$Id: mdbPrint.c,v 1.6 2010/06/11 17:33:57 tdreszer Exp $";
#define OBJTYPE_DEFAULT "table"
void usage(... |
#include "main.h"
I2C_HandleTypeDef hi2c1;
UART_HandleTypeDef huart1;
UART_HandleTypeDef huart2;
void SystemClock_Config(void);
static void MX_GPIO_Init(void);
static void MX_I2C1_Init(void);
static void MX_USART1_UART_Init(void);
static void MX_USART2_UART_Init(void);
uint8_t hexToAscii(uint8_t n)//4-... |
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <assert.h>
#include "xlog/xlog.h"
#include "packet_parser.h"
#include "spec_parser.h"
/* symbol table entry */
struct entry {
struct header *h;
int ref;
bool decl;
};
/* Tokens */
enum token {
T_EOI, // ... |
/* Cairo - a vector graphics library with display and print output
*
* Copyright © 2007 <NAME>
*
* 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 Free Software Foundation
* (the "LGPL") or... |
/*
* Copyright 2005-2016 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
* virtue of its status as an int... |
/* Copyright (C) 2010-2020 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (rpng_encode.c).
* ---------------------------------------------------------------------------------------
*
* Perm... |
/*
* 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... |
/* Copyright JS Foundation and other contributors, http://js.foundation
*
* 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
*
* ... |
/*
* This file is part of the 'varbench' project developed by the
* University of Pittsburgh with funding from the United States
* National Science Foundation and the Department of Energy.
*
* Copyright (c) 2017, <NAME> <<EMAIL>>
*
* This is free software. You are permitted to use, redistribute, and
* modify i... |
#include "camera.h"
#include <systems/window.h>
#include <systems/editmode.h>
#include <components/name.h>
#include <components/model.h>
#include "node.h"
#include <utils/nk.h>
#include <candle.h>
#include <utils/renderer.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
static mat_t *g_mat;
static mesh_t ... |
/*-
* Copyright (c) 2003-2004 <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 conditi... |
/**************************************************************************
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
* PURPOSE.
*... |
/*
** Purpose: Implement the schedule table management functions.
**
** Notes:
** None
**
** License:
** Written by <NAME>, licensed under the copyleft GNU
** General Public License (GPL).
**
** References:
** 1. OpenSatKit Object-based Application Developer's Guide.
** 2. cFS Application Developer's Guide.... |
/**
depthdof.c: depth-of-field simulator using stencilled convolutions
<NAME>, 1/97
converted to GLUT and libtiff by <NAME>, 4/97
Compile with:
cc -o depthdof depthdof.c -ltiff -lglut -lGLU -lGL -lXmu -lXext -lX11 -lm
**/
#include <GL/glut.h>
#include <tiffio.h>
#include <assert.h>
#... |
#include <ncurses.h> //terminal output
#include <panel.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <unistd.h>
#include "Display.h"
#include <pthread.h>
#include <stdarg.h>
int row,col;
PANEL *panels[2];
PANEL *stack_top;
WINDOW *temp_win, *old_win;
ui... |
/* An expandable hash tables datatype.
Copyright (C) 1999-2018 Free Software Foundation, Inc.
Contributed by <NAME> <<EMAIL>>.
This file is part of the GNU Offloading and Multi Processing Library
(libgomp).
Libgomp is free software; you can redistribute it and/or modify it
under the terms of the GNU... |
/*D************************************************************
* Modul: GRAPHIC gzoom.c
*
* Zoom functions and geometry scaling
*
*
*
* Copyright: yafra.org, Basel, Switzerland
**************************************************************
*/
/*R
RCS Information:
$Header: /yafra/cvsroot/mapo/so... |
/*
* $QNXLicenseC:
* Copyright 2007, 2008 QNX Software Systems.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You
* may not reproduce, modify or distribute this software except in
* compliance with the License. You may obtain a copy of the License
* at: http://www.apache.org/lice... |
/******************************************************************************
tegif_lib.c - Tiny "GIF" encoding
*****************************************************************************/
#include <unistd.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include... |
/*
* qstat
* by <NAME>
*
* Frontlines-Fuel of War protocol
* Copyright 2008 <NAME>
*
* Licensed under the Artistic License, see LICENSE.txt for license terms
*
*/
#include <sys/types.h>
#ifndef _WIN32
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#else
#include <winsock.h>
#endif
... |
#include <stdio.h>
#include <stdlib.h>
#include "mtmn.h"
#include "pnet_model.h"
#include "rnet_model.h"
#include "onet_model.h"
#include "freertos/FreeRTOS.h"
static int first_time[3] = {0};
mtmn_net_t *pnet (dl_matrix3du_t *in)
{
#define PNET_LAYER_NUM (3)
static dl_matrix3d_t *filters[PNET_LAYER_NUM * 4] = {0};... |
#include "ui.h"
#include "sequencer.h"
#include "bitmaps.h"
#include "main.h"
#include "midi.h"
#include "notes.h"
#include "audio.h"
#include "board.h"
#include "synth.h"
#include <math.h>
#include <string.h>
#define PERFDEBUG
typedef enum {
UI_DEFAULT,
UI_OSC_TUNE,
UI_FX,
UI_ENV_ME... |
#include "PMSMBoard.h"
#include <timer.h>
#include "Uart2.h"
#include "pps.h"
#include "DRV8301.h"
#include "PMSMBoard.h"
#if defined (CHARACTERIZE_POSITION) || defined (CHARACTERIZE_VELOCITY) || defined (CHARACTERIZE_IMPEDANCE)
#include "PMSM_Characterize.h"
#else
#ifdef POSITION
#include "PMSM_Position.h"
#endif
#... |
/*
* 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... |
/*
MIT License
Copyright (c) 2019 nyannkov
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, p... |
/******************************************************************************/
/* */
/* Copyright (c) 1990-2016, KAIST */
/* All rights reserved. ... |
/* -*- mode: C; c-basic-offset: 4 -*- */
/* ex: set shiftwidth=4 tabstop=4 expandtab: */
/*
* Copyright (c) 2013, Georgia Tech Research Corporation
* All rights reserved.
*
* Author(s): <NAME> <<EMAIL>>
* Georgia Tech Humanoid Robotics Lab
* Under Direction of Prof. Mike Stilman <<EMAIL>>
*
*
* This file is pr... |
/**
* MK4duo Firmware for 3D Printer, Laser and CNC
*
* Based on Marlin, Sprinter and grbl
* Copyright (C) 2011 <NAME> / <NAME>
* Copyright (C) 2019 <NAME> @MagoKimbra
*
* 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
... |
#include "test_utils.h"
#define TEST_DEBUG 0
#define BUF_SIZE 1024
#if 0
/**
* Prints mpibind_t imput parameters
**/
static void print_test_params(mpibind_t *handle) {
printf(
"tasks: %d\t threads: %d\n greedy: %d\n gpu_optim: %d\n smt: %d\n "
"restr_type: %d\t restrict_ids %s",
handle->ntasks, h... |
/*****************************************************************************
* PROJECT: TDL Tutorial
*
* (c) Copyright 2001 <NAME>. All rights reserved.
* (c) Copyright 1994 <NAME> & <NAME>. All rights reserved.
*
* FILE: sim-xwindows.c
*
* ABSTRACT: Simulator xwindows stuff.
*
* $Source: /afs/cs.cmu.edu/pr... |
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Display functions used in kernel selection.
*/
#include "2common.h"
#include "2misc.h"
#include "2nvstorage.h"
#include "2sha.h"
#include "2... |
// contextmenu.c
/*--------------------------------------------------------------
The IShellExtInit interface is incorperated into the
IContextMenu interface
--------------------------------------------------------------*/
#include <Windows.h>
#include <shlobj.h>
#include <wchar.h>
#include <tchar.h>
#include "Cont... |
#include "renderlib.h"
#include "z80.h"
#include "mmu.h"
#include "display.h"
#include "mbc.h"
#include "sound.h"
MMUContext* mmu;
inline uint8_t MMUReadIO(MMUContext* ctx, const uint16_t address);
inline uint8_t MMUWriteIO(MMUContext* ctx, const uint16_t address, const uint8_t value);
// Gameboy BIOS
uint8_t ... |
/**
* @file apps/color-picker.c
* @brief Color picker
*
* Color Picker widget demo, eventually maybe a paint app again...
*
* @copyright
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2021 <NAME>
*/
#include <stdli... |
/* === MIPS STACK ROUTINES ===
*
* Copyright 2013 Ravenbrook Limited <http://www.ravenbrook.com/>.
* 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 s... |
/*
* Copyright (C) STMicroelectronics SA 2015
* Authors: <NAME> <<EMAIL>>
* for STMicroelectronics.
* License terms: GNU General Public License (GPL), version 2
*/
#include <linux/module.h>
#include <linux/pinctrl/consumer.h>
#include "uniperif.h"
/*
* User frame size shall be 2, 4, 6 or 8 32-bits wo... |
/*************************************************
* filename: file.c
* CSC 552 LFS Project Phase 1
* <NAME> <EMAIL>
* <NAME> <EMAIL>
* A file layer .C of the LFS
*************************************************/
#include "file.h"
#include "fsmeta.h"
#include "log.h"
#include <stdio.h>
#include <fcntl.h>
#i... |
#define _SYSTEM 1
#include <minix/callnr.h>
#include <minix/com.h>
#include <minix/config.h>
#include <minix/const.h>
#include <minix/ds.h>
#include <minix/endpoint.h>
#include <minix/minlib.h>
#include <minix/type.h>
#include <minix/ipc.h>
#include <minix/sysutil.h>
#include <minix/syslib.h>
#include <minix/const.h... |
// The MIT License (MIT)
//
// Copyright (c) 2020 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, mo... |
/*
Copyright (c) 2012, Broadcom Europe 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:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and t... |
/*
* mem.c logo memory management module dvb 6/28/88
*
* Copyright (C) 1993 by the Regents of the University of California
*
* 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 ... |
/* ciolibmodule.c
* 071028 created
*/
#include "Python.h"
#include <math.h>
#if PYTHON_API_VERSION <= 1012 /* Python 2.3 is 1012. */
#define Py_ssize_t int
#endif
/* Functions in this module. */
// Returns a new char * that must be freed.
char *charstar_FromPyObject(PyObject *py_obj)
{
PyObject *py_str;
... |
/*
* Copyright (c) 2013, 2016-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2002-2010, Atheros Communications Inc.
*
* 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 per... |
/* ****************************************************************
*
* Copyright 2018 Samsung Electronics 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
*
* ... |
/**
* Copyright (C) 2018, ControlThings Oy Ab
* Copyright (C) 2018, <NAME>
* Copyright (C) 2018, <NAME>
* Copyright (C) 2018, <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
*... |
#include "command.h"
int offset (mc_connection *mc, int x, int y, int z) {
return y * (mc->mc_server_data.mc_level_x*mc->mc_server_data.mc_level_z) +
z * mc->mc_server_data.mc_level_z + x;
}
struct cuboid_data {
int x1, y1, z1;
int x2, y2, z2;
int build_distance;
int type;
};
double dist3d (int x, int y, i... |
/*******************************************************************************
MPLAB Harmony Application Source File
Company:
Microchip Technology Inc.
File Name:
ccard.c
Summary:
This file contains the source code for the MPLAB Harmony application.
Description:
This file contains the so... |
/**
*
* TODO: description
*
* This file is a part of USB SCSI CAM for Haiku.
* May be used under terms of the MIT License
*
* Author(s):
* <NAME> <<EMAIL>>
*
*
*/
/** tracing support implementation */
#include "usb_scsi.h"
#include "tracing.h"
#include <stdio.h>
#include <unistd.h> /* posix file i/o - cre... |
/*
* simple array layout
*/
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
#include "st.h"
size_t st_slices_moved = 0;
// slices >= HIGH_WATER must be immutable
#define HIGH_WATER 4
enum blktype { LAR... |
/*
BLAKE reference C implementation
Copyright (c) 2012 <NAME> <<EMAIL>>
To the extent possible under law, the author(s) have dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.
You should have... |
/*
* Copyright (C) 2009-2011 by <NAME> (<EMAIL>)
*
* Released under the MIT license, see LICENSE.txt
*/
#include "cactusGlobalsPrivate.h"
////////////////////////////////////////////////
////////////////////////////////////////////////
////////////////////////////////////////////////
//Basic cap functions.
//////... |
/* Copyright (c) 2012 BDT Media Automation GmbH
*
* Licensed under the terms of the GNU Lesser
* General Public License as published by the Free Software Foundation,
* version 2.1 of the License.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write... |
/*
* Copyright 2013 Google Inc. 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
*
* Unless required by applica... |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include "stdint.h"
#include "usb_device_mouse.h"
#include <assert.h>
#define MOUSE_TYPE_DEF REL_MOUSE
//#define MOUSE_TYPE_DEF ABS_MOUSE
enum MOUSE_TYPE mouse_type = MOUSE_TYPE_DEF;
static uint8_t button = 0;
static uint16_t reportLength;
#define DEF... |
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2018-2019 Intel Corporation. All rights reserved.
*
*
*/
#ifndef __packed
#define __packed __attribute__((packed))
#endif
struct mesh_io;
struct mesh_node;
#define DEV_ID 0
#define UNUSED_K... |
// -*-Mode: C++;-*- // technically C99
// * BeginRiceCopyright *****************************************************
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research and development of
// HPCT... |
/* Copyright (c) 2012-2013, The Linux Foundation. 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 c... |
/* GELL 15.26: include file for the module: "x11window" */
/* translation done: "Tue Aug 24 93 10:48:39 " */
/* impure LLM3 predefined */
extern Ptr GIdlink, GIllink, GIfcons, GIevalst;
/* LLM3 functions */
extern Ptr GXunbind7(), GXunbind5(), GXunbind3(), GXunbind1();
extern Ptr ... |
/*
* Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com
*
* 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... |
/*
* Copyright (c) 2021 Canonical
*
* 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 ... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"
#include "ip.h"
#include "ipv6.h"
#define DPRINT if(0)print
enum
{
UDP_UDPHDR_SZ = 8,
UDP4_PHDR_OFF = 8,
UDP4_PHDR_SZ = 12,
UDP4_IPHDR_SZ = 20,
UDP6_IPHDR_SZ = 40,
UDP6_PHDR_SZ = 40,
UDP6_PH... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Squashfs - a compressed read only filesystem for Linux
*
* Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008
* <NAME> <<EMAIL>>
*
* file.c
*/
/*
* This file contains code for handling regular files. A regular file
* consists of a sequence of contiguous c... |
/*
* SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
// The long term plan is to have a single soc_caps.h for all peripherals.
// During the refactoring and multichip support development process, we
// separate these information into periph_caps.h fo... |
/* tsqr.c
*
* Copyright (C) 2015 <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 Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program i... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/* vim: set ts=8 sts=4 sw=4 noexpandtab : */
/*
*
*/
#include "mpid_nem_impl.h"
#include "llc_impl.h"
//#define MPID_NEM_LLC_DEBUG_POLL
#ifdef MPID_NEM_LLC_DEBUG_POLL
#define dprintf printf
#else
#define dprintf(...)
#endif
/* function prototypes *... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.