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 |
|---|---|---|---|---|---|
/*
* Zorro Device Name Tables
*
* Copyright (C) 1999--2000 Geert Uytterhoeven
*
* Based on the PCI version:
*
* Copyright 1992--1999 Drew Eckhardt, Frederic Potter,
* David Mosberger-Tang, Martin Mares
*/
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/zorro.h>
str... | AiJiaZone/linux-4.0 | virt/drivers/zorro/names.c | C | gpl-2.0 | 2,350 |
/*
HELPER.C
========
(c) Paul Griffiths, 1999
Email: mail@paulgriffiths.net
Implementation of sockets helper functions.
Many of these functions are adapted from, inspired by, or
otherwise shamelessly plagiarised from "Unix Network
Programming", W Richard Stevens (Prentice Hall).
*/
... | nevik-xx/psl1ght | samples/network/echoserv/source/helper.c | C | mit | 1,350 |
/**********************************************************************
variable.c -
$Author$
created at: Tue Apr 19 23:55:15 JST 1994
Copyright (C) 1993-2007 Yukihiro Matsumoto
Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
Copyright (C) 2000 Information-technology Promotion Agency,... | tauplatform/tau | platform/shared/ruby/variable.c | C | mit | 69,838 |
/* Copyright (c) 2013-2014 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "str.h"
#include "strfuncs.h"
#include "net.h"
#include "uri-util.h"
#include "http-url.h"
#include "http-request.h"
/*
* HTTP URL parser
*/
struct http_url_parser {
struct uri_parser parser;
enum http_url_pa... | rplessl/dovecot-pop-uidl-proxy | src/lib-http/http-url.c | C | mit | 14,995 |
#include "ruby_vips.h"
static ID id_perceptual, id_relative_colorimetric, id_saturation,
id_absolute_colorimetric;
/*
* call-seq:
* im.lab_to_lch -> image
*
* Turn Lab to LCh.
*/
VALUE
img_lab_to_lch(VALUE obj)
{
RUBY_VIPS_UNARY(im_Lab2LCh);
}
/*
* call-seq:
* im.lch_to_lab -> image
*
* Turn ... | cloudinary/ruby-vips | ext/image_colour.c | C | mit | 10,417 |
#include "mycrypt.h"
#include <signal.h>
#define TAB_SIZE 32
struct _cipher_descriptor cipher_descriptor[TAB_SIZE] = {
{ NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL },
{ NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL },
{ NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL },
{ NULL, 0, 0, 0, 0, 0, NULL, NU... | kocubinski/opentnl | libtomcrypt/crypt.c | C | gpl-2.0 | 12,681 |
/* Missing data interpolation with nonstationary filters */
/*
Copyright (C) 2010 University of Texas at Austin
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 Licen... | TobbeTripitaka/src | user/yliu/nmis.c | C | gpl-2.0 | 1,569 |
/*
* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, 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 not... | AngSanley/AngsaKernel_armani | drivers/staging/prima/CORE/MAC/src/pe/lim/limApi.c | C | gpl-2.0 | 70,871 |
/*
* Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com
* Written by Alex Tomas <alex@clusterfs.com>
*
* Architecture independence:
* Copyright (c) 2005, Bull S.A.
* Written by Pierre Peiffer <pierre.peiffer@bull.net>
*
* This program is free software; you can redistribute it and/or modi... | vaginessa/Googy-Max3-Kernel | fs/ext4/extents.c | C | gpl-2.0 | 137,151 |
/*
* Linux Wireless Extensions support
*
* Copyright (C) 1999-2010, Broadcom Corporation
*
* Unless you and Broadcom execute a separate written software license
* agreement governing use of this software, this software is licensed to you
* under the terms of the GNU General Public License version 2 (the "G... | Krylon360/kernel_t759 | drivers/net/wireless/bcm4329/src/wl/sys/wl_iw.c | C | gpl-2.0 | 216,119 |
/*
* (C) Copyright 2003 Motorola Inc.
* Modified by Xianghua Xiao, X.Xiao@motorola.com
*
* (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* ... | niamster/uboot-marvell-openrd-ultimate | cpu/mpc85xx/cpu_init.c | C | gpl-2.0 | 5,563 |
/* Copyright (C) 1997-2017 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C 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 ... | NicoleRobin/glibc | sysdeps/unix/sysv/linux/setgroups.c | C | gpl-2.0 | 1,235 |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* 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 la... | openshine/ModemManager | libmm-glib/mm-sms-properties.c | C | gpl-2.0 | 21,343 |
/*
* "SYSRQ" target extension for Xtables
* Copyright © Jan Engelhardt, 2008 - 2012
*
* Based upon the ipt_SYSRQ idea by Marek Zalem <marek [at] terminus sk>
*
* Security additions John Haxby <john.haxby [at] oracle com>
*
* This program is free software; you can redistribute it and/or
* modify it under the te... | mickvav/xtables-addons | extensions/xt_SYSRQ.c | C | gpl-2.0 | 10,046 |
/*
* This file is part of MPlayer.
*
* MPlayer 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.
*
* MPlayer is distributed in th... | ajeet17181/mplayer-android | command.c | C | gpl-2.0 | 120,505 |
/*
* Virtualized GPU Graphics
*
* Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
*
* 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 published by the Free Software Foundation.
*
* Thi... | Jetson-TX1-AndroidTV/android_kernel_jetson_tx1_hdmi_primary | drivers/gpu/nvgpu/vgpu/gr_vgpu.c | C | gpl-2.0 | 23,268 |
#include <runtime/lib.h>
#include <kernel/uos.h>
#include <kernel/internal.h>
#include <pci/pci.h>
static unsigned long pcibios_find_entry (void)
{
/* This is the standard structure used to identify the entry point
* to the BIOS32 Service Directory. */
typedef union {
struct {
unsigned long signature; /* _32_... | tmg82/uos-embedded | sources/pci/pcibios.c | C | gpl-2.0 | 7,615 |
int main (unsigned int __nocast gfp_mask, int x) {
buf = kmalloc(sizeof *send_buf + buf_size, gfp_mask);
}
| miguelinux/coccinelle | tests/nocast.c | C | gpl-2.0 | 110 |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2008 Advanced Micro Devices, Inc.
* Copyright (C) 2008-2010 coresystems GmbH
*
* 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 Found... | tidatida/coreboot | src/southbridge/nvidia/mcp55/azalia.c | C | gpl-2.0 | 7,023 |
/**
* @file 000.main.c
* @author The ArchC Team
* http://www.archc.org/
*
* Computer Systems Laboratory (LSC)
* IC-UNICAMP
* http://www.lsc.ic.unicamp.br
*
* @version 1.0
* @date Mon, 19 Jun 2006 15:33:21 -0300
* @brief It is a simple main functi... | wallento/ArchC | acstone/000.main.c | C | gpl-2.0 | 1,411 |
/* Copyright (c) 2013-2014, The Linux Foundation. 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... | android-legacy/kernel | arch/arm/mach-msm/clock-rpm-8974.c | C | gpl-2.0 | 15,027 |
/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this ... | simar7/singhdroid | camera/QCamera2/stack/mm-camera-test/src/mm_qcamera_app.c | C | gpl-2.0 | 27,512 |
/* GStreamer
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
* Copyright (C) <2004> Thomas Vander Stichele <thomas at apestaart dot org>
* Copyright (C) <2011> Collabora Ltd.
* Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
*
* This library is free software; you can redistribute it and/... | alessandrod/gst-plugins-base | gst/tcp/gsttcpclientsrc.c | C | gpl-2.0 | 14,906 |
/**
* host.c - DesignWare USB3 DRD Controller Host Glue
*
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com
*
* Authors: Felipe Balbi <balbi@ti.com>,
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... | itgb/opCloudRouter | qca/src/linux/drivers/usb/dwc3/host.c | C | gpl-2.0 | 3,229 |
/*
* vgameobjs
*
* contains all of the vortex game objects and rendering
*
* 2005-12 Scott Lawrence
*
* 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 Lice... | ysei/podzilla2 | modules/vortex/vgamobjs.c | C | gpl-2.0 | 15,626 |
/*
* DA7213 ALSA SoC Codec Driver
*
* Copyright (c) 2013 Dialog Semiconductor
*
* Author: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
* Based on DA9055 ALSA SoC codec driver.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public Licen... | dct2012/chromeos-3.14 | sound/soc/codecs/da7213.c | C | gpl-2.0 | 53,419 |
/*
* Copyright (C) 2003 Colin Walters <walters@verbum.org>
*
* 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.... | dardevelin/rhythmbox-gnome-fork | tests/test-rhythmdb-tree-serialization.c | C | gpl-2.0 | 4,024 |
/*
* uvc_video.c -- USB Video Class driver - Video handling
*
* Copyright (C) 2011 Freescale Semiconductor, Inc.
* Copyright (C) 2005-2009
* Laurent Pinchart (laurent.pinchart@skynet.be)
*
* This program is free software; you can redistribute it and/or modify
* it under the t... | WXrock/imx53_kernel | drivers/media/video/uvc/uvc_video.c | C | gpl-2.0 | 35,176 |
/*
* Copyright (c) 2014 Intel Corporation, Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this s... | soniczhao/libfabric | prov/sockets/src/sock_poll.c | C | gpl-2.0 | 5,612 |
/* This file is part of the GNU plotutils package. Copyright (C) 1995,
1996, 1997, 1998, 1999, 2000, 2005, 2008, Free Software Foundation, Inc.
The GNU plotutils package is free software. You may redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free S... | nolta/biggles | plotutils/libplot/p_openpl.c | C | gpl-2.0 | 1,529 |
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
int
main(int argc, const char *argv[])
{
int pid;
int fd = open("/dev/watchdog", O_WRONLY);
if (fd == -1) {
perror("watchdog");
exit(1);
}
while (1) {
pid = fork();
if (pid)
wait(... | lytsing/ytht | local_utl/watchdog.c | C | gpl-2.0 | 411 |
/*
* Implement driver of AML1216 PMU
* Author: chunjian.zheng@amlogic.com
*
*/
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/device.h>
#include <linux/workqueue.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <lin... | ndufresne/linux-meson | drivers/amlogic/power/aml_pmu/aml1216-sply.c | C | gpl-2.0 | 54,800 |
/*Qualcomm Secure Execution Environment Communicator (QSEECOM) driver
*
* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
* Copyright (c) 2014 Sony Mobile Communications Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public... | Tommy-Geenexus/android_kernel_sony_msm8974_togari_5.x | drivers/misc/qseecom.c | C | gpl-2.0 | 127,582 |
/*
* misc.c -- contains generic purposes routines
* Part of the GNU netcat project
*
* Author: Giovanni Giacobbi <giovanni@giacobbi.net>
* Copyright (C) 2002 - 2004 Giovanni Giacobbi
*
* $Id: misc.c,v 1.38 2004-10-24 01:33:57 themnemonic Exp $
*/
/**************************************************************... | thinker0/netcat-code | src/misc.c | C | gpl-2.0 | 15,444 |
/* arch/sparc64/kernel/process.c
*
* Copyright (C) 1995, 1996, 2008 David S. Miller (davem@davemloft.net)
* Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be)
* Copyright (C) 1997, 1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
*/
/*
* This file handles the architecture-dependent parts of process handli... | lexmar93/Siyah-i777 | arch/sparc/kernel/process_64.c | C | gpl-2.0 | 20,624 |
/* 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 th... | OMFGBKANG/nk2 | drivers/video/msm/mipi_novatek.c | C | gpl-2.0 | 8,891 |
/* BFD library support routines for the Pico Java architecture.
Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
Hacked by Steve Chamberlain of Transmeta. sac@pobox.com
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it and/or modify
it ... | durandj/devkitadv | binutils-2.13.2.1/bfd/cpu-pj.c | C | gpl-2.0 | 2,254 |
/*
* Copyright 1996, University Corporation for Atmospheric Research
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
*/
/* $Id: var.c,v 1.144 2010/05/30 00:50:35 russ Exp $ */
#include "nc.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <limits.h>
#include "ncx.h"... | qingu/WRF-Libraries | src/netcdf-4.2/libsrc/var.c | C | gpl-2.0 | 13,742 |
/***********************************************************************************
Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
(c) Copyright 1996 - 2002 Gary Henderson (gary.henderson@ntlworld.com),
Jerremy Koot (jkoot@snes9x.com)
(c) Copyright 2002 - 200... | cy33hc/Snes9xVITA | src/tile.c | C | gpl-2.0 | 40,652 |
/*
* Driver for keys on GPIO lines capable of generating interrupts.
*
* Copyright 2005 Phil Blundell
*
* 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 <linux/modu... | skelton/G5_444 | drivers/input/keyboard/rk29_keys.c | C | gpl-2.0 | 15,726 |
/*
* fs/f2fs/dir.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 <li... | krash86/android_kernel_google_pixel | fs/f2fs/dir.c | C | gpl-2.0 | 22,307 |
#include "IDR_parameter_estimation.h"
double RationalApproximation(double t)
{
// Abramowitz and Stegun formula 26.2.23.
// The absolute value of the error should be less than 4.5 e-4.
double c[] = {2.515517, 0.802853, 0.010328};
double d[] = {1.432788, 0.189269, 0.001308};
return t - ((c[2]*t + c[... | nboley/idr | idr/IDR_parameter_estimation.c | C | gpl-2.0 | 12,938 |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2007 Advanced Micro Devices, Inc.
*
* 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.
*
* This program is distr... | michaelforney/coreboot | src/northbridge/amd/lx/raminit.c | C | gpl-2.0 | 23,082 |
/*
* kernel/sched/core.c
*
* Kernel scheduler and related syscalls
*
* Copyright (C) 1991-2002 Linus Torvalds
*
* 1996-12-23 Modified by Dave Grothe to fix bugs in semaphores and
* make semaphores SMP safe
* 1998-11-19 Implemented schedule_timeout() and related stuff
* by Andrea Arcangeli
* 2002-01... | farchanrifai/kernel_cancro | kernel/sched/core.c | C | gpl-2.0 | 211,841 |
/* ----> DO NOT REMOVE THE FOLLOWING NOTICE <----
Copyright (c) 2014-2021 Tuxera US Inc.
All Rights Reserved Worldwide.
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
... | datalightinc/reliance-edge | os/u-boot/services/osuidgid.c | C | gpl-2.0 | 3,857 |
/*
* tkWinKey.c --
*
* This file contains X emulation routines for keyboard related
* functions.
*
* Copyright (c) 1995 Sun Microsystems, Inc.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* RCS: @(#) $Id: tkWinKey.c 144... | SayCV/tools-SourceNavigator-NG | tk/win/tkWinKey.c | C | gpl-2.0 | 20,098 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... | ngcurrier/ProteusCFD | TPLs/hdf5/hdf5-1.10.2/test/ttime.c | C | gpl-3.0 | 7,602 |
/*
===========================================================================
Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company.
This file is part of Spearmint Source Code.
Spearmint Source Code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public Licens... | zturtleman/spearmint | code/qcommon/bsp_fakk.c | C | gpl-3.0 | 15,066 |
/*
* Generated by asn1c-0.9.24 (http://lionet.info/asn1c)
* From ASN.1 module "InformationElements"
* found in "../asn/InformationElements.asn"
* `asn1c -fcompound-names -fnative-types`
*/
#include "DefaultConfigForCellFACH.h"
static asn_TYPE_member_t asn_MBR_DefaultConfigForCellFACH_1[] = {
{ ATF_NOFLAGS, 0,... | BramBonne/snoopsnitch-pcapinterface | contrib/libosmo-asn1-rrc/src/DefaultConfigForCellFACH.c | C | gpl-3.0 | 2,536 |
/*
LPCUSB, an USB device driver for LPC microcontrollers
Copyright (C) 2006 Bertrik Sikken (bertrik@sikken.nl)
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the a... | seandepagnier/openmag | src/hacks/lpc214xusb/usbstdreq.c | C | gpl-3.0 | 12,068 |
/* -*- buffer-read-only: t -*- vi: set ro: */
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
/* Set file access and modification times.
Copyright (C) 2009-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... | SmartisanTech/T1Tar | gnu/fdutimensat.c | C | gpl-3.0 | 2,082 |
/**CFile****************************************************************
FileName [bacWriteVer.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Hierarchical word-level netlist.]
Synopsis [Verilog writer.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Dat... | Kinghsy/Approxiamate-Logic-Synthesis | lib/abc/src/base/bac/bacWriteVer.c | C | gpl-3.0 | 26,470 |
/*
Unix SMB/CIFS implementation.
Samba kpasswd implementation
Copyright (c) 2005 Andrew Bartlett <abartlet@samba.org>
Copyright (c) 2016 Andreas Schneider <asn@samba.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Lice... | ceph/samba | source4/kdc/kpasswd-service.c | C | gpl-3.0 | 9,054 |
/* shquote - functions to quote and dequote strings */
/* Copyright (C) 1999-2015 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
Bash is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Fre... | JINWOO-J/bash_history | lib/sh/shquote.c | C | gpl-3.0 | 9,037 |
/*
* Generated by asn1c-0.9.24 (http://lionet.info/asn1c)
* From ASN.1 module "InformationElements"
* found in "../asn/InformationElements.asn"
* `asn1c -fcompound-names -fnative-types`
*/
#include "InterFreqCellInfoSI-List-HCS-RSCP.h"
static asn_TYPE_member_t asn_MBR_InterFreqCellInfoSI_List_HCS_RSCP_1[] = {
... | E3V3A/snoopsnitch | contrib/libosmo-asn1-rrc/src/InterFreqCellInfoSI-List-HCS-RSCP.c | C | gpl-3.0 | 2,870 |
/**
******************************************************************************
* @file spi_if.c
* @author MCD Application Team
* @version V4.0.0
* @date 21-January-2013
* @brief specific media access Layer for SPI flash
*************************************************************************... | virtmedia/ultramicron | STM32_USB-FS-Device_Lib_V4.0.0/Projects/Device_Firmware_Upgrade/src/spi_if.c | C | gpl-3.0 | 3,905 |
#include <stdio.h>
int main(void){
int i,j,col,row,temp;
printf("Enter col,row");
scanf("%d%d",&col,&row);
int a[col][row];
for (i = 0; i <col ; i++) {
for (j = 0; j <row ; j++) {
a[i][j]=i*col+j+1;
}
}
for (i = 0; i <col ; i++) {
for (j = 0; j <row ; j++)... | Great-Li-Xin/00864088 | [典型算法]/矩阵转置.c | C | gpl-3.0 | 628 |
/* Copyright 1990-2011, Jsoftware Inc. All rights reserved. */
/* License in license.txt. */
/* */
/* Adverbs: Reduce (Insert) and Outer Product */
#include "j.h"
#include "vasm.h"
#i... | jaredlwong/gdj | src/ar.c | C | gpl-3.0 | 24,724 |
/*--------------------------------------------------------------------
(C) Copyright 2006-2012 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 informa... | robbriggs/masters-project-mercurium | tests/01_parser.dg/success_140.c | C | gpl-3.0 | 2,361 |
/*
* This file is part of libFirm.
* Copyright (C) 2012 University of Karlsruhe.
*/
/**
* @file
* @brief Entry point to the representation of a whole program.
* @author Goetz Lindenmaier, Michael Beck
* @date 2000
*/
#include "ident_t.h"
#include "irprog_t.h"
#include "irgraph_t.h"
#include "array.h"
... | 8l/libfirm | ir/ir/irprog.c | C | lgpl-2.1 | 6,142 |
/*
* Copyright(C) 1999-2020 National Technology & Engineering Solutions
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
* NTESS, the U.S. Government retains certain rights in this software.
*
* See packages/seacas/LICENSE for details
*/
/***************************************************... | BalticPinguin/libmesh | contrib/exodusii/v8.11/exodus/test/testrdd.c | C | lgpl-2.1 | 26,769 |
/*
* SpanDSP - a series of DSP components for telephony
*
* at_interpreter_tests.c - Tests for the AT interpreter.
*
* Written by Steve Underwood <steveu@coppice.org>
*
* Copyright (C) 2004, 2005, 2006 Steve Underwood
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or ... | litalidev/sipxtapi | sipXmediaLib/contrib/spandsp-0.0.6/tests/at_interpreter_tests.c | C | lgpl-2.1 | 40,079 |
/* tracked memory
*
* 2/11/99 JC
* - from im_open.c and callback.c
* - malloc tracking stuff added
* 11/3/01 JC
* - im_strncpy() added
* 20/4/01 JC
* - im_(v)snprintf() added
* 6/7/05
* - more tracking for DEBUGM
* 20/10/06
* - return NULL for size <= 0
* 11/5/06
* - abort() on malloc() failure with D... | leiyangyou/libvips | libvips/iofuncs/memory.c | C | lgpl-2.1 | 11,074 |
/** @file patest_in_overflow.c
@ingroup test_src
@brief Count input overflows (using paInputOverflow flag) under
overloaded and normal conditions.
This test uses the same method to overload the stream as does
patest_out_underflow.c -- it generates sine waves until the cpu load
exceeds a certain level. H... | litalidev/sipxtapi | sipXmediaLib/contrib/portaudio_v19/test/patest_in_overflow.c | C | lgpl-2.1 | 8,430 |
/* 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/external/matting-levin.c | C | lgpl-3.0 | 50,657 |
/*====================================================================*
- 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 of source c... | renard314/tess-two | tess-two/jni/com_googlecode_leptonica_android/src/prog/pngio_reg.c | C | apache-2.0 | 16,963 |
#include <string.h>
#include "csf.h"
#include "csfimpl.h"
static const char * const openModes[3] = {
S_READ,
S_WRITE,
S_READ_WRITE
};
/* Return the access mode of m
* MopenPerm returns the permission.
* Note that M_WRITE is deprecated
*/
enum MOPEN_PERM MopenPerm(
const MAP *m)
{
return m->fileAccessMode;
... | jwoyame/node-gdal | deps/libgdal/gdal/frmts/pcraster/libcsf/mopen.c | C | apache-2.0 | 5,336 |
/*
* Copyright (c) 2012 - 2018, Nordic Semiconductor ASA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
... | punitvara/zephyr | ext/hal/nordic/nrfx/hal/nrf_nvmc.c | C | apache-2.0 | 3,630 |
/* coding.c
*
* Copyright (C) 2006-2017 wolfSSL Inc.
*
* This file is part of wolfSSL.
*
* wolfSSL 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... | weolar/miniblink49 | third_party/wolfssl/wolfcrypt/src/coding.c | C | apache-2.0 | 12,914 |
/*
* Copyright (c) 2019 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <device.h>
#include <drivers/sensor.h>
#include <stdio.h>
#include <sys/util.h>
#ifdef CONFIG_LIS2DW12_TRIGGER
static int lis2dw12_trig_cnt;
static void lis2dw12_trigger_handler(const struct device ... | galak/zephyr | samples/shields/x_nucleo_iks01a3/sensorhub/src/main.c | C | apache-2.0 | 7,860 |
#include "treecheck.h"
#include "ast.h"
#include <stdbool.h>
#include <stdio.h>
#include <assert.h>
typedef enum
{
CHK_OK, // Tree found and check
CHK_NOT_FOUND, // Possible AST node ids not found
CHK_ERROR // Error has occurred
} check_res_t;
typedef struct check_state_t
{
bool is_scope;
bool ... | darach/ponyc | src/libponyc/ast/treecheck.c | C | bsd-2-clause | 5,673 |
/*
* board-devkit8000.c - TimLL Devkit8000
*
* Copyright (C) 2009 Kim Botherway
* Copyright (C) 2010 Thomas Weber
*
* Modified from mach-omap2/board-omap3beagle.c
*
* Initial code: Syed Mohammed Khasim
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Ge... | andrewjylee/omniplay | linux-lts-quantal-3.5.0/arch/arm/mach-omap2/board-devkit8000.c | C | bsd-2-clause | 19,247 |
/*
* libEtPan! -- a mail stuff library
*
* Copyright (C) 2001, 2005 - DINH Viet Hoa
* 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 a... | disaykin/libetpan | src/low-level/pop3/mailpop3_socket.c | C | bsd-3-clause | 4,758 |
/* tz_image_attribute.h
*
* 11-Dec-2003 Initial write: Ting Zhao
*/
#include "tz_error.h"
#include "tz_image_lib.h"
#include "tz_image_attribute.h"
INIT_EXCEPTION
int Image_Channel_Number(const Image *image)
{
if (image->kind == COLOR) {
return 3;
} else {
return 1;
}
}
int Image_Pixel_Number(const... | tingzhao/branchtest | neurolabi/c/tz_image_attribute.c | C | bsd-3-clause | 557 |
/*
* pattern.c: Implemetation of the template match compilation and lookup
*
* Reference:
* http://www.w3.org/TR/1999/REC-xslt-19991116
*
* See Copyright for the status of this software.
*
* daniel@veillard.com
*/
/*
* TODO: handle pathological cases like *[*[@a="b"]]
* TODO: detect [number] at compilatio... | scheib/chromium | third_party/libxslt/src/libxslt/pattern.c | C | bsd-3-clause | 72,020 |
/*
* Licensed Materials - Property of IBM
*
* trousers - An open source TCG Software Stack
*
* (C) Copyright International Business Machines Corp. 2005, 2007
*
*/
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <inttypes.h>
#include "trousers/tss.h"
#include "trousers/t... | cooljeanius/trousers-0.3.11.2 | src/tspi/obj_rsakey.c | C | bsd-3-clause | 51,730 |
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
#include "reGlobalsExtern.h"
#include "reHelpers1.h"
| iPlantCollaborativeOpenSource/iRODS3.3-iplant | server/re/src/nre.reLib2.c | C | bsd-3-clause | 215 |
/*
* linux/net/sunrpc/svcsock.c
*
* These are the RPC server socket internals.
*
* The server scheduling algorithm does not always distribute the load
* evenly when servicing a single client. May need to modify the
* svc_xprt_enqueue procedure...
*
* TCP support is largely untested and may be a little slow. Th... | FrostedKernel/android_kernel_htc_msm8960 | net/sunrpc/svcsock.c | C | gpl-2.0 | 44,290 |
#include <unistd.h>
#include <barrelfish/barrelfish.h>
#include <barrelfish/deferred.h>
#include <assert.h>
int usleep(useconds_t usec)
{
errval_t err = barrelfish_usleep(usec);
assert(err_is_ok(err));
return 0;
}
unsigned int sleep(unsigned int seconds)
{
return usleep((useconds_t)seconds * 1000000);... | joe9/barrelfish | lib/posixcompat/sleep.c | C | mit | 323 |
#include <stdio.h>
int main(){
int i,temp,j,n[13];
char cur;
printf("Enter cards: \n");
for(i=0;i<13;i++){
scanf("%s",&cur);
if(cur>='2'&&cur<='9')
n[i]=cur-'0';
else
switch(cur){
case 'A': n[i]=14; break;
case 'K': n[i]=13... | vincho7012/po-homework | 2015-2016/A/25/03/task3.c | C | mit | 1,073 |
#include "board.h"
#include "mw.h"
// driver for SUMD receiver using UART2
#define SUMD_SYNCBYTE 0xA8
#define SUMD_MAX_CHANNEL 8
#define SUMD_BUFFSIZE (SUMD_MAX_CHANNEL * 2 + 5) // 6 channels + 5 -> 17 bytes for 6 channels
static bool sumdFrameDone = false;
static void sumdDataReceive(uint16_t c);
static ... | oroca/SkyRover_Projects | Firmware/SkyRover_Rev1/src/sumd.c | C | mit | 1,955 |
/*
* mutex7n.c
*
*
* --------------------------------------------------------------------------
*
* Pthreads-embedded (PTE) - POSIX Threads Library for embedded systems
* Copyright(C) 2008 Jason Schmidlapp
*
* Contact Email: jschmidlapp@users.sourceforge.net
*
*
* Based upon Pthreads-win... | LugosFingite/LudOS | userland/test_programs/pthread_tests/mutex7n.c | C | mit | 3,158 |
/* pam_mail module */
/*
* $Id: pam_env.c,v 1.2 2000/11/19 23:54:03 agmorgan Exp $
*
* Written by Dave Kinchlea <kinch@kinch.ark.com> 1997/01/31
* Inspired by Andrew Morgan <morgan@parc.power.net, who also supplied the
* template for this file (via pam_mail)
*/
#ifndef DEFAULT_CONF_FILE
#define DEFAULT_CONF_FI... | impedimentToProgress/UCI-BlueChip | snapgear_linux/lib/libpam/modules/pam_env/pam_env.c | C | mit | 22,393 |
/* def.c - define format of libpng.def
*
* Last changed in libpng version 1.6.16 [December 22, 2014]
* Copyright (c) 2011-2014 Glenn Randers-Pehrson
*
* This code is released under the libpng license.
* For conditions of distribution and use, see the disclaimer
* and license in png.h
*/
/* Write the export fil... | yhtml5/YHTML5-Work | work-summary/20170115-Annual-Summary/node_modules/node-pngquant-native/gyp/third-party/libpng/scripts/def.c | C | mit | 1,015 |
/*
* rwlock5_t.c
*
*
* --------------------------------------------------------------------------
*
* Pthreads-embedded (PTE) - POSIX Threads Library for embedded systems
* Copyright(C) 2008 Jason Schmidlapp
*
* Contact Email: jschmidlapp@users.sourceforge.net
*
*
* Based upon Pthreads-w... | LugosFingite/LudOS | userland/test_programs/pthread_tests/rwlock5_t.c | C | mit | 2,945 |
/* cpuinfo.h - parsing of /proc/cpuinfo for OpenCL device info
Copyright (c) 2012 Pekka Jääskeläinen
2013 Kalle Raiskila
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 Sof... | jrprice/pocl | lib/CL/devices/cpuinfo.c | C | mit | 9,864 |
/* linux/arch/arm/plat-s5p/bootmem.c
*
* Copyright (c) 2009 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* Bootmem helper functions
*
* 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 ... | tchaari/android_kernel_samsung_crespo | arch/arm/plat-s5p/bootmem.c | C | gpl-2.0 | 3,366 |
/*
* pci.c - Low-Level PCI Access in IA-64
*
* Derived from bios32.c of i386 tree.
*
* (c) Copyright 2002, 2005 Hewlett-Packard Development Company, L.P.
* David Mosberger-Tang <davidm@hpl.hp.com>
* Bjorn Helgaas <bjorn.helgaas@hp.com>
* Copyright (C) 2004 Silicon Graphics, Inc.
*
* Note: Above list of copyri... | rockly703/linux-2.6.18 | arch/ia64/pci/pci.c | C | gpl-2.0 | 20,230 |
/*************************************************************************/ /*!
@File apollo.c
@Copyright Copyright (c) Imagination Technologies Ltd. All Rights Reserved
@License Dual MIT/GPLv2
The contents of this file are subject to the MIT license as set out below.
Permission is hereby grante... | oguz298/FTL-Kernel | drivers/external_drivers/intel_media/graphics/rgx/kernel/drivers/staging/imgtec/apollo.c | C | gpl-2.0 | 43,510 |
/*
* This source code is part of
*
* G R O M A C S
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2009, The GROMACS Development Team
*
* Gromacs is a library for molecular simulation and trajectory analysis,
* written by Er... | tectronics/force-distribution-analysis.gromacs-4-5-3 | src/gmxlib/nonbonded/nb_kernel_power6/nb_kernel222_power6.c | C | gpl-2.0 | 5,939 |
/* Copyright (c) 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 hope th... | NitroKK/kernel_lge_iproj | drivers/media/video/msm_vidc/msm_vdec.c | C | gpl-2.0 | 24,141 |
/* Copyright (C) 2009, 2010, 2011
Free Software Foundation, Inc.
Contributed by Anatoly Sokolov (aesok@post.ru)
This file is part of GCC.
GCC 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; eit... | SanDisk-Open-Source/SSD_Dashboard | uefi/gcc/gcc-4.6.3/gcc/config/avr/avr-devices.c | C | gpl-2.0 | 17,374 |
/*
* ALSA driver for Intel ICH (i8x0) chipsets
*
* Copyright (c) 2000 Jaroslav Kysela <perex@suse.cz>
*
*
* This code also contains alpha support for SiS 735 chipsets provided
* by Mike Pieper <mptei@users.sourceforge.net>. We have no datasheet
* for SiS735, so the code is not fully functional.
*
*
*... | foxsat-hdr/linux-kernel | sound/pci/intel8x0.c | C | gpl-2.0 | 82,144 |
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/msvcrt/mbstring/mbsncpy.c
* PURPOSE: Copies a string to a maximum of n bytes or characters
* PROGRAMERS:
* Copyright 1999 Ariadne
* Copyright 1999 Alexandre Julliard
... | rickerliang/reactos-mirror2 | lib/sdk/crt/mbstring/mbsncpy.c | C | gpl-2.0 | 3,273 |
/*
* Simple IO scheduler plus
* Based on Noop, Deadline and V(R) IO schedulers.
*
* Copyright (C) 2012 Miguel Boton <mboton@gmail.com>
* (C) 2013 Boy Petersen <boypetersen@gmail.com>
*
*
* This algorithm does not do any kind of sorting, as it is aimed for
* aleatory access devices, but it does some basic ... | dtrail/JBX_Kernel | block/sioplus-iosched.c | C | gpl-2.0 | 11,594 |
/* Copyright (C) 2002-2017 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published b... | norov/glibc | nptl/pthread_condattr_destroy.c | C | gpl-2.0 | 1,045 |
/*
* Core driver for TI TPS6586x PMIC family
*
* Copyright (c) 2010 CompuLab Ltd.
* Mike Rapoport <mike@compulab.co.il>
*
* Based on da903x.c.
* Copyright (C) 2008 Compulab, Ltd.
* Mike Rapoport <mike@compulab.co.il>
* Copyright (C) 2006-2008 Marvell International Ltd.
* Eric Miao <eric.miao@marvell.com>
*
... | OESF/linux-linaro-natty | drivers/mfd/tps6586x.c | C | gpl-2.0 | 14,972 |
/**
* \file drm_info.c
* DRM info file implementations
*
* \author Ben Gamari <bgamari@gmail.com>
*/
/*
* Created: Sun Dec 21 13:09:50 2008 by bgamari@gmail.com
*
* Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
* Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
* Copyright 2008 Ben ... | gao-feng/net | drivers/gpu/drm/drm_info.c | C | gpl-2.0 | 8,073 |
/*
* Common pmac/prep/chrp pci routines. -- Cort
*/
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/capability.h>
#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/bootmem.h>
#includ... | ipwndev/DSLinux-Mirror | linux-2.6.x/arch/ppc/kernel/pci.c | C | gpl-2.0 | 50,660 |
/* { dg-do run } */
/* { dg-options "-O2 -mavx512vl -DAVX512VL" } */
/* { dg-require-effective-target avx512vl } */
#define AVX512F_LEN 256
#define AVX512F_LEN_HALF 128
#include "avx512f-vpcmpgtud-2.c"
#undef AVX512F_LEN
#undef AVX512F_LEN_HALF
#define AVX512F_LEN 128
#define AVX512F_LEN_HALF 128
#include "avx512f-v... | mageec/mageec-gcc | gcc/testsuite/gcc.target/i386/avx512vl-vpcmpgtud-2.c | C | gpl-2.0 | 334 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.