code
stringlengths
1.03k
250k
repo_name
stringlengths
7
70
path
stringlengths
4
177
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
1.03k
250k
#include <linux/smp.h> #include <linux/timex.h> #include <linux/string.h> #include <linux/seq_file.h> #include <linux/cpufreq.h> /* * Get CPU information for use by the procfs. */ static void show_cpuinfo_core(struct seq_file *m, struct cpuinfo_x86 *c, unsigned int cpu) { #ifdef CONFIG_SMP if (c->x86_max_c...
talnoah/android_kernel_htc_dlx
virt/arch/x86/kernel/cpu/proc.c
C
gpl-2.0
4,259
/* * linux/drivers/video/backlight/pwm_bl.c * * simple PWM based backlight control, board code has to setup * 1) pin configuration so PWM waveforms can output * 2) platform_data being correctly configured * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Ge...
geminy/aidear
oss/linux/linux-4.7/drivers/video/backlight/pwm_bl.c
C
gpl-3.0
10,720
/******************************************************************************* PTP 1588 clock using the STMMAC. Copyright (C) 2013 Vayavya Labs Pvt Ltd This program is free software; you can redistribute it and/or modify it under the terms and conditions of the GNU General Public License, version 2, as p...
BPI-SINOVOIP/BPI-Mainline-kernel
linux-4.14/drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c
C
gpl-2.0
5,178
/* * Copyright (c) 2000-2005 Silicon Graphics, Inc. * 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. * * This program is distributed in the hope that it would be ...
dperezde/little-penguin
linux/fs/xfs/xfs_buf_item.c
C
gpl-2.0
34,599
/* * Disk Array driver for HP Smart Array SAS controllers * Copyright 2000, 2009 Hewlett-Packard Development Company, L.P. * * 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; ...
zhengsjembest/linux_am335x
linux-3.2.0-psp04.06.00.08.sdk/drivers/scsi/hpsa.c
C
gpl-2.0
132,567
/* this ALWAYS GENERATED file contains the proxy stub code */ /* File created by MIDL compiler version 7.00.0555 */ /* at Thu Mar 08 14:53:56 2012 */ /* Compiler settings for Accessible2.idl: Oicf, W1, Zp8, env=Win64 (32b run), target_arch=AMD64 7.00.0555 protocol : dce , ms_ext, c_ext, robust error ...
pataquets/phantomjs
src/qt/qtbase/src/3rdparty/iaccessible2/generated/amd64/Accessible2_p.c
C
bsd-3-clause
37,124
/* * Renesas - AP-325RXA * (Compatible with Algo System ., LTD. - AP-320A) * * Copyright (C) 2008 Renesas Solutions Corp. * Author : Yusuke Goda <goda.yuske@renesas.com> * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of thi...
jfdsmabalot/kernel_msm7627a
arch/sh/boards/mach-ap325rxa/setup.c
C
gpl-2.0
16,582
/* sound/soc/samsung/s3c2412-i2s.c * * ALSA Soc Audio Layer - S3C2412 I2S driver * * Copyright (c) 2006 Wolfson Microelectronics PLC. * Graeme Gregory graeme.gregory@wolfsonmicro.com * linux@wolfsonmicro.com * * Copyright (c) 2007, 2004-2005 Simtec Electronics * http://armlinux.simtec.co.uk/ * Ben Dooks <ben@...
prasidh09/cse506
unionfs-3.10.y/sound/soc/samsung/s3c2412-i2s.c
C
gpl-2.0
5,312
// SPDX-License-Identifier: GPL-2.0 // // Copyright 2003-2008 Simtec Electronics // Ben Dooks <ben@simtec.co.uk> // // http://www.simtec.co.uk/products/EB2410ITX/ #include <linux/kernel.h> #include <linux/types.h> #include <linux/interrupt.h> #include <linux/list.h> #include <linux/timer.h> #include <linux/init.h> #...
GuillaumeSeren/linux
arch/arm/mach-s3c/mach-bast.c
C
gpl-2.0
14,201
/* * linux/fs/nfs/dir.c * * Copyright (C) 1992 Rick Sladkey * * nfs directory handling functions * * 10 Apr 1996 Added silly rename for unlink --okir * 28 Sep 1996 Improved directory cache --okir * 23 Aug 1997 Claus Heine claus@momo.math.rwth-aachen.de * Re-implemented silly rename for unli...
systemdaemon/systemd
src/linux/fs/nfs/dir.c
C
gpl-2.0
64,635
/* linux/arch/arm/mach-s3c64xx/mach-smdk6410.c * * Copyright 2008 Openmoko, Inc. * Copyright 2008 Simtec Electronics * Ben Dooks <ben@simtec.co.uk> * http://armlinux.simtec.co.uk/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License vers...
sahdman/rpi_android_kernel
linux-3.1.9/arch/arm/mach-s3c64xx/mach-smdk6410.c
C
mit
16,995
/* Copyright (c) 2010 Code Aurora Forum. 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 version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope tha...
NieNs/IM-A750K
drivers/power/smb137b.c
C
gpl-2.0
27,738
/* * Copyright (C) 2011, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com> * * Parts came from builtin-{top,stat,record}.c, see those files for further * copyright notes. * * Released under the GPL v2. (and only v2, not any later version) */ #include "util.h" #include "debugfs.h" #include <poll.h> #include...
SanDisk-Open-Source/SSD_Dashboard
uefi/linux-source-3.8.0/tools/perf/util/evlist.c
C
gpl-2.0
19,845
/* * libata-sff.c - helper library for PCI IDE BMDMA * * Maintained by: Tejun Heo <tj@kernel.org> * Please ALWAYS copy linux-ide@vger.kernel.org * on emails. * * Copyright 2003-2006 Red Hat, Inc. All rights reserved. * Copyright 2003-2006 Jeff Garzik * * * This program is free software; ...
dperezde/little-penguin
linux-eudyptula/drivers/ata/libata-sff.c
C
gpl-2.0
85,527
/* linux/arch/arm/mach-exynos/mach-smdk4x12.c * * Copyright (c) 2011 Samsung Electronics Co., Ltd. * http://www.samsung.com * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */...
arshull/GalaTab3_Kernel
arch/arm/mach-smdk4x12.c
C
gpl-2.0
108,806
/* * Hauppauge HD PVR USB driver - video 4 linux 2 interface * * Copyright (C) 2008 Janne Grunau (j@jannau.net) * * 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, version 2. * */ #...
AiJiaZone/linux-4.0
virt/drivers/media/usb/hdpvr/hdpvr-control.c
C
gpl-2.0
4,653
// SPDX-License-Identifier: GPL-2.0-only /* * hid-sensor-custom.c * Copyright (c) 2015, Intel Corporation. */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/miscdevice.h> #include <linux/kfifo.h> #include <linux/sched.h> #include <linux/wait.h> #include <linux/poll.h> #i...
CSE3320/kernel-code
linux-5.8/drivers/hid/hid-sensor-custom.c
C
gpl-2.0
23,861
/* * rx1950.c -- ALSA Soc Audio Layer * * Copyright (c) 2010 Vasily Khoruzhick <anarsoul@gmail.com> * * Based on smdk2440.c and magician.c * * Authors: Graeme Gregory graeme.gregory@wolfsonmicro.com * Philipp Zabel <philipp.zabel@gmail.com> * Denis Grigoriev <dgreenday@gmail.com> * ...
systemdaemon/systemd
src/linux/sound/soc/samsung/rx1950_uda1380.c
C
gpl-2.0
6,855
/* * Pinctrl Driver for ADI GPIO2 controller * * Copyright 2007-2013 Analog Devices Inc. * * Licensed under the GPLv2 or later */ #include <linux/bitops.h> #include <linux/delay.h> #include <linux/module.h> #include <linux/err.h> #include <linux/debugfs.h> #include <linux/seq_file.h> #include <linux/irq.h> #incl...
publicloudapp/csrutil
linux-4.3/drivers/pinctrl/pinctrl-adi2.c
C
mit
29,812
// SPDX-License-Identifier: GPL-2.0-only /* * AMD CPU Microcode Update Driver for Linux * * This driver allows to upgrade microcode on F10h AMD * CPUs and later. * * Copyright (C) 2008-2011 Advanced Micro Devices Inc. * 2013-2018 Borislav Petkov <bp@alien8.de> * * Author: Peter Oruba <peter.orub...
CSE3320/kernel-code
linux-5.8/arch/x86/kernel/cpu/microcode/amd.c
C
gpl-2.0
22,246
/******************************************************************************* * * Intel Ethernet Controller XL710 Family Linux Virtual Function Driver * Copyright(c) 2013 - 2014 Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of th...
systemdaemon/systemd
src/linux/drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c
C
gpl-2.0
23,530
/* * fs/f2fs/inode.c * * Copyright (c) 2012 Samsung Electronics Co., Ltd. * http://www.samsung.com/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <...
systemdaemon/systemd
src/linux/fs/f2fs/inode.c
C
gpl-2.0
9,922
/****************************************************************************** Copyright(c) 2003 - 2005 Intel Corporation. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Softw...
felixhaedicke/nst-kernel
src/drivers/net/wireless/ipw2x00/libipw_tx.c
C
gpl-2.0
15,894
/* * Copyright (C) 2005,2006,2007,2008 IBM Corporation * * Authors: * Kylene Hall <kjhall@us.ibm.com> * Reiner Sailer <sailer@us.ibm.com> * Mimi Zohar <zohar@us.ibm.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * publish...
ziqiaozhou/cachebar
source/security/integrity/ima/ima_fs.c
C
gpl-2.0
9,621
// SPDX-License-Identifier: GPL-2.0 /* * sys_ia32.c: Conversion between 32bit and 64bit native syscalls. Based on * sys_sparc32 * * Copyright (C) 2000 VA Linux Co * Copyright (C) 2000 Don Dugger <n0ano@valinux.com> * Copyright (C) 1999 Arun Sharma <arun.sharma@intel.com> * Copyright (C) 1997,1998 ...
chenshuo/linux-study
arch/x86/kernel/sys_ia32.c
C
gpl-2.0
7,536
/* Copyright (c) 2011-2012, Code Aurora Forum. 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 version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the ho...
MoKee/android_kernel_samsung_d2
drivers/media/video/msm_zsl/msm_vfe7x27a.c
C
gpl-2.0
16,328
/* * Intel Skylake I2S Machine Driver * * Copyright (C) 2014-2015, Intel Corporation. All rights reserved. * * Modified from: * Intel Broadwell Wildcatpoint SST Audio * * Copyright (C) 2013, Intel Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or * modify...
AiJiaZone/linux-4.0
virt/sound/soc/intel/boards/skl_rt286.c
C
gpl-2.0
6,653
/* * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * * Copyright (C) 2002-2010 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning <charles@aleph1.co.uk> * * This program is free software; you can redistribute it and/or modify * it unde...
execuc/rm04-wifi-video-serial
target/linux/generic/files/fs/yaffs2/yaffs_verify.c
C
gpl-2.0
15,650
/* * Kernel Probes (KProbes) * * 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 ...
SanDisk-Open-Source/SSD_Dashboard
uefi/linux-source-3.8.0/arch/x86/kernel/kprobes.c
C
gpl-2.0
33,190
/* * linux/fs/nfs/nfs3proc.c * * Client-side NFSv3 procedures stubs. * * Copyright (C) 1997, Olaf Kirch */ #include <linux/mm.h> #include <linux/errno.h> #include <linux/string.h> #include <linux/sunrpc/clnt.h> #include <linux/slab.h> #include <linux/nfs.h> #include <linux/nfs3.h> #include <linux/nfs_fs.h> #i...
mericon/Xp_Kernel_LGH850
virt/fs/nfs/nfs3proc.c
C
gpl-2.0
24,340
/* This file is part of tgl-library 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 lib...
TehDmitry/tg-cli
tgl/crypto/bn_altern.c
C
gpl-2.0
4,468
/* * linux/fs/ext4/ioctl.c * * Copyright (C) 1993, 1994, 1995 * Remy Card (card@masi.ibp.fr) * Laboratoire MASI - Institut Blaise Pascal * Universite Pierre et Marie Curie (Paris VI) */ #include <linux/fs.h> #include <linux/jbd2.h> #include <linux/capability.h> #include <linux/time.h> #include <linux/compat.h> ...
kangjunbin/SpanFS
spanfsv2-garbage-collection/ioctl.c
C
gpl-2.0
17,172
/* * Copyright (c) 2014 Samsung Electronics Co., Ltd. * http://www.samsung.com * * EXYNOS - Power Management support * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #inc...
SM-G920P/G920P-MM
arch/arm/mach-exynos/pm-exynos7420.c
C
gpl-2.0
11,483
/* crypto/x509/by_file.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...
jdgarcia/nodegit
vendor/openssl/openssl/crypto/x509/by_file.c
C
mit
9,423
/******************************************************************************* * Agere Systems Inc. * Wireless device driver for Linux (wlags49). * * Copyright (c) 1998-2003 Agere Systems Inc. * All rights reserved. * http://www.agere.com * * Initially developed by TriplePoint, Inc. * http://www.triplepo...
WhiteBearSolutions/WBSAirback
packages/wbsairback-kernel-image/wbsairback-kernel-image-3.2.43/drivers/staging/wlags49_h2/wl_netdev.c
C
apache-2.0
61,511
/* * netup-init.c * * NetUP Dual DVB-S2 CI driver * * Copyright (C) 2009 NetUP Inc. * Copyright (C) 2009 Igor M. Liplianin <liplianin@netup.ru> * Copyright (C) 2009 Abylay Ospan <aospan@netup.ru> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General P...
talnoah/android_kernel_htc_dlx
virt/drivers/media/video/cx23885/netup-init.c
C
gpl-2.0
2,828
/* * Copyright (C) 2009-2010, Lars-Peter Clausen <lars@metafoo.de> * JZ4740 platform IRQ support * * 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, ...
Seagate/SMR_FS-EXT4
kernel/drivers/irqchip/irq-ingenic.c
C
gpl-2.0
4,638
/* * arch/powerpc/sysdev/ipic.c * * IPIC routines implementations. * * Copyright 2005 Freescale Semiconductor, 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...
Seagate/SMR_FS-EXT4
kernel/arch/powerpc/sysdev/ipic.c
C
gpl-2.0
20,322
/***************************************************************************/ /* */ /* afangles.c */ /* */ /* Ro...
easion/os_sdk
xynth/src/lib/freetype2/afangles.c
C
apache-2.0
6,656
/* * linux/kernel/ptrace.c * * (C) Copyright 1999 Linus Torvalds * * Common interfaces for "ptrace()" which we do not want * to continually duplicate across every architecture. */ #include <linux/capability.h> #include <linux/export.h> #include <linux/sched.h> #include <linux/errno.h> #include <linux/mm.h> #inc...
prasidh09/cse506
unionfs-3.10.y/kernel/ptrace.c
C
gpl-2.0
30,175
/* LUFA Library Copyright (C) Dean Camera, 2011. dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ /* Copyright 2011 Dean Camera (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and its documentation ...
RIVeR-Lab/walrus
walrus_firmware/rosserial_teensyduino/teensyduino_sdk/arduino-1.0.6/hardware/arduino/bootloaders/caterina/Descriptors.c
C
bsd-3-clause
9,324
/* * Sonics Silicon Backplane PCI-Hostbus related functions. * * Copyright (C) 2005-2006 Michael Buesch <m@bues.ch> * Copyright (C) 2005 Martin Langer <martin-langer@gmx.de> * Copyright (C) 2005 Stefano Brivio <st3@riseup.net> * Copyright (C) 2005 Danny van Dyk <kugelfang@gentoo.org> * Copyright (C) 2005 Andreas...
talnoah/android_kernel_htc_dlx
virt/drivers/ssb/pci.c
C
gpl-2.0
31,762
/* * linux/arch/arm/kernel/bios32.c * * PCI bios-type initialisation for PCI machines * * Bits taken from various places. */ #include <linux/export.h> #include <linux/kernel.h> #include <linux/pci.h> #include <linux/slab.h> #include <linux/init.h> #include <linux/io.h> #include <asm/mach-types.h> #include <as...
AiJiaZone/linux-4.0
virt/arch/arm/kernel/bios32.c
C
gpl-2.0
16,539
// SPDX-License-Identifier: GPL-2.0-only /* * copyright (c) 2013 Freescale Semiconductor, Inc. * Freescale IMX AHCI SATA platform driver * * based on the AHCI SATA platform driver by Jeff Garzik and Anton Vorontsov */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/platform_device.h> #include ...
CSE3320/kernel-code
linux-5.8/drivers/ata/ahci_imx.c
C
gpl-2.0
34,212
/* ** This program searches an SQLite database file for the lengths and ** offsets for all TEXT or BLOB entries for a particular column of a ** particular table. The rowid, size and offset for the column are ** written to standard output. There are three arguments, which are the ** name of the database file, the tabl...
shanshan1026/sqlcipher
tool/offsets.c
C
bsd-3-clause
8,393
/* * Minimalistic braille device kernel support. * * By default, shows console messages on the braille device. * Pressing Insert switches to VC browsing. * * Copyright (C) Samuel Thibault <samuel.thibault@ens-lyon.org> * * This program is free software ; you can redistribute it and/or modify * it under the te...
felixhaedicke/nst-kernel
src/drivers/accessibility/braille/braille_console.c
C
gpl-2.0
8,194
/* * Copyright (C) 2003 Jana Saout <jana@saout.de> * * This file is released under the GPL. */ #include <linux/device-mapper.h> #include <linux/module.h> #include <linux/init.h> #include <linux/bio.h> #define DM_MSG_PREFIX "zero" /* * Construct a dummy mapping that only returns zeros */ static int zero_ctr(st...
AiJiaZone/linux-4.0
virt/drivers/md/dm-zero.c
C
gpl-2.0
1,518
/***************************************************************************/ /* */ /* cffpic.c */ /* */ /* Th...
Z-Shang/onscripter-gbk
svn/onscripter-read-only/jni/freetype/src/cff/cffpic.c
C
gpl-2.0
4,637
/* vi: set sw=4 ts=4: */ /* * reformime: parse MIME-encoded message * * Copyright (C) 2008 by Vladimir Dronnikov <dronnikov@gmail.com> * * Licensed under GPLv2, see file LICENSE in this source tree. */ //kbuild:lib-$(CONFIG_REFORMIME) += reformime.o mail.o #include "libbb.h" #include "mail.h" #if 0 # define db...
Bytewerk/uClinux-ipcam
user/busybox/mailutils/reformime.c
C
gpl-2.0
7,295
/******************************************************************* * This file is part of the Emulex Linux Device Driver for * * Fibre Channel Host Bus Adapters. * * Copyright (C) 2004-2009 Emulex. All rights reserved. * * EMULEX and SLI are trademarks of Emulex....
KOala888/GB_kernel
linux_kernel_galaxyplayer-master/drivers/scsi/lpfc/lpfc_nportdisc.c
C
gpl-2.0
69,343
/* Fireworks demo written by Dave Ashley */ /* dash@xdr.com */ /* http://www.xdr.com/dash */ /* Sat Jun 13 02:46:09 PDT 1998 */ /* This is my first attempt at an SDL program */ /* See the SDL home page http://www.devolution.com/~slouken/projects/SDL/ */ #include <stdio.h> #include <stdlib.h> #include <string.h> #inclu...
jmolloy/pedigree
src/user/applications/fire/fire.c
C
isc
9,770
/* Copyright (C) <2012> <Kieren 'Razish' McDevitt> 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, publis...
Razish/solitaire
src/game/game.c
C
mit
23,543
/****************************************************************************//** \file memAt25dd041a.c \brief Some commands for at25df041a implementation. \author Atmel Corporation: http://www.atmel.com \n Support email: avr@atmel.com Copyright (c) 2008-2011, Atmel Corporation. All rights r...
femtoio/femto-beacon
Eagle_Files/FemtoBeacon_r2.0.0/Atmel_files/AT02430/Embedded_Bootloader_src/application/common/src/memAt25df041a.c
C
mit
3,007
/****************************************************************************/ /* imaxdiv v15.12.3 */ /* */ /* Copyright (c) 2003-2016 Texas Instruments Incorporated */ /* h...
gexd7127/MIT-Pico-Grid
Project/New_MG/Firmware/EVAL/c2000_15.12.3.LTS/lib/src/imaxdiv.c
C
mit
3,018
#include <rte_config.h> #include <rte_ethdev.h> #include <rte_mempool.h> #include <rte_ether.h> #include <rte_cycles.h> #include <rte_mbuf.h> #include <ixgbe_type.h> #include <rte_mbuf.h> #include "device.h" #include <rte_power.h> // default descriptors per queue #define DEFAULT_RX_DESCS 512 #define DEFAULT_TX_DESCS ...
schoenb/MoonGen
src/device.c
C
mit
23,372
/* Copyright Joyent, Inc. and other Node contributors. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * righ...
ccheever/CoreNode
uv/libuv/src/unix/stream.c
C
mit
40,172
/* * Copyright (c), NXP Semiconductors Gratkorn / Austria * * (C)NXP Semiconductors * All rights are reserved. Reproduction in whole or in part is * prohibited without the written consent of the copyright owner. * NXP reserves the right to make changes without notice at any...
zhang1career/1PAY.SYS
src/NxpRdLibPublicReleas-2.1/NxpRdLib_PublicRelease/comps/phKeyStore/src/Sw/phKeyStore_Sw.c
C
mit
18,088
#include "hash.h" #include "list.h" extern void *hash_init(hash_table *h, size_t elem_size, hash_fn_t hash_fn, comp_fn_t comp, unsigned long table_size) { array *a; if ((a = malloc(sizeof(array))) == NULL) return NULL; h->a = a; h->table_size = table_size; h->tsize = elem_size; h->hash_fn = h...
mihaiolteanu/algorithms
src/hash.c
C
mit
2,014
/* * Copyright (c) 1995 The University of Utah and * the Computer Systems Laboratory at the University of Utah (CSL). * All rights reserved. * * Permission to use, copy, modify and distribute this software is hereby * granted provided that (1) source code retains these copyright, permission, * and disclaimer no...
alexoneill/geckOS
lib/stdio/putchar.c
C
mit
1,185
/*! * \file force-atlas-2.c * Sequential implementation for the Force Atlas 2 spring embedding algorithm. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <float.h> #include <limits.h> #include <assert.h> #include "force-atlas-2.h" #include "math.h" #include "timer.h" #include "vector.h" #incl...
DSRC-GPU/Accelerated-Pipeline
src/force-atlas-2.c
C
mit
14,877
/****************************************************************************** * FILE: mpi_latency.c * DESCRIPTION: * MPI Latency Timing Program - C Version * In this example code, a MPI communication timing test is performed. * MPI task 0 will send "reps" number of 1 byte messages to MPI task 1, * waiting for...
rahlk/Parallel-Systems
src/hw1/latency/.junk/latency2.c
C
mit
3,936
/* * monitor.c - Routines for monitors within the runtime. * * Copyright (C) 2003 Southern Storm Software, Pty Ltd. * * Authors: Thong Nguyen (tum@veridicus.com) * * 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 * t...
jjenki11/blaze-chem-rendering
qca_designer/lib/pnet-0.8.0/engine/monitor.c
C
mit
6,101
#include "cmd-run.h" char** cmd_run_mkcl(int argc,char** argv,struct sub_command* cmd) { char* home=configdir(); char* arch=uname_m(); char* os=uname_s(); char* impl=(char*)cmd->name; char* version=(char*)cmd->short_name; /*[binpath for mkcl] -norc -q -eval init.lisp [terminating NULL] that total 6 are...
roswell/roswell
src/cmd-run-mkcl.c
C
mit
2,150
// // heligun: 3D flight sim shooter // Copyright (c) 2016 Joseph Kuziel // // This software is MIT licensed. // #include "sdlext.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <SDL2/SDL_rwops.h> #include <SDL2/SDL_error.h> void sdlextPrintError() { printf("[SDL] %s\n", SDL_GetError());...
jkuziel/heligun
sdlext.c
C
mit
1,321
/************************************************************************************** Exclusion of Liability for this demo software: The following software is intended for and must only be used for reference and in an evaluation laboratory environment. It is provided without charge and is subject to alterat...
Hilscher/netPI-netx-programming-examples
examples/sources/SystemPackets.c
C
mit
18,554
/* Spot arbitrage oportunities in Forex market. -- Cássio Jandir Pagnoncelli kimble9t@gmail.com */ #include <stdio.h> #include <stdlib.h> /*------------------------------------------------------------------------------ --- Estruturas. --------------------------------------------------------------- ---------...
cassiopagnoncelli/hedge-project
arbitrage/sequencial/arbitragem.c
C
mit
11,274
// Demonstrate using qpilotsync for carrier recovery. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include <getopt.h> #include <assert.h> #include "liquid.h" void usage() { printf("%s [options]\n", __FILE__); printf(" h : print usage\n"); printf(" n...
jgaeddert/liquid-dsp
examples/qpilotsync_example.c
C
mit
5,865
/* * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
koobonil/Boss2D
Boss2D/addon/openssl-1.1.1a_for_boss/crypto/ec/curve25519.c
C
mit
194,450
/* Copyright (c) Ludo Visser * * This file is part of the mbed-lib project, and is distributed under the * terms of the MIT License. The full license agreement text can be found * in the LICENSE file. */ #include "mbed.h" /* LED initialization function */ void initLED(void) { PINSEL_CFG_Type pinConfig; /* Che...
lcvisser/mbed-lib
src/mbed/led.c
C
mit
1,469
#include <time.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "vm.h" ProcessorState * ProcessorState_new() { // State box for this processor ProcessorState *new_procstate = (ProcessorState *) malloc(sizeof(ProcessorState)); // Setup the processor Processor *new_proc = (Pro...
zinic/schematic
src/c/vm.c
C
mit
4,940
#include "qm.h" #include "matrix.h" #include "eq.h" #include "2el.h" #include "tools.h" #include "gradient.h" #include "vec3.h" #define EPS 1e-15 static void f_eq30_mp_grad(int ma, int mv, int la, int lv, int qa, int qk, double * g, double ra[3], double rk[3], qmdata * qmd){ double z[3]; r3diff(z, ra, rk); doub...
briling/qm
source/qm/E2_grad.c
C
mit
10,021
/*! \file rk_int.c * \brief Function definitions for numerical integration routines. */ #include<math.h> #include<stdio.h> #include<stdlib.h> #include<gsl/gsl_sf_gamma.h> #include"rk_int.h" #include"routines.h" /******************************************************** * * Numerical Integration Subroutines. * ***...
brantr/sedov_taylor
rk_int.c
C
mit
11,586
/** * * Description: Simple Chat Server. * Author: Deric Fagnan * * * */ #include <stdio.h> #include <stdlib.h> #include <string.h> //strlen #include <unistd.h> //write #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <arpa/inet.h> //inet_addr #include <pthread.h> //for threading , l...
deric92/chatroom
src/server.c
C
mit
4,223
#include <check.h> #include "check_ace_string.h" #include "../src/ace_string.h" // unit tests ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ START_TEST (join_two_strings) { char *result = ace_str_join_2 ("hello", " world"); ck_assert_str_eq (result, "hello world"); } END_TEST START_TEST (join...
ccidral/ace
test/check_ace_string.c
C
mit
1,191
/**\file * * \copyright * Copyright (c) 2008-2014, Kyuba Project Members * \copyright * 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 ...
kyuba/curie
src/test-case/time.c
C
mit
1,481
/*! @file stddebug_windows_ntddk.c @abstract Common debugging utilities @copyright (c) 1997-2017 by Matt Slot <mattslot@gmail.com>. 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 wi...
mattslot/stddebug
stddebug_windows_ntddk.c
C
mit
6,294
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <assert.h> #include "treestore.h" #ifdef WIN32 #include <malloc.h> #else #include <alloca.h> #endif struct ts_node *ts_text_load(struct ts_io *io); int ts_text_save(struct ts_node *tree, struct ts_io *io); static long io_read(void...
jtsiomb/libtreestore
src/treestore.c
C
mit
15,446
/* * f_sdp.c -- USB HID Serial Download Protocol * * Copyright (C) 2017 Toradex * Author: Stefan Agner <stefan.agner@toradex.com> * * This file implements the Serial Download Protocol (SDP) as specified in * the i.MX 6 Reference Manual. The SDP is a USB HID based protocol and * allows to download images directl...
guileschool/BEAGLEBONE-tutorials
BBB-firmware/u-boot-v2018.05-rc2/drivers/usb/gadget/f_sdp.c
C
mit
17,640
/* ** FFI C call handling. ** Copyright (C) 2005-2013 Mike Pall. See Copyright Notice in luajit.h */ #include "lj_obj.h" #if LJ_HASFFI #include "lj_gc.h" #include "lj_err.h" #include "lj_str.h" #include "lj_tab.h" #include "lj_ctype.h" #include "lj_cconv.h" #include "lj_cdata.h" #include "lj_ccall.h"...
wenhulove333/ScutServer
Sample/ClientSource/scripting/lua/luajit/LuaJIT-2.0.1/src/lj_ccall.c
C
mit
26,581
/* Copyright (c) 2012 Martin Sustrik All rights reserved. Copyright 2015 Garrett D'Amore <garrett@damore.org> 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 restricti...
gridmq/gridmq
t/tcp.c
C
mit
7,700
#include "skynet.h" #include "skynet_monitor.h" #include "skynet_server.h" #include "skynet.h" #include "atomic.h" #include <stdlib.h> #include <string.h> struct skynet_monitor { int version; int check_version; uint32_t source; uint32_t destination; }; struct skynet_monitor *skynet_monitor_new() { struct sky...
djianq/Game
skynet-src/skynet_monitor.c
C
mit
1,046
/* * Generated by util/mkerr.pl DO NOT EDIT * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or...
koobonil/Boss2D
Boss2D/addon/_old/openssl-1.1.0c_for_boss/crypto/dso/dso_err.c
C
mit
4,051
/*********************************************************************/ /* */ /* Equilibrate matrix A using LAPACK subroutine SGEEQU */ /* */ /* -- Created ...
LighthouseHPC/lighthouse
src/Dlighthouse/static/download/2013111218_36_56.c
C
mit
4,288
#include <stdio.h> #include <assert.h> #include "dlx.h" struct node { struct node *l, *r, *u, *d; struct column *c; char rowname[24]; }; struct column { struct node node; int len; char name[4]; struct column *prev, *next; }; struct dlx { struct column h; struct column cols[324]; struct node nodes...
pbevin/pseudoku-generator
ext/pseudoku/dlx.c
C
mit
6,385
#include <assert.h> #include "cm_err.h" #include "cm_object.h" #include "cm_manager.h" #include "cm_manager_obj.h" struct cm_manager * cm_manager_new(cm_err_t *err) { return cm_manager_obj_new(NULL, err); } void cm_manager_new_async(cm_manager_new_done done, void *userdata) { cm_manager_obj_new_async(NULL, don...
mrinaldhillon/libcellular-modem
cm-manager-mm/cm_manager.c
C
mit
2,772
/** * rijndael-alg-fst.c * * @version 3.0 (December 2000) * * Optimised ANSI C code for the Rijndael cipher (now AES) * * @author Vincent Rijmen <vincent.rijmen@esat.kuleuven.ac.be> * @author Antoon Bosselaers <antoon.bosselaers@esat.kuleuven.ac.be> * @author Paulo Barreto <paulo.barreto@terra.com.br> * * Th...
olorcain/DissertationSubmission
appliedHISP/rijndael-alg-fst.c
C
mit
63,966
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* card_to_rom.c :+: :+: :+: ...
htindon/CodeEval
C/card_to_rom.c
C
mit
1,799
/* * * Servo.c * * Created: April 30 2016 * Authors: Yuqi (Mark) Zhao and Claire Chen */ #include "Servo.h" /* * Configure ports PTD0 and PTD2 as the GPIO output pins for both servos. */ void servo_init(void){ //Enable power to port D SIM->SCGC5 |= SIM_SCGC5_PORTD_MASK; //Set up each pin as GPIO output PORTD...
markz114/Drumroll-Bot
Servo.c
C
mit
2,686
/* FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. *************************************************************************** * ...
trfiladelfo/tdk
sw-ek-tm4c123gxl/third_party/FreeRTOS/Demo/CORTEX_LM3Sxxxx_Rowley/webserver/uIP_Task.c
C
mit
10,490
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/times.h> #include "clock.h" /* Routines for using cycle counter */ /* Detect whether running on Alpha */ #ifdef __alpha #define IS_ALPHA 1 #else #define IS_ALPHA 0 #endif /* Detect whether running on x86 */ #ifdef __i386__ #define IS_x86 1 #el...
lihux/LHiOSAccumulates
LHiOSAccumulatesInObjectiveC/LHiOSAccumulatesInObjectiveC/LCTabs/LCDemo/LCDComputerSystem/LCDComputerSystemChapter6/clock.c
C
mit
4,737
#include "sr-main.h" #include <sys/resource.h> #define HOST_NAME_SIZE 64 static int init_sockaddr_in(struct sockaddr_in *sa_in, char *host, char *port) { struct hostent *he = gethostbyname(host); if (he == NULL || he->h_addr_list == NULL || (he->h_addr_list)[0] == NULL ) { log_msg(ERROR, "%s: gethost...
hulu/statsd-router
sr-init.c
C
mit
12,688
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #ifdef _OPENACC #include <openacc.h> #endif // Utility routine for allocating a two dimensional array float **malloc_2d(int nx, int ny) { float **array; int i; array = (float **) malloc(nx * sizeof(float *)); array[0] = (float ...
csc-training/openacc
exercises/jacobi/c/jacobi.c
C
mit
3,595
#include "pi_SharedTypes_0.h" #include "GenericSharedDeclarations.h" #include "queue_SharedTypes_0.h" void pi_SharedTypes_0_mutexDestroy_3(pi_SharedTypes_0_FlaggedQueue_t* var) { pthread_mutex_destroy(&var->itemCount.mutex); queue_SharedTypes_0_mutexDestroy_2(&var->queue); pthread_mutex_destroy(&var->isFull.m...
aloifolia/ParallelMbeddr
generated_programs/pi/optimized/pi_parallel_sync_extended/pi_SharedTypes_0.c
C
mit
2,126
#include "mex.h" #include <math.h> #include "float.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray*prhs[]) { // // Usage // ----- // flag = same_diff(data,tolerance_multiplier) // // - data is assumed to be 1d (this could be verified ...) // /...
JimHokanson/matlab_standard_library
+sl/+array/+similiarity/private/sameDiff.c
C
mit
3,078
/* FreeRTOS V7.4.0 - Copyright (C) 2013 Real Time Engineers Ltd. FEATURES AND PORTS ARE ADDED TO FREERTOS ALL THE TIME. PLEASE VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. *************************************************************************** * ...
andyOsaft/02_SourceCode
freeRTOS/FreeRTOSV7.4.0/FreeRTOSV7.4.0/FreeRTOS/Demo/NEC_V850ES_IAR/LowLevelInit/LowLevelInit.c
C
mit
5,917
/* * $QNXLicenseC: * Copyright 2008, QNX Software Systems. * * Licensed under the Apache License, Version 2.0 (the "License"). You * may not reproduce, modify or distribute this software except in * compliance with the License. You may obtain a copy of the License * at: http://www.apache.org/licenses/LICENS...
guileschool/BEAGLEBONE-tutorials
BBB-firmware/qnxbsp-nto650-ti-beaglebone-sp1/src/hardware/startup/lib/arm/hw_rtc_sa1100.c
C
mit
1,896
#include <stdio.h> #include <stdlib.h> int main() { int over,chislo,temp,i=0,counter,chisloto_org; char hex[20]; scanf("%d",&chislo); chisloto_org=chislo; do{ chislo=chisloto_org; i=0; while(chislo!=0){ temp=chislo%16; switch(temp){ case 0: hex[i]='0'; break; case 1: hex[i]='1'; b...
Ivan-Killer/po-homework
2015-2016/A/05/07/task3.c
C
mit
1,159
#if 1 int BTESH2_DecodeOpcodeVLIW(BTESH2_CpuState *cpu, BTESH2_Opcode **rop1, BTESH2_Opcode **rop2, BTESH2_Opcode **rop3, btesh2_vaddr pc, int *rstep) { BTESH2_Opcode *op1, *op2, *op3; btesh2_vaddr pc1, pc2, pc3; u64 vwop; u32 vopw1, vopw2, vopw3; u16 vw1, vw2, vw3, vw4; u16 opw1, opw2; int isds; int i, j...
cr88192/bgbtech_shxemu
sh2emu/btesh2/btesh2_dec_vliw.c
C
mit
9,626
//***************************************************************************** // // uartstdio.c - Utility driver to provide simple UART console functions. // // Copyright (c) 2007-2015 Texas Instruments Incorporated. All rights reserved. // Software License Agreement // // Texas Instruments (TI) is supplying this so...
imbinary/SeniorDesign
ravvnuart.c
C
mit
54,622
#include <stdlib.h> #include "tick.h" #include "hw_config.h" #include "typedef.h" static volatile U32 internalTicks; #define TICK__DisableInt() NVIC_Config(SysTick_IRQn, TICK_PRIORITY, DISABLE); #define TICK__EnableInt() NVIC_Config(SysTick_IRQn, TICK_PRIORITY, ENABLE); typedef struct _TICK{ struct _TICK* next; ...
tuanpmt/led-rgb-audio-spectrum
audio_spectrum-firmware/src/tick.c
C
mit
3,061