text
stringlengths
9
948k
#include "minunit.h" #include "aws_status.h" #include "aws_sigv4.h" static aws_t context = NULL; char *test_create() { context = aws_init("us-east-1", "glacier", "glacier.aws.amazon.com", "/", "GET"); mu_assert(context != NULL, "aws_init failed"); return NULL; } char *test_add_bad_headers() { int st...
// // NSImage+Extension.h // ObjectiveC_Extension // // Created by Vitor Marques de Miranda on 12/03/17. // Copyright © 2017 Vitor Marques de Miranda. All rights reserved. // #ifndef NSImage_Extension_Class #define NSImage_Extension_Class #import <Cocoa/Cocoa.h> @interface NSBitmapImageRep (VMMBitmapImageRep) -...
#pragma once #include <cstdint> namespace texturegenerator::shared::graphics { struct color { uint8_t r {0}; uint8_t g {0}; uint8_t b {0}; uint8_t a {0}; }; static constexpr inline bool operator ==(const color& lhs, const color& rhs) { return lhs.r == rhs.r && ...
/* * This header is generated by classdump-dyld 1.0 * on Sunday, June 7, 2020 at 11:23:43 AM Mountain Standard Time * Operating System: Version 13.4.5 (Build 17L562) * Image Source: /System/Library/Frameworks/MapKit.framework/MapKit * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. */ #...
/*************************************************************************/ /* physics_body_2d.h */ /*************************************************************************/ /* This file is part of: */ /* ...
/* * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "FANSACTwoWayDataLinkCommunications" * found in "fans-cpdlc.asn1" * `asn1c -fcompound-names -fincludes-quoted -gen-PER` */ #include "FANSSSREquipmentAvailable.h" int FANSSSREquipmentAvailable_constraint(asn_TYPE_descriptor_t *td, con...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
/* fgets( char *, int, FILE * ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. */ #include <stdio.h> #ifndef REGTEST #include "pdclib/_PDCLIB_glue.h" #ifndef __STDC_NO_THREADS__ #include <threads.h> #endif char * fgets( char * ...
/***************************************************************************//** * @file * @brief EFM32HG_AF_PINS register and bit field definitions * @version 5.8.0 ******************************************************************************* * # License * <b>Copyright 2019 Silicon Laboratories Inc. www.silabs...
/* * Copyright (c) 2018 Jan Van Winkel <jan.van_winkel@dxplore.eu> * Copyright (c) 2021 Nordic Semiconductor * * SPDX-License-Identifier: Apache-2.0 */ #define DT_DRV_COMPAT zephyr_sdl_dc #include <zephyr/drivers/display.h> #include <SDL.h> #include <string.h> #include <soc.h> #include <zephyr/sys/byteorder.h> ...
// Copyright (c) 2015 The Bitcoin Core developers // Copyright (c) 2016-2017 The Dorin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_PLATFORMSTYLE_H #define BITCOIN_QT_PLATFORMSTYLE_H #include <Q...
#import "TapView.h" #import "TapButton.h" @interface TapImageToolbar : TapView { TapButton* btnResizeFull; TapButton* btnResizeSmall; TapButton* btnShare; } @property (readonly) TapButton* btnShare; @end
/* * Copyright (C) 2006 Freescale Semicondutor, Inc. All rights reserved. * * Authors: Shlomi Gridish <gridish@freescale.com> * Li Yang <leoli@freescale.com> * * Description: * QE IC external definitions and structure. * * This program is free software; you can redistribute it and/or modify it * under th...
// Copyright 2020 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 CONTENT_BROWSER_RENDERER_HOST_DISPLAY_FEATURE_H_ #define CONTENT_BROWSER_RENDERER_HOST_DISPLAY_FEATURE_H_ #include "base/optional.h" #include "bu...
/****************************************************************************** * Copyright (c) 1998 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) ***************************************...
/* % MIT License % % Copyright (c) 2016 OneCV % % Permission is hereby granted, free of charge, to any person obtaining a copy % of this software and associated documentation files (the "Software"), to deal % in the Software without restriction, including without limitation the rights % to use, copy, modify, merge, pub...
/* * uvc_ctrl.c -- USB Video Class driver - Controls * * Copyright (C) 2005-2010 * 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 published by *...
/* * Copyright (C) 2021-2022, Xilinx Inc * * This file is dual licensed. It may be redistributed and/or modified * under the terms of the Apache 2.0 License OR version 2 of the GNU * General Public License. * * Apache License Verbiage * * Licensed under the Apache License, Version 2.0 (the "License"); ...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" #import "IStrangerContactMgrExt.h" @class NSString; @interface ContactUpdateHelper : NSObject <IStrangerContactMgrExt> { NSString *_m_moduleName; NSS...
// Copyright 2017 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #pragma once #include <zircon/types.h> __BEGIN_CDECLS // ask clang format not to mess up the indentation: // clang-format off // Policy is applied for ...
/*===---- vecintrin.h - Vector intrinsics ----------------------------------=== * * 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 rig...
/* This testcase is part of GDB, the GNU debugger. Copyright 2014-2019 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or ...
// // APCCircularProgressView.h // APCAppCore // // Copyright (c) 2015, Apple Inc. 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 th...
/* ---------------------------------------------------------------------- * Project: CMSIS DSP Library * Title: arm_scale_q15.c * Description: Multiplies a Q15 vector by a scalar * * $Date: 23 April 2021 * $Revision: V1.9.0 * * Target Processor: Cortex-M and Cortex-A cores * ------------...
/******************************************************************************* System Initialization File File Name: initialization.c Summary: This file contains source code necessary to initialize the system. Description: This file contains source code necessary to initialize the system. It ...
/* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * (C) 2007 David Smith (catfish.man@gmail.com) * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. * Copyright (C) Research In Motion Limited 2010. Al...
#include "ruby.h" #include "rubyspec.h" #ifdef __cplusplus extern "C" { #endif VALUE g_hooked_var; void var_2x_setter(VALUE val, ID id, VALUE *var) { *var = INT2NUM(NUM2INT(val) * 2); } static VALUE sb_define_hooked_variable(VALUE self, VALUE var_name) { rb_define_hooked_variable(StringValuePtr(var_name), &g_...
#pragma once #include <string> #include <lucid/core/Noncopyable.h> #include <lucid/core/Types.h> /// /// /// namespace lucid { namespace core { /// /// /// class Identity; /// Writer /// /// generic serialization facility. class Writer { public: virtual ~Writer() = 0 {} virtual void write(void const...
// Generated by Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30) #ifndef LISTGROUPCOMPONENT_SWIFT_H #define LISTGROUPCOMPONENT_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" #if !defined(__has_include) # define __has_include(x) 0 #endif #if !defined(__has_attr...
/* The OpenTRV project licenses this file to you under the Apache Licence, Version 2.0 (the "Licence"); you may not use this file except in compliance with the Licence. You may obtain a copy of the Licence at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwar...
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_listen_socket_popen_41.c Label Definition File: CWE78_OS_Command_Injection.fullpath.label.xml Template File: sources-sink-41.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: listen_socket Read data using a listen...
/* IO FORMAT For example if the input values are this: cylinder_size = 200 current_head_position=50 previous_head_position=90 request_reqay = {95,180,34,11,119,123,64,62} Command is executed as: ./exe_file cylinder_size current_head_position previous_head_position request_reqay which in this case is, ....
#ifndef SENDCOINSENTRY_H #define SENDCOINSENTRY_H #include <QFrame> namespace Ui { class SendCoinsEntry; } class WalletModel; class SendCoinsRecipient; /** A single entry in the dialog for sending Battlecoins. */ class SendCoinsEntry : public QFrame { Q_OBJECT public: explicit SendCoinsEntry(QWidget *pa...
/*- * Copyright (c) 1990, 1993, 1994 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Mike Olson. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followi...
// // KKCategory.h // WhatIsTheWord // // Created by Konstantina on 1/29/16. // Copyright © 2016 Konstantina. All rights reserved. // #import <Foundation/Foundation.h> @interface KKCategory : NSObject @property (strong, nonatomic) NSString *categoryName; @property (strong, nonatomic) NSString *image; @property (...
/** ****************************************************************************** * @file system_stm32l4xx.c * @author MCD Application Team * @version V1.0.1 * @date 16-September-2015 * @brief CMSIS Cortex-M4 Device Peripheral Access Layer System Source File * * This file provides two functi...
//***************************************************************************** // //! \file w5500.c //! \brief W5500 HAL Interface. //! \version 1.0.2 //! \date 2013/10/21 //! \par Revision history //! <2015/02/05> Notice //! The version history is not updated after this point. //! Download the la...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The DigiByte Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef DIGIBYTE_COMPAT_H #define DIGIBYTE_COMPAT_H #if defined(HAVE_CONFIG_H) ...
/** * \file * * \brief Board configuration * * Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip products. * It is your responsibil...
// Copyright (c) 2015 fjz13. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. #pragma once #include "MedusaPreDeclares.h" #include "Core/Pattern/Singleton.h" #include "Core/Pattern/Object/ArrayObjectFactory.h" #include "RenderStateType.h" MEDU...
/* * Copyright (c) 2016, Freescale Semiconductor, Inc. * Copyright 2016-2017 NXP * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef LWIP_HDR_APPS_HTTPD_MBEDTLS_H #define LWIP_HDR_APPS_HTTPD_MBEDTLS_H #include "mbedtls/ssl.h" #ifdef __cplusplus extern "C" { #endif void httpd_mbedtls_in...
/** * @file tree_data.c * @author Radek Krejci <rkrejci@cesnet.cz> * @brief Manipulation with libyang data structures * * Copyright (c) 2015 - 2018 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You may not use this file except in compliance with the License. * ...
// // Created by david on 26/12/2019. // #ifndef GRAPHKAT_SHADERS_H #define GRAPHKAT_SHADERS_H #include <ogl/UniformType.h> #include <glm/glm.hpp> #include <glm/gtc/type_ptr.hpp> #include <cassert> #include <vector> namespace Shaders { using namespace glm; using namespace std; template<typename T> i...
/* * Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org> * All rights reserved. * * Redistribution and use in input and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of input code must retain the above copyright notice...
// Copyright 2014 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 EXTENSIONS_BROWSER_API_SOCKET_TCP_SOCKET_H_ #define EXTENSIONS_BROWSER_API_SOCKET_TCP_SOCKET_H_ #include <stdint.h> #include <memory> #include <...
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2017 Scott Shawcroft for Adafruit Industries * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwa...
// Copyright (c) 2012 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // // A database can be configured with a custom FilterPolicy object. // This object is responsible for ...
/*- * Copyright (c) 2003 Lev Walkin <vlm@lionet.info>. All rights reserved. * Redistribution and modifications are permitted subject to BSD license. */ #ifndef _T61String_H_ #define _T61String_H_ #include <OCTET_STRING.h> #ifdef __cplusplus extern "C" { #endif typedef OCTET_STRING_t T61String_t; /* Implemented vi...
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2009 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obta...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" #import "WCDBCoding.h" @class NSString; @interface DBEmoticon : NSObject <WCDBCoding> { unsigned int type; unsigned int createTime; unsigned int ...
// // YYTextDebugOption.h // YYText <https://github.com/ibireme/YYText> // // Created by ibireme on 15/4/8. // Copyright (c) 2015 ibireme. // // This source code is licensed under the MIT-style license found in the // LICENSE file in the root directory of this source tree. // #import <UIKit/UIKit.h> @class YYTe...
#ifndef MJTEXTEDIT_H #define MJTEXTEDIT_H #include <QPlainTextEdit> namespace Ui { class MJTextEdit; } class MJTextEdit : public QTextEdit { Q_OBJECT public: explicit MJTextEdit(QWidget *parent = 0); ~MJTextEdit(); private: Ui::MJTextEdit *ui; }; #endif // MJTEXTEDIT_H
/****************************************************************************** * * Copyright (C) 2014 Google, 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://ww...
/* Constants */ #define TERMINAL "st" #define TERMCLASS "St" /* appearance */ static unsigned int borderpx = 3; /* border pixel of windows */ static unsigned int snap = 32; /* snap pixel */ static unsigned int gappih = 20; /* horiz inner gap between windows */ static unsigned int gappiv ...
/** * @file net_packets.h * */ /* Copyright (C) 2018-2021 by Arjan van Vught mailto:info@orangepi-dmx.nl * * 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, includin...
// // GTRecommendViewController.h // MyNewsApp // // Created by rainHou on 2019/9/5. // Copyright © 2019 rainHou. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface GTRecommendViewController : UIViewController @end NS_ASSUME_NONNULL_END
/* * This header is generated by classdump-dyld 1.5 * on Friday, April 30, 2021 at 11:34:53 AM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/Frameworks/CoreLocation.frame...
// // HK_shopsDetailCell.h // HongKZH_IOS // // Created by hongkzh on 2018/9/29. // Copyright © 2018年 hkzh. All rights reserved. // #import <UIKit/UIKit.h> @interface HK_shopsDetailCell : UITableViewCell @property (nonatomic, strong)UILabel * tagLabel; @property (nonatomic, strong)UILabel * messageLabel; @proper...
/* * Copyright (c) 2012-2015 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ /* * @file measure time for sema lock and release * * This file contains the test that measures semaphore and mutex lock and * release time in the kernel. There is no contention on the sema nor the * mutex being t...
/* * iridium9602.c * * Created on: 5 мая 2019 г. * Author: snork */ #include "ir9602.h" #include <string.h> #include <assert.h> #include <errno.h> //! Контрольная сумма для протокола SBD static uint16_t _sbd_checksum(const void * data_, int datasize) { const uint8_t * data = (const uint8_t*)data_; uint...
#pragma once #include "envoy/http/filter.h" #include "envoy/matcher/matcher.h" #include "envoy/server/factory_context.h" #include "envoy/type/matcher/v3/http_inputs.pb.h" #include "envoy/type/matcher/v3/http_inputs.pb.validate.h" #include "source/common/http/header_utility.h" namespace Envoy { namespace Http { names...
/*------------------------------------------------------------------------------ * Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team * * Distributable under the terms of either the Apache License (Version 2.0) or * the GNU Lesser General Public License, as specified in the COPYING file. -------------------...
#include <stdint.h> #include <string.h> #include "sha-256.h" #define CHUNK_SIZE 64 #define TOTAL_LEN_LEN 8 /* * ABOUT bool: this file does not use bool in order to be as pre-C99 compatible as possible. */ /* * Comments from pseudo-code at https://en.wikipedia.org/wiki/SHA-2 are reproduced here. * When useful fo...
#ifndef DIALOG_UPLOAD_PROFILE_ #define DIALOG_UPLOAD_PROFILE_ #include <SimpleUI\SimpleUI.h> class DialogUploadProfile : public SimpleUI::Dialog { public: static INT_PTR DialogUploadProfile::ON_WM_CLOSE(SimpleUI::Dialog* dialog, UINT uMsg, WPARAM wParam, LPARAM lParam); static INT_PTR ON_WM_COMMAND(SimpleUI::Dialog...
/* * linux/arch/i386/mm/extable.c */ #include <linux/config.h> #include <linux/module.h> #include <linux/spinlock.h> #include <asm/uaccess.h> int fixup_exception(struct pt_regs *regs) { const struct exception_table_entry *fixup; #ifdef CONFIG_PNPBIOS if (unlikely((regs->xcs & ~15) == (GDT_ENTRY_PNPBIOS_BASE << 3...
/**************************************************************************//** * @file main.c * @version V3.00 * $Revision: 3 $ * $Date: 16/11/11 3:18p $ * @brief * Show how to set I2C in Slave mode and receive the data from Master. * This sample code needs to work with I2C_Master. * @...
/* * Copyright 2002-2011, The TenDRA Project. * Copyright 1997, United Kingdom Secretary of State for Defence. * * See doc/copyright/ for the full copyright terms. */ #include <string.h> #include <shared/bool.h> #include <shared/check.h> #include <shared/error.h> #include <shared/string.h> #include <local/ash.h...
/* * Copyright (C) 2018 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
#ifndef _SYSCALL_H #define _SYSCALL_H #include "fileSystem.h" #include "keyboard.h" #define FDT_SIZE 8 #define RTC_TYPE 0 #define DIR_TYPE 1 #define REG_TYPE 2 #define VIDEO_USER (0xB8000+0xA000000) //user leve remapping #define MAX_ARG_SIZE 4096 #define USER_PROGRAM_ADDR 0x8048000 #define USER_PAGE_START 0x80000...
/* Global Exchange.c Functions exchange information with global variables. http://learn.parallax.com/propeller-c-functions/memory-functions-can-share */ #include "simpletools.h" // Include simpletools void adder(void); // Forward declaration int a, b, n; ...
#ifndef LIBRETRO_CORE_OPTIONS_H__ #define LIBRETRO_CORE_OPTIONS_H__ #include <stdlib.h> #include <string.h> #include <libretro.h> #include <retro_inline.h> #ifndef HAVE_NO_LANGEXTRA #include "libretro_core_options_intl.h" #endif /* ******************************** * VERSION: 2.0 ******************************** ...
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1997, 1998 Ralf Baechle * Copyright (C) 1999 SuSE GmbH * Copyright (C) 1999-2001 Hewlett-Packard Company * Copyright (C) ...
/*========================================================================= Copyright Brigham and Women's Hospital (BWH) All Rights Reserved. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Program: vtkITK Module: $HeadURL$ Date: $Date$ Version: $Revision$ =...
/* Copyright (c) 2018-2019 Oleg Linkin <maledictusdemagog@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 without restriction, including without limitation the rights to use, copy, modi...
#pragma once #include <SHADERed/Objects/Camera.h> #include <glm/glm.hpp> namespace ed { class FirstPersonCamera : public Camera { public: FirstPersonCamera() : m_yaw(0.0f) , m_pitch(0.0f) { Reset(); } virtual void Reset(); inline void SetPosition(float x, float y, float z) { m_pos = glm::vec3(...
/*========================================================================= Program: ParaView Module: vtkSMExportProxyDepot.h Copyright (c) Kitware, Inc. All rights reserved. See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without ...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> // for pipe() #include <string.h> #include <signal.h> int signalFlag = 0; void handler(int signumber) { signalFlag = signumber; } char* convertSignalToStr(int signumber) { switch (signumber) { case SIGTERM: return "SIGTERM"; case SIGUSR1: retur...
#undef CONFIG_MKFS_REISER
/*** The MIT License (MIT) Copyright (c) 2014 Viktor Borodin (borodin@mail.univ.kiev.ua) 21.06.2014 * Realization of basic geometric primitives * sets of points, lines, segnents Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "S...
#ifndef _INTERNAL_ATOMIC_H #define _INTERNAL_ATOMIC_H #include <stdint.h> #include <endian.h> static inline int a_ctz_l(unsigned long x) { static const char debruijn32[32] = { 0, 1, 23, 2, 29, 24, 19, 3, 30, 27, 25, 11, 20, 8, 4, 13, 31, 22, 28, 18, 26, 10, 7, 12, 21, 17, 9, 6, 16, 5, 15, 14 }; return debruijn...
/** * Copyright (C) 2013 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
/**************************************************************************//** * @file efm32gg_aes.h * @brief EFM32GG_AES register and bit field definitions * @version 5.0.0 ****************************************************************************** * @section License * <b>Copyright 2016 Silicon Laboratories,...
#include "quantum.h" #include "backlight.h" #include <hal.h> #include "debug.h" // TODO: remove short term bodge when refactoring BACKLIGHT_CUSTOM_DRIVER out #ifdef BACKLIGHT_PIN # if defined(STM32F0XX) || defined(STM32F0xx) # error "Backlight support for STMF072 is not available. Please disable." # endi...
#include "types.h" #include "defs.h" #include "param.h" #include "memlayout.h" #include "mmu.h" #include "x86.h" #include "proc.h" #include "spinlock.h" #define NULL 0 struct { struct spinlock lock; struct proc proc[NPROC]; } ptable; static struct proc *initproc; int nextpid = 1; extern void forkret(void); exter...
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef BUILTIN_H #define BUILTIN_H extern int cmd_set(int argc, const char **argv); extern int cmd_info(int argc, const char **argv); extern int cmd_freq_set(int argc, const char **argv); extern int cmd_freq_info(int argc, const char **argv); extern int cmd_idle_set(int argc, co...
/* * DO NOT EDIT THIS FILE! * This file is auto-generated. * Edits to this file will be lost when it is regenerated. * * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. ...
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SKSL_TYPEREFERENCE #define SKSL_TYPEREFERENCE #include "SkSLContext.h" #include "SkSLExpression.h" namespace SkSL { /** * Represents an identifier referring to a t...
#ifndef NTL_mat_RR__H #define NTL_mat_RR__H #include <NTL/matrix.h> #include <NTL/vec_vec_RR.h> NTL_OPEN_NNS typedef Mat<RR> mat_RR; void add(mat_RR& X, const mat_RR& A, const mat_RR& B); void sub(mat_RR& X, const mat_RR& A, const mat_RR& B); void negate(mat_RR& X, const mat_RR& A); void mul(mat_RR& X, const mat_...
/* Copyright (c) 2016, The Tor Project, Inc. */ /* See LICENSE for licensing information */ #ifndef TOR_SHARED_RANDOM_STATE_H #define TOR_SHARED_RANDOM_STATE_H #include "shared_random.h" /* Action that can be performed on the state for any objects. */ typedef enum { SR_STATE_ACTION_GET = 1, SR_STATE_ACTION_P...
// Generated by gencpp from file sick_scan/SickLocInitialPoseSrv.msg // DO NOT EDIT! #ifndef SICK_SCAN_MESSAGE_SICKLOCINITIALPOSESRV_H #define SICK_SCAN_MESSAGE_SICKLOCINITIALPOSESRV_H #include <ros/service_traits.h> #include <sick_scan/SickLocInitialPoseSrvRequest.h> #include <sick_scan/SickLocInitialPoseSrvRespo...
/* * This header is generated by classdump-dyld 1.0 * on Wednesday, March 22, 2017 at 9:08:16 AM Mountain Standard Time * Operating System: Version 10.1 (Build 14U593) * Image Source: /System/Library/PrivateFrameworks/CoreThemeDefinition.framework/CoreThemeDefinition * classdump-dyld is licensed under GPLv3, Copyright ...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // // // =========================================================================== // File: commctrl.h // // ====...
/* MIT License Copyright (c) 2019 Marcin Borowicz 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...
#include <launchdarkly/api.h> #include "ldinternal.h" struct LDUser * LDUserNew(const char *const key) { struct LDUser *user; LDi_once(&LDi_earlyonce, LDi_earlyinit); if (!(user = LDAlloc(sizeof(*user)))) { return NULL; } memset(user, 0, sizeof(*user)); if (!key || key[0] == '\0') ...
/*?************************************************************************* * Switch_JsonSerializer.h * ----------------------- * copyright : (C) 2014 by Wouter Charle * email : wouter.charle@gmail.com * * DISCLAIMER OF DAMAGES * ...
/** * \file * * \brief Autogenerated API include file for the Atmel Software Framework (ASF) * * Copyright (c) 2012 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided t...
/* * linux/arch/alpha/mm/fault.c * * Copyright (C) 1995 Linus Torvalds */ #include <linux/sched.h> #include <linux/kernel.h> #include <linux/mm.h> #include <asm/io.h> #define __EXTERN_INLINE inline #include <asm/mmu_context.h> #include <asm/tlbflush.h> #undef __EXTERN_INLINE #include <linux/signal.h> #includ...
/************************************************************************* * * DRIVE.C * * NT drive routines * * Copyright (c) 1995 Microsoft Corporation * * $Log: N:\NT\PRIVATE\NW4\NWSCRIPT\VCS\DRIVE.C $ * * Rev 1.2 10 Apr 1996 14:22:12 terryt * Hotfix for 21181hq * * Rev 1.2 12 Mar 1996 19:53:22...