repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
Katistic/3ds_monty | 3ds/modules/citrus/helpers.h | #ifndef _CITRUS_HELPERS_H_
#define _CITRUS_HELPERS_H_
#include <3ds.h>
#include "py/runtime.h"
#include "../helpers.h"
// Console
mp_obj_t _mod_citrus_console_PrintConsole_new_default(void);
mp_obj_t _mod_citrus_console_PrintConsole_new_from_c(PrintConsole *con);
// GFX
gfxScreen_t _mod_citrus_gfx_get_gfx_screen(... |
Katistic/3ds_monty | 3ds/modules/sf2d/Texture.c | <gh_stars>10-100
#include <string.h>
#include <sf2d.h>
#include "py/runtime.h"
#include "helpers.h"
#include "../citrus/helpers.h"
#define SELF(src) mod_sf2d_Texture_t *self = src
#define HASARG(n) ((used_args & BIT(n)) != 0)
#define ATTR_METHOD(__n) \
if(!strcmp(name, qstr_str(MP_QSTR_##__n))) { \
de... |
Katistic/3ds_monty | py/lexer.h | <reponame>Katistic/3ds_monty<gh_stars>100-1000
/*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2013, 2014 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentatio... |
Katistic/3ds_monty | 3ds/netrepl.c | #include <arpa/inet.h>
#include <fcntl.h>
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include "basic_console.h"
#include "netcommon.h"
#include "netrepl.h"
static int server_socket = -1;
static int client_socket = -1;
static bool repl_thread_running = false;
static Thread repl_read_thread_handle;
stat... |
Katistic/3ds_monty | 3ds/modules/citrus/nfc.c | #include <3ds.h>
#include <3ds/services/nfc.h>
#include "py/runtime.h"
#include "../init_helper.h"
#define METHOD_OBJ(__n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_citrus_nfc_##__n##_obj, mod_citrus_nfc_##__n)
#define METHOD_OBJ_VAR(__min, __max, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_citrus_nfc... |
Katistic/3ds_monty | 3ds/modules/_img.c | <reponame>Katistic/3ds_monty
#include "py/runtime.h"
extern const mp_obj_type_t mod__img__PngLoader_type;
extern const mp_obj_type_t mod__img__JpegLoader_type;
STATIC const mp_rom_map_elem_t mp_module_img_globals_table[] = {
{MP_ROM_QSTR(MP_QSTR__PngLoader), MP_ROM_PTR(&mod__img__PngLoader_type)},
{M... |
Katistic/3ds_monty | 3ds/modules/citrus/env.c | #include <string.h>
#include <3ds.h>
#include "py/runtime.h"
#define METHOD_OBJ(__n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_citrus_env_##__n##_obj, mod_citrus_env_##__n)
#define LOCAL_METHOD(__n) \
{MP_OBJ_NEW_QSTR(MP_QSTR_##__n), (mp_obj_t) &mod_citrus_env_##__n##_obj}
STATIC mp_obj_t mod_citrus_env_is_ho... |
Katistic/3ds_monty | 3ds/modules/citrus/gpu.c | <gh_stars>10-100
#include <3ds.h>
#include "py/runtime.h"
#define LOCAL_INT(__n, __v) \
{MP_ROM_QSTR(MP_QSTR_##__n), MP_ROM_INT(__v)}
GPU_TEXUNIT _mod_citrus_gpu_get_texunit(mp_obj_t unit) {
if (mp_obj_is_integer(unit)) {
int _unit = mp_obj_get_int(unit);
if (_unit >= GPU_TEXUNIT0 && _unit <=... |
Katistic/3ds_monty | 3ds/mpconfigport.h | #include <stdint.h>
// options to control how Micro Python is built
#define MICROPY_QSTR_BYTES_IN_HASH (1)
#define MICROPY_ALLOC_PATH_MAX (512)
#define MICROPY_EMIT_X64 (0)
#define MICROPY_EMIT_THUMB (0)
#define MICROPY_EMIT_INLINE_THUMB ... |
Katistic/3ds_monty | py/nlr.h | /*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2013, 2014 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Sof... |
Katistic/3ds_monty | 3ds/modules/socket/SocketSocket.c | #include <errno.h>
#include <string.h>
#include <malloc.h>
#include <unistd.h>
#include <fcntl.h>
#include <3ds.h>
#include <netdb.h>
#include <arpa/inet.h>
#include "py/runtime.h"
#define SELF(src) mod_socket_Socket_t *self = src
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_s... |
Katistic/3ds_monty | 3ds/gccollect.c | void gc_collect(void) {
} |
Katistic/3ds_monty | 3ds/modules/citrus/ndsp.c | <filename>3ds/modules/citrus/ndsp.c
#include <3ds.h>
#include "py/runtime.h"
#include "../init_helper.h"
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_citrus_ndsp_##__n##_obj, mod_citrus_ndsp_##__n)
#define LOCAL_METHOD(__n) \
{MP_OBJ_NEW_QSTR(MP_QSTR_##__n), (mp_obj_t) &mo... |
Katistic/3ds_monty | 3ds/modules/citrus/ptmu.c | #include <3ds.h>
#include "py/runtime.h"
#include "../init_helper.h"
#define METHOD_OBJ(__n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_citrus_ptmu_##__n##_obj, mod_citrus_ptmu_##__n)
#define LOCAL_METHOD(__n) \
{MP_OBJ_NEW_QSTR(MP_QSTR_##__n), (mp_obj_t) &mod_citrus_ptmu_##__n##_obj}
static int _mod_citrus_pt... |
Katistic/3ds_monty | 3ds/modules/socket.c | #include <string.h>
#include <3ds.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include "py/runtime.h"
#define LOCAL_EXCEPTION(__n) \
{MP_ROM_QSTR(MP_QSTR_##__n), MP_ROM_PTR(&mod_socket_exception_##__n##_type)}
#define LOCAL_FIELD(__n) \
{MP_ROM_QSTR(MP_QSTR_##__n), MP_ROM_INT(__n)}
const mp_obj_type_... |
Katistic/3ds_monty | 3ds/modules/citrus/qtm.c | <reponame>Katistic/3ds_monty<gh_stars>10-100
#include <3ds.h>
#include "py/runtime.h"
#include "../init_helper.h"
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_citrus_qtm_##__n##_obj, mod_citrus_qtm_##__n)
#define LOCAL_METHOD(__n) \
{MP_OBJ_NEW_QSTR(MP_QSTR_##__n), (mp_obj... |
Katistic/3ds_monty | 3ds/basic_console.h | #ifndef _BASIC_CONSOLE_H_
#define _BASIC_CONSOLE_H_
#include <3ds.h>
inline void init_console(void) {
gfxInitDefault();
consoleInit(GFX_TOP, NULL);
}
#endif // _BASIC_CONSOLE_H_ |
Katistic/3ds_monty | 3ds/modules/citrus/classes/QtmHeadTracking.c | <filename>3ds/modules/citrus/classes/QtmHeadTracking.c
#include <string.h>
#include <3ds.h>
#include "py/runtime.h"
#define SELF(src) mod_citrus_qtm_HeadTracking_t *self = src
#define ATTR_METHOD(__n) \
if(!strcmp(name, qstr_str(MP_QSTR_##__n))) { \
dest[0] = (mp_obj_t) &mod_citrus_qtm_HeadTracking_##__... |
Katistic/3ds_monty | 3ds/modules/citrus/classes/PrintConsole.c | <filename>3ds/modules/citrus/classes/PrintConsole.c
#include <string.h>
#include <3ds.h>
#include "py/runtime.h"
#include "../helpers.h"
#define IGNORE_DEFAULT(dest, src, def) (dest = src == def ? dest : src)
#define SELF(src) mod_citrus_console_PrintConsole_t *self = src;
#define ATTR_METHOD(__n) \
if(!strcmp... |
Katistic/3ds_monty | 3ds/modules/citrus/exits.h | #ifndef _EXITS_H_
#define _EXITS_H_
extern mp_obj_t mod_citrus_ac_exit(void);
extern mp_obj_t mod_citrus_apt_exit(void);
extern mp_obj_t mod_citrus_cfg_exit(void);
extern mp_obj_t mod_citrus_gfx_exit(void);
extern mp_obj_t mod_citrus_gsp_exit(void);
extern mp_obj_t mod_citrus_hid_exit(void);
extern mp_obj_t mod_... |
Katistic/3ds_monty | 3ds/modules/citrus/console.c | #include <3ds.h>
#include "py/runtime.h"
#include "helpers.h"
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_citrus_console_##__n##_obj, mod_citrus_console_##__n)
#define LOCAL_METHOD(__n) \
{MP_OBJ_NEW_QSTR(MP_QSTR_##__n), (mp_obj_t) &mod_citrus_console_##__n##_obj}
#define... |
Katistic/3ds_monty | 3ds/modules/sf2d/helpers.h | <reponame>Katistic/3ds_monty
#ifndef _SF2D_HELPERS_H_
#define _SF2D_HELPERS_H_
#include "py/runtime.h"
#include <sf2d.h>
sf2d_texfmt _mod_sf2d_get_texfmt(mp_int_t format);
sf2d_place _mod_sf2d_get_place(mp_int_t place);
mp_obj_t _mod_sf2d_Texture_from_ptr(sf2d_texture *ptr);
#endif // _SF2D_HELPERS_H_ |
Katistic/3ds_monty | 3ds/modules/helpers.h | <reponame>Katistic/3ds_monty<filename>3ds/modules/helpers.h
#ifndef _MOD_HELPERS_H_
#define _MOD_HELPERS_H_
#define CDEF(name) { MP_ROM_QSTR(MP_QSTR_ ## name), MP_ROM_INT(name) }
#endif // _MOD_HELPERS_H_ |
Katistic/3ds_monty | 3ds/modules/citrus/gfx.c | #include <3ds.h>
#include "py/runtime.h"
#include "helpers.h"
#include "../init_helper.h"
#define METHOD_OBJ_N(__args, __n) \
STATIC MP_DEFINE_CONST_FUN_OBJ_##__args(mod_citrus_gfx_##__n##_obj, mod_citrus_gfx_##__n)
#define LOCAL_METHOD(__n) \
{MP_OBJ_NEW_QSTR(MP_QSTR_##__n), (mp_obj_t) &mod_citrus_gfx_##__... |
Katistic/3ds_monty | 3ds/modules/init_helper.h | #ifndef _INIT_HELPER_H_
#define _INIT_HELPER_H_
#define INIT_ONCE(var) \
if(var) { \
return mp_const_none; \
} \
var = 1;
#define EXIT_ONCE(var) \
if(!var) {\
return mp_const_none; \
} \
var = 0;
#endif // _INIT_HELPER_H_ |
Katistic/3ds_monty | 3ds/modules/sftd/Font.c | <filename>3ds/modules/sftd/Font.c
#include <string.h>
#include <sftd.h>
#include "py/runtime.h"
#define SELF(src) mod_sftd_Font_t *self = src
#define ATTR_METHOD(__n) \
if(!strcmp(name, qstr_str(MP_QSTR_##__n))) { \
dest[0] = (mp_obj_t) &mod_sftd_Font_##__n##_obj; \
}
#define METHOD_OBJ_N(__args, _... |
sttpshark/cppapi | src/lib/filterexpressions/FilterExpressionSyntaxBaseListener.h |
// Generated from FilterExpressionSyntax.g4 by ANTLR 4.9
#pragma once
#include "antlr4-runtime.h"
#include "FilterExpressionSyntaxListener.h"
/**
* This class provides an empty implementation of FilterExpressionSyntaxListener,
* which can be extended to create a listener which only needs to handle a subset
* o... |
sttpshark/cppapi | src/lib/transport/ActiveMeasurementsSchema.h | // Auto-generated on Fri Dec 18 12:07:31 2020
// EmbedFile.exe ActiveMeasurementsSchema D:\Projects\sttp\cppapi\src\lib\transport\ActiveMeasurementsSchema.xml -namespace=sttp::transport::
#pragma once
#include <cstdint>
namespace sttp {
namespace transport
{
const extern uint8_t ActiveMeasurementsSchema[];
c... |
sttpshark/cppapi | src/lib/transport/MetadataSchema.h | // Auto-generated on Fri Dec 18 12:06:16 2020
// EmbedFile.exe MetadataSchema D:\Projects\sttp\cppapi\src\lib\transport\MetadataSchema.xml -namespace=sttp::transport::
#pragma once
#include <cstdint>
namespace sttp {
namespace transport
{
const extern uint8_t MetadataSchema[];
const extern uint32_t MetadataS... |
sttpshark/cppapi | src/lib/transport/SecureSubscriberConnection.h | <filename>src/lib/transport/SecureSubscriberConnection.h
//******************************************************************************************************
// SecureSubscriberConnection.h - Gbtc
//
// Copyright � 2019, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Allian... |
sttpshark/cppapi | src/lib/transport/SecureDataPublisherOld.h | <reponame>sttpshark/cppapi<gh_stars>0
//******************************************************************************************************
// SecureDataPublisher.h - Gbtc
//
// Copyright � 2019, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more... |
sttpshark/cppapi | src/lib/filterexpressions/FilterExpressionSyntaxLexer.h |
// Generated from FilterExpressionSyntax.g4 by ANTLR 4.9
#pragma once
#include "antlr4-runtime.h"
class FilterExpressionSyntaxLexer : public antlr4::Lexer {
public:
enum {
T__0 = 1, T__1 = 2, T__2 = 3, T__3 = 4, T__4 = 5, T__5 = 6, T__6 = 7,
T__7 = 8, T__8 = 9, T__9 = 10, T__10 = 11, T__11 = 12, T__... |
chetmurthy/thrift-nicejson | src/plugins/cpp/ns_utils.h | #include <iostream>
#include <iterator>
#include <regex>
#include <streambuf>
#include <string>
#ifndef NS_UTIL_INCLUDED
#define NS_UTIL_INCLUDED
using std::string ;
string ns_open(const string& ns);
string ns_close(const string& ns);
string ns_prefix(const string& ns) ;
#endif
|
chetmurthy/thrift-nicejson | src/lib/ocaml/nicejson_intf.h | #include <iostream>
#include <string>
#include <tuple>
#include <vector>
#include "NiceJSON.h"
#ifndef nicejson_h_included
#define nicejson_h_included
namespace ocaml {
namespace nicejson {
std::string
foo(int n) ;
std::tuple< std::string, int >
bar(std::string s, int n);
void prepend_typelib_directory(const ... |
chetmurthy/thrift-nicejson | src/lib/cpp/NiceJSON.h | #include <boost/format.hpp>
#include <fstream>
#include <iostream>
#include <map>
#include <streambuf>
#include <string>
#include <vector>
#include <thrift/protocol/TDebugProtocol.h>
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/protocol/TJSONProtocol.h>
#include <thrift/transport/TTransport.h>
#includ... |
chetmurthy/thrift-nicejson | src/lib/cpp/TNiceJSONProtocol.h | <filename>src/lib/cpp/TNiceJSONProtocol.h<gh_stars>1-10
/*
* 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 th... |
frank-lesser/swipl-devel | src/pl-wrap.c | /* Part of SWI-Prolog
Author: <NAME>
E-mail: <EMAIL>
WWW: http://www.swi-prolog.org
Copyright (c) 2019, University of Amsterdam
VU University Amsterdam
CWI, Amsterdam
All rights reserved.
Redistribution and use in source and binary ... |
frank-lesser/swipl-devel | src/os/pl-glob.c | <filename>src/os/pl-glob.c
/* Part of SWI-Prolog
Author: <NAME>
E-mail: <EMAIL>
WWW: http://www.swi-prolog.org
Copyright (c) 2011-2020, University of Amsterdam
VU University Amsterdam
CWI, Amsterdam
All rights reserved.
Redistrib... |
frank-lesser/swipl-devel | src/pl-event.c | <filename>src/pl-event.c<gh_stars>1-10
/* Part of SWI-Prolog
Author: <NAME>
E-mail: <EMAIL>
WWW: http://www.swi-prolog.org
Copyright (c) 2019, University of Amsterdam
VU University Amsterdam
CWI, Amsterdam
All rights reserved.
Redis... |
zhangferry/YYModel | Example/Example/GitHubUser.h | //
// GitHubUser.h
// Example
//
// Created by zhangferry on 2021/3/14.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface GitHubUser : NSObject
@property (nonatomic, assign) UInt64 userID;
@property (nonatomic, strong) NSString *avatarURL;
@property (nonatomic, assign) BOOL siteAdmin;
@prop... |
zhangferry/YYModel | Example/Example/NSObject+DefaultValue.h | <gh_stars>1-10
//
// NSObject+DefaultValue.h
// Example
//
// Created by zhangferry on 2021/3/14.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_OPTIONS(NSUInteger, YYPropertyType) {
YYPropertyTypeNone = 1 << 0,
YYPropertyTypeNSString = 1 << 1,
YYPropertyTypeNSNumb... |
mdda/Theano | theano/sandbox/gpuarray/conv_desc.c | #section support_code_apply
int APPLY_SPECIFIC(conv_desc)(PyArrayObject *filt_shp,
cudnnConvolutionDescriptor_t *desc) {
cudnnStatus_t err;
int pad[3] = {PAD_0, PAD_1, PAD_2};
int strides[3] = {SUB_0, SUB_1, SUB_2};
int upscale[3] = {1, 1, 1};
#if BORDER_MODE == 0
pad[0] = *(np... |
mdda/Theano | theano/sandbox/cuda/cudnn_helper.h | <reponame>mdda/Theano
#ifndef CUDNN_HELPER_H
#define CUDNN_HELPER_H
#include <cudnn.h>
#ifndef CUDNN_VERSION
#include <assert.h>
// Here we define the R2 API in terms of functions in the R1 interface
// This is only for what we use
static inline const char *cudnnGetErrorString(cudnnStatus_t err) {
switch (err) {
... |
mdda/Theano | theano/sandbox/cuda/dnn_base.c | <reponame>mdda/Theano
#section support_code
static cudnnHandle_t _handle = NULL;
static int
c_set_tensorNd(CudaNdarray *var, cudnnTensorDescriptor_t desc) {
int dim = CudaNdarray_NDIM(var);
int *strides = (int *)malloc(dim * sizeof(int));
int default_str = 1;
int return_value = 0;
if (strides != NULL) {... |
mdda/Theano | theano/sandbox/gpuarray/cudnn_helper.h | #ifndef CUDNN_HELPER_H
#define CUDNN_HELPER_H
#include <cudnn.h>
#ifndef CUDNN_VERSION
#define CUDNN_VERSION -1
static inline int cudnnGetVersion() {
return -1;
}
#endif
#include <assert.h>
#if CUDNN_VERSION < 3000
// Here we define the R3 API in terms of functions in the R2 interface
// This is only for what we... |
mdda/Theano | theano/sandbox/cuda/dnn_conv_base.c | <reponame>mdda/Theano<filename>theano/sandbox/cuda/dnn_conv_base.c
#section support_code_struct
cudnnTensorDescriptor_t APPLY_SPECIFIC(input);
cudnnTensorDescriptor_t APPLY_SPECIFIC(output);
cudnnFilterDescriptor_t APPLY_SPECIFIC(kerns);
/* Keep track, from one execution to another, of the dimension of the data
and th... |
mdda/Theano | theano/sandbox/gpuarray/gemm16.c | <gh_stars>1-10
#section init_code_struct
/* Why do we need this? */
size_t dim = 2048 * 32;
rand_buf = pygpu_empty(1, &dim, GA_UINT, GA_C_ORDER, pygpu_default_context(),
Py_None);
if (rand_buf == NULL) {
FAIL;
}
#section support_code_struct
PyGpuArrayObject *rand_buf;
int gemm16(PyGpuArrayO... |
hex-plex/Light-Gun.apk | Raspi-c/include/LightGun/actionServer.h | <reponame>hex-plex/Light-Gun.apk<gh_stars>1-10
#include <unistd.h>
#include <iostream>
#include <cstdlib>
#include <signal.h>
#include <vector>
#include <cstring>
#ifdef __arm__
#include <wiringPi.h>
#endif
namespace actionServer{
int status = 0;
int ctr = 0;
int flag = 0;
std::vector< void (*)(... |
hex-plex/Light-Gun.apk | Raspi-c/include/LightGun/btServer.h | <filename>Raspi-c/include/LightGun/btServer.h<gh_stars>1-10
#include <stdio.h>
#include <unistd.h>
#include <sys/socket.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/rfcomm.h>
class Gun{
public:
Gun();
Gun(char* dst);
int send(int x, int y);
int get_status();
int s... |
hex-plex/Light-Gun.apk | Raspi-c/include/LightGun/cameraData.h | #include <opencv2/opencv.hpp>
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/core/cvstd.hpp>
#include <opencv2/core/persistence.hpp>
#include <iostream>
#include <stdio.h>
struct CV_EXPORTS CameraParams
{
cv::Mat cameraMatrix;
cv::Mat distCo... |
fzyzcjy/engine | display_list/display_list_image.h | // Copyright 2013 The Flutter 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 FLUTTER_DISPLAY_LIST_DISPLAY_LIST_IMAGE_H_
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_IMAGE_H_
#include <memory>
#include "flutter/fml/macros.h"
#... |
fzyzcjy/engine | shell/platform/darwin/ios/framework/Headers/FlutterCallbackCache.h | // Copyright 2013 The Flutter 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 FLUTTER_FLUTTERCALLBACKCACHE_H_
#define FLUTTER_FLUTTERCALLBACKCACHE_H_
#import <Foundation/Foundation.h>
#import "FlutterMacros.h"
/**
* An ob... |
fzyzcjy/engine | display_list/display_list_complexity_metal.h | // Copyright 2013 The Flutter 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 FLUTTER_FLOW_DISPLAY_LIST_COMPLEXITY_METAL_H_
#define FLUTTER_FLOW_DISPLAY_LIST_COMPLEXITY_METAL_H_
#include "flutter/display_list/display_list_co... |
fzyzcjy/engine | display_list/display_list_test_utils.h | // Copyright 2013 The Flutter 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 FLUTTER_FLOW_DISPLAY_LIST_COMPLEXITY_UNITTESTS_H_
#define FLUTTER_FLOW_DISPLAY_LIST_COMPLEXITY_UNITTESTS_H_
#include "flutter/display_list/display... |
fzyzcjy/engine | fml/synchronization/atomic_object.h | <filename>fml/synchronization/atomic_object.h
// Copyright 2013 The Flutter 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 FLUTTER_FML_SYNCHRONIZATION_ATOMIC_OBJECT_H_
#define FLUTTER_FML_SYNCHRONIZATION_ATOMIC_OBJECT_H_
#i... |
fzyzcjy/engine | shell/common/resource_cache_limit_calculator.h | // Copyright 2013 The Flutter 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 FLUTTER_SHELL_COMMON_RESOURCE_CACHE_LIMIT_CALCULATOR_
#define FLUTTER_SHELL_COMMON_RESOURCE_CACHE_LIMIT_CALCULATOR_
#include <cstdint>
#include <u... |
fzyzcjy/engine | display_list/display_list_color_filter.h | <filename>display_list/display_list_color_filter.h
// Copyright 2013 The Flutter 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 FLUTTER_DISPLAY_LIST_DISPLAY_LIST_COLOR_FILTER_H_
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_COLO... |
fzyzcjy/engine | lib/ui/painting/rrect.h | // Copyright 2013 The Flutter 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 FLUTTER_LIB_UI_PAINTING_RRECT_H_
#define FLUTTER_LIB_UI_PAINTING_RRECT_H_
#include "third_party/dart/runtime/include/dart_api.h"
#include "third_p... |
fzyzcjy/engine | shell/platform/android/android_image_generator.h | <filename>shell/platform/android/android_image_generator.h
// Copyright 2013 The Flutter 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 FLUTTER_SHELL_PLATFORM_ANDROID_ANDROID_IMAGE_GENERATOR_H_
#define FLUTTER_SHELL_PLATFORM... |
fzyzcjy/engine | testing/test_vulkan_image.h | <reponame>fzyzcjy/engine
// Copyright 2013 The Flutter 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 FLUTTER_TESTING_TEST_VULKAN_IMAGE_H_
#define FLUTTER_TESTING_TEST_VULKAN_IMAGE_H_
#include "flutter/fml/macros.h"
#includ... |
fzyzcjy/engine | shell/platform/fuchsia/flutter/software_surface.h | <filename>shell/platform/fuchsia/flutter/software_surface.h<gh_stars>1000+
// Copyright 2013 The Flutter 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 <fuchsia/sysmem/cpp/fidl.h>
#include <fuchsia/ui/composit... |
fzyzcjy/engine | runtime/dart_plugin_registrant.h | // Copyright 2013 The Flutter 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 FLUTTER_DART_PLUGIN_REGISTRANT_H_
#define FLUTTER_DART_PLUGIN_REGISTRANT_H_
#include "third_party/dart/runtime/include/dart_api.h"
namespace flut... |
fzyzcjy/engine | shell/common/engine.h | // Copyright 2013 The Flutter 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 SHELL_COMMON_ENGINE_H_
#define SHELL_COMMON_ENGINE_H_
#include <memory>
#include <string>
#include "flutter/assets/asset_manager.h"
#include "flu... |
fzyzcjy/engine | shell/platform/windows/keyboard_handler_base.h | // Copyright 2013 The Flutter 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 FLUTTER_SHELL_PLATFORM_WINDOWS_KEYBOARD_HOOK_HANDLER_H_
#define FLUTTER_SHELL_PLATFORM_WINDOWS_KEYBOARD_HOOK_HANDLER_H_
#include <string>
namespa... |
fzyzcjy/engine | shell/platform/embedder/tests/embedder_unittests_util.h | // Copyright 2013 The Flutter 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 FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_UNITTESTS_UTIL_H_
#define FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_UNITTESTS_UTIL_H_
#define ... |
fzyzcjy/engine | shell/platform/fuchsia/flutter/runner.h | // Copyright 2013 The Flutter 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 FLUTTER_SHELL_PLATFORM_FUCHSIA_RUNNER_H_
#define FLUTTER_SHELL_PLATFORM_FUCHSIA_RUNNER_H_
#include <memory>
#include <unordered_map>
#include <fu... |
fzyzcjy/engine | shell/platform/windows/task_runner_winuwp.h | <reponame>fzyzcjy/engine<filename>shell/platform/windows/task_runner_winuwp.h<gh_stars>1000+
// Copyright 2013 The Flutter 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 FLUTTER_SHELL_PLATFORM_WINDOWS_TASK_RUNNER_WINUWP_H_
#... |
fzyzcjy/engine | display_list/display_list_complexity.h | <reponame>fzyzcjy/engine<filename>display_list/display_list_complexity.h
// Copyright 2013 The Flutter 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 FLUTTER_FLOW_DISPLAY_LIST_COMPLEXITY_H_
#define FLUTTER_FLOW_DISPLAY_LIST_... |
fzyzcjy/engine | shell/platform/darwin/ios/framework/Source/FlutterIndirectScribbleDelegate.h | // Copyright 2013 The Flutter 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 SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERINDIRECTSCRIBBLEDELEGATE_H_
#define SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERINDIRECTSCRIBBLEDELEGATE_... |
fzyzcjy/engine | third_party/accessibility/base/win/display.h | // 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.
#ifndef BASE_WIN_DISPLAY_H_
#define BASE_WIN_DISPLAY_H_
#include <windows.h>
#include <shellscalingapi.h>
#include "base/base_export.h"
namespace ... |
fzyzcjy/engine | shell/platform/darwin/macos/framework/Source/FlutterPlatformViewController.h | <reponame>fzyzcjy/engine
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Cocoa/Cocoa.h>
#import "FlutterChannels.h"
#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterPlatfo... |
fzyzcjy/engine | shell/platform/linux/testing/mock_plugin_registrar.h | // Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/shell/platform/linux/public/flutter_linux/fl_binary_messenger.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_plugin_re... |
fzyzcjy/engine | shell/platform/windows/accessibility_bridge_delegate_win32.h | // Copyright 2013 The Flutter 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 FLUTTER_SHELL_PLATFORM_WINDOWS_ACCESSIBILITY_BRIDGE_DELEGATE_H_
#define FLUTTER_SHELL_PLATFORM_WINDOWS_ACCESSIBILITY_BRIDGE_DELEGATE_H_
#include "... |
fzyzcjy/engine | shell/platform/fuchsia/flutter/tests/fakes/platform_message.h | // Copyright 2013 The Flutter 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 FLUTTER_SHELL_PLATFORM_FUCHSIA_TESTS_FAKES_PLATFORM_MESSAGE_H_
#define FLUTTER_SHELL_PLATFORM_FUCHSIA_TESTS_FAKES_PLATFORM_MESSAGE_H_
#include <gt... |
fzyzcjy/engine | shell/platform/android/platform_message_handler_android.h | <filename>shell/platform/android/platform_message_handler_android.h
// Copyright 2013 The Flutter 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 SHELL_PLATFORM_ANDROID_PLATFORM_MESSAGE_HANDLER_H_
#define SHELL_PLATFORM_ANDRO... |
fzyzcjy/engine | shell/profiling/sampling_profiler.h | <gh_stars>1000+
// Copyright 2013 The Flutter 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 FLUTTER_SHELL_PROFILING_SAMPLING_PROFILER_H_
#define FLUTTER_SHELL_PROFILING_SAMPLING_PROFILER_H_
#include <functional>
#include <... |
ahitech/Kottan | src/mainwindow.h | <filename>src/mainwindow.h<gh_stars>0
/*
* Copyright 2019-2021 <NAME> <<EMAIL>>
* All rights reserved. Distributed under the terms of the MIT license.
*
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <Window.h>
#include <MenuBar.h>
#include <FilePanel.h>
#include "messageview.h"
enum
{
MW_MENU_ABOUT ='... |
ahitech/Kottan | src/app.h | /*
* Copyright 2019-2021 <NAME> <<EMAIL>>
* All rights reserved. Distributed under the terms of the MIT license.
*
*/
#ifndef APP_H
#define APP_H
#include <Application.h>
#include <Message.h>
#include <ObjectList.h>
#include <File.h>
class DataWindow;
class MainWindow;
class IndexMessage {
public:
BMessage *... |
timofriedl/multicam-ihgg | learner/cost_flow.c | #include <stdio.h>
#include <stdlib.h>
#define inf 1000000000
#define bool int
#define true 1
#define false 0
#define Graph_vertex 100000
#define Graph_edge 20000000
#define flow_value int
#define cost_value long long
#define dist_inf 1000000000000000ll
int n,i,tot,u,v,ll,rr;
int head[Graph_vertex],next[Graph_edge],... |
Incubator85653/SSN_Launcher_Lib | src/ssn_launcher_lib.h | #ifndef SSN_LAUNCHER_H
#define SSN_LAUNCHER_H
#endif // SSN_LAUNCHER_H
|
snyjm-18/osss-ucx | src/shmemu/round.c | /* For license: see LICENSE file at top-level */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */
#include <sys/types.h>
#include <unistd.h>
void *
shmemu_round_down_address_to_pagesize(void *addr)
{
const long psz = sysconf(_SC_PAGESIZE);
/* make sure aligned to page size multiples */
... |
snyjm-18/osss-ucx | src/contexts.c | /* For license: see LICENSE file at top-level */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */
#include "shmem_mutex.h"
#include "shmemu.h"
#include "shmemc.h"
#include "shmem/defs.h"
#ifdef ENABLE_PSHMEM
#pragma weak shmem_ctx_create = pshmem_ctx_create
#define shmem_ctx_create pshmem_ctx_cr... |
snyjm-18/osss-ucx | src/accessible.c | /* For license: see LICENSE file at top-level */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */
#include "shmemu.h"
#include "shmemc.h"
#ifdef ENABLE_PSHMEM
#pragma weak shmem_pe_accessible = pshmem_pe_accessible
#define shmem_pe_accessible pshmem_pe_accessible
#pragma weak shmem_addr_accessibl... |
snyjm-18/osss-ucx | include/mpp/shmem.h | /* For license: see LICENSE file at top-level */
#ifndef _MPP_SHMEM_H
#define _MPP_SHMEM_H 1
#warning "<mpp/shmem.h> is a deprecated location since specification 1.1, use <shmem.h> instead"
#include <shmem.h>
#endif /* _MPP_SHMEM_H */
|
snyjm-18/osss-ucx | src/allocator/dlmalloc.h | /* For license: see LICENSE file at top-level */
/*
* This was taken from the dlmalloc.c to act as a standalone header
* file for other parts of the OpenSHMEM library
*
* License as for dlmalloc.c
*/
#ifndef _DLMALLOC_H
#define _DLMALLOC_H 1
#include <sys/types.h>
#include <time.h>
typedef void *mspace;
exter... |
snyjm-18/osss-ucx | src/shmemc/barrier.h | /* For license: see LICENSE file at top-level */
#ifndef _SHMEMC_BARRIER_H
#define _SHMEMC_BARRIER_H 1
void shmemc_barrier_init(void);
void shmemc_barrier_finalize(void);
#endif /* ! _SHMEMC_BARRIER_H */
|
snyjm-18/osss-ucx | src/shmemc/barrier.c | /* For license: see LICENSE file at top-level */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */
#include "shmemu.h"
#include "shmemc.h"
#include "state.h"
#include "memfence.h"
#include "collalgo.h"
#include "shmem/defs.h"
/*
* just play with a simple linear barrier for now
*/
inline static... |
snyjm-18/osss-ucx | src/putget.c | <reponame>snyjm-18/osss-ucx<gh_stars>1-10
/* For license: see LICENSE file at top-level */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */
#include "shmemc.h"
#include "shmem/api.h"
#include "putget.h"
#ifdef ENABLE_PSHMEM
#pragma weak shmem_ctx_float_put = pshmem_ctx_float_put
#define shmem_ct... |
snyjm-18/osss-ucx | src/shmemc/collalgo.h | <reponame>snyjm-18/osss-ucx<gh_stars>0
/* For license: see LICENSE file at top-level */
#ifndef _SHMEMC_COLLALGO_H
#define _SHMEMC_COLLALGO_H 1
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */
#include "thispe.h"
shmemc_coll_t shmemc_parse_algo(char *str);
char *shmemc_unparse_algo(shmemc_coll_t... |
snyjm-18/osss-ucx | include/mpp/shmemx.h | <filename>include/mpp/shmemx.h
/* For license: see LICENSE file at top-level */
#ifndef _MPP_SHMEMX_H
#define _MPP_SHMEMX_H 1
#warning "<mpp/shmemx.h> is a deprecated location since specification 1.1, use <shmemx.h> instead"
#include <shmemx.h>
#endif /* _MPP_SHMEMX_H */
|
snyjm-18/osss-ucx | src/collectives/broadcast.c | <filename>src/collectives/broadcast.c<gh_stars>0
/* For license: see LICENSE file at top-level */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */
#include "shmem_mutex.h"
#include "shmemu.h"
#include "shmemc.h"
#include <sys/types.h>
#ifdef ENABLE_PSHMEM
#pragma weak shmem_broadcast32 = pshmem... |
snyjm-18/osss-ucx | src/shmemc/collect.c | /* For license: see LICENSE file at top-level */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */
#include "state.h"
#include "shmemc.h"
/**
* collect puts nelems (can vary from PE to PE) from source on each
* PE in the set to target on all PEs in the set. source -> target is
* done in PE ord... |
snyjm-18/osss-ucx | src/shmemc/broadcast.c | <filename>src/shmemc/broadcast.c
/* For license: see LICENSE file at top-level */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */
#include "shmemc.h"
#include "shmemu.h"
#include "state.h"
#include "collalgo.h"
#include <sys/types.h>
/*
* Degree that's used for tree barrier implementation.
*/... |
snyjm-18/osss-ucx | src/shmemc/fcollect.c | /* For license: see LICENSE file at top-level */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */
#include "state.h"
#include "shmemc.h"
#include <sys/types.h>
/**
* Collective concatenation of 32/64-bit data from participating PEs
* into a target array on all those PEs
*/
#define SHMEMC_FCO... |
snyjm-18/osss-ucx | src/version.c | <filename>src/version.c
/* For license: see LICENSE file at top-level */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */
#include <string.h>
#ifdef ENABLE_PSHMEM
#pragma weak shmem_info_get_version = pshmem_info_get_version
#define shmem_info_get_version pshmem_info_get_version
#pragma weak shme... |
snyjm-18/osss-ucx | src/xwtime.c | <filename>src/xwtime.c
/* For license: see LICENSE file at top-level */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */
#include "shmemu.h"
#include <stdio.h>
#include <sys/time.h>
#ifdef ENABLE_PSHMEM
#pragma weak shmemx_wtime = pshmemx_wtime
#define shmemx_wtime pshmemx_wtime
#endif /* ENABLE... |
snyjm-18/osss-ucx | src/shmemc/locks.c | /* For license: see LICENSE file at top-level */
/*
* Rewrite of an original MCS lock code by
*
* Copyright (c) 1996-2002 by Quadrics Supercomputers World Ltd.
* Copyright (c) 2003-2005 by Quadrics Ltd.
*/
#include "shmemc.h"
#include "shmemu.h"
#include "state.h"
#include "memfence.h"
#include <sys/types... |
snyjm-18/osss-ucx | src/shmemu/miscops.c | /* For license: see LICENSE file at top-level */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#include <complex.h>
#define SHMEMU_MATH_FUNC(_name, _type) \
_type \
shm... |
snyjm-18/osss-ucx | src/osh_info/osh_info.c | <filename>src/osh_info/osh_info.c
/* For license: see LICENSE file at top-level */
/* no config.h */
#include "info.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <getopt.h>
#include <libgen.h> /* basename */
static char *progname;
static vo... |
snyjm-18/osss-ucx | include/pshmemx.h | <reponame>snyjm-18/osss-ucx
/* For license: see LICENSE file at top-level */
#ifndef _PSHMEMX_H
#define _PSHMEMX_H 1
#include <pshmem.h>
#include <shmemx.h>
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
/*
* new ideas (not part of formal 1.x API)
*/
void pshmemx_short_put_nb(short *ta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.