code stringlengths 6 250k | repo_name stringlengths 5 70 | path stringlengths 3 177 | language stringclasses 1
value | license stringclasses 15
values | size int64 6 250k |
|---|---|---|---|---|---|
/*! \file
Copyright (c) 2003, The Regents of the University of California, through
Lawrence Berkeley National Laboratory (subject to receipt of any required
approvals from U.S. Dept. of Energy)
All rights reserved.
The source code is distributed under BSD license, see the file License.txt
at the top-level director... | TLCFEM/suanPan | Toolbox/superlu-src/ccolumn_bmod.c | C | gpl-3.0 | 10,426 |
/* HR16 ROM tools
* readlist.c - save a flipped copy of the ROM
*
* Copyright (C) 2008 Gordon JC Pearce
*
* 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... | bradholland/hr16utils | readlist.c | C | gpl-3.0 | 3,530 |
/*
This file is part of the Epiphany BSP library.
Copyright (C) 2014 Buurlage Wits
Support e-mail: <info@buurlagewits.nl>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License (LGPL)
as published by the Free Software Foundation, either version... | coduin/epiphany-bsp | test/bsp_memory/host_bsp_memory.c | C | gpl-3.0 | 1,017 |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
#include <string.h>
#include <linux/fb.h>
#include <linux/videodev2.h>
#include <linux/input.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <setjmp.h>... | vincent040/lab | media/v4l2/caminfo.c | C | gpl-3.0 | 4,668 |
/*
Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software
Foundation, Inc.
This file is part of GNU Inetutils.
GNU Inetutils is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public ... | Distrotech/inetutils | talk/get_names.c | C | gpl-3.0 | 4,452 |
/* Copyright 2011,2014 IPB, Universite de Bordeaux, INRIA & CNRS
**
** This file is part of the Scotch software package for static mapping,
** graph partitioning and sparse matrix ordering.
**
** This software is governed by the CeCILL-C license under French law
** and abiding by the rules of distribution of free softw... | HopeFOAM/HopeFOAM | ThirdParty-0.1/scotch_6.0.3/src/libscotch/arch_dist.c | C | gpl-3.0 | 9,343 |
/* misc.c
*
* Copyright 2006-2012 David G. Barnes, Paul Bourke, Christopher Fluke
*
* This file is part of S2PLOT.
*
* S2PLOT 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 Lic... | mivp/s2plot | src/misc.c | C | gpl-3.0 | 6,191 |
/*
* Copyright 2011-2013 Freescale Semiconductor, Inc.
* Copyright 2011 Linaro Ltd.
*
* The code contained herein is licensed under the GNU General Public
* License. You may obtain a copy of the GNU General Public License
* Version 2 or later at the following locations:
*
* http://www.opensource.org/licenses/gp... | williamfdevine/PrettyLinux | arch/arm/mach-imx/mach-imx6q.c | C | gpl-3.0 | 10,565 |
#include "HEADERS.h"
#include "da_IBT_Functions.h"
void EUCLIDIAN_DISTANCE_MATRIX( double * C, double * E, int N,
double ** D )
{
/* This function calculates the Euclidian distance between pairs on
the colonization-extinction parameters space.
*/
int i,j;
for(i=1; i<N; i++)
for(j=0; j<i; j+... | vankampen92/islandPLUS | src/lib/EUCLIDIAN_DISTANCE_MATRIX.c | C | gpl-3.0 | 895 |
/*
* Copyright (C) 2012 Samsung Electronics
*
* Author: InKi Dae <inki.dae@samsung.com>
* Author: Donghwa Lee <dh09.lee@samsung.com>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <config.h>
#include <common.h>
#include <lcd.h>
#include <fdtdec.h>
#include <libfdt.h>
#include <asm/io.h>
#include <asm/arch/c... | estei-master/segment_SOL | PJ/uboot_kernel/u-boot-sunxi/drivers/video/exynos_fb.c | C | gpl-3.0 | 8,335 |
/**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1985 Hong J. Park, Thomas L. Quarles
**********/
/*
*/
#include "ngspice.h"
#include "cktdefs.h"
#include "bsim1def.h"
#include "sperror.h"
#include "suffix.h"
int
B1acLoad(GENmodel *inModel, CKTcircuit *ckt)
{
B1m... | henjo/gnucap-models | models-ngspice17/bsim1/b1acld.c | C | gpl-3.0 | 5,029 |
/*
* portInitialisation.c
*
* Created on: Jan 29, 2016
* Author: Teja Chintalapati
* Contact: teja.chintalapati@gmail.com
* Phone: +91-8792-355-512
* Description: This file will initialise all pins as Inputs with pull down resistors.
* This configuration consumes least power in FR5969 Launchpad
... | tejaChintalapati/PIRMotion-MSP430FR5969 | Source/portInitialisation.c | C | gpl-3.0 | 956 |
// Hooks for via vgabios calls into main bios.
//
// Copyright (C) 2008 Kevin O'Connor <kevin@koconnor.net>
//
// This file may be distributed under the terms of the GNU LGPLv3 license.
#include "biosvar.h" // GET_GLOBAL
#include "bregs.h" // set_code_invalid
#include "config.h" // CONFIG_*
#include "hw/pci.h" // pci... | hjwu22/seabios-intel-igd | src/vgahooks.c | C | gpl-3.0 | 9,170 |
/*
* QEI.cpp
*
* Created on: 20 Eki 2017
* Author: Yigit
*/
#include "QEI.h"
extern encoderReader g_sQEI1;
void update_QEI1_velocity(void);
void initQEI1(encoderReader* encReader, uint32_t ppm, uint32_t frequency)
{
encReader->vel_samp_period = (uint32_t)(ROM_SysCtlClockGet()/frequency);
encReader->... | sysizlayan/haptic_ccs | Embedded Code/Peripherals/QEI.c | C | gpl-3.0 | 2,970 |
#define MY_ASSERT(...) do { } while (0)
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
struct I;
enum H_Tag {
H_Foo,
H_Bar,
H_Baz,
};
typedef uint8_t H_Tag;
struct H_Foo_Body {
int16_t _0;
};
struct H_Bar_Body {
uint8_t x;
int16_t y;
};
struct H {
enum H_Tag tag;
... | rlhunt/cbindgen | tests/expectations/tag/asserted-cast.c | C | mpl-2.0 | 969 |
/**
* Copyright 2013-2015 Seagate Technology LLC.
*
* This Source Code Form is subject to the terms of the Mozilla
* Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at
* https://mozilla.org/MP:/2.0/.
*
* This program is distributed in the hope that it will ... | chenchongli/kinetic-c | test/unit/test_kinetic_client_getnext.c | C | mpl-2.0 | 3,019 |
#include <p24Hxxxx.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include "../inc/globals.h"
#include <libpic30.h>
volatile BYTE_VAL Flags;
char command[13];
volatile unsigned int Index;
_TANKLEVEL TankLevel;
void InitGlobals(void)
{
TankLevel = EMPTY;
Flags.Val = 0;
Index = 0;
memset(... | kz5ee/EE2403_Final_Lab | EE2403_Final_Lab.X/src/globals.c | C | mpl-2.0 | 3,082 |
/*
Copyright (c) 2015, Digi International 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 permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND TH... | digidotcom/DCRabbit_9 | Samples/FileSystem/FAT/FAT_NB_Costate.c | C | mpl-2.0 | 9,820 |
/**
* This file is part of ffmpeg_ivr
*
* Copyright (C) 2016 OpenSight (www.opensight.cn)
*
* ffmpeg_ivr is an extension of ffmpeg to implements the new feature for IVR
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as pu... | OpenSight/ffmpeg_ivr | libffmpeg_ivr/register.c | C | agpl-3.0 | 1,775 |
/*====================================================================*
- Copyright (C) 2001 Leptonica. 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... | papyrussolution/OpenPapyrus | Src/OSF/leptonica/src/watershed.c | C | agpl-3.0 | 34,376 |
#include "vm_internal.h"
#include <fcntl.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
/* return the instruction/byte at the given address */
uint8_t vm_peek(vm_internal_type *vm, vm_int offset) {
vm_int addr = vm->env->ip + offset;
if (addr > vm->env->length) {
... | arlaneenalra/insomniac | src/libinsomniac_vm/vm_util.c | C | agpl-3.0 | 2,109 |
// Ppmd7.c -- PPMdH codec
// 2017-04-03 : Igor Pavlov : Public domain
// This code is based on PPMd var.H (2001): Dmitry Shkarin : Public domain
//
#include <7z-internal.h>
#pragma hdrstop
const Byte PPMD7_kExpEscape[16] = { 25, 14, 9, 7, 5, 5, 4, 4, 4, 3, 3, 3, 2, 2, 2, 2 };
static const uint16 kInitBinEsc[] = { 0x3... | papyrussolution/OpenPapyrus | Src/OSF/7z/SRC/Ppmd7.c | C | agpl-3.0 | 23,858 |
/*-------------------------------------------------------------------------
*
* stage_protocol.c
*
* Routines for staging PostgreSQL table data as shards into the distributed
* cluster. These user-defined functions are similar to the psql-side \stage
* command, but also differ from them in that users stage data f... | citusdata/citus | src/backend/distributed/operations/stage_protocol.c | C | agpl-3.0 | 30,040 |
/*
* Copyright (C) 1998, 2000-2007, 2010, 2011, 2012, 2013 SINTEF Digital,
* Applied Mathematics, Norway.
*
* Contact information: E-mail: tor.dokken@sintef.no
* SINTEF Digital, Department of Mathematics and Cybernetics,
* P.O. Box 124 Blindern, ... | SINTEF-Geometry/SISL | src/sh1858.c | C | agpl-3.0 | 8,278 |
/**
* WarfaceBot, a blind XMPP client for Warface (FPS)
* Copyright (C) 2015, 2016 Levak Borok <levak92@gmail.com>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3... | DevilDaga/warfacebot | src/stream/connect.c | C | agpl-3.0 | 1,963 |
/*-------------------------------------------------------------------------
*
* aggregatecmds.c
*
* Routines for aggregate-manipulation commands
*
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATI... | tpostgres-projects/tPostgres | src/backend/commands/aggregatecmds.c | C | agpl-3.0 | 8,503 |
/*
===========================================================================
Copyright (c) 2015-2019 atrX of Raid Gaming
Copyright (C) 2010-2013 Ninja and TheKelm of the IceOps-Team
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of CoD4-Unleashed-Server source code.
CoD4-Unleashed-Ser... | atrX/CoD4x-Server | src/sys_net.c | C | agpl-3.0 | 75,770 |
/*
* This source file forms part of sxbp, a library which generates experimental
* 2D spiral-like shapes based on input binary data.
*
* This compilation unit provides the definition of functions for serialising
* and deserialising figure objects to and from bytes.
*
* Copyright (C) Joshua Saxby <joshua.a.saxby@... | saxbophone/libsaxbospiral | sxbp/serialisation.c | C | agpl-3.0 | 11,808 |
#include <netdb.h>
#include "__dns.h"
#include "libc.h"
int res_query(const char *name, int class, int type, unsigned char *dest, int len)
{
if (class != 1 || len < 512)
return -1;
switch(__dns_doqueries(dest, name, &type, 1)) {
case EAI_NONAME:
h_errno = HOST_NOT_FOUND;
return -1;
case EAI_AGAIN:
h_errno ... | davidlazar/musl | src/network/res_query.c | C | lgpl-2.1 | 454 |
/*
* Copyright (C) 2008-2009, Freie Universitaet Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup cpu_lpc2387
* @{
* @file
* @brief LPC2387 clock initial... | basilfx/RIOT | cpu/lpc2387/clocks.c | C | lgpl-2.1 | 2,822 |
/* GStreamer
* Copyright (C) <2007> Wim Taymans <wim.taymans@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any... | mrchapp/gst-plugins-good | gst/rtpmanager/gstrtpbin.c | C | lgpl-2.1 | 94,033 |
/* GTK - The GIMP Toolkit
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
*
* 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 of the Lice... | nacho/gtk- | gtk/gtkmain.c | C | lgpl-2.1 | 67,834 |
/* GStreamer G1 plugin
*
* Copyright (C) 2014-2015 Atmel Corporation.
*
* 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) an... | commshare/gst1-hantro-g1 | gst-libs/ext/g1/utils/gstg1result.c | C | lgpl-2.1 | 5,238 |
/*
* GPAC - Multimedia Framework C SDK
*
* Authors: Jean Le Feuvre
* Copyright (c) Telecom ParisTech 2000-2012
* All rights reserved
*
* This file is part of GPAC / ISO Media File Format sub-project
*
* GPAC is free software; you can redistribute it and/or modify
* it under the terms of the GNU L... | ARSekkat/gpac | src/isomedia/stbl_read.c | C | lgpl-2.1 | 19,726 |
/*
* Copyright (C) 2008 Red Hat, Inc.
*
* 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 of the License, or (at your option) any later version.
*
* This library ... | Distrotech/polkit | src/polkit/polkitsystembusname.c | C | lgpl-2.1 | 12,681 |
/*
* This file is an example on how to use the VSScript part of the VapourSynth API.
* It writes out all the frames of an input script to a file.
* This file may be freely modified/copied/distributed.
*
* For an example of how to use getFrameAsync() see src/vspipe/vspipe.cpp
* It's basically the same as this example bu... | Kamekameha/vapoursynth | sdk/vsscript_example.c | C | lgpl-2.1 | 3,607 |
/*
* iohelper.c: Helper program to perform I/O operations on files
*
* Copyright (C) 2011-2012 Red Hat, Inc.
*
* 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... | andreabolognani/libvirt | src/util/iohelper.c | C | lgpl-2.1 | 6,904 |
/* GStreamer
*
* Copyright (C) 2015 Thibault Saunier <tsaunier@gnome.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) ... | thiblahute/gst-transcoder | tools/gst-transcoder.c | C | lgpl-2.1 | 3,183 |
/*
* gst-droid
*
* Copyright (C) 2015 Jolla Ltd.
*
* 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.
*
... | sailfishos/gst-droid | gst/droidcamsrc/gstdroidcamsrcmode.c | C | lgpl-2.1 | 5,486 |
/*************************************************************************/
/* Copyright (c) 2004 */
/* Daniel Sleator, David Temperley, and John Lafferty */
/* Copyright (c) 2009, 2012-2014 Linas Vepstas */
/* Copyright (c)... | lagleki/jorne | link-grammar/tokenize.c | C | lgpl-2.1 | 64,331 |
/*
* Copyright (C) 2011-2013 Red Hat, Inc.
*
* 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 l... | agx/libvirt-debian | tests/qemumonitortestutils.c | C | lgpl-2.1 | 39,030 |
/*
* various utility functions for use within FFmpeg
* Copyright (c) 2000, 2001, 2002 Fabrice Bellard
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; ... | cullman/ffmpeg-fork | libavformat/utils.c | C | lgpl-2.1 | 100,250 |
/**
* Copyright (C) 2012 The CompilerKit contributors.
*
* 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.
... | lawrancej/CompilerKit | .boilerplate/visitor.c | C | lgpl-2.1 | 4,860 |
/*
* Copyright © 2012 Red Hat Inc.
*
* 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 i... | grubersjoe/adwaita | gtk/gtkcssstaticstyle.c | C | lgpl-2.1 | 7,514 |
/*
(c) Copyright 2001-2009 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by Denis Oliver Kropp <dok@directfb.org>,
Andreas Hundt <andi@fischlustig.de>,
Sven Neumann <neo@di... | openDFB/openDFB | inputdrivers/ucb1x00_ts/ucb1x00_ts.c | C | lgpl-2.1 | 9,906 |
/*
Copyright (C) 2017 Daniel Schultz
This file is part of FLINT.
FLINT is free software: you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License (LGPL) as published
by the Free Software Foundation; either version 2.1 of the License, or
(at your option)... | dsroche/flint2 | fmpz_mpoly/integral.c | C | lgpl-2.1 | 4,261 |
#include <openssl/asn1.h>
#include <openssl/cms.h>
#include <openssl/conf.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
#include <openssl/crypto.h>
#include <openssl/engine.h>
#include <openssl/x509.h>
#include <string.h>
#include "context.h"
#include "signature.h"
GQuark r_signature_e... | ejoerns/rauc | src/signature.c | C | lgpl-2.1 | 34,055 |
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
/************************************************
rbgdkpixmap.c -
$Author: mutoh $
$Date: 2006/11/25 17:50:41 $
Copyright (C) 2002-2004 Ruby-GNOME2 Project Team
Copyright (C) 1998-2000 Yukihiro Matsumoto,
Daisuke Kanda,
... | benolee/ruby-gnome2 | gtk2/ext/gtk2/rbgdkpixmap.c | C | lgpl-2.1 | 7,944 |
/*
* BRLTTY - A background process providing access to the console screen (when in
* text mode) for a blind person using a refreshable braille display.
*
* Copyright (C) 1995-2022 by The BRLTTY Developers.
*
* BRLTTY comes with ABSOLUTELY NO WARRANTY.
*
* This is free software, placed under the terms o... | brltty/brltty | Programs/bell_none.c | C | lgpl-2.1 | 832 |
/* Test of lseek() function.
Copyright (C) 2007-2013 Free Software Foundation, 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 3 of the License, or
(at your option)... | melexis/libvirt | gnulib/tests/test-lseek.c | C | lgpl-2.1 | 3,264 |
/*
* fs-plugin.c - Source for farstream plugin infrastructure
*
* Farstream Voice+Video library
* Copyright (c) 2005 INdT.
* @author Andre Moreira Magalhaes <andre.magalhaes@indt.org.br>
* Copyright 2005-2007 Collabora Ltd.
* Copyright 2005-2007 Nokia Corp.
* @author Rob Taylor <rob.taylor@collabora.co.uk>
... | shadeslayer/farstream | farstream/fs-plugin.c | C | lgpl-2.1 | 9,869 |
/*
* Cogl
*
* A Low-Level GPU Graphics and Utilities API
*
* Copyright (C) 2011 Intel 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
* restriction, including... | djdeath/cogl | cogl/cogl-snippet.c | C | lgpl-2.1 | 4,430 |
#include <gst/gst.h>
guint
gstsharp_gst_caps_get_refcount_offset (void)
{
return (guint) G_STRUCT_OFFSET (GstCaps, refcount);
}
| Forage/gstreamer-sharp | gstreamer-sharp/glue/caps.c | C | lgpl-2.1 | 131 |
/* //////////////////////////////////////////////////////////////////////////////////////
* includes
*/
#include "../demo.h"
/* //////////////////////////////////////////////////////////////////////////////////////
* test
*/
static tb_int_t tb_demo_exception_test(tb_cpointer_t priv)
{
// self
__tb_volatil... | waruqi/tbox | src/demo/platform/exception.c | C | lgpl-2.1 | 2,734 |
/* gtktextbufferserialize.c
*
* Copyright (C) 2001 Havoc Pennington
* Copyright (C) 2004 Nokia Corporation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of... | community-ssu/gtk | gtk/gtktextbufferserialize.c | C | lgpl-2.1 | 44,319 |
/*
Noiseless coder module
*/
#include <stdlib.h>
#include <limits.h>
#include "dyn_bits.h"
#include "bit_cnt.h"
#include "psy_const.h"
#include "minmax.h"
#include "aac_ram.h"
#include "counters.h" /* the 3GPP instrumenting tool */
static int
calcSideInfoBits(int sfbCnt,
int blockType)
{
int seg... | cpopescu/whispermedialib | third-party/aacplusenc/dyn_bits.c | C | lgpl-3.0 | 19,123 |
// Created file "Lib\src\WiaGuid\wiaevent"
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
extern const GUID name = { l, w1, w2, { b1, b2, b3, b4, ... | Frankie-PellesC/fSDK | Lib/src/WiaGuid/wiaevent000000E3.c | C | lgpl-3.0 | 460 |
// Created file "Lib\src\mfuuid\X64\guids"
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
extern const GUID name = { l, w1, w2, { b1, b2, b3, b4, ... | Frankie-PellesC/fSDK | Lib/src/mfuuid/X64/guids00000136.c | C | lgpl-3.0 | 468 |
/*--------------------------------------------------------------------
(C) Copyright 2006-2011 Barcelona Supercomputing Center
Centro Nacional de Supercomputacion
This file is part of Mercurium C/C++ source-to-source compiler.
See AUTHORS file in the top level directory for inform... | sdruix/AutomaticParallelization | tests/06_phases_openmp.dg/common/c/success_copyprivate_01.c | C | lgpl-3.0 | 2,344 |
#include <stdio.h>
#include "mods.h"
int mod4(void);
int main(int argc, char const *argv[])
{
printf("\t%d\n", mod1());
printf("\t%d\n", mod2());
printf("\t%d\n", mod3());
printf("\t%d\n", mod4());
return 0;
}
| bachue/TLPI | dynamic/main.c | C | lgpl-3.0 | 232 |
// Created file "Lib\src\ehstorguids\guids"
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
extern const GUID name = { l, w1, w2, { b1, b2, b3, b4,... | Frankie-PellesC/fSDK | Lib/src/ehstorguids/guids000000AF.c | C | lgpl-3.0 | 474 |
// Created file "Lib\src\Uuid\i_privacie"
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
extern const GUID name = { l, w1, w2, { b1, b2, b3, b4, ... | Frankie-PellesC/fSDK | Lib/src/Uuid/i_privacie00000005.c | C | lgpl-3.0 | 449 |
/*
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SLEPc - Scalable Library for Eigenvalue Problem Computations
Copyright (c) 2002-2015, Universitat Politecnica de Valencia, Spain
This file is part of SLEPc.
SLEPc is free software: you can redistribute it and/or modify it un... | OpenCMISS-Dependencies/slepc | src/sys/classes/bv/examples/tests/test5.c | C | lgpl-3.0 | 4,923 |
// Created file "Lib\src\ehstorguids\X64\guids"
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
extern const GUID name = { l, w1, w2, { b1, b2, b3, ... | Frankie-PellesC/fSDK | Lib/src/ehstorguids/X64/guids00000539.c | C | lgpl-3.0 | 474 |
#include "foo/foo.h"
int foo()
{
return 42;
}
| myd7349/Ongoing-Study | cpp/CMake/libfoo/src/foo.c | C | lgpl-3.0 | 51 |
/* RLIB - Convenience library for useful things
* Copyright (C) 2018 Haakon Sporsheim <haakon.sporsheim@gmail.com>
*
* 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... | ieei/rlib | rlib/rio.c | C | lgpl-3.0 | 3,373 |
// Created file "Lib\src\Uuid\propkeys"
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
extern const GUID name = { l, w1, w2, { b1, b2, b3, b4, b5... | Frankie-PellesC/fSDK | Lib/src/Uuid/propkeys000003BB.c | C | lgpl-3.0 | 477 |
#include "Utilities.h"
/// \defgroup Utilities
/// These are common helper functions that are used to configure pins and for timing delays.
/// @{
/**
*@brief Delay in ms.
*@param ms Delay in milliseconds
*@return none
*/
void delay_ms(unsigned int ms)
{
bcm2835_delay(ms);
}
/**
*@brief Confi... | sensorian/sensorian-firmware | Apps_C/P04-MultipleSensors/Utilities.c | C | lgpl-3.0 | 1,611 |
// Created file "Lib\src\ehstorguids\guids"
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
extern const GUID name = { l, w1, w2, { b1, b2, b3, b4,... | Frankie-PellesC/fSDK | Lib/src/ehstorguids/guids0000034A.c | C | lgpl-3.0 | 459 |
/* ssl/ssl_txt.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non... | Orav/kbengine | kbe/src/lib/dependencies/openssl/ssl/ssl_txt.c | C | lgpl-3.0 | 10,015 |
/* This file is an image processing operation for GEGL
*
* GEGL is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* GEGL ... | LebedevRI/gegl | operations/workshop/gradient-map.c | C | lgpl-3.0 | 7,951 |
/* radare - LGPL - Copyright 2009-2019 - pancake */
#include <r_reg.h>
#include <r_util.h>
R_LIB_VERSION (r_reg);
static const char *types[R_REG_TYPE_LAST + 1] = {
"gpr", "drx", "fpu", "mmx", "xmm", "flg", "seg", NULL
};
// Take the 32bits name of a register, and return the 64 bit name of it.
// If there is no equ... | skuater/radare2 | libr/reg/reg.c | C | lgpl-3.0 | 9,150 |
// Created file "Lib\src\strmiids\strmiids"
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
extern const GUID name = { l, w1, w2, { b1, b2, b3, b4,... | Frankie-PellesC/fSDK | Lib/src/strmiids/strmiids0000032A.c | C | lgpl-3.0 | 451 |
/* radare - LGPL - Copyright 2009-2016 - pancake */
#include "r_util.h"
static void find_refs(RCore *core, const char *glob) {
char cmd[128];
ut64 curseek = core->offset;
while (*glob == ' ') glob++;
if (!*glob)
glob = "str.";
if (*glob == '?') {
eprintf ("Usage: arf [flag-str-filter]\n");
return;
}
epri... | jrmuizel/radare2 | libr/core/cmd_anal.c | C | lgpl-3.0 | 112,513 |
/* This file is part of libsnippets
*
* Copyright (C) 2010 Sebastian Dröge <slomo@circular-chaos.org>
*
* 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 3 of the L... | sdroege/snippets | benchmark/rand.c | C | lgpl-3.0 | 2,506 |
/*
*
* vdl120: The Voltcraft DL-120TH tool
*
* + write configuration
* + read configuration
* + read log data
* + store log data for plotting
*
* DEPENDENCIES
*
* + libusb-0.1
*
* TODO
*
* + port to libusb-1.x
* + dont rely on the host's byte order (endianness)
* + clean up: wrap usb_bulk_* functions... | apuch/vdl120 | src/vdl120.c | C | unlicense | 26,818 |
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <stdint.h>
#include <time.h>
#include <libdragon.h>
static resolution_t res = RESOLUTION_320x240;
static bitdepth_t bit = DEPTH_32_BPP;
char *format_type( int accessory )
{
switch( accessory )
{
case ACCESSORY_RUMBLEPAK:
r... | DragonMinded/libdragon | examples/ctest/ctest.c | C | unlicense | 3,327 |
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "Eo.h"
#include "interface_interface.h"
#include "interface_interface2.h"
#include "interface_simple.h"
EAPI Eo_Op INTERFACE2_BASE_ID = 0;
#define MY_CLASS INTERFACE2_CLASS
static const Eo_Op_Description op_desc[] = {
EO_OP_DESCRIPTION(INTERFACE2_SUB_ID... | maikodaraine/EnlightenmentUbuntu | core/efl/src/tests/eo/interface/interface_interface2.c | C | unlicense | 719 |
/* This sine wave generator was written by Donald Thommen.
* This is released to the public domain.
*/
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <inttypes.h>
#include "wavfile.c"
const int NUM_SAMPLES = (WAVFILE_SAMPLES_PER_SECOND);
int main(int argc,c... | DonaldET3/Vibe | vibe.c | C | unlicense | 6,019 |
// Anders S Rye 2014
#include <time.h>
#include <stdio.h>
#include <wiringPi.h>
#include <pcf8574.h>
int main (int argc, char** argv)
{
wiringPiSetup();
pcf8574Setup (100, 0x21);
pcf8574Setup (110, 0x3a);
pcf8574Setup (120, 0x24);
printf("pri %i\n", piHiPri(99));
int row[10] = {100, 101, 102, 103, 104, 110, 1... | andersrye/maddarts | test-files/dartboard.c | C | unlicense | 1,565 |
#include <FaNES.h>
const uchar updateNametableListInit[6 * 3 + 13 + 11 + 1] = {
MSB(NAMETABLE_A_POSITION(4, 2)), LSB(NAMETABLE_A_POSITION(4, 2)), '0',
MSB(NAMETABLE_A_POSITION(5, 2)), LSB(NAMETABLE_A_POSITION(5, 2)), '0',
MSB(NAMETABLE_A_POSITION(6, 2)), LSB(NAMETABLE_A_POSITION(6, 2)), '0',
MSB(NAMETA... | NaruTrey/FaNES-Example-3-Cursor-and-Nametable | main.c | C | unlicense | 2,139 |
#include <math.h>
#include <DSPF_sp_cfftr2_dit.h>
#include <DSPF_sp_bitrev_cplx.h>
#include "twiddles512.h"
#include "bitrev_index.h"
#define PIOU_MODULE_IMPORT
#include "piouRecognition.h"
#define FIR_FILTER 0
#if (FIR_FILTER)
#define FIR_K -0.5
#endif
#define HUM_PITCH_INDEX_1 FFT_BLOCK_SIZE*HUM_PITCH_1/VOICE_SAM... | EmbeddedUniverse/PROJECT | Sources/C/piouRecognition.c | C | apache-2.0 | 6,903 |
// Mutual exclusion spin locks.
#include "types.h"
#include "defs.h"
#include "param.h"
#include "arm.h"
#include "proc.h"
#include "spinlock.h"
#include <os\arch.h>
void initlock(struct spinlock *lk, const char *name)
{
lk->name = name;
lk->locked = 0;
//lk->cpu = 0;
}
// For single CPU systems, there i... | WarlockD/arm-cortex-v7-unix | f9_os/src/xx6/spinlock.c | C | apache-2.0 | 2,068 |
/*
*------------------------------------------------------------------
* pppoe_api.c - pppoe api
*
* Copyright (c) 2017 Intel and/or its affiliates.
* 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 ... | vpp-dev/vpp | src/plugins/pppoe/pppoe_api.c | C | apache-2.0 | 4,310 |
/**
******************************************************************************
* @file stm32l0xx_hal_flash_ex.c
* @author MCD Application Team
* @version V1.0.0
* @date 22-April-2014
* @brief FLASH HAL module driver.
* This file provides firmware functions to manage the following
... | NordicSemiconductor/mbed | libraries/mbed/targets/cmsis/TARGET_STM/TARGET_NUCLEO_L053R8/stm32l0xx_hal_flash_ex.c | C | apache-2.0 | 41,040 |
/* Copyright 2019, 2022 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 ... | google/audio-to-tactile | extras/tools/util.c | C | apache-2.0 | 7,258 |
/**
******************************************************************************
* @file stm32l4xx_hal_crc_ex.c
* @author MCD Application Team
* @version V1.5.2
* @date 12-September-2016
* @brief Extended CRC HAL module driver.
* This file provides firmware functions to manage t... | Jason0204/jasontek_f103rb-zephyrOS-project | ext/hal/st/stm32cube/stm32l4xx/drivers/src/stm32l4xx_hal_crc_ex.c | C | apache-2.0 | 9,116 |
#include "../atrshmlog_internal.h"
/*******************************************************************/
/**
* \file atrshmlogimpl_get_autoflush_process.c
*/
/**
* \n Main code:
*
* \brief The autoflush flag
*
* test t_get_autoflush_process.c
*/
atrshmlog_ret_t atrshmlog_get_autoflush_process(void)
{
retu... | atrsoftgmbh/atrshmlog | src/impls/atrshmlogimpl_get_autoflush_process.c | C | apache-2.0 | 347 |
/******************************************************************************/
/**
@file compare_tuple.c
@author Graeme Douglas
@brief Implementation of tuple comparison library.
@details The algorithm used to return a tuple is the following:
previous <- next // previous min/max, or null on first call
next ... | graemedouglas/LittleD | src/dblogic/compare_tuple.c | C | apache-2.0 | 9,470 |
/* @(#)bsearch.c 1.5 */
/*LINTLIBRARY*/
/*
* Binary search algorithm, generalized from Knuth (6.2.1) Algorithm B.
*
*/
typedef char *POINTER;
POINTER
bsearch(key, base, nel, width, compar)
POINTER key; /* Key to be located */
POINTER base; /* Beginning of table */
unsigned nel; /* Number of elements in the t... | sergev/vak-opensource | compilers/pcc-e1kb/libc/gen/bsearch.c | C | apache-2.0 | 820 |
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | brightinteractive/debian-imagemagick | coders/xps.c | C | apache-2.0 | 15,310 |
/* Unit test suite for Ntdll file functions
*
* Copyright 2007 Jeff Latimer
* Copyright 2007 Andrey Turkin
* Copyright 2008 Jeff Zaroyko
* Copyright 2011 Dmitry Timoshkov
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as ... | howard5888/wine | wine-1.7.7/dlls/ntdll/tests/file.c | C | apache-2.0 | 127,941 |
/*
* Spdylay - SPDY Library
*
* Copyright (c) 2012 Tatsuhiro Tsujikawa
*
* 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... | pquerna/spedye | deps/spdylay/lib/spdylay_submit.c | C | apache-2.0 | 9,515 |
/*
* Copyright 2014 Nippon Telegraph and Telephone Corporation.
*
* 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 b... | skuwa/lagopus | src/dataplane/ofproto/test/flowinfo_ipv4_test.c | C | apache-2.0 | 13,677 |
/*
* Copyright 2013 Mo McRoberts.
*
* 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 agr... | nevali/crawl | daemon/context.c | C | apache-2.0 | 3,157 |
//
// Created by zhangrongxiang on 2017/9/15.
//
#include<string.h>
#include<stdio.h>
/**
* 从文件结构体指针stream中读取数据,每次读取一行
* @return
*/
int main(void) {
FILE *stream;
char string[] = "1\n2\n3\n4\n5\n6\n";
char msg[20];
/*open a file for update*/
stream = fopen("test", "w+");
/*write a string in... | zhangrxiang/learn-c | basic/2017/09/15/udp2/fgets.c | C | apache-2.0 | 878 |
#include <windows.h>
/************************************************************************/
/* convert Utf8 char to Unicode/LocalCode TCHAR */
/************************************************************************/
TCHAR* ConvertUtf8ToTChar(const char* src)
{
unsigned int size_local;
... | hhool/transmission | build/win32/Win32-src/utf8.c | C | apache-2.0 | 1,726 |
#if defined(__STDPP__directive) && defined(__STDPP__hide)
__STDPP__directive pragma pp:hide getpagesize
#else
#define getpagesize ______getpagesize
#endif
#include "sfhdr.h"
#if defined(__STDPP__directive) && defined(__STDPP__hide)
__STDPP__directive pragma pp:nohide getpagesize
#else
#undef getpagesize
#endif
#if _... | chillbu/cblib | thirdparty/sfio/src/lib/sfio/sfsetbuf.c | C | apache-2.0 | 9,087 |
/* CFNumber.c
Copyright (c) 1999-2016, Apple Inc. and the Swift project authors
Portions Copyright (c) 2014-2016 Apple Inc. and the Swift project authors
Licensed under Apache License v2.0 with Runtime Library Exception
See http://swift.org/LICENSE.txt for license information
See http://swift.org/CONTRIBUTORS.tx... | mohitathwani/swift-corelibs-foundation | CoreFoundation/NumberDate.subproj/CFNumber.c | C | apache-2.0 | 71,247 |
#include <stdio.h>
#include <stdlib.h>
#include "NonSmoothDrivers.h"
#include "stdlib.h"
#include "VariationalInequality.h"
#include "SolverOptions.h"
#include "VI_cst.h"
#include "VariationalInequality_Solvers.h"
static void Ftest_0(void * viIn, int n, double *x, double *F)
{
int i;
VariationalInequality * vi = ... | fperignon/siconos | numerics/src/VI/test/VI_test_collection_1.c | C | apache-2.0 | 8,355 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.