text stringlengths 5.8k 28.2k |
|---|
/*-------------------------------------------------------------------------
*
* polar_flashback_log_index.c
*
*
* Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 2021, Alibaba Group Holding limit... |
/*
* This 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 License, or (at your option) any later version.
*
* This library is distributed in the hope that it wi... |
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <sys/time.h>
#include "mypng.h"
/**
* A transform finding the gradient of the steepest tangent, upwards or downwards, at each pixel.
* <p>
* CODER WARNING: Many of the internal methods use the square of the slope.
*/
double* inGrey ;
int ful... |
/*
* md5 crypt implementation
*
* original md5 crypt design is from <NAME>
* this implementation was created based on the code in freebsd
* at least 32bit int is assumed, key is limited and $1$ prefix is mandatory,
* on error "*" is returned
*/
#include <string.h>
#include <stdint.h>
/* public domain... |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/**
* \file
* This code implements the MD5 message-digest algorithm.
* The algorithm is due to Ron Rivest. This code was
* written by <NAME> in 1993, no copyright is claimed.
* This code is in the public domain; do with it what you wish.
... |
/**
******************************************************************************
* @file stm32_xx_hal_msp.c
* @author Central LAB
* @version V1.0.0
* @date 20-January-2016
* @brief HAL MSP module
******************************************************************************
* @attention
*
* <h2>... |
// #include <stdio.h>
// #include <stdbool.h>
// #include <stdlib.h>
// #include <math.h>
// #include <time.h>
// #include "../headers/stack.h"
// #include "../headers/check.h"
// #include "../headers/sudokusolver.h"
// #include "../headers/print.h"
// #define UNASSIGNED 0
// /* get_random_int returns a u... |
/*-
* Copyright (c) 2016 <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 a... |
#include "proto.h"
void load_JPEG_data (struct context * context, unsigned flags, size_t limit) {
struct JPEG_marker_layout * layout = load_JPEG_marker_layout(context); // will be leaked (to be collected by context release)
uint32_t components = determine_JPEG_components(context, layout -> hierarchical ? layout ->... |
#include <stdio.h>
const int reg_val[256] = {
0x00000000L, 0x04c11db7L, 0x09823b6eL, 0x0d4326d9L,
0x130476dcL, 0x17c56b6bL, 0x1a864db2L, 0x1e475005L,
0x2608edb8L, 0x22c9f00fL, 0x2f8ad6d6L, 0x2b4bcb61L,
0x350c9b64L, 0x31cd86d3L, 0x3c8ea00aL, 0x384fbdbdL,
0x4c11db70L, 0x48d0c6c7L, 0x4593e01eL, 0x4152fda9L... |
/* This file is part of the RC compiler.
Copyright (C) 2000-2001 The Regents of the University of California.
RC 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, or (at your option)
any later ... |
/*
filterstream.c
Author: <NAME> <<EMAIL>>
Copyright (c) 1997 SSH Communications Security, Finland
All rights reserved
An object for filtering a data stream bidirectionally. The object
allows callbacks to modify and filter data bidirectionally, and allow
them to disconnect the connection.
*/
#... |
/*
* n0/dope.c
* C compiler.
* Operator and type conversion
* information ("dope") tables.
*/
#ifdef vax
#include "INC$LIB:cc0.h"
#else
#include "cc0.h"
#endif
/*
* This table is indexed by operator number less MIOBASE
* to get the legal left and right operand rules.
*/
short opdope[] = {
13 + FOLD+NSTR... |
/*
* Copyright (c) 2008-2017 Nicira, 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 law or... |
/*****************************************************************************
*
* Elmer, A Finite Element Software for Multiphysical Problems
*
* Copyright 1st April 1995 - , CSC - IT Center for Science Ltd., Finland
*
* This program is free software; you can redistribute it and/or
* modify it under the te... |
/*
* Copyright (C) Texas Instruments - http://www.ti.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 required by a... |
/*
* Acess2 x86_64 Port
*
* Physical Memory Manager
*/
#define DEBUG 0
#include <acess.h>
#include <archinit.h>
#include <pmemmap.h>
#include <mm_virt.h>
#include <debug_hooks.h>
#define TRACE_REF 0
enum eMMPhys_Ranges
{
MM_PHYS_16BIT, // Does anything need this?
MM_PHYS_20BIT, // Real-Mode
MM_PHYS_24BIT, // ... |
/* spkr09.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__2 = 2;
static integer c__6 = 6;
/* $Procedure SPKR09 ( Read SPK record from segment, type 9 ) */
/* Su... |
/**
* Copyright (c) 2020 - Analog Devices Inc. All Rights Reserved.
* This software is proprietary and confidential to Analog Devices, Inc.
* and its licensors.
*
* This software is subject to the terms and conditions of the license set
* forth in the project LICENSE file. Downloading, reproducing, distributing o... |
/* Copyright (C) 2002-2010 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 above copyright notice, this
* list of conditions and the following disclaim... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/* =========================================================================
* Freetype GL - A C OpenGL Freetype engine
* Platform: Any
* WWW: http://code.google.com/p/freetype-gl/
* -------------------------------------------------------------------------
* Copyright 2011 <NAME>. All rights reserved.
... |
/* $OpenBSD: gusvar.h,v 1.8 2015/06/25 20:05:11 ratchov Exp $ */
/* $NetBSD: gus.c,v 1.51 1998/01/25 23:48:06 mycroft Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME> and <NAME>.
*
* Redis... |
/* pppol2tp.c - pppd plugin to implement PPPoL2TP protocol
* for Linux using kernel pppol2tp support.
*
* Requires kernel pppol2tp driver which is integrated into the kernel
* from 2.6.23 onwards. For earlier kernels, a version can be obtained
* from the OpenL2TP project at
* http://www.sourceforge.net/projects... |
int draw_vector_char(vector_font_t *font, uint32_t c, xy_t p, xy_t off, double scale, col_t colour, double line_thick, const int mode, const int bidi)
{
letter_t *l;
double fixoff, wc1, wc2;
unicode_data_t ucd;
int found = 0;
// Algorithmic substitution
if (bidi == -2)
c = substitute_rtl_punctuation(c);
proc... |
#include "ruby.h"
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
char * TransformCompany(char * inString);
static int IsCompanyWord(char * inWord);
char * trimwhitespace(char *str);
char * str_replace(char *orig, const char *rep, const char *with);
static VALUE rb_ConsistentCompany_Init(VALUE self)
{
re... |
/* $Id: vmemsave.c,v 1.2 1999/01/03 02:07:45 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved
*/
static char *id = "$Id: vmemsave.c,v 1.2 1999/01/03 02:07:45 sybalsky Exp $ Copyright (C) Venue";
/************************************************************************/
/* */
/* (C) Copyright 1989-1995 ... |
/*
* Copyright (C) 1985-1992 New York University
*
* This file is part of the Ada/Ed-C system. See the Ada/Ed README file for
* warranty (none) and distribution info and also the GNU General Public
* License for more details.
*/
/* This file contains various functions needed for reduce actions */
#include "h... |
/*
No copyright is claimed in the United States under Title 17, U.S. Code.
All Other 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 limitat... |
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) 2021 STMicroelectronic... |
#include "RFM69HW.h"
#include "RFM69HW_DEFS.h"
#include "Usart.h"
#include "Delay.h"
#include "Spi.h"
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include <avr/io.h>
// WSIWYG
static uint8_t RFM69HW_readReg( uint8_t reg );
static void RFM69HW_writeReg( uint8_t reg, uint8_t value )... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "tabu_list.h"
#include "tsp.h"
#define ITE_REINITIALIZATION 100
#define ITE_STOP 10000
typedef unsigned char** PERMUTATIONS; // binary flag matrix that marks generated permutations (lower triangular)
PERMUTATIONS ... |
//******************************************************************
//
// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except ... |
/*MPK - Copyright 2019 <NAME>.
This software is BSD licensed.*/
#include <string.h>
#include <stddef.h>
#include <stdint.h>
#include "mpk.h"
#if defined(LITTLE_ENDIAN) && !defined(BIG_ENDIAN)
#elif defined(BIG_ENDIAN) && !defined(LITTLE_ENDIAN)
#else
#error "Either BIG_ENDIAN or LITTLE_ENDIAN must be defined, as per... |
/*
* lightBulb.c
*
* Created on: Mar 4, 2017
* Author: <NAME>
*/
#include <bbreg.h>
#include "coap.h"
#include "json-helper.h"
#include "coap-helper.h"
#include "core-lighting.h"
#include <time.h>
#include <stdio.h>
#include <ctype.h>
#include <unistd.h>
/* the maximum size of a lighting-config representati... |
/*
* Copyright (c) 1998 <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 an... |
/* bigWigAverageOverBed - Compute average score of big wig over each bed, which may have introns. */
/* Copyright (C) 2014 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "localmem... |
/*
* mp3_decoder.c
*
* Copyright (c) 2012, 2013, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* - Redistributions of source code must retain the above copyright notice,
* this... |
/* b64enc.c - Simple Base64 encoder.
* Copyright (C) 2001, 2003, 2004, 2008, 2010,
* 2011 Free Software Foundation, Inc.
* Copyright (C) 2001, 2003, 2004, 2008, 2010,
* 2011, 2018 g10 Code GmbH
*
* This file is part of Libgpg-error.
*
* This file is free software; you can redistribut... |
/* ----------------------------------------------------------- */
/* */
/* ___ */
/* |_| | |_/ SPEECH */
/* | | | | \ RECOGNITION ... |
/* $OpenBSD: isabr.c,v 1.4 2004/02/04 20:07:18 drahn Exp $ */
/*-
* Copyright (c) 1995 <NAME>
* Copyright (c) 1993, 1994 <NAME>.
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME> and <NAME>.
*
* R... |
#include "config.h"
#include <stdlib.h>
#include <fcntl.h>
#include <event2/util.h>
#include "sldns/sbuffer.h"
#include "util/config_file.h"
#include "util/net_help.h"
#include "util/netevent.h"
#include "util/log.h"
#include "dnscrypt/cert.h"
#include "dnscrypt/dnscrypt.h"
#include <ctype.h>
/**
* \file
* dnscry... |
/*
* Acess2 - NTFS Driver
* By <NAME> (thePowersGang)
* This file is published under the terms of the Acess licence. See the
* file COPYING for details.
*
* dir.c - Directory Handling
*/
#define DEBUG 1
#include "common.h"
//#include "index.h"
#include <utf16.h>
// === PROTOTYPES ===
int NTFS_ReadDir(tVFS_Node... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "poly.h"
#include "ntru.h"
#include "poly_ssse3.h"
#include "test_util.h"
#include "test_poly.h"
/** tests ntruprime_inv_int() */
uint8_t test_ntruprime_inv_int() {
uint16_t i;
uint8_t valid = 1;
uint16_t q = NTRUPRIME_739.q;
for (i=0;... |
/**
@file cobra - an ITM-based python evaluator
Experiment to defer the evaluation of a python function
via the ITM-based sequencing.
*/
#include "ext.h"
#include "ext_common.h"
#include "ext_obex.h"
#include "ext_time.h"
#include "ext_itm.h"
#include "Python.h"
// constants
#define PY_MAX_ATOMS 128
#def... |
// Modified from the AN10955 app note
// Copyright 2014 Technical Machine, Inc. See the COPYRIGHT
// file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://o... |
/* i2c - Example
For other examples please check:
https://github.com/espressif/esp-idf/tree/master/examples
See README.md file to get detailed usage of this example.
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <assert.h>
#include <ctype.h>
/* PROTOTYPES */
struct read;
void read_bed_file(char*);
void assignReadsToBlocks(struct read*);
void writeSuperGaussian(struct read*, double*, int);
void writeBlocks(stru... |
// Copyright 2020 Espressif Systems (Shanghai) Co. Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appli... |
/****************/
/* Vector games */
/****************/
/* Star Wars */
extern struct GameDriver driver_starwars;
extern struct GameDriver driver_starwar1;
extern struct GameDriver driver_esb;
/* Major Havoc */
extern struct GameDriver driver_mhavoc;
extern struct GameDriver driver_mhavoc2;
extern struct GameDriver ... |
/*
** Copyright (C) 1999-2005 <NAME> <<EMAIL>>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program... |
#include "private.h"
struct SPARSE_MATRIX /* matrix in compressed-column or triplet form */
{
scs_int nzmax; /* maximum number of entries */
scs_int m; /* number of rows */
scs_int n; /* number of columns */
scs_int *p; /* column pointers (size n+1) or col indices (size nzmax) */
scs_int *i; /*... |
/*----------------------------------------------------------------------------*/
/* Hobbit monitor library. */
/* */
/* This displays the "eventlog" found on the "All non-green status" page. ... |
// Copyright 2020 Fuzhou Rockchip Electronics Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <getopt.h>
#include "common/sample_common.h"
#include "common/sample_fake_isp.h"
#include "rkmedia_api.h"
#include "rkmedia_venc... |
#include "mmfd.h"
#include "alloc.h"
#include "error.h"
#include "util.h"
#include "neighbour.h"
#include "taskqueue.h"
#include "intercom.h"
#include <linux/ipv6.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <... |
/*
* 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... |
/*$Header: /data/petsun4/data1/src_solaris/actmapf_4dfp/RCS/actmapf_4dfp.c,v 1.33 2013/01/03 07:14:30 avi Exp $*/
/*$Log: actmapf_4dfp.c,v $
* Revision 1.33 2013/01/03 07:14:30 avi
* correct tmpfp fopen error
*
* Revision 1.32 2012/08/04 01:22:08 avi
* trap tmpfile write errors
*
* Revision 1.31 2012/03/0... |
/*
* main.c
*
* Created: 27/06/2012 17:55:10
* Author: <NAME>
*/
/*
NOTE - About timer delays and project configuration.
The module "timer" uses some "Busy Wait" software delays, which expect
proper project configuration at compilation time:
a) F_CPU must be defined as the CPU clock frequency in Hz.
For exampl... |
#include <hre/config.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <dm/dm.h>
#include <hre/stringindex.h>
#include <hre/user.h>
#include <lts-io/user.h>
#include <pins-lib/pins.h>
#include <pins-lib/pins-impl.h>
#include <pins-lib... |
/* $ReOpenLDAP$ */
/* Copyright 1999-2018 ReOpenLDAP AUTHORS: please see AUTHORS file.
* All rights reserved.
*
* This file is part of ReOpenLDAP.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as authorized by the OpenLDAP
* Public License.
*
* A copy... |
#pragma once
#include <stdbool.h>
#include <stdio.h>
#include "lib.h"
#include "rom.h"
// flags
// first 4 bits are never set
#define Z 7 // zero flag 7th bit of F register is set
#define N 6 // subtraciton flag 6th bit of F register is set
#define H 5 // half carry flag 5th bit of F register is set
#define... |
/*******************************************************************************
Copyright (c) 2015-2018 NVIDIA Corporation
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 ... |
/** @file gamestate.c
@brief
This file contains game state routines
TwinEngine: a Little Big Adventure engine
Copyright (C) 2013 The TwinEngine team
Copyright (C) 2008-2013 Prequengine team
Copyright (C) 2002-2007 The TwinEngine team
This program is free software; you can redistribute it and/or
modify it un... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ThreadPool_config.h>
#include <TPI.h>
#include <BoxPartitionIB.h>
#include <dcrs_matrix.h>
#include <CGSolver.h>
#ifdef HAVE_MPI
#include <mpi.h>
#endif
/*--------------------------------------------------------------------*/
sta... |
/*****************************************************************************
* engine.c : Run the playlist and handle its control
*****************************************************************************
* Copyright (C) 1999-2008 VLC authors and VideoLAN
*
* Authors: <NAME> <<EMAIL>>
* <NAME> <<EMA... |
/* Includes */
#include <stdio.h>
#include <stdlib.h>
#include <benzina/benzina.h>
#include <benzina/itu/h26x.h>
/**
* Defines
*/
#define tstmessageflush(fp, f, ...) \
do{ \
fprintf((fp), (f), ## __VA_ARGS__); \
fflush((fp)); ... |
#include <console/console.h>
#include <arch/io.h>
#include <stdint.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
#include "chip.h"
#include "northbridge/amd/gx2/northbridge.h"
#include <cpu/amd/gx2def.h>
#include <cpu/x86/msr.h>
#include <cpu/x... |
#include "naru_utility.h"
#include "naru_internal.h"
#include <math.h>
#include <stdlib.h>
/* CRC16(IBM:多項式0x8005を反転した0xa001によるもの) の計算用テーブル */
static const uint16_t st_crc16_ibm_byte_table[0x100] = {
0x0000, 0xc0c1, 0xc181, 0x0140, 0xc301, 0x03c0, 0x0280, 0xc241,
0xc601, 0x06c0, 0x0780, 0xc741, 0x0500, 0xc5c1... |
/*
** mouse:~ppr/src/interfaces/atalk_cap.c
** Copyright 1995--2005, 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 mus... |
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
#include <stdbool.h>
#include <math.h>
#include <stdlib.h>
typedef int Board[8][8];
static double INF = 99999999999999;
static bool ANSI_COLORS = false;
typedef struct Coord {
int r;
int c;
} Coord;
typedef e... |
/*++
/* NAME
/* smtpd_proxy 3
/* SUMMARY
/* SMTP server pass-through proxy client
/* SYNOPSIS
/* #include <smtpd.h>
/* #include <smtpd_proxy.h>
/*
/* typedef struct {
/* .in +4
/* /* other fields... */
/* VSTREAM *proxy; /* connection to SMTP proxy */
/* VSTRING *proxy_buffer; /* last SMTP proxy response */
/* /* ... |
/*=============================================================================
pamtilt
===============================================================================
Print the tilt angle of an image (typically black and white text).
Based on pgmskew by <NAME>, August 2005.
Adapted... |
/* Cafe OS Substrate Installer
main.c - Main Installer logic. Does the actual installing.
Paired with main.h.
https://github.com/QuarkTheAwesome/COSSubstrate
Copyright (c) 2016 Ash (QuarkTheAwesome)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated doc... |
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include "http.h"
#include "stream.h"
#include "event.h"
#include "vector.h"
#include "display.h"
#include "base64.h"
#include "hash.h"
#define CRLF "\r\n"
typedef struct http_node {
char *name;
hash_t *child;
http_nod... |
// Option rom scanning code.
//
// Copyright (C) 2008 <NAME> <<EMAIL>>
// Copyright (C) 2002 MandrakeSoft S.A.
//
// This file may be distributed under the terms of the GNU LGPLv3 license.
#include "bregs.h" // struct bregs
#include "farptr.h" // FLATPTR_TO_SEG
#include "config.h" // CONFIG_*
#include "util.h" // dp... |
/**
* Copyright 2015 University of Applied Sciences Western Switzerland / Fribourg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*... |
/*
* Copyright 2008-2012 Freescale Semiconductor Inc.
*
* 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 ... |
/* Author: <NAME>
* cs546 Parallel and Distributed Processing
* Homework 2
* Shared Memory Programming
*
* This Program implements 3 algorithms for solving
* dense linear equations of the
* form A*x=b, where A is an n*n matrix and b is a
* vector. This program performs guassian elimination
* without pivoting a... |
#include <stddef.h>
#include <stdint.h>
#include <nnpack/arm_neon.h>
void nnp_s4c2gemm_conjb_transc_only_2x2__neon(
size_t k, size_t update,
const float a[restrict static 1],
const float b[restrict static 1],
float c[restrict static 1],
size_t row_stride_c)
{
float32x4_t acc00r = vdupq_n_f32(0.0f), acc00i = vd... |
// FlashTestMain.c
// Runs on MSP432
// Test the functions provided by FlashProgram.c by writing
// constant values to the flash memory and then finding
// them in the memory viewer in the debugger.
// <NAME>
// April 13, 2016
/* This example accompanies the book
"Embedded Systems: Real-Time Interfacing to the MSP4... |
#include "quads.h"
#include "ast.h"
#include "ast_print.h"
#include "asmgen.h"
#include "parser.tab.h" // for token binop values
#include "quads_cf.h"
#include "quads_print.h"
#include "symtab.h"
#include "util.h"
#include "types.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
unsigned temp_count = 0;
... |
/* numeric.c */
#include "pllua.h"
#include "catalog/pg_type.h"
#include "utils/numeric.h"
#include "utils/builtins.h"
enum num_method_id {
PLLUA_NUM_NONE = 0,
/* dyadic, boolean result */
PLLUA_NUM_EQ,
PLLUA_NUM_LT,
PLLUA_NUM_LE,
/* dyadic */
PLLUA_NUM_ADD,
PLLUA_NUM_SUB,
PLLUA_NUM_MUL,
PLLUA_NUM_DIV,
... |
/* Driver for Realtek PCI-Express card reader
*
* Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2... |
/*****************************************************************************
* Copyright(C)2009-2022 by VSF Team *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
... |
/*----------------------------------------------------------------------------*
* Copyright Statement: *
* *
* This software/firmware and related documentation ("MediaTek Software") *
... |
#define N_(s) s
/* The paper size names are from:
* PWG 5101.1-2002 PWG: Standard for Media Standardized Names
*
* The PPD names come from the PPD specification.
*/
typedef struct {
const gchar *name;
const gchar *size;
const gchar *display_name;
const gchar *ppd_name;
} PaperInfo;
static const PaperInfo... |
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... |
/*
* txiki.js
*
* Copyright (c) 2019-present <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, ... |
/*
Copyright (C) 2012 Modelon AB <http://www.modelon.com>
You should have received a copy of the LICENSE-FMUChecker.txt
along with this program. If not, contact Modelon AB.
*/
/**
\file fmi2_me_sim.c
Simulation loop for the FMI 2.0 model exchange FMUs
*/
#include <fmuChecker.h>
#include <fmilib.h>
/*He... |
/* $NetBSD: lint1.h,v 1.12 2002/01/31 19:33:27 tv Exp $ */
/*
* Copyright (c) 1996 <NAME>. All Rights Reserved.
* Copyright (c) 1994, 1995 <NAME>
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ... |
/*
* Copyright 2004-2016 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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
* ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "io.h"
#include "init.h"
Softtlb stlb[MAXMACH][STLBSIZE]; /* software tlb simulation */
int _argc; /* args passed by boot process */
char **_argv;
char **_env;
char argbuf[128]; /* arguments passed to initcode... |
#include "main.h"
#include "stm32f4xx_hal.h"
#include "stm32f4xx_hal_adc.h"
#include <string.h>
ADC_HandleTypeDef hadc1;
I2C_HandleTypeDef hi2c2;
const uint8_t FONT_DOT[] = { 0x00, 0x60, 0x60, 0x00 };
const uint8_t FONT_PLUS[] = { 0x00, 0x10, 0x38, 0x10, 0x00 };
const uint8_t FONT_MINUS[] = { 0x00, 0x10, 0x10, 0x10, ... |
/**
* Copyright (C) 2011, 2012, 2013 CentecNetworks, 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
*
... |
/*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redist... |
/*
* Copyright (c) 2016 Etnaviv Project
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, pub... |
/*
* 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... |
/* Do clicks for the wiki track of variation for microattribution reviews */
/* Copyright (C) 2010 The Regents of the University of California
* See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
#include "common.h"
#include "cart.h"
#include "cheapcgi.h"
#include "web.h"
#include "hP... |
/*
Copyright (c) 2009-2020 <NAME> <<EMAIL>>
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
and Eclipse Distribution License v1.0 which accompany this distribution.
The Eclipse Public License is available at
https://www.eclipse.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.