text stringlengths 3.12k 18.7k |
|---|
/*
* PPC CPU identification
*
* This is a very simple "host CPU info" struct to get us going.
* For the little host information we need, I don't want to grub about
* parsing stuff in /proc/device-tree so just match host PVR to differentiate
* PPC970 and POWER7 (which is all that's currently supported).
*
* Qemu... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <getopt.h>
#include "pool.h"
#include "repo.h"
#include "solver.h"
#include "selection.h"
#include "solverdebug.h"
#include "testcase.h"
static struct resultflags2str {
Id flag;
const char *str;
} resultflags2str[] = {
{ TESTCASE_RESULT_TRANSAC... |
/* ethash: C/C++ implementation of Ethash, the Ethereum Proof of Work algorithm.
* Copyright 2018 <NAME>.
* Licensed under the Apache License, Version 2.0. See the LICENSE file.
*/
#include <stdint.h>
static uint32_t rol(uint32_t x, unsigned s)
{
return (x << s) | (x >> (32 - s));
}
static const uint32_t roun... |
/* Copyright (c) <NAME>, 1997. */
/* This program is freely distributable without licensing fees
and is provided without guarantee or warrantee expressed or
implied. This program is -not- in the public domain. */
#include <stdio.h>
#include "glutint.h"
#include "win32_glx.h"
/* global current HDC */
extern HD... |
/* Copyright (c) 2014-2016, Marel
*
* 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 ... |
#include "gdal.h"
#include "cpl_string.h"
#include "cpl_conv.h"
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <string.h>
#include <math.h>
/************************************************************/
/* Makes snow melt rgb from viirs data */
/***************************************************... |
// RUN: cp %s %t
// RUN: %clang_cc1 -pedantic -Wall -fixit %t
// RUN: %clang_cc1 -fsyntax-only -pedantic -Wall -Werror %t
// RUN: %clang_cc1 -E -o - %t | FileCheck %s
/* This is a test of the various code modification hints that are
provided as part of warning or extension diagnostics. All of the
warnings will b... |
#include <pebble.h>
#include "wfLib.h"
static bool dp; //Odd second handler
static const int posmax=30;
static GPoint pos[30];
static GPoint dsp[10];
static bool bat_charging;
static uint8_t bat_level;
static void scramble(){
GPoint npos[30];
memcpy(npos,pos,sizeof(npos));
int max=30;
int po=0;
while (po<30... |
/*
* QEMU System Emulator
*
* Copyright (c) 2003-2008 <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, c... |
/*
Copyright 2012-2020 <NAME> <<EMAIL>>
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.
THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS... |
/*
* Copyright (c) 2011-2015, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of con... |
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2016 Facebook
*/
#include <linux/bpf.h>
#include <linux/if_link.h>
#include <assert.h>
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/resource.h>
#include <arpa/inet.h>
#include <netinet/ether.h>
... |
/*
ReadCommandLine.c is part of the NUPACK software suite
Copyright (c) 2007 Caltech. All rights reserved.
Coded by: <NAME> 9/2006
Reads command line input for Distributions.c. The argument is the
prefix for the files that contain the input data, e.g., prefix.cx
and prefix.count. Uses the package getopt.... |
#include "ssd1306.h"
#define SSD1306_LCDWIDTH 128
#define SSD1306_LCDHEIGHT 64
#define SSD1306_SETCONTRAST 0x81
#define SSD1306_DISPLAYALLON_RESUME 0xA4
#define SSD1306_DISPLAYALLON 0xA5
#define SSD1306_NORMALDISPLAY 0xA6
#define SSD1306_INVERTDISPLAY 0xA7
#define SSD1306_DISPLAYOFF 0xAE
#define SSD1306_DISPLAYON 0xA... |
/*
* (C) Copyright 2003
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* SPDX-License-Identifier: GPL-2.0+
*/
/*
* <NAME>, IPone, <EMAIL>
* U-Boot port on RPXlite board
*
* DRAM related UPMA register values are modified.
* See RPXLite engineering note : 50MHz/60ns - UPM RAM WORDS
*/
#include <common.h>
#i... |
#include "mppt.h"
#include "adc.h"
#include "values.h"
extern TIM_HandleTypeDef htim1;
static uint16_t minPwmValue=MPPT_PWM_MIN_VALUE;
//static struct mppt_status_s mppt_status={.isWorking=0};
int8_t maxCurrentCheck(uint8_t percentageLimit);
int8_t maxChargingVoltageCheck(uint8_t percentageLimit);
uint16_... |
/*
* Copyright (c) 2020 Fuzhou Rockchip Electronic Co.,Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-03-04 <NAME> First version
*
*/
#include "setting_date.h"
#define DBG_SECTION_NAME "SETLANG"
#define DBG_LEVEL DBG_INFO
#include... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <signal.h>
#include <sys/stat.h>
#include <stdarg.h>
#include <unistd.h> //chdir
#include <time.h> //difftime
#include <fcntl.h>
#include <stdint.h>
#include <iron/types.h>
#include <iron/log.h>
#include <iron/utils.h>
#include <ir... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "io.h"
#include "../port/error.h"
#define Image IMAGE
#include <draw.h>
#include <memdraw.h>
#include <cursor.h>
#include "screen.h"
enum {
PCIVMWARE = 0x15AD, /* PCI VID */
VMWARE1 = 0x0710, /* PCI DID */
VMWARE2... |
// SoftEther VPN Source Code - Stable Edition Repository
// Cedar Communication Module
//
// SoftEther VPN Server, Client and Bridge are free software under the Apache License, Version 2.0.
//
// Copyright (c) <NAME>.
// Copyright (c) SoftEther VPN Project, University of Tsukuba, Japan.
// Copyright (c) SoftEt... |
#define _POSIX_C_SOURCE 200809L
#include <stdlib.h>
#include <time.h>
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/types/wlr_output.h>
#include <wlr/types/wlr_output_damage.h>
#include <wlr/types/wlr_presentation_time.h>
#include <wlr/types/wlr_output_power_management_v1.h>
#include "foreach.... |
/***************************************************************************
Atari ThunderJaws hardware
****************************************************************************/
#include "driver.h"
#include "machine/atarigen.h"
#include "includes/thunderj.h"
/*************************************
*
* G... |
/* $NetBSD: command1.c,v 1.2 2003/08/07 09:37:00 agc Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
... |
/*
*
* Copyright (C) 2019, Broadband Forum
* Copyright (C) 2008-2019 CommScope, Inc
*
* 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
* ... |
/*
* These ones are necessary to override the behaviour of
* PINT_cfB, which puts the & on before getting to the
* TYPE specific PCINT_cfPP...
* The only way to do this is to introduce PCDOUBLE_cfINT,
* which means we use PCINT for alot of the generic macros.
*/
#define PCINT_cfAA PINT_cfAA
#defin... |
/*
* c 2001 PPC 64 Team, IBM Corp
*
* 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.
*/
#inc... |
/*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#include <assert.h>
#include "cfg.h"
#include <clang-c/Index.h> /* -lclang */
#inclu... |
/*
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... |
/* Implement simple hashing table with string based keys.
Copyright (C) 1994-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Written by <NAME> <<EMAIL>>, October 1994.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General P... |
/* ====================================================================
*
*
* BSD LICENSE
*
* Copyright(c) 2016-2019 Intel Corporation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
*... |
// Copyright 2021 Google LLC
//
// 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 to in ... |
/**
* Methods for handling the various requests to the session manager.
*
* Copyright (C) 2018-2019 <NAME>. All Rights Reserved.
* See the LICENSE file accompanying the distribution your rights to use
* this software.
*/
#include "stdconfig.h"
#include <arpa/inet.h>
#include "manager.h"
#include "socket.h"
#inc... |
#define VERTEX_SHADER "three_squares.vert"
#define FRAGMENT_SHADER "three_squares.frag"
#include <GL/glew.h>
#define FREEGLUT_STATIC
#include <GL/freeglut.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
GLfloat first_coords[] = {-0.15f, -0.15f, 1.0f,
-0.15f, 0.15f, ... |
/*
* Copyright (c) 2012 Institute of Geological & Nuclear Sciences Ltd.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright... |
// ----------------------------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// Author: Shihua (<NAME>, <EMAIL>
// ---------------------------------------------... |
/*
* fonts_r.c
* Copyright (C) 1999-2002 <NAME>; Released under GPL
*
* Description:
* Functions to deal with fonts (RiscOs version)
*/
#include <stdlib.h>
#include <string.h>
#include "DeskLib:Font.h"
#include "drawfile.h"
#include "antiword.h"
static font_handle tFontCurr = (font_handle)-1;
/*
* pOpenFontTa... |
/*
twitpunch - a short message mechanism using 2 EBCDIC punch cards
Copyright 2015 Smithee, Spelvin, Agnew & Plinge, 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:... |
/* auth.c
* HTTP proxy authentication routines.
*
* Ziproxy - the HTTP acceleration proxy
* This code is under the following conditions:
*
* ---------------------------------------------------------------------
* Copyright (c)2005-2014 <NAME>
*
* This program is free software; you can redistribute it and/or mo... |
/*-
* Copyright (c) 2015 Nuxi, https://nuxi.nl/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the f... |
#include "clar_libgit2.h"
#include "futils.h"
typedef struct name_data {
int count; /* return count */
char *name; /* filename */
} name_data;
typedef struct walk_data {
char *sub; /* sub-directory name */
name_data *names; /* name state data */
git_buf path;
} walk_data;
static char *top_dir = "dir-walk";
s... |
#include "definitions.h"
// Sprite definitions
#define spriteFrames 14
#if defined __APPLE2__
#define spriteCols 7
#define spriteRows 24
unsigned char spriteColors[] = { }; // Colors are pre-assigned in the sprite sheet
#elif defined __ATARI__
#define spriteCols 8
#define spriteRows 26
uns... |
/*
* 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... |
// 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,... |
/*
* $Id: aero.bomb.c 1.3 03/09/14 16:51:32+02:00 thomas@debian.(none) $
*
* Author: <NAME> <<EMAIL>>
*
* Copyright (c) 1997 <NAME>
* Copyright (c) 1998-2002 <NAME>
* Copyright (c) 2000-2002 <NAME>
* All rights reserved
*
* Created: Mon Jan 6 15:57:35 1997 fingon
* Last modified: Mon Jun 8 19:49:... |
/*
* partition.c
*
* PURPOSE
* Partition handling routines for the OSTA-UDF(tm) filesystem.
*
* COPYRIGHT
* This file is distributed under the terms of the GNU General Public
* License (GPL). Copies of the GPL can be obtained from:
* ftp://prep.ai.mit.edu/pub/gnu/GPL
* Each co... |
/* $Source: bitbucket.org:berkeleylab/gasnet.git/tests/testslice.c $
* Description: GASNet randomized get/put correctness validation test
* Copyright 2007, <NAME> and <NAME> <<EMAIL>>
* Terms of use are as specified in license.txt
*/
#include <gasnetex.h>
#include <gasnet_coll.h>
#include <stdio.h>
#include <stdl... |
// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at
// the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights
// reserved. See files LICENSE and NOTICE for details.
//
// This file is part of CEED, a collection of benchmarks, miniapps, software
// libraries and APIs for effic... |
/* liter.f -- translated by f2c (version 19980913).
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;
/* $Procedure LITER ( Process a SUBTeX literal block ) */
/* Subroutine */ int liter_(char ... |
/* Copyright 2020 HPS/SAFARI Research Groups
*
* 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,... |
#include <mpi.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "openssl/md5.h"
char rsmcfg[]="resumestate.cfg";
//compile with mpicc cmpi.c -o cmpi -lcrypto
//this test program uses md5 library from openssl
//https://github.com/openssl/openssl/tree/master/in... |
/*
* Copyright (c) 2006 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
#include "move_logic.h"
void move(Player *player, direction dir) {
/* Check for out of bounds movement */
if (walkingOutOfBounds(player, dir)) {
dir = DIRECTION_IDLE;
}
Position pixel_offset = {0, 0};
Position next_pos = {0, 0};
getOffsets(&next_pos, &pixel_offset, player, dir);
... |
/*
* Copyright (c) 2003, 2007-11 <NAME>
* Copyright (c) 2003, 2007-11 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 Licens... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
** This notice applies to any and all portions o... |
/* LEDC (LED Controller) fade example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include... |
/* This algorithm was created by <NAME>
http://www.informatik.uni-freiburg.de/~stachnis/ */
#include "laser_data_drawing.h"
#include "math_utils.h"
#include "logging.h"
// the 2d-point structure for the input
typedef struct {
double x;
double y;
} BB_Point;
// computes the area of minimal bounding box for a set... |
/*
* TinyEKF: Extended Kalman Filter for embedded processors
*
* Copyright (C) 2015 <NAME>
*
* MIT License
*/
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h> // get memset
/* Cholesky-decomposition matrix-inversion code, adapated from
http://jean-pierre.moreau.pagesperso-orange.... |
#include <libavcodec/avcodec.h>
#include <libavdevice/avdevice.h>
#include <libavformat/avformat.h>
#include <libavutil/avutil.h>
#include <libavutil/pixdesc.h>
#include <libswscale/swscale.h>
#include <stdarg.h>
#include <stdio.h>
// Can't scale unless format is software
// Can't hardware encode unless format is hard... |
#include "int_set.h"
#include "int_set.c"
#include "MyTableTest.h"
#include "MyTableTest.c"
#include "log.h"
#include "test.h"
#include "mem.h"
#include <stdint.h>
#include "types.h"
#include "utils.h"
#include "math.h"
bool icy_vector_test(){
{// first test.
{ // this was a bug once:
icy_vector * t = ic... |
/*
LPCOpen Edu-CIAA Board port
Copyright 2018 <NAME> (<EMAIL>)
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... |
/* $Id$
Part of SWI-Prolog
Author: <NAME>
E-mail: <EMAIL>
WWW: http://www.swi-prolog.org
Copyright (C): 1985-2002, University of Amsterdam
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... |
/*
* Broadcom NetXtreme-E User Space RoCE driver
*
* Copyright (c) 2015-2017, Broadcom. All rights reserved. The term
* Broadcom refers to Broadcom Limited and/or its subsidiaries.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of th... |
/* This file is a part of MIR project.
Copyright (C) 2019-2020 <NAME> <<EMAIL>>.
Driver to translate bitcode into MIR and execute the generated MIR.
*/
#define _GNU_SOURCE /* for mempcpy */
#include "llvm2mir.h"
#include <llvm-c/BitReader.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <s... |
#include "stdafx.h"
#include "PCMgrDyFuns.h"
#include "PCMgrPELoader.h"
#include "mcrt.h"
fnExitProcess _ExitProcess;
fnLoadLibraryA _LoadLibraryA;
fnLoadLibraryW _LoadLibraryW;
fnRtlGetVersion RtlGetVersion;
fnMessageBoxW _MessageBoxW;
fnMessageBoxA _MessageBoxA;
fnGetProcAddress _GetProcAddress;
fnGetModuleHandleA _... |
#include <uwsgi.h>
extern struct uwsgi_server uwsgi;
int uwsgi_register_rpc(char *name, struct uwsgi_plugin *plugin, uint8_t args, void *func) {
struct uwsgi_rpc *urpc;
int ret = -1;
if (!uwsgi.workers || !uwsgi.shared || !uwsgi.rpc_table_lock) {
uwsgi_log("RPC subsystem still not initialized\n");
return -1;... |
/*
* Copyright (C) 2008-2020 Advanced Micro Devices, 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 ... |
// Copyright (C) 2022 ETH Zurich
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... |
/*
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the... |
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, A... |
/*******************************************************************************
* Copyright 2015-2018 Intel Corporation.
*
* This software and the related documents are Intel copyrighted materials, and
* your use of them is governed by the express license under which they were
* provided to you (License). Unle... |
/****************************************************************
* Name : <NAME> *
* Class : CSC 415 *
* Date : July 14 2019 *
* Description : Writting a simple bash... |
#include<stdio.h>
#include<unistd.h>
#include<stdlib.h>
#include<limits.h>
#include<string.h>
#include<sys/socket.h>
#include<netdb.h>
#include<arpa/inet.h>
#include <sys/ioctl.h>
#include<errno.h>
#include<dirent.h>
#include<net/if.h>
#define MAX_INPUT_SIZE 254
#define FILEBUF_SIZE 1024
#define TYPE_I 0
#define TYPE_... |
/*
* Copyright (c) 2018 <NAME>
* https://github.com/iotaledger/entangled
*
* Refer to the LICENSE file for licensing information
*/
#include <stdio.h>
#include "common/crypto/iss/v2/iss_curl.h"
#include "utils/merkle.h"
static trit_t const merkle_null_hash[HASH_LENGTH_TRIT] = {0};
static size_t binary_tree_siz... |
/* $OpenBSD: fuse_opt.c,v 1.16 2016/05/24 20:55:32 okan Exp $ */
/*
* Copyright (c) 2013 <NAME> <<EMAIL>>
* Copyright (c) 2013 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and ... |
/**
* Copyright (c) 2018 - 2020, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright no... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
/*********************************************************************
* SEGGER Microcontroller GmbH & Co. KG *
* Solutions for real time microcontroller applications *
**********************************************************************
* ... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team,
* check out http://www.gromacs.org for more information.
* Copyright (c) 2012,2013, by the GROMACS development team, l... |
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <errno.h>
#include <stdlib.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <png.h>
#include "framebuf.h"
int x_offs = 0;
int y_offs = 0;
int width;
int height;
int stride;
int ... |
/*
*
* (C) COPYRIGHT 2016, 2017 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation, and any use by you of this program is subject to the terms
* of such GNU licence... |
/*
* This file is part of hx - a hex editor for the terminal.
*
* Copyright (c) 2016 <NAME>. See LICENSE for details.
*/
#include "util.h"
#include <ctype.h>
#include <errno.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/io... |
/*
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... |
#include <sclpl.h>
typedef struct obj_t {
uintptr_t refs;
destructor_t destructor;
} obj_t;
typedef struct hash_entry_t {
obj_t* object;
unsigned int hash;
struct hash_entry_t* next;
} hash_entry_t;
typedef struct {
size_t size;
size_t bkt_count;
hash_entry_t** buckets;
} hash_t;
sta... |
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Microsemi Ocelot Switch driver
*
* Copyright (c) 2019 Microsemi Corporation
*/
#include <soc/mscc/ocelot.h>
#include "ocelot_police.h"
/* Types for ANA:POL[0-192]:POL_MODE_CFG.FRM_MODE */
#define POL_MODE_LINERATE 0 /* Incl IPG. Unit: 33 1/3 kbps, 4096 bytes */
#de... |
/**
* @file oled.c
* @author <NAME> (<EMAIL>)
* @brief
* @version 0.1
* @date 2020-03-02
*
* This file needs heavy modification and removal to work. E.g battery.h and corresponding menus need to be changed
*
* @copyright Copyright (c) 2020
*
*/
#include "user/oled.h"
#include "user/ssd1306.h"
#include "... |
/*
** Purpose: Implement a Ephem application.
**
** Notes:
** None
**
** License:
** Template written by <NAME> and licensed under the GNU
** Lesser General Public License (LGPL).
**
** References:
** 1. OpenSatKit Object-based Application Developer's Guide.
** 2. cFS Application Developer's Guide.
**
*/
/*... |
#include "pantab.h"
static PyObject *cls_timedelta = NULL;
// the pointer to size is only used if receiving a character array
static PyObject *read_value(const uint8_t *value, DTYPE dtype,
const size_t *size) {
if (PyErr_CheckSignals()) {
return NULL;
}
switch (dtype) ... |
/* $OpenBSD: hilms.c,v 1.2 2003/02/26 20:22:04 miod Exp $ */
/*
* Copyright (c) 2003, <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 reta... |
/*
* Copyright (c) 2019, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#include <stdbool.h>
#include <stdint.h>
#include "os_wrapper/mutex.h"
#include "os_wrapper/thread.h"
#include "psa/client.h"
#include "psa/internal_trusted_storage.h"
#include "psa_manifest/sid.h"
#include "... |
/*
* Copyright 2019, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA... |
/**
This is file is ported from ipxe/src/drivers/net/pcnet32.c
Please refer to Am79C970A spec.
*/
#include "output.h" // dprintf
#include "string.h" // memcpy
#include <errno.h>
#include "smx.h"
// PCnet/PCI II 79C970A
#include "ipxe/pcnet32.h"
/**
Since the native memset provided by SeaBIOS is so ineff... |
/*
This file is part of GNUnet.
Copyright (C) 2012 GNUnet e.V.
GNUnet 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, or (at your
option) any later version.
G... |
/*
* Copyright (C) 2009-2012 Free Software Foundation, Inc.
*
* Author: <NAME>
*
* This file is part of GnuTLS.
*
* GnuTLS 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 Licen... |
/*
* Authors: <NAME>, Finland 2010-2014
* <NAME>, Finland 2010
*
* This file is part of Kunquat.
*
* CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/
*
* To the extent possible under law, Kunquat Affirmers have waived all
* copyright and related or neighboring rights to Kunquat.
... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
// Variadic MACROS util functions
/**
* AZ_VA_NUM_ARGS
* counts number of paramet... |
/*
** February 15, 2022
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*******************... |
/*
* 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... |
/* SHA-3 (Keccak) cryptographic hash function */
/* Code adapted from the "readable" implementation written by
<NAME> <<EMAIL>> */
#include <stdio.h>
#include <string.h>
typedef unsigned long long uint64;
typedef unsigned char uint8;
#define KECCAK_ROUNDS 24
#define ROTL64(x, y) (((x) << (y)) | ((x) >> (64 - (y)... |
/* $XFree86: xc/programs/xf86dga/dga.c,v 3.19 2001/10/28 03:34:32 tsi Exp $ */
#include <X11/Xos.h>
#include <X11/Intrinsic.h>
#include <X11/Shell.h>
#include <X11/StringDefs.h>
#include <X11/Xatom.h>
#include <X11/Xaw/Form.h>
#include <X11/Xaw/Scrollbar.h>
#include <X11/Xaw/Label.h>
#include <X11/Xaw/Command.h>
#incl... |
/*
* Copyright (C) 1989-2015, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of cond... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.