text
stringlengths
4
6.14k
/* bsd_log.h: Helps integrating BSD kernel code Copyright 2003, 2012 Red Hat, Inc. This file is part of Cygwin. This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ #ifndef _BSD_LOG_H #define _BSD_LOG_H #include <sys/types.h...
/* * Copyright (c) 2011, 2012, Atheros Communications Inc. * Copyright (c) 2014, I2SE GmbH * * 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 al...
/* Machine-specific POSIX semaphore type layouts. PowerPC version. Copyright (C) 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Paul Mackerras <paulus@au.ibm.com>, 2003. The GNU C Library is free software; you can redistribute it and/or modify it under the te...
#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <time.h> static int do_test (void) { time_t t = time (NULL); int i, ret = 0; double d; long int l; struct drand48_data data; unsigned short int buf[3]; srand48 ((long int) t); for (i = 0; i < 50; i++) if ((d = drand48 ()) < 0.0 ||...
/* * Mutexes: blocking mutual exclusion locks * * started by Ingo Molnar: * * Copyright (C) 2004, 2005, 2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> * * This file contains mutex debugging related internal declarations, * prototypes and inline functions, for the CONFIG_DEBUG_MUTEXES case. * More details ...
/* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ...
#ifndef bddtest_h #define bddtest_h void bddtest_suite(const char* name); int bddtest_test(const char*, int, const char*, int); void bddtest_start(const char*); void bddtest_end(); int bddtest_summary(); #define SUITE(x) { bddtest_suite(x); } #define TEST(x) { if (!bddtest_test(__FILE__, __LINE__, #x, (x))) return fa...
/* * Created by Phil on 28/10/2010. * Copyright 2010 Two Blue Cubes Ltd. All rights reserved. * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef TWOBLUECUBES_CATCH_ASSERTIONRESULT_H_INCLUDED #defin...
/* { dg-options "-O2 -march=5kc" } */ /* { dg-final { scan-assembler-times "\tmadd\t" 4 } } */ /* { dg-final { scan-assembler-not "\tmtlo\t" } } */ /* { dg-final { scan-assembler-times "\tmflo\t" 3 } } */ NOMIPS16 void f1 (int *a) { a[0] = a[0] * a[1] + a[2] * a[3]; } NOMIPS16 void f2 (int *a) { a[0] = a[0] * a[1] + a...
/************************************************************************ ** ** Copyright (C) 2012 John Schember <john@nachtimwald.com> ** Copyright (C) 2012 Dave Heiland ** ** This file is part of Sigil. ** ** Sigil is free software: you can redistribute it and/or modify ** it under the terms of the GNU General P...
/* * ccio-rm-dma.c: * DMA management routines for first generation cache-coherent machines. * "Real Mode" operation refers to U2/Uturn chip operation. The chip * can perform coherency checks w/o using the I/O MMU. That's all we * need until support for more than 4GB phys mem is needed. * * This is the...
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef PPAPI_TESTS_TEST_VIDEO_ENCODER_H_ #define PPAPI_TESTS_TEST_VIDEO_ENCODER_H_ #include <string> #include "ppapi/c/pp_stdint.h" #include "ppapi/c/p...
/* * Packet network namespace */ #ifndef __NETNS_PACKET_H__ #define __NETNS_PACKET_H__ #include <linux/list.h> #include <linux/spinlock.h> struct netns_packet { rwlock_t sklist_lock; struct hlist_head sklist; }; #endif /* __NETNS_PACKET_H__ */
/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB) */ /* * Copyright (c) 2016 Hisilicon Limited. * * 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 ...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_SCHEDULER_H_ #define GPU_COMMAND_BUFFER_SERVICE_GPU_SCHEDULER_H_ #include <queue> #include "base/atomic_ref_c...
#import <UIKit/UIKit.h> #import <GoogleMaps/GoogleMaps.h> @interface MarkerLayerViewController : UIViewController<GMSMapViewDelegate> @end
/* integration/qpsrt2.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Brian Gough * * 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...
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_SCHED_DEBUG_H #define _LINUX_SCHED_DEBUG_H /* * Various scheduler/task debugging interfaces: */ struct task_struct; struct pid_namespace; extern void dump_cpu_task(int cpu); /* * Only dump TASK_* tasks. (0 for all tasks) */ extern void show_state_filter(unsi...
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __PSTORE_BLK_H_ #define __PSTORE_BLK_H_ #include <linux/types.h> #include <linux/pstore.h> #include <linux/pstore_zone.h> /** * struct pstore_device_info - back-end pstore/blk driver structure. * * @flags: Refer to macro starting with PSTORE_FLAGS defined in * linu...
#include "../../../src/gui/kernel/qdesktopwidget_mac_p.h"
/* Copyright (c) 2010-2012, 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...
/* * 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 ...
#include QMK_KEYBOARD_H const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { LAYOUT_numbrero_numpad( KC_TRNS, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, KC_TRNS, KC_P7, KC_P8, KC_P9, KC_TRNS, KC_P4, KC_P5, KC_P6, KC_PPLS, KC_TRNS, KC_P1, KC_P2, KC_P3, KC_P0, KC_PDOT, KC...
/* * Copyright 2012 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkSnapShot_DEFINED #define SkSnapShot_DEFINED #include "SkADrawable.h" #include "SkImageDecoder.h" #include "SkMemberInfo.h" #include "SkString....
/* * Copyright (c) 2014, The Linux Foundation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the h...
#ifndef _ASM_POWERPC_TERMBITS_H #define _ASM_POWERPC_TERMBITS_H /* * 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. ...
/* * copyright (c) 2003 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; either * version 2.1 of the License, or (at your option) any l...
/* Copyright 2020 Erkki Halinen & Toni Johansson * * 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 progr...
/* * Copyright (c) 1999 * Boris Fomitchev * * This material is provided "as is", with absolutely no warranty expressed * or implied. Any use is at your own risk. * * Permission to use or copy this software for any purpose is hereby granted * without fee, provided the above notices are retained on all copies. *...
/* Copyright (c) 2010-2011, 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...
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2012-2013 Samsung Electronics Co., Ltd. */ #ifndef _EXFAT_RAW_H #define _EXFAT_RAW_H #include <linux/types.h> #define BOOT_SIGNATURE 0xAA55 #define EXBOOT_SIGNATURE 0xAA550000 #define STR_EXFAT "EXFAT " /* size should be 8 */ #define EXFAT_MAX...
#ifndef _ASM_POWERPC_SOCKET_H #define _ASM_POWERPC_SOCKET_H /* * 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 file is part of the Micro Python project, http://micropython.org/ */ /** ****************************************************************************** * @file USB_Device/CDC_Standalone/Inc/usbd_conf.h * @author MCD Application Team * @version V1.0.1 * @date 26-February-2014 * ...
/* * * (C) COPYRIGHT 2011-2012 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software * Foundation, and any use by you of this program is subject to the terms * of such GNU licence....
// SPDX-License-Identifier: GPL-2.0-or-later /* * Preemptible hypercalls * * Copyright (C) 2014 Citrix Systems R&D ltd. */ #include <linux/sched.h> #include <xen/xen-ops.h> #ifndef CONFIG_PREEMPT /* * Some hypercalls issued by the toolstack can take many 10s of * seconds. Allow tasks running hypercalls via the...
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-ipa-icf" } */ __attribute__ ((noinline)) int foo(int x) { int c = x; if (x > 10) c += 2; else c -= 3; return x; } __attribute__ ((noinline)) int bar(int y) { int d = y; if (y > 10) d += 2; else d -= 3; return d; } int main() { ...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_WEB_IO_OPERATORS_H_ #define WEBKIT_GLUE_WEB_IO_OPERATORS_H_ #include <iosfwd> #include "build/build_config.h" namespace WebKit ...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_OMNIBOX_POPUP_VIEW_H_ #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_OMNIBOX_POPUP_VIEW_H_ #pragma once #i...
/* Copyright (C) 2002 Free Software Foundation, Inc. Tests various diagnostics about a bit-field's type and width. Source: Neil Booth, 26 Jan 2002. */ /* { dg-options "-pedantic -std=gnu89" } */ enum foo {e1 = 0, e2, e3, e4, e5}; int x; typedef unsigned int ui; struct bf1 { unsigned int a: 3.5; /* { dg-e...
/* udis86 - libudis86/syn-att.c * * Copyright (c) 2002-2009 Vivek Thampi * 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 c...
/* * Copyright (c) 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 * list of...
// SPDX-License-Identifier: GPL-2.0 /* * MDIO I2C bridge * * Copyright (C) 2015 Russell King */ #ifndef MDIO_I2C_H #define MDIO_I2C_H struct device; struct i2c_adapter; struct mii_bus; struct mii_bus *mdio_i2c_alloc(struct device *parent, struct i2c_adapter *i2c); #endif
/* * STMicroelectronics accelerometers driver * * Copyright 2012-2013 STMicroelectronics Inc. * * Denis Ciocca <denis.ciocca@st.com> * v. 1.0.0 * Licensed under the GPL-2. */ #ifndef ST_ACCEL_H #define ST_ACCEL_H #include <linux/types.h> #include <linux/iio/common/st_sensors.h> enum st_accel_type { LSM303DL...
// // NSDate+Comparison.h // DZNCategories // // Created by Ignacio Romero Zurbuchen on 8/12/13. // Copyright (c) 2013 DZN Labs. All rights reserved. // Licence: MIT-Licence // http://opensource.org/licenses/MIT // #import <Foundation/Foundation.h> /* Useful methods for comparing dates. */ @interface NSDate (C...
// SPDX-License-Identifier: GPL-2.0 /* * Functions related to softirq rq completions */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/bio.h> #include <linux/blkdev.h> #include <linux/interrupt.h> #include <linux/cpu.h> #include <linux/sched.h> #include <linux/sched/topolo...
/* * Copyright (c) 2003-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 ...
/* * GRUB -- GRand Unified Bootloader * Copyright (C) 1999,2000,2001,2002,2003,2004 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 ...
//////////////////////////////////////////////////////////////////////////// // // Copyright 2016 Realm Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/li...
/* Copyright (c) 2010-2011, Code Aurora Forum. 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 lis...
/* { dg-do compile } */ /* { dg-require-effective-target vect_shift } */ /* { dg-require-effective-target vect_int } */ #define vidx(type, vec, idx) (*((type *) &(vec) + idx)) #define vector(elcount, type) \ __attribute__((vector_size((elcount)*sizeof(type)))) type short k; int main (int argc, char *argv[]) { ve...
#ifndef __UAPI_MEDIA_MSMB_GENERIC_BUF_MGR_H__ #define __UAPI_MEDIA_MSMB_GENERIC_BUF_MGR_H__ #include <media/msmb_camera.h> enum msm_camera_buf_mngr_cmd { MSM_CAMERA_BUF_MNGR_CONT_MAP, MSM_CAMERA_BUF_MNGR_CONT_UNMAP, MSM_CAMERA_BUF_MNGR_CONT_MAX, }; enum msm_camera_buf_mngr_buf_type { MSM_CAMERA_BUF_MNGR_BUF_PLAN...
// SPDX-License-Identifier: GPL-2.0 /* * Pioctl operations for Coda. * Original version: (C) 1996 Peter Braam * Rewritten for Linux 2.1: (C) 1997 Carnegie Mellon University * * Carnegie Mellon encourages users of this code to contribute improvements * to the Coda project. Contact Peter Braam <coda@cs.cmu.edu>. *...
/* * arch/arm/mach-ep93xx/snappercl15.c * Bluewater Systems Snapper CL15 system module * * Copyright (C) 2009 Bluewater Systems Ltd * Author: Ryan Mallon * * NAND code adapted from driver by: * Andre Renaud <andre@bluewatersys.com> * James R. McKaskill * * This program is free software; you can redistrib...
/* { dg-do run } */ /* { dg-options "-O2 -mavx512f" } */ /* { dg-require-effective-target avx512f } */ #define AVX512F #include "avx512f-helper.h" #define SIZE (AVX512F_LEN / 32) #include "avx512f-mask-type.h" void TEST (void) { UNION_TYPE (AVX512F_LEN_HALF, i_w) val; UNION_TYPE (AVX512F_LEN,) res1,res2,res3; ...
#ifndef _ASM_CRIS_IO_H #define _ASM_CRIS_IO_H #include <asm/page.h> /* for __va, __pa */ #include <arch/io.h> #include <asm-generic/iomap.h> #include <linux/kernel.h> struct cris_io_operations { u32 (*read_mem)(void *addr, int size); void (*write_mem)(u32 val, int size, void *addr); u32 (*read_io)(u32 port, void...
// // BMKFavPoiManager.h // UtilsComponent // // Created by wzy on 15/4/9. // Copyright (c) 2015年 baidu. All rights reserved. // #ifndef UtilsComponent_BMKFavPoiManager_h #define UtilsComponent_BMKFavPoiManager_h #import "BMKFavPoiInfo.h" ///收藏点管理类 @interface BMKFavPoiManager : NSObject /** * 添加一个poi点 * @para...
/* * Copyright (C) 2006 KPIT Cummins * Copyright (C) 2009 Conny Marco Menebröcker * All rights reserved. * * Redistribution and use in source and binary forms is permitted * provided that the above copyright notice and following paragraph are * duplicated in all such forms. * * This file is distribute...
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import <U...
/* * Copyright 2016 Red Hat Inc. * * 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, publish, d...
/* * rcar_du_drv.h -- R-Car Display Unit DRM driver * * Copyright (C) 2013-2015 Renesas Electronics Corporation * * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as p...
/* * OMAP3517/3505-specific clock framework functions * * Copyright (C) 2010 Texas Instruments, Inc. * Copyright (C) 2010 Nokia Corporation * * Ranjith Lohithakshan * Paul Walmsley * * Parts of this code are based on code written by * Richard Woodruff, Tony Lindgren, Tuukka Tikkanen, Karthik Dasu, * Russell ...
/* Copyright (c) 2012, 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 hope...
/* * arch/arm/mach-kirkwood/rd88f6281-setup.c * * Marvell RD-88F6281 Reference Board Setup * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #include <linux/kernel.h> #inc...
/* * Private include for xenbus communications. * * Copyright (C) 2005 Rusty Russell, IBM Corporation * Copyright (C) 2005 XenSource Ltd. * * 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 ...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // This file exposes the public interface to the mini_installer re-versioner. #ifndef CHROME_INSTALLER_TEST_ALTERNATE_VERSION_GENERATOR_H_ #define ...
/* u8g_com_arduino_parallel.c Universal 8bit Graphics Library Copyright (c) 2011, olikraus@gmail.com 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 cod...
/* * Hexagon VM page table entry definitions * * Copyright (c) 2010-2011, 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 Fou...
/* * Copyright 2012 Red Hat Inc. * * 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, publish, d...
/* include/linux/isl29028.h * * Copyright (C) 2009 Google, Inc. * Author: Iliyan Malchev <malchev@google.com> * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms...
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * Global definitions for the ARP (RFC 826) protocol. * * Version: @(#)if_arp.h 1.0.1 04/16/93 * * Authors: O...
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- #ifndef __javax_print_attribute_standard_JobKOctetsSupported__ #define __javax_print_attribute_standard_JobKOctetsSupported__ #pragma interface #include <javax/print/attribute/SetOfIntegerSyntax.h> extern "Java" { namespace javax { namespace pri...
/* PR target/51957 */ /* { dg-do compile } */ /* { dg-options "-O0" } */ #include "pr51957-1.h" union R *w[10]; union R * fn1 (void) { return (union R *) 0; } void fn2 (int x, const char *y, union R *z) { } void fn3 (void) { } int fn4 (union R *x) { return 0; } int main () { return 0; }
/* Copyright (c) 2010, Code Aurora Forum. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistributions of source code must retain the above copyright * notice, this list of ...
// SPDX-License-Identifier: GPL-2.0-only /* Copyright (c) 2020 Facebook */ #include <linux/bpf.h> #include <linux/fs.h> #include <linux/filter.h> #include <linux/kernel.h> #include <linux/btf_ids.h> struct bpf_iter_seq_prog_info { u32 prog_id; }; static void *bpf_prog_seq_start(struct seq_file *seq, loff_t *pos) { ...
#ifndef _NET_SECURE_SEQ #define _NET_SECURE_SEQ #include <linux/types.h> extern u32 secure_ipv4_port_ephemeral(__be32 saddr, __be32 daddr, __be16 dport); extern u32 secure_ipv6_port_ephemeral(const __be32 *saddr, const __be32 *daddr, __be16 dport); extern __u32 secure_tcp_sequence_number(__be32 saddr, __be3...
/* * Copyright (C) 1999 VA Linux Systems * Copyright (C) 1999 Walt Drummond <drummond@valinux.com> * Copyright (C) 2000,2001 J.I. Lee <jung-ik.lee@intel.com> * Copyright (C) 2001,2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> * * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
/* * dummy.h * * Copyright 2010 Wolfson Microelectronics PLC. * * Author: Mark Brown <broonie@opensource.wolfsonmicro.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 the Free Software Foundation; either versi...
/* { dg-do compile { target { powerpc-*-linux*paired* && ilp32 } } } */ /* { dg-options "-mpaired -ffinite-math-only" } */ /* Test PowerPC PAIRED extensions. */ #include <paired.h> #include <stdlib.h> static float out[2] __attribute__ ((aligned (8))); vector float b = { 3.0, 8.0 }; vector float c = { 2.0, 5.0 }; ...
/* * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without ...
/* This used to fail due to a ifcombine problem wrecking 64bit checks. Fixed with rev. 126876. */ /* { dg-do run } */ /* { dg-options "-O1" } */ struct tree_base { unsigned code:16; unsigned side_effects_flag:1; unsigned constant_flag:1; unsigned addressable_flag:1; unsigned volatile_flag:1; unsigned...
/* * linux/fs/nfs/file.c * * Copyright (C) 1992 Rick Sladkey */ #include <linux/fs.h> #include <linux/falloc.h> #include <linux/nfs_fs.h> #include "internal.h" #include "fscache.h" #include "pnfs.h" #include "nfstrace.h" #ifdef CONFIG_NFS_V4_2 #include "nfs42.h" #endif #define NFSDBG_FACILITY NFSDBG_FILE st...
#ifndef __BPQETHER_H #define __BPQETHER_H /* * Defines for the BPQETHER pseudo device driver */ #include <linux/if_ether.h> #define SIOCSBPQETHOPT (SIOCDEVPRIVATE+0) /* reserved */ #define SIOCSBPQETHADDR (SIOCDEVPRIVATE+1) struct bpq_ethaddr { unsigned char destination[ETH_ALEN]; unsigned char accept[ETH_A...
/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ /* { dg-final { scan-assembler "b\[np\] B100A\\+1,#0," } } */ /* { dg-final { scan-assembler "b\[np\] B100B\\+1,#0," } } */ typedef struct { unsigned short b0:1; unsigned short b1:1; unsigned short b2:1; unsigned short b3:1; unsigned short b...
/* * Copyright (C) 2007 Oracle. 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 v2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHO...
#define C 1 foo (p) int *p; { p[0] = C; p[1] = C; p[2] = C; p[3] = C; p[4] = C; p[5] = C; }
/* vi: set sw=4 ts=4: */ /* * Utility routines. * * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> * * Licensed under GPLv2 or later, see file LICENSE in this source tree. */ #include "libbb.h" #if ENABLE_FEATURE_SYSLOG # include <syslog.h> #endif smallint logmode = LOGMODE_STDIO; const char *m...
/* * This file is part of the Chelsio FCoE driver for Linux. * * Copyright (c) 2008-2013 Chelsio Communications, 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) Versio...
/* Check that basic (ll|f)seek sim functionality works. Also uses basic file open/write functionality. */ #include <stdio.h> #include <stdlib.h> #include <string.h> int main (void) { FILE *f; const char fname[] = "sk1test.dat"; const char tsttxt[] = "A random line of text, used to test correct read, wri...
/* * Author: Landon Fuller <landonf@plausible.coop> * * Copyright (c) 2012-2013 Plausible Labs Cooperative, Inc. * 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 Softwa...
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _ARPT_MANGLE_H #define _ARPT_MANGLE_H #include <linux/netfilter_arp/arp_tables.h> #define ARPT_MANGLE_ADDR_LEN_MAX sizeof(struct in_addr) struct arpt_mangle { char src_devaddr[ARPT_DEV_ADDR_LEN_MAX]; char tgt_devaddr[ARPT_DEV_ADDR_LEN_MAX]; unio...
/* * Copyright (C) 2009 Red Hat Inc, Steven Rostedt <srostedt@redhat.com> * * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * This program 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 S...
/* ISC license. */ #include <errno.h> #include <skalibs/uint32.h> #include <skalibs/allreadwrite.h> #include <skalibs/bytestr.h> #include <skalibs/error.h> #include <skalibs/tai.h> #include <skalibs/siovec.h> #include <skalibs/unixmessage.h> #include <s6/s6-fdholder.h> int s6_fdholder_setdump (s6_fdholder_t *a, s6_f...
#ifndef H_PANEL #define H_PANEL #include <nds.h> #include "geometry.h" // Types typedef struct { boundingBox box; int speed; int keyUp; int keyDown; int sprite_offx; int sprite_offy; SpriteEntry *sprite; int layer; SpriteSize sprite_size; SpriteColorFormat sprite_form...
#include <stdint.h> void cp437_setup(void); int screen_addr(int x, int y); void drawstr(uint16_t, const char *);
#pragma strict_types #include "../def.h" inherit MASTER_ROOM; void create_object(void); void reset(int arg); void init(void); void create_object(void) { set_short("A bridge crossing the river"); set_long("You are on the bridge crossing the river running through " + "the valley. The river is wild,...
#pragma once #include <vector> #include <queue> #include <string> #include <climits> #include <cmath> #include <stack> #include <set> #include <sstream> #include <algorithm> using namespace std; class Solution { public: string convertToTitle(int n) { string res; while (n > 0) { int r = n % 26; n = n / 26; ...
#ifndef _BALL_H_ #define _BALL_H_ #include "cocos2d.h" #include "constant.h" class Paddle; class Brick; USING_NS_CC; class Ball : public CCSprite { CCPoint m_velocity; CCSprite* m_shadow; //shadow follows the ball public: Ball(void); virtual ~Ball(void); virtual void draw(void); float ra...
#ifndef Obscurity_MyConditionalPrior #define Obscurity_MyConditionalPrior #include "DNest4/code/DNest4.h" namespace Obscurity { class MyConditionalPrior:public DNest4::ConditionalPrior { private: // Width of conditional prior for positions double sigma; // Expected value of conditional prio...
#pragma once #include <boost/property_tree/ptree.hpp> #include "../base.h" #include "../../colour_ramp.h" namespace visualisations { namespace metrics { class formation : public visualisation<formation> { public: /// required for the factory mechanism static const std::string type(); formation(const boost::...