text stringlengths 4 6.14k |
|---|
//
// Bluebird.h
// Bluebird
//
// Created by Alejandro Barros on 03/02/15.
// Copyright (c) 2015 Alejandro Barros Cuetos. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for Bluebird.
FOUNDATION_EXPORT double BluebirdVersionNumber;
//! Project version string for Bluebird.
FOUNDATION_E... |
/* $begin forkprob6 */
#include "csapp.h"
void doit() {
if (Fork() == 0) {
Fork();
printf("hello %d\n",getpid());
return;
}
}
int main() {
doit();
printf("hello\n");
//wait(NULL);
exit(0);
}
/* $end forkprob6 */
|
#ifndef COMMON_IPC_SH_MEM_H_
#define COMMON_IPC_SH_MEM_H_
#include "../constantes.h"
struct shmem_data {
int asientos[MAX_ASIENTOS];
int cantidad;
bool dirty;
};
struct shmem;
/* Utilizadas por proceso maestro (q crea y destruye la memoria) */
shmem* sh_mem_create(int n);
void sh_mem_destroy(shmem* mem)... |
/*
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __ESP_SPIRAM_H
#define __ESP_SPIRAM_H
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Initialize s... |
//
// VSNOHeightButton.h
// newEye4+
//
// Created by xiao-- on 16/12/15.
// Copyright © 2016年 VStsrcam. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface VSNOHeightButton : UIButton
@end
|
/*
* utils.h
*
* Created on: Jan 19, 2015
* Author: amlogic
*/
#ifndef UTILS_H_
#define UTILS_H_
#include <stdlib.h>
#define FOURCC(c1, c2, c3, c4) \
(c1 << 24 | c2 << 16 | c3 << 8 | c4)
uint16_t U16_AT(const uint8_t *ptr);
uint32_t U32_AT(const uint8_t *ptr);
uint64_t U64_AT(const uint8_t *ptr);
ui... |
/* lapack/double/dlae2.f -- translated by f2c (version 20090411).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2... |
/*
Copyright 2017 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 ... |
//
// CustomerTableViewCell.h
// AutoRepairHelper
//
// Created by Points on 15/5/1.
// Copyright (c) 2015年 Poitns. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CustomerTableViewCell : UITableViewCell
{
EGOImageView *m_head;
UILabel *m_carCodeLab;
UILabel *m_nameLab;
UILabel *m_telLa... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
/************************************************************************************
* xt_mm_api.c: Implementation File
*
* DESCRIPTION :
*
* AUTHOR : Sean Feng <SeanFeng2006@hotmail.com>
* DATE : Sep. 24, 2010
*
* Copyright (c) 2010-?. All Rights Reserved.
*
* REMARKS:
*
*
***********************... |
// NOTE: This file was generated by the ServiceGenerator.
// ----------------------------------------------------------------------------
// API:
// Security Command Center API (securitycenter/v1)
// Description:
// Security Command Center API provides access to temporal views of assets and
// findings within an... |
#ifndef __FATTESTER_H
#define __FATTESTER_H
#include "ff.h"
#include "sys.h"
u8 mf_mount(u8 drv);
u8 mf_open(u8*path,u8 mode);
u8 mf_close(void);
u8 mf_read(u16 len);
u8 mf_write(u8*dat,u16 len);
u8 mf_opendir(u8* path);
u8 mf_readdir(void);
u8 mf_scan_files(u8 * path);
u32 mf_showfree(u8 *drv);
u8 mf_lsee... |
#ifndef BEARER_TOKEN_H
#define BEARER_TOKEN_H
#include <stdint.h>
#include "json.h"
#include "json_object.h"
#ifdef __cplusplus
extern "C" {
#endif
#define ACCESS_ACTION_NONE 0
#define ACCESS_ACTION_PULL (1<<0)
#define ACCESS_ACTION_PUSH (1<<1)
typedef struct _bearer_token bearer_token_t;
typed... |
//
// Created by arrow on 9/13/16.
//
#ifndef RETHINKMUD_NETWORK_H
#define RETHINKMUD_NETWORK_H
#include <asio.hpp>
namespace rethinkmud
{
namespace net
{
void init();
void start();
void stop();
void clean();
asio::io_service& get_io_service();
}
}
#endif //RE... |
/*
* pubsubpluginUDP: Generic GUCEF COMCORE plugin for providing pubsub approximation via UDP
*
* Copyright (C) 1998 - 2020. Dinand Vanvelzen
*
* 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... |
/* The question is whether we can observe the result r2 = 1. This result is not
possible in this program, but it becomes possible after rewriting r3=y to r3=r2. */
#include <pthread.h>
int x = 0;
int y = 0;
int done1 = 0;
void thr1() {
int r1;
r1 = x;
y = r1;
done1 = 1;
}
void thr2() {
int r2, r3;
r2... |
/**
* @license Apache-2.0
*
* Copyright (c) 2019 The Stdlib 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 a... |
/*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opti... |
#ifndef TEXTURE_H__
#define TEXTURE_H__
#include "define.h"
#include <IL/il.h>
#include <string>
class Texture
{
public:
Texture(const std::string& filename = "");
~Texture();
bool Load(const std::string& filename);
bool IsValid() const;
void Bind() const;
private:
GLuint m_textureId;
b... |
#pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "mscorlib_System_Object2689449295.h"
// System.Collections.Generic.IList`1<UnityEngine.Canvas>
struct IList_1_t750346367;
#ifdef __clang__
#pragma clang diagnostic push
... |
#ifndef ARM_PACKET_DEFINE_H
#define ARM_PACKET_DEFINE_H
#endif // ARM_PACKET_DEFINE_H
typedef unsigned char byte;
const char COMMAND_WRITE= 0xC0;
const char COMMAND_READ= 0xC1;
const char COMMAND_CHECK_ERROR= 0xC2;
const char COMMAND_RETURN= 0xC3;
const char SET_ENABLE_SLIDER= 0x01;
const char SET_ENABLE_ARM_PUSH=... |
/*
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <ipc/ipc_service.h>
#include <ipc/ipc_service_backend.h>
#include <logging/log.h>
#include <zephyr.h>
#include <device.h>
LOG_MODULE_REGISTER(ipc_service, CONFIG_IPC_SERVICE_LOG_LEVEL);
const static struct ipc_s... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ec2/EC2_EXPORTS.h>
#include <aws/ec2/EC2Request.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace EC2
{
namespace Model
{
... |
/*
* font server atom manipulations
*/
/*
Copyright 1987, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and... |
//
// HHHTextField.h
// HHHFieldView
//
// Created by xiaoaihhh on 2018/2/12.
// Copyright © 2018年 com.hhh.www. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HHHTextField : UITextField
@end
|
#ifndef crypto_box_curve25519xsalsa20poly1305_H
#define crypto_box_curve25519xsalsa20poly1305_H
#include <stddef.h>
#include "export.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif
#define crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES 32U
SODIUM_E... |
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_yyh_lib_bsdiff_JPatch */
#ifndef _Included_com_yyh_lib_bsdiff_JPatch
#define _Included_com_yyh_lib_bsdiff_JPatch
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_yyh_lib_bsdiff_PatchUtils
* Method: genNewApk
... |
#include "param.h"
#include "tty.h"
#include "systm.h"
#include "conf.h"
#include "buf.h"
/*
* The actual structure of a clist block manipulated by
* getc and putc (mch.s)
*/
struct cblock {
struct cblock *c_next;
char c_info[CBSIZE];
};
struct cblock cfree[NCLIST];
struct cblock *cfreelist;
int cbad;
/*
* ... |
//
// AppDelegate.h
// picker-sample
//
// Created by happy_ryo on 2014/08/01.
// Copyright (c) 2014年 happy_ryo. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
/*
* BTrie Sedna specialization
* Copyright (c) 2010 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS)
*/
#ifndef SEDNABTRIE_H
#define SEDNABTRIE_H
#include <string.h>
#include "btrie.h"
#include <stdint.h>
void btrie_collect_stat(xptr entry_point);
inline
static btrie_record_t sb... |
int nondet_int();
int main() {
int fail=0;
int x=nondet_int();
__ESBMC_assume(x>0);
while(x>0) {
__ESBMC_assume(fail!=1);
if(fail==1) {
x= -1;
// fail=2;
} else {
x--;
}
}
assert(x==0);
}
|
#ifndef AISTREAMS_UTIL_GRPC_STATUS_DELEGATE_H_
#define AISTREAMS_UTIL_GRPC_STATUS_DELEGATE_H_
#include "absl/strings/string_view.h"
#include "aistreams/port/status.h"
#include "grpcpp/grpcpp.h"
namespace aistreams {
namespace util {
// Creates a aistreams::Status from a grpc::Status.
aistreams::Status MakeStatusFrom... |
//
// AppDelegate.h
// 02.Masonry与scrollView
//
// Created by 陈泽嘉 on 15/12/20.
// Copyright (c) 2015年 dibadalu. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
/* Copyright (©) 2012 Sense Observation Systems B.V.
* 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... |
//
// ChartsBootstrap.h
// ChartsBootstrap
//
// Created by Pavel Diatchenko on 27/06/2015.
// Copyright (c) 2015 Pavel Diatchenko. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for ChartsBootstrap.
FOUNDATION_EXPORT double ChartsBootstrapVersionNumber;
//! Project version string for... |
/**
* @copyright Copyright 2016 The J-PET Framework Authors. 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 find a copy of the License in the LICENCE file.
*
* Unless required by applicable la... |
/**
* FreeRDP: A Remote Desktop Protocol Implementation
* FreeRDP Proxy Server
*
* Copyright 2019 Kobi Mizrachi <kmizrachi18@gmail.com>
*
* 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... |
/* -*- Mode: C++ -*-
*
* contextkit-meego
* Copyright © 2010, Intel Corporation.
* Copyright © 2012, Jolla.
*
* This program is licensed under the terms and conditions of the
* Apache License, version 2.0. The full text of the Apache License is at
* http://www.apache.org/licenses/LICENSE-2.0
*
*/
#ifndef C... |
/*
*
* Copyright (c) 2016-2017 Nest Labs, Inc.
* Copyright (c) 2019-2020 Google LLC.
* 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
*
* ... |
#ifndef COORDINATES_H
#define COORDINATES_H
struct coord {
int x;
int y;
coord(int x, int y):
x(x), y(y){}
bool operator==(const coord& other) const {
return (other.x == x && other.y == y);
}
bool operator!=(const coord& other) const {
return !(other == *this);
}
};
#e... |
/* Program to calculate the maximum distance from root to a node in graph with no cycles.
1. We do a BFS from starting from root of graph.
2. During BFS we also store the distance of a node from root.
3. If a node is already visited but still has more distance from incoming node then update its distance
and add it... |
/*
Textron
Based on Smultron Written by Peter Borg, pgw3@mac.com
Find the latest version at http://vijaykiran.com/textron
Copyright 2004-2009 Peter Borg
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 Licens... |
/*
* GUID definitions
*
* Copyright 2000 Alexandre Julliard
* Copyright 2000 Francois Gouget
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License... |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "annotation.h"
#include <vector>
#include <cassert>
namespace document {
struct SpanNode;
struct SpanTreeVisitor;
class SpanTree {
typedef std::vector<Annotation> AnnotationVector;
... |
/*!The Treasure Box Library
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version ... |
/****************************************************************************
* Copyright 2017 Gorgon Meducer (Email:embedded_zhuoran@hotmail.com) *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you m... |
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#ifndef MATLAB_MEX_FILE
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>
#include <fcntl.h>
#endif
void udp_emission_init(int port);
voi... |
//
// MeViewController.h
// Lebao
//
// Created by David on 15/12/4.
// Copyright © 2015年 David. All rights reserved.
//
#import "BaseViewController.h"
@interface MeViewController : BaseViewController
@end
typedef NS_ENUM(int,AuthenType) {
AuthenTypeNo =1,
AuthenTypeIng,
AuthenTypeYes,
Auth... |
// 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... |
/* $NetBSD: convert.c,v 1.2 2011/02/16 03:46:58 christos Exp $ */
/*
* convert.c - convert domain name
*/
/*
* Copyright (c) 2000,2002 Japan Network Information Center.
* All rights reserved.
*
* By using this file, you agree to the terms and conditions set forth bellow.
*
* LICENSE TERMS AND CONDITIONS... |
//==============================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2016, CHAI3D.
(www.chai3d.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted pro... |
/*=========================================================================
Program: Diffusion Applications
Module: $HeadURL: http://svn.slicer.org/Slicer4/trunk/Modules/CLI/ResampleDTIVolume/itkDiffusionTensor3DInterpolateImageFunctionReimplementation.h $
Language: C++
Date: $Date: 2014-09-15 22:57... |
#include <stdio.h>
struct print_buf {
char *buf;
size_t size;
};
static void snprint_func(void *arg, char ch) {
struct print_buf *pbuf = arg;
if (pbuf->size < 2) {
/* Reserve last buffer position for the terminating character: */
return;
}
*(pbuf->buf)++ = ch;
pbuf->size--;
}
int snprintf(char *buf, si... |
//////////////////////////////////////////////////////////////////////
//
// Material.h - Implementation help for materials
//
// Author: Aravind Krishnaswamy
// Date of Birth: November 19, 2001
// Tabs: 4
// Comments: Changed February 26 / 2002 to support a more robust
// and much cooler material system. Note ... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
/**
* This will hold all of our enums and types and such that we need to
* use in multiple files where the enum can't be mapped to a specific file.
*/
#include "DialogueTypes.generated.h"
UENUM()
namespace EGrammaticalGender
{
enum Type
... |
/*
* Copyright 2010-2022 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/
#ifndef BX_FILEPATH_H_HEADER_GUARD
#define BX_FILEPATH_H_HEADER_GUARD
#include "error.h"
#include "string.h"
namespace bx
{
BX_ERROR_RESULT(kErrorAccess, BX_MAKEFOURCC('b', 'x'... |
/*
% Version: v0.9d
% Build: 14061709
% Date: Jun-17 2014, 9:30 AM EST
% Author: Chih-Chung Chang and Chih-Jen Lin, NTU CSIE, Taiwan
% Editor: Jochen Weber, SCAN Unit, Columbia University, NYC, NY, USA
% URL/Info: http://www.csie.ntu.edu.tw/~cjlin/libsvm/
*/
const char *model_to_matlab_structure(mxArray ... |
/*
Copyright (c) 2011, Ole K. Christensen
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
and the fol... |
#ifndef seal_quadColours_triangles_h
#define seal_quadColours_triangles_h
#include <OpenGL/OpenGL.h>
class seal_QuadColours_Triangles
{
public:
GLfloat m_rgba[ 24 ];
public:
seal_QuadColours_Triangles( void ){}
seal_QuadColours_Triangles( const GLfloat r, const GLfloat g, const GLfloat b, const GLf... |
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2012-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... |
/*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
struct s {
char c;
int x;
};
char f(struct s *sptr, int byteno)
{
char array[... |
/*
* YAFFS: Yet another FFS. A NAND-flash specific file system.
*
* Copyright (C) 2002-2018 Aleph One Ltd.
*
* Created by Timothy Manning <timothy@yaffs.net>
*
* 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 ... |
/*
+--------------------------------------------------------------------+
| PECL :: http |
+--------------------------------------------------------------------+
| Redistribution and use in source and binary forms, with or without |
| modificatio... |
//=================================================================================================
/*!
// \file blaze/math/Functors.h
// \brief Header file for all functors
//
// Copyright (C) 2012-2017 Klaus Iglberger - All Rights Reserved
//
// This file is part of the Blaze library. You can redistribute it and/... |
/* lens_quantile.c
Marina C., 19 Feb 2018
FreeBSD-style copyright and disclaimer apply
*/
// -----------------------------------------------------------------------------
// struct
// -----------------------------------------------------------------------------
struct optics_packed lens_quantile
{
double t... |
//
// pso.h
// psobase
//
// Copyright (c) 2011, Jianhua Zhang
// 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,... |
/*
INVERSÃO. Escreva uma função que inverta a ordem
das células de uma lista encadeada (a primeira passa a
ser a última, a segunda passa a ser a penúltima etc.).
Faça isso sem criar novas células; apenas altera os
ponteiros.
*/
#include <stdio.h>
#include <stdlib.h>
typedef struct cell{
int conteudo;
struct c... |
/*
+------------------------------------------------------------------------+
| Phalcon Framework |
+------------------------------------------------------------------------+
| Copyright (c) 2011-2014 Phalcon Team (http://www.phalconphp.com) |
+-----... |
//
// AppDelegate.h
// PhotoBroswer
//
// Created by FelixYin on 15/8/5.
// Copyright © 2015年 felixios. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
/*
* Copyright 2017 Two Pore Guys, Inc.
* All rights reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted providing that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of cond... |
//
// NWLAppDelegate.h
// NWLoggingCocoaDemo
//
// Copyright (c) 2012 noodlewerk. All rights reserved.
//
@interface NWLAppDelegate : NSObject <NSApplicationDelegate>
@property (assign) IBOutlet NSWindow *window;
@end
|
/*
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
* From ASN.1 module "CDR"
* found in "../cdr.asn1"
* `asn1c -fskeletons-copy -fnative-types`
*/
#include "AddressString.h"
int
AddressString_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key)... |
#if defined(__cplusplus)
} /* extern "C" */
#endif /* defined(__cplusplus) */
#endif /* BEE_MODULE_H_INCLUDED */
|
/*
*@brief RDTSC implementation
*
*@date 22.10.2013
*
*
*/
#include <stdint.h>
#include <lib/libcpu_info.h>
uint64_t get_cpu_counter(void) {
uint32_t hi = 0, lo = 0;
asm volatile ( "rdtsc\n\t"
"movl %%eax, %0\n\t"
"movl %%edx, %1\n\t" :
"=r"(lo), "=r"(hi) :);
return (((uint64_t) hi) << 32) + ... |
#ifndef STRINGUTIL_H
#define STRINGUTIL_H
#include "common.h"
#include "Win32Util.h"
#include <string>
#include <limits>
#include <Windows.h>
/**
* Typedef for unicode/non-unicode strings
* equivalent of TCHAR for stl strings
* @author Cookiemon
*/
typedef std::basic_string<TCHAR> tstring;
/**
* Does a case in... |
/***************************************************************************/
/* */
/* ftxf86.c */
/* */
/* Fr... |
/* DO NOT EDIT MANUALLY!!!
This file was generated by CIDL.
Copyright 2014, NICTA
This software may be distributed and modified according to the terms of
the BSD 2-Clause license. Note that NO WARRANTY is provided.
See "LICENSE_BSD2.txt" for details.
@TAG(NICTA_BSD)
*/
// DO NOT EDIT MANUALLY!!!
/... |
/*
*****************************************************************************
* @file mcu_config.h
* @author Y3288231
* @date jan 15, 2014
* @brief Hardware abstraction for communication
*****************************************************************************
*/
#ifndef STM32F4_CONFIG_H_
... |
/* { dg-do run } */
int main ()
{
unsigned long long a;
if (! (a = 0xfedcba9876543210ULL))
abort ();
exit (0);
}
|
/*
Copyright (c) 1996 Blake McBride
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 and th... |
#ifndef __MONO_NATIVE_MSCORLIB_SYSTEM_RUNTIME_INTEROPSERVICES_COMTYPES_BIND_OPTS_H
#define __MONO_NATIVE_MSCORLIB_SYSTEM_RUNTIME_INTEROPSERVICES_COMTYPES_BIND_OPTS_H
#include <mscorlib/System/mscorlib_System_ValueType.h>
#include <mscorlib/System/mscorlib_System_Object.h>
namespace mscorlib
{
namespace System
{
... |
#ifndef AGENT_H
#define AGENT_H
#include <boost/shared_ptr.hpp>
#include <agent/lockable.h>
namespace boost {
class thread;
}
typedef boost::shared_ptr<boost::thread> ThreadPtr;
//! All of this is highly experimental.
class Agent : public SharedLockable
{
public:
Agent() : SharedLockable(), quitting_(false), runni... |
/*
This file is a part of libcds - Concurrent Data Structures library
(C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
Redistribution and use in source and binary forms, with... |
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GTKMM_ITEM_H
#define _GTKMM_ITEM_H
#include <glibmm.h>
/* $Id: item.hg,v 1.1 2003/01/21 13:40:28 murrayc Exp $ */
/* item.h
*
* Copyright (C) 1998-2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or... |
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by heapstat.rc
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE ... |
#include "appengine/base/fxp.h"
#define T int
#define LL long long
T smull_fxp16(T x, T y)
{
return (T) (((LL) x * (LL) y) >> 16);
}
|
#ifndef TASK_WAIT_FOR_STATUS_SYNC_H
#define TASK_WAIT_FOR_STATUS_SYNC_H
#include "task_manager_lib/TaskDefinition.h"
#include "task_manager_sync/TaskEnvironmentSync.h"
#include "task_manager_sync/TaskWaitForStatusSyncConfig.h"
using namespace task_manager_lib;
namespace task_manager_sync {
class TaskWaitForStatu... |
//
// JBTableViewCell.h
// Go2
//
// Created by Jonathan Buys on 10/24/10.
// Copyright 2010 Farmdog Software. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface JBTableViewCell : NSCell
{
NSImage *backgroundImage;
NSMutableParagraphStyle *myDefaultStyle;
}
@end
|
/*Robert Maynard
MIRARCO
Aug 287 2008
vtkGocadTSolid handles reading tetra based gocad objects
*/
#ifndef __vtkGocadTSolid_h
#define __vtkGocadTSolid_h
#include "vtkGocadAtomic.h"
//BTX
class vtkInternalMap;
class vtkInternalProps;
//ETX
class VTK_EXPORT vtkGocadTSolid : public vtkGocadAtomic
{
public:
static... |
// 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 COMPONENTS_NETWORK_HINTS_RENDERER_WEB_PRESCIENT_NETWORKING_IMPL_H_
#define COMPONENTS_NETWORK_HINTS_RENDERER_WEB_PRESCIENT_NETWORKING_IMPL_H_
#in... |
/*-
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <phk@FreeBSD.org> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can bu... |
/*Copyright (c) 2007 by Ben Sunshine-Hill
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare ... |
/* The quaternion is encoded into a vf4_t as { i, j, k, a }. */
#ifndef AOSQ_H
#define AOSQ_H
#include "simd.h"
struct aosf33;
/* Set operations. */
static FINLINE vf4_t
aosq_identity(void)
{
return vf4_set(0.f, 0.f, 0.f, 1.f);
}
static FINLINE vf4_t
aosq_set_axis_angle(vf4_t xyz_, vf4_t aaaa)
{
const vf4_t hal... |
#include "common.h"
#include <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
void xerbla(
const char* SRNAME,
integer INFO)
{
fprintf(stderr, " ** On entry to %s parameter number %ld had an illegal value\n", SRNAME, INFO);
#ifdef HAVE_STDLIB_H
exit(EXIT_FAILURE);
#endif
}
|
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <ABI44_0_0React/ABI44_0_0renderer/attributedstring/TextAttributes.h>
#include <ABI44_0_0React/ABI44_0_0rende... |
// This file is part of MANTIS OS, Operating System
// See http://mantis.cs.colorado.edu/
//
// Copyright (C) 2003-2005 University of Colorado, Boulder
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the mos license (see file LICENSE)
#include "run.h"
#include <... |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... |
/* This file is part of the YAZ toolkit.
* Copyright (C) 1995-2013 Index Data.
* 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 co... |
/*
* mwt_request.c
*
* Created on: 2014年10月12日
* Author: macbook
*/
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.