text
stringlengths
4
6.14k
/** @file LCG.h @author Jukka Jylänki This work is copyrighted material and may NOT be used for any kind of commercial or personal advantage and may NOT be copied or redistributed without prior consent of the author(s). @brief A linear congruential random number generator. */ #pragma once #include "CoreTypes....
#include <stdio.h> #include <stdlib.h> int main(){ double x = 1; double num = 121; double y = 1.0 / 2 * (x + num/x); while(fabs(y-x) > 1e-5){ x = y; y = 1.0 / 2 * (x + num/x); } printf("%.3lf\n",y); }
// // FZSportsViewController.h // Map // // Created by zhoufei on 16/6/12. // Copyright © 2016年 zhoufei. All rights reserved. // #import "BaseViewController.h" @interface FZSportsViewController : BaseViewController @end
/** * xrdp: A Remote Desktop Protocol server. * * Copyright (C) Jay Sorg 2004-2012 * * 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 ...
// // CircleShapeLayer.h // buxinteng // // Created by Anyson Chan on 15/11/17. // Copyright © 2015年 Anyson Chan. All rights reserved. // #import <QuartzCore/QuartzCore.h> @interface CircleShapeLayer : CAShapeLayer @property (nonatomic) NSTimeInterval elapsedTime; @property (nonatomic) NSTimeInterval timeLimit; ...
// // HWShareViewController.h // 00-ItcastLottery // // Created by apple on 14-4-19. // Copyright (c) 2014年 itcast. All rights reserved. // #import "HWBaseSettingViewController.h" @interface HWShareViewController : HWBaseSettingViewController @end
/* * Device.h * * Created on: Mar 28, 2016 * Author: James Hong */ #ifndef INCLUDE_DEVICE_H_ #define INCLUDE_DEVICE_H_ #include <atomic> #include <cstdint> #include <exception> #include <functional> #include <map> #include <memory> #include <mutex> #include <string> #include <set> #include "BeetleTypes.h"...
// To check if a library is compiled with CocoaPods you // can use the `COCOAPODS` macro definition which is // defined in the xcconfigs so it is available in // headers also when they are imported in the client // project. // TSValidatedTextField #define COCOAPODS_POD_AVAILABLE_TSValidatedTextField #define COCOAPOD...
// // SinaWeiboPackage.h // MobiSageSDK // // Created by Ryou Zhang on 10/23/11. // Copyright (c) 2011 mobiSage. All rights reserved. // #import "MobiSageSNSPackage.h" @interface MSSinaWeiboPackage : MobiSageSNSPackage { @protected NSString* m_AppKey; NSString* m_AccessToken; ...
// // AppDelegate.h // RoleModule // // Created by zhoufei on 2019/1/20. // Copyright © 2019年 zhoufei. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
// // KGMClassAlbumController.h // MDKinderGarten // // Created by 周永超 on 16/10/20. // Copyright © 2016年 zhouyongchao. All rights reserved. // #import "BaseViewController.h" @interface KGMClassAlbumController : BaseViewController @end
// http://www.cnblogs.com/lidan/archive/2012/05/04/2482877.html // 根据这篇博文 ,为什么 // udp也要调用connect函数呢,为什么udp的connect是两次握手呢? // 抓包发现, udp connect 并不会导致握手, 不过可以给udp的 // fd 设置默认的发送地址,从而提高发送性能。可以用write read来操作udp的fd #include <arpa/inet.h> #include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #inc...
/*!The Treasure Box Library * * 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 to in wr...
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ #ifndef BGVARS_H #define BGVARS_H extern void setupBlocking(); extern int P...
#pragma once #ifndef MRL_STATIC_LINK #ifdef MRL_EXPORTS #define MRL_EXPORT __declspec(dllexport) #else #define MRL_EXPORT __declspec(dllimport) #endif #else #define MRL_EXPORT #endif
/** * Copyright (c) 2009 Alex Fajkowski, Apparent Logic LLC * * 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, * c...
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \...
// // Created by zhangrongxiang on 2018/1/11 16:59 // File server // #include <sys/types.h> #include <sys/socket.h> #include<pthread.h> #include <netinet/in.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <stdlib.h> #define PORT 6668 int main(int argc, char **argv) { // if (argc != 2) { // ...
/* Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation 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....
// // NSAppleEventDescriptor+ObjectTest.h // // Created by dmaclach on 6/7/07. // Copyright 2007 Google Inc. All rights reserved. // #import <SenTestingKit/SenTestingKit.h> @interface NSAppleEventDescriptor_ObjectTest : SenTestCase - (void)testRegisterSelectorForTypesCount; - (void)testObjectValue; - (void)testAp...
/* * chatSimple.h * * Created on: 2015/10/30/ * Author: Jason */ #ifndef CHATSIMPLE_H_ #define CHATSIMPLE_H_ #define _BSD_SOURCE #define _POSIX_SOURCE #include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/types.h> #include <sys/stat.h> #include <dirent.h> #include <signal.h> #include <fcn...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
#ifndef VAIVEN_VISITOR_HEADER_SSA_TYPE_ANALYSIS #define VAIVEN_VISITOR_HEADER_SSA_TYPE_ANALYSIS #include "forward_visitor.h" namespace vaiven { namespace ssa { class TypeAnalysis : public ForwardVisitor { public: void visitPhiInstr(PhiInstr& instr); void visitArgInstr(ArgInstr& instr); void visitConstantInst...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/iam/IAM_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/iam/model/AccessKeyLastUsed.h> #include <aws/iam/model/ResponseMetadata.h> #include <utilit...
// // AppDelegate.h // TV_Program // // Created by BigKing on 2017/6/6. // Copyright © 2017年 BigKing. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "map_listener.h" #include "map_source.h" #include "mapping_monitor.h" #include "named_service.h" #include "proxy_map_source.h" #include "request_completion_handler.h" #include "service_map_his...
/* * Copyright (c) 2022 OpenLuat & AirM2M * * 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, p...
/* * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl\nsIPermission.idl */ #ifndef __gen_nsIPermission_h__ #define __gen_nsIPermission_h__ #ifndef __gen_nsISupports_h__ #include "nsISupports.h" #endif /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #def...
// This header file is deprecated in 3ds Max 2011. // Please use header file listed below. #include "..\maxscript\macros\define_abstract_functions.h"
#include <fstream> #include "envoy/api/v2/eds.pb.h" #include "common/config/filesystem_subscription_impl.h" #include "common/config/utility.h" #include "common/event/dispatcher_impl.h" #include "test/common/config/subscription_test_harness.h" #include "test/mocks/config/mocks.h" #include "test/test_common/environmen...
/* binner.h Reads and bins data from OSKAR vis file. Copyright (C) 2015 Braam Research, LLC. */ #include "o2a.h" enum rerrors { ro_ok = 0 , ro_cant_open_vis_file = -1 , ro_invalid_data = -2 , ro_cant_allocate_amp_mem = -3 , ro_cant_allocate_uvw_mem = -4 };
/* * Copyright (c) 2015 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
/* //////////////////////////////////////////////////////////////////////////////////// // // Prototypes and definitions for the Levenberg - Marquardt minimization algorithm // Copyright (C) 2004 Manolis Lourakis (lourakis at ics forth gr) // Institute of Computer Science, Foundation for Research & Technology - H...
/** * * Copyright 2015 Rishat Shamsutdinov * * 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 la...
// // OYFollowItem.h // BaiSiBuDeJie // // Created by 江南布衣 on 16/6/23. // Copyright © 2016年 江南布衣. All rights reserved. // #import <Foundation/Foundation.h> @interface OYFollowItem : NSObject @property (nonatomic, copy) NSString *theme_name; @property (nonatomic, copy) NSString *image_list; @property (nonatomic, ...
/* Copyright 2015 Google Inc. 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 by applicable law or agreed to in wri...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/opensearch/OpenSearchService_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> namespace Aws { namespace OpenSearchService { namespace Model { enum class Upgrad...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * ...
/* * MUSCLE SmartCard Development ( https://pcsclite.apdu.fr/ ) * * Copyright (C) 2001 * David Corcoran <corcoran@musclecard.com> * Copyright (C) 2002-2010 * Ludovic Rousseau <ludovic.rousseau@free.fr> * Redistribution and use in source and binary forms, with or without modification, are permitted provided tha...
#pragma once #include <Windows.h> #include <string> #include <vector> #include <iostream> #include <locale> #include <sstream> std::string int_to_str(int num, bool is_hex = false); std::string uint_to_str(unsigned int num, bool is_hex = false); std::string char_to_str(char c); int str_to_int(std::string str); unsigne...
// Copyright 2017 Benjamin Glatzel // // 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 to...
/*******************************************ÉêÃ÷*************************************** ±¾Ç¶Èëʽ²Ù×÷ϵͳδ¾­ÊÚȨ£¬½ûÖ¹Ó¦ÓÃÓÚÈκÎÉÌÒµÓÃ; °æÈ¨ËùÓУ¬ÇÖȨ±Ø¾¿ http://www.trtos.com/ **************************************************************************************/ #include <..\USER\Prj_TP502T\DS18B20_Driver.h> ...
// logging.h // Author: Allen Porter <allen@thebends.org> // // A library for Atmel AVR microcontrollers that logs arbitary data to a serial // port. This can be useful for error logging or debugging. This library // uses async writes with a small circular buffer, but may block momentarily // if the buffer is small. ...
/* * 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...
#include <ns3/random-variable-stream.h> #include <ns3/average.h> using namespace ns3; //////////////////////////////////////////////////////////////////////////////////////// // // Modelo a simular: patrón de llegadas según Poisson de tasa determinada // class Llegadas { public: // Constructor: el parámetro es l...
#include "test.h" static enum TestResult test_available(void) { if (linux_creat(0, 0, 0) == linux_ENOSYS) return TEST_NOT_SUPPORTED; return TEST_SUCCESS; } BEGIN_TEST() DO_TEST(test_available, "Syscall is available"); END_TEST()
/* Copyright 2017 CyberTech Labs Ltd. * * 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 agree...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/mgn/Mgn_EXPORTS.h> #include <aws/mgn/MgnRequest.h> #include <aws/mgn/model/DescribeJobsRequestFilters.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> ...
/* GStreamer * Copyright (C) 2017 Matthew Waters <matthew@centricular.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) ...
int32_t i_w0 ; int32_t i_w1 ; int32_t i_shift ; int32_t i_offset ; int32_t i_round ; int32_t b_x_set_done ;
/*! \file Query.h * \author Jared Hoberock * \brief Defines an interface for abstracting * OpenGL query objects. */ #ifndef QUERY_H #define QUERY_H #include <GL/glew.h> #include "../globject/GLObject.h" /*! \fn genQueryThunk * \todo Find a way around this. */ inline void genQueryThunk...
/***************************************************************************** * * * D2Patches.h * * Copyright (C) Olivier Verville * * ...
#include "sfpr_timer.h" #include <errno.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #ifdef __cplusplus extern "C" { #endif sfpr_timer_t* sfpr_timer_create() { sfpr_timer_id_t timer_id; sfpr_timer_t *timer; int ret; timer = (sfpr_timer_t*)malloc(sizeof(sfpr_timer_t)); if(!timer) { return NULL...
/** * This code is released under the * Apache License Version 2.0 http://www.apache.org/licenses/. * * (c) Daniel Lemire */ #ifndef SIMDCompressionAndIntersection_SIMDBITPACKING_H_ #define SIMDCompressionAndIntersection_SIMDBITPACKING_H_ #include "common.h" namespace SIMDCompressionLib { void __SIMD_fastunpack...
/* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, 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/lice...
/************************************************************************** Copyright (c) 2016 sewenew 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/licen...
// // DidUtils.h // Indy-demo // // Created by Anastasia Tarasova on 02.06.17. // Copyright © 2017 Kirill Neznamov. All rights reserved. // #import <Foundation/Foundation.h> #import <XCTest/XCTest.h> #import <Indy/Indy.h> @interface DidUtils : XCTestCase + (DidUtils *)sharedInstance; // MARK: - Instance methods...
#ifndef QUALIFICATIONLIST_H #define QUALIFICATIONLIST_H #include <QList> #include <QJsonArray> #include <QJsonValue> #include <QHash> #include "qualification.h" /** * List of all qualifications * @brief The QualificationList class * @author Georg Heyne * @date 06.04.2016 */ class QualificationList { public: Qu...
// -*- C++ -*- // // Copyright 2016 WebAssembly Community Group participants // // 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 // // Unl...
/*========================================================================= * * Copyright UMC Utrecht and contributors * * 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 * * h...
#include <stdio.h> #include <stdlib.h> typedef struct Node{ int key; struct Node *pNext; }Node; void reverseList(Node**head); void AddNode(Node** node,int key); void printList(Node *node);
/**************************************************************************** ** ** gsystem: A quick, micro library of C++ ** ** @author birderyu ** @contact https://github.com/birderyu ** @file gstringpool.h ** @date 2016-12-03 ** @brief ×Ö·û´®³ØÀàÐ͵͍Òå ** ***********************************************************...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2022 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
/**************************************************************************** * Copyright(C)2013-2014 by TanekLiang<y574824080@gmail.com> * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you m...
#include <stdlib.h> #include <stdio.h> #include <math.h> int main (int argc, char ** argv) { if (argc != 2) { fprintf (stderr, "usage: %s eta \n", argv[0]); return 1; } double eta = atof(argv[1]); double val = 2.0 * atan (exp (-1.0e0 * eta)); double cott = cos(val)/sin(val); fprintf (stdout, "c...
// Copyright 2013 Peter Wallström // // 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 to in writing,...
/* * Copyright (c) 2016, https://github.com/nebula-im * 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 * * U...
/* * Copyright (C) 2017 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Copyright 2021 The IREE Authors // // Licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include "iree/hal/vmvx/registration/driver_module_sync.h" #include <inttypes.h> #include <stdde...
///////////////////////////////////////////////////////////////////////////// // Copyright (c) 2009-2011 Alan Wright. All rights reserved. // Distributable under the terms of either the Apache License (Version 2.0) // or the GNU Lesser General Public License. ////////////////////////////////////////////////////////////...
/* * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
// // MyAddViewController.h // 18_我的通讯录 // // Created by wxhl on 16-4-23. // Copyright (c) 2016年 wxhl. All rights reserved. // #import <UIKit/UIKit.h> @class MyMainModel; typedef void(^MyAddViewControllerBlock)(MyMainModel *myModel); @interface MyAddViewController : UIViewController @property (nonatomic, strong...
#include <stdlib.h> #include <list> #include <string> #include "gtest/gtest.h" #include "boost/filesystem.hpp" #include "common/s3util.h" #include "rocksdb/db.h" #include "rocksdb/sst_file_writer.h" using boost::filesystem::remove_all; using rocksdb::EnvOptions; using rocksdb::Logger; using rocksdb::Options; using ...
// // ActionSheetPickerDelegate.h // ActionSheetPicker // // Created by on 13/03/2012. // Copyright (c) 2012 Club 15CC. All rights reserved. // #import <UIKit/UIKit.h> #import "AbstractActionSheetPicker.h" @protocol ActionSheetCustomPickerDelegate <UIPickerViewDelegate, UIPickerViewDataSource> @optional /** ...
#ifndef __ENTITY_H__ #define __ENTITY_H__ #include <map> #include <sstream> #include <string> #include "netlicensing/datatypes.h" namespace netlicensing { class BaseEntity { private: String_t number_i; Boolean_t active_i = true; std::map<std::string, String_t> properties_i; public: void setNumber(const Str...
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: /Volumes/Personal/Documents/raspi-config/client-framework/build/j2oSources/com/google/common/io/Flushables.java // #include "J2ObjC_header.h" #pragma push_macro("INCLUDE_ALL_ComGoogleCommonIoFlushables") #ifdef RESTRICT_ComGoogleCommonIoFlushables #...
#include <stdio.h> void drop_privs(const char *dir, const char *name) { fprintf(stderr, "WARNING: Cannot drop privileges!"); }
/** * @file * @brief Serial driver for x86 (compatible with 16550) * * @date 12.04.10 * @author Nikolay Korotky */ #include <stdint.h> #include <asm/io.h> #include <drivers/diag.h> #include <drivers/serial/8250.h> #include <drivers/uart_device.h> #include <drivers/serial/diag.h> #include <embox/unit.h> EMBOX_UN...
/* Copyright (c) 2014, J.D. Koftinoff Software, Ltd. 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 conditions an...
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2014-2021 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
// Copyright (c) 2020 The Orbit 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 ORBIT_BASE_UNIQUE_RESOURCE_H_ #define ORBIT_BASE_UNIQUE_RESOURCE_H_ #include <functional> #include <optional> namespace orbit_base { /* unique...
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
#ifndef QUEUE_H #define QUEUE_H #include <GASPI.h> void wait_for_queue_entries_for_read_notify (gaspi_queue_id_t*); void wait_for_queue_entries_for_write_notify (gaspi_queue_id_t*); void wait_for_queue_entries_for_notify (gaspi_queue_id_t*); void wait_for_queue_max_half (gaspi_queue_id_t*); void wait_for_flush_queues...
#include<stdio.h> // define directive #define CHOICE 500 #define ANOTHERCHOICE 600 #define AGAINCHOICE int my_int = 0; // unsigned integer type, platform dependent // it can be 16, 32 or 64 bits, size_t x = 0; // if, else, endif directives // conditional compilation #if (CHOICE == 500) void set_my_int() { my_int ...
#ifndef V2_ENCDEC_H #define V2_ENCDEC_H #include "file_segment_ptr.h" #include "dictionary.h" #include "xdr_primitives.h" #include "fwd.h" #include "encdec_ctx.h" #include "bitset.h" #include <monsoon/history/dir/dirhistory_export_.h> #include <monsoon/xdr/xdr.h> #include <monsoon/xdr/xdr_stream.h> #include <monsoon/t...
/* @LICENSE(MUSLC_MIT) */ #define _GNU_SOURCE #include <math.h> double significand(double x) { return scalbn(x, -ilogb(x)); }
// // PLYLostPasswordViewController.h // PL // // Created by Oliver Drobnik on 28/07/14. // Copyright (c) 2014 Cocoanetics. All rights reserved. // @class PLYLostPasswordViewController, PLYTextField, PLYUser; /** Protocol for informing a delegate about the result of a user requesting for his password to be reset...
../../../JSQMessagesViewController/JSQMessagesViewController/Model/JSQMessageMediaData.h
// Copyright (c) 2015, LKC Technologies, 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: // // Redistributions of source code must retain the above copyright notice, this // list of condi...
/* * Symmetric primitives for Kyber (90s mode) * (C) 2022 Jack Lloyd * (C) 2022 Hannes Rantzsch, René Meusel, neXenio GmbH * * Botan is released under the Simplified BSD License (see license.txt) */ #ifndef BOTAN_KYBER_90S_H_ #define BOTAN_KYBER_90S_H_ #include <botan/hash.h> #include <botan/stream_cipher.h> #...
#ifndef SV_UPSERT_H_ #define SV_UPSERT_H_ /* * sophia database * sphia.org * * Copyright (c) Dmitry Simonenko * BSD License */ typedef struct svupsertnode svupsertnode; typedef struct svupsert svupsert; struct svupsertnode { uint64_t lsn; uint8_t flags; ssbuf buf; }; #define SV_UPSERTRESRV 16 struct svupse...
/* * THE NEW CHRONOTEXT TOOLKIT: https://github.com/arielm/new-chronotext-toolkit * COPYRIGHT (C) 2012, ARIEL MALKA ALL RIGHTS RESERVED. * * THE FOLLOWING SOURCE-CODE IS DISTRIBUTED UNDER THE MODIFIED BSD LICENSE: * https://github.com/arielm/new-chronotext-toolkit/blob/master/LICENSE.md */ #pragma once #include...
// SPDX-License-Identifier: BSD-2-Clause /* * Copyright (c) 2016, GlobalLogic * Copyright (c) 2017, Linaro Limited * 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...
#include "midimonster.h" #include <lua.h> #include <lualib.h> #include <lauxlib.h> //OSX and Windows don't have the cool new toys... #ifdef __linux__ #define MMBACKEND_LUA_TIMERFD #endif MM_PLUGIN_API int init(); static int lua_configure(char* option, char* value); static int lua_configure_instance(instance* inst, ...
// // Copyright (c) 2009, Markus Rickert // 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 condit...
/* * Copyright (c) 2013-2016, Roland Bock * 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 cond...
/* $NetBSD: bitops.h,v 1.11 2012/12/07 02:27:58 christos Exp $ */ /*- * Copyright (c) 2007, 2010 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Christos Zoulas and Joerg Sonnenberger. * * Redistribution and use in source and bi...
/* * Copyright 2014, NICTA * * This software may be distributed and modified according to the terms of * the GNU General Public License version 2. Note that NO WARRANTY is provided. * See "LICENSE_GPLv2.txt" for details. * * @TAG(NICTA_GPL) */ #ifndef __ETHIFACE_RAW_IFACE_H__ #define __ETHIFACE_RAW_IFACE_H__ ...