repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
ranweiler/fmaemu
src/rto.h
<gh_stars>0 #ifndef FMA_COMMON_H #include "common.h" #endif #include "exact.h" double fma_emu_rto(double a, double b, double c);
ranweiler/fmaemu
src/fma.h
<gh_stars>0 #include "common.h" #include "mp.h" #include "rto.h" double fma_asm(double a, double b, double c); double fma_f64(double a, double b, double c); void print_f64(double x);
ranweiler/fmaemu
src/mp.c
<gh_stars>0 #include "mp.h" double fma_emu_mp(double a, double b, double c) { mpfr_t A, B, C, T; double out; if (isnan(a)) { return quiet_nan(a); } if (isnan(b)) { return quiet_nan(b); } if (isnan(c)) { return quiet_nan(c); } mpfr_set_default_prec(128); mpfr_init_set_d(A, a, MPFR_RNDN);...
ranweiler/fmaemu
src/rto.c
#include "rto.h" // Add a and b, rounding to odd. // // See [BoldoMelquiond2008], Section V.D. double add_rnd_to_odd(double a, double b) { f64 t; double appx, err; exact_add(&appx, &err, a, b); // if (isinf(appx)) { // return appx; // } // If the error term `err` is zero, then the a...
marissachanlatte/EmbeddedBoundary
src/helpers/geometry_objects.h
#ifndef EMBEDDED_BOUNDARY_HELPERS_GEOMETRY_OBJECTS_H #define EMBEDDED_BOUNDARY_HELPERS_GEOMETRY_OBJECTS_H #include <vector> #include <cmath> namespace boundary { namespace helpers { /// A Class describing a point /** This class represents a d-dimensional point */ class Point{ public: Point(); /// ...
marissachanlatte/EmbeddedBoundary
src/normals/normals.h
#ifndef EMBEDDED_BOUNDARY_NORMALS_NORMALS_H_ #define EMBEDDED_BOUNDARY_NORMALS_NORMALS_H_ #include "inputs/geometries/geometry_input_base.h" #include "helpers/geometry_objects.h" #include<array> namespace boundary { namespace normals { /// A class to compute the normals and derivatives of the normals class Normal{...
marissachanlatte/EmbeddedBoundary
src/geometry/boundary.h
<gh_stars>1-10 #ifndef EMBEDDED_BOUNDARY_GEOMETRY_BOUNDARY_H #define EMBEDDED_BOUNDARY_GEOMETRY_BOUNDARY_H #include "inputs/geometries/geometry_input_base.h" #include <array> #include <map> #include <vector> namespace boundary { namespace geometry { /** This struct contains all geometry information for a given cell...
marissachanlatte/EmbeddedBoundary
src/solvers/laplace_operator.h
#ifndef EMBEDDED_BOUNDARY_SOLVERS_LAPLACE_OPERATOR_H #define EMBEDDED_BOUNDARY_SOLVERS_LAPLACE_OPERATOR_H #include "geometry/boundary.h" #include <vector> namespace boundary { namespace solvers { /// A Class Computing the Laplace Operator class LaplaceOperator{ public: LaplaceOperator(boun...
marissachanlatte/EmbeddedBoundary
src/inputs/geometries/geometry_input_base.h
<filename>src/inputs/geometries/geometry_input_base.h #ifndef EMBEDDED_BOUNDARY_INPUT_GEOMETRY_INPUT_BASE_H #define EMBEDDED_BOUNDARY_INPUT_GEOMETRY_INPUT_BASE_H #include "helpers/geometry_objects.h" #include <vector> #include <array> namespace boundary { namespace inputs { /// The input file base class. /** All i...
marissachanlatte/EmbeddedBoundary
src/inputs/equations/cos_sin_neumann.h
#ifndef EMBEDDED_BOUNDARY_SRC_INPUTS_EQUATIONS_COS_SIN_NEUMANN_H #define EMBEDDED_BOUNDARY_SRC_INPUTS_EQUATIONS_COS_SIN_NEUMANN_H #include "inputs/equations/solver_input_base.h" #include "helpers/geometry_objects.h" #include <vector> #include <array> namespace boundary { namespace inputs { /// An input file repre...
marissachanlatte/EmbeddedBoundary
src/solvers/laplacian.h
<gh_stars>1-10 #ifndef EMBEDDED_BOUNDARY_SOLVERS_LAPLACIAN_H #define EMBEDDED_BOUNDARY_SOLVERS_LAPLACIAN_H #include "geometry/boundary.h" #include "inputs/equations/solver_input_base.h" #include <Eigen/Sparse> #include <Eigen/SparseLU> #include <Eigen/Dense> namespace boundary { namespace solvers { /// A Class Sol...
marissachanlatte/EmbeddedBoundary
src/helpers/math_helpers.h
<reponame>marissachanlatte/EmbeddedBoundary #ifndef MATH_HELPERS_H #define MATH_HELPERS_H #include <vector> namespace boundary{ namespace helpers{ const int factorials[] = {1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880}; /** A function to caculate the factorial of an integer */ int Factorial(int alpha); /** A fun...
marissachanlatte/EmbeddedBoundary
src/inputs/equations/solver_input_base.h
#ifndef EMBEDDED_BOUNDARY_INPUT_SOLVER_INPUT_BASE_H #define EMBEDDED_BOUNDARY_INPUT_SOLVER_INPUT_BASE_H #include "helpers/geometry_objects.h" #include <vector> #include <array> namespace boundary { namespace inputs { /// The input file base class. /** All input files are based on this class which contains all rele...
marissachanlatte/EmbeddedBoundary
src/inputs/geometries/square/square.h
#ifndef EMBEDDED_BOUNDARY_SRC_INPUTS_SQUARE_SQUARE_H #define EMBEDDED_BOUNDARY_SRC_INPUTS_SQUARE_SQUARE_H #include "inputs/geometries/geometry_input_base.h" #include "helpers/geometry_objects.h" #include <vector> #include <array> namespace boundary { namespace inputs { /// An input file representing the square [-...
IncantaGames/unreal-bp-file-sdk
Source/FileSDK/Public/FileSDKBPLibrary.h
<filename>Source/FileSDK/Public/FileSDKBPLibrary.h // Copyright Incanta Games 2020. All Rights Reserved. #pragma once #include <ios> #include "Kismet/BlueprintFunctionLibrary.h" #include "Misc/Paths.h" #include "Misc/FileHelper.h" #include "HAL/FileManagerGeneric.h" #include "Async/TaskGraphInterfaces.h" ...
IncantaGames/unreal-bp-file-sdk
Source/FileSDK/Public/FileSDKFileInfo.h
<filename>Source/FileSDK/Public/FileSDKFileInfo.h // Copyright Incanta Games 2020. All Rights Reserved. #pragma once #include "FileSDKFileInfo.generated.h" USTRUCT(BlueprintType) struct FFileSDKFileInfo { GENERATED_USTRUCT_BODY(); /** The full absolute path and file name */ UPROPERTY(BlueprintReadO...
android-risc-v/external_webrtc
third_party/libyuv/include/libyuv/convert_argb.h
#include <libyuv/convert_argb.h>
android-risc-v/external_webrtc
examples/androidvoip/jni/android_voip_client.h
/* * Copyright 2020 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
android-risc-v/external_webrtc
third_party/libaom/source/libaom/aom/aom_codec.h
#include <aom/aom_codec.h>
android-risc-v/external_webrtc
modules/audio_coding/neteq/mock/mock_packet_buffer.h
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
android-risc-v/external_webrtc
third_party/libyuv/include/libyuv/scale.h
<gh_stars>0 #include <libyuv/scale.h>
android-risc-v/external_webrtc
third_party/libyuv/include/libyuv/rotate_argb.h
<filename>third_party/libyuv/include/libyuv/rotate_argb.h #include <libyuv/rotate_argb.h>
android-risc-v/external_webrtc
third_party/libsrtp/include/srtp.h
<reponame>android-risc-v/external_webrtc #include <srtp.h>
android-risc-v/external_webrtc
rtc_base/memory/fifo_buffer.h
<reponame>android-risc-v/external_webrtc /* * Copyright 2019 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found *...
android-risc-v/external_webrtc
third_party/abseil-cpp/absl/random/mocking_bit_gen.h
<filename>third_party/abseil-cpp/absl/random/mocking_bit_gen.h<gh_stars>100-1000 // Copyright 2018 The Abseil 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 // // https://w...
android-risc-v/external_webrtc
third_party/libyuv/include/libyuv/convert_from.h
<reponame>android-risc-v/external_webrtc #include <libyuv/convert_from.h>
android-risc-v/external_webrtc
third_party/libsrtp/include/srtp_priv.h
<reponame>android-risc-v/external_webrtc #include <srtp_priv.h>
android-risc-v/external_webrtc
third_party/libaom/source/libaom/aom/aom_decoder.h
#include <aom/aom_decoder.h>
android-risc-v/external_webrtc
examples/objc/AppRTCMobile/ios/ARDVideoCallView.h
<filename>examples/objc/AppRTCMobile/ios/ARDVideoCallView.h<gh_stars>10-100 /* * Copyright 2015 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual pr...
android-risc-v/external_webrtc
api/test/network_emulation/network_emulation_interfaces.h
/* * Copyright (c) 2019 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
android-risc-v/external_webrtc
third_party/rnnoise/src/rnn_activations.h
#include <rnn_activations.h>
android-risc-v/external_webrtc
api/test/mock_video_encoder.h
<reponame>android-risc-v/external_webrtc /* * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be foun...
android-risc-v/external_webrtc
modules/video_coding/codecs/av1/scalability_structure_l2t2_key.h
<gh_stars>1-10 /* * Copyright (c) 2020 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
android-risc-v/external_webrtc
third_party/abseil-cpp/absl/container/internal/counting_allocator.h
<reponame>android-risc-v/external_webrtc // Copyright 2018 The Abseil 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 // // https://www.apache.org/licenses/LICENSE-2.0 // //...
android-risc-v/external_webrtc
third_party/pffft/src/pffft.h
<filename>third_party/pffft/src/pffft.h #include <pffft.h>
android-risc-v/external_webrtc
pc/test/mock_rtp_receiver_internal.h
/* * Copyright 2016 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
android-risc-v/external_webrtc
modules/desktop_capture/win/window_capturer_win_wgc.h
/* * Copyright (c) 2020 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All con...
android-risc-v/external_webrtc
third_party/libyuv/include/libyuv/planar_functions.h
<gh_stars>0 #include <libyuv/planar_functions.h>
android-risc-v/external_webrtc
third_party/abseil-cpp/absl/container/btree_test.h
<reponame>android-risc-v/external_webrtc<gh_stars>10-100 // Copyright 2018 The Abseil 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 // // https://www.apache.org/licenses/L...
android-risc-v/external_webrtc
call/adaptation/degradation_preference_provider.h
/* * Copyright 2020 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
android-risc-v/external_webrtc
third_party/libyuv/include/libyuv/convert.h
#include <libyuv/convert.h>
android-risc-v/external_webrtc
third_party/libsrtp/crypto/include/auth.h
#include <auth.h>
android-risc-v/external_webrtc
test/pc/e2e/analyzer/video/video_quality_metrics_reporter.h
<gh_stars>1-10 /* * Copyright (c) 2020 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
android-risc-v/external_webrtc
modules/video_coding/codecs/test/encoded_video_frame_producer.h
<reponame>android-risc-v/external_webrtc<filename>modules/video_coding/codecs/test/encoded_video_frame_producer.h /* * Copyright 2020 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source ...
android-risc-v/external_webrtc
modules/video_coding/utility/quality_scaler.h
<reponame>android-risc-v/external_webrtc<gh_stars>10-100 /* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights g...
android-risc-v/external_webrtc
third_party/libsrtp/crypto/include/crypto_types.h
#include <crypto_types.h>
android-risc-v/external_webrtc
rtc_base/ssl_roots.h
<filename>rtc_base/ssl_roots.h /* * Copyright 2004 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the f...
android-risc-v/external_webrtc
base/third_party/libevent/event.h
#include <event.h>
android-risc-v/external_webrtc
third_party/libaom/source/libaom/aom/aom_encoder.h
#include <aom/aom_encoder.h>
android-risc-v/external_webrtc
video/adaptation/video_stream_encoder_resource.h
<reponame>android-risc-v/external_webrtc<gh_stars>0 /* * Copyright 2020 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can ...
android-risc-v/external_webrtc
third_party/libyuv/include/libyuv/compare.h
<filename>third_party/libyuv/include/libyuv/compare.h #include <libyuv/compare.h>
android-risc-v/external_webrtc
call/test/mock_rtp_transport_controller_send.h
/* * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
android-risc-v/external_webrtc
third_party/libaom/source/libaom/aom/aomdx.h
#include <aom/aomdx.h>
android-risc-v/external_webrtc
third_party/rnnoise/src/rnn_vad_weights.h
<filename>third_party/rnnoise/src/rnn_vad_weights.h<gh_stars>0 #include <rnn_vad_weights.h>
android-risc-v/external_webrtc
third_party/libaom/source/libaom/aom/aomcx.h
#pragma once #include <aom/aomcx.h> #include <stdlib.h> aom_codec_iface_t *aom_codec_av1_cx(void) { // external/libaom doesn't include encoder sources, which makes this function // not available. Defined here to make it build, but ensure it fails fast if // called in runtime. abort(); }
android-risc-v/external_webrtc
call/adaptation/test/fake_adaptation_listener.h
<reponame>android-risc-v/external_webrtc /* * Copyright 2020 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found *...
android-risc-v/external_webrtc
audio/voip/audio_channel.h
<filename>audio/voip/audio_channel.h /* * Copyright (c) 2020 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found *...
Biblioteca-de-Codigos/implementacoes-Diversificadas
heap_sort/c/main.c
<reponame>Biblioteca-de-Codigos/implementacoes-Diversificadas #include <stdio.h> void troca(int *a, int *b) { int x = *a; *a = *b; *b = x; } unsigned int heap(int *numeros, int tamanho) { unsigned int total = 0; if (tamanho > 1) { int i, j; for (i = 2; i <= tamanho; ++i) { for (j = i; j > 1 && numeros[j -...
MRXLT/Paddle
paddle/fluid/operators/linspace_op.h
<filename>paddle/fluid/operators/linspace_op.h /* Copyright (c) 2016 PaddlePaddle 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 obtain a copy of the License at http://www.apache.org/licenses/LI...
MRXLT/Paddle
paddle/fluid/operators/utils.h
/* Copyright (c) 2018 PaddlePaddle 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 obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
JasonLeee2014/VJSBridge-iOS
VJSBridge/NativeWebView.h
// // NativeWebView.h // nos // // Created by zaka on 2019/2/19. // Copyright © 2019 zaka. All rights reserved. // #import <UIKit/UIKit.h> #import <WebKit/WebKit.h> #import "NativeModule.h" @interface NativeWebView : WKWebView <WKScriptMessageHandler> @property(nonatomic,weak) UIViewController* parentViewControl...
JasonLeee2014/VJSBridge-iOS
VJSBridge/Utils.h
// // Utils.h // nos // // Created by zaka on 2019/2/19. // Copyright © 2019 zaka. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface Utils : NSObject + (NSString *)convertToJsonData:(NSDictionary *)dict; @end NS_ASSUME_NONNULL_END
JasonLeee2014/VJSBridge-iOS
VJSBridge/NativeModule.h
// // NativeModule.h // nos // // Created by zaka on 2019/2/19. // Copyright © 2019 zaka. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @class NativeWebView; @class UIViewController; @interface NativeModule : NSObject @property(nonatomic,weak) NativeWebView* currentWebView; ...
Brunosanches1/contiki-ng
examples/coap/coap-example-client/coap-client-project.c
<reponame>Brunosanches1/contiki-ng<gh_stars>0 #include <stdio.h> #include <stdlib.h> #include <string.h> #include "contiki.h" #include "contiki-net.h" #include "coap-engine.h" #include "coap-blocking-api.h" #include "sys/node-id.h" #include "dev/button-sensor.h" //IP for tunnel #define SERVER_EP "coap://[fd00::1]" #...
TheodorosBalasis/garbage-dump
garbage-dump.c
#include <dirent.h> #include <errno.h> #include <linux/limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> // EXIT CODES // 0: Program executed correctly. // 1: Invalid number of arguments. // 2: Target directory not found. // 3: Directory could not be accessed. /...
movingpictures83/AssemblyStats
AssemblyStatsPlugin.h
#ifndef ASSEMBLYSTATSPLUGIN_H #define ASSEMBLYSTATSPLUGIN_H #include "Plugin.h" #include "PluginProxy.h" #include <string> #include <vector> class AssemblyStatsPlugin : public Plugin { public: std::string toString() {return "AssemblyStats";} void input(std::string file); void run(); void output(std::string file)...
freed00m/wayst
src/gfx_gl21.h
/* See LICENSE for license information. */ #pragma once #include "gfx.h" #include "colors.h" #include "gl.h" #include "util.h" #include "vector.h" Gfx* Gfx_new_OpenGL21();
freed00m/wayst
src/vt.c
/* See LICENSE for license information. */ #define _GNU_SOURCE #include "vt.h" #include <fcntl.h> #include <limits.h> #include <pty.h> #include <sys/ioctl.h> #include <sys/select.h> #include <sys/time.h> #include <termios.h> #include <uchar.h> #include <utmp.h> #include "wcwidth/wcwidth.h" #define SCROLLBAR_HIDE_D...
freed00m/wayst
src/gl.h
/* See LICENSE for license information. */ #pragma once #define _GNU_SOURCE #include <GL/gl.h> #include <assert.h> #include <stdarg.h> #include "gl_exts/glext.h" #include "util.h" extern PFNGLBUFFERSUBDATAARBPROC glBufferSubData; extern PFNGLUNIFORM4FPROC glUniform4f; extern PFNGLUNIFORM3FPRO...
freed00m/wayst
src/wl.h
/* See LICENSE for license information. */ #ifndef NOWL #pragma once #include "gui.h" #include "util.h" struct WindowBase* Window_new_wayland(Pair_uint32_t res); #endif
freed00m/wayst
src/settings.h
/* See LICENSE for license information. */ #pragma once #include "colors.h" #include "util.h" #ifndef VERSION #define VERSION "unknown" #endif // default lcd filter #ifndef LCD_FILT_DFT #define LCD_FILT_DFT LCD_FILTER_H_RGB #endif #define MODIFIER_SHIFT (1 << 0) #define MODIFIER_ALT (1 << 1) #define MODIFIER...
freed00m/wayst
src/gui.h
<filename>src/gui.h /* See LICENSE for license information. */ #pragma once #include "settings.h" #include "util.h" #define WINDOW_CLOSED (1 << 0) #define WINDOW_FULLSCREEN (1 << 1) #define WINDOW_NEEDS_SWAP (1 << 2) #define WINDOW_IN_FOCUS (1 << 3) #define WINDOW_MAXIMIZED (1 << 4) #defin...
freed00m/wayst
src/timing.h
/* See LICENSE for license information. */ #pragma once #include <stdbool.h> #include <stdint.h> #include <time.h> typedef struct timespec TimePoint; __attribute__((always_inline)) static inline TimePoint TimePoint_now() { struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); return t; } #define SEC_...
freed00m/wayst
src/fterrors.h
#pragma once #include <freetype/ftlcdfil.h> #include <ft2build.h> #include FT_FREETYPE_H #include FT_GLYPH_H #include FT_TRUETYPE_TABLES_H #include FT_FONT_FORMATS_H /** * Freetype needs to be compiled with special flags to support this */ static const char* stringify_ft_error(FT_Error e) { switch (e) { ...
freed00m/wayst
src/shaders.h
<filename>src/shaders.h /* This file was autogenerated. */ const char* font_vs_src = "#version 120\n" "attribute vec4 coord;" "varying vec2 tex_coord;" "void main(){" "tex_coord=coord.zw;" "gl_Position=vec4(coord.xy,0,1);" "}"; const char* bg_vs_src = "#version 120\n" "attribute vec2 pos;" "uniform vec2 mv;" "void ...
freed00m/wayst
src/settings.c
/* See LICENSE for license information. */ #define _GNU_SOURCE #include <errno.h> #include <getopt.h> #include <locale.h> #include <math.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <fontconfig/fontconfig.h> #include "settings.h" #include "util.h" #include "vector.h" // configuration file...
freed00m/wayst
src/colors.h
/* See LICENSE for license information. */ #pragma once #include "util.h" #include <ctype.h> #include <stdbool.h> #include <stdint.h> #include <string.h> /* Colors */ typedef struct { uint8_t r, g, b; } ColorRGB; typedef struct { uint8_t r, g, b, a; } ColorRGBA; #define COLOR_RGB_FMT "rgb(%d, %d, %d)" #d...
freed00m/wayst
src/wl_exts/kde-decoration.h
/* Generated by wayland-scanner 1.17.0 */ #ifndef SERVER_DECORATION_CLIENT_PROTOCOL_H #define SERVER_DECORATION_CLIENT_PROTOCOL_H #include <stdint.h> #include <stddef.h> #include "wayland-client.h" #ifdef __cplusplus extern "C" { #endif /** * @page page_server_decoration The server_decoration protocol * @section...
freed00m/wayst
src/gfx.h
#pragma once #include <stdbool.h> #include <stdint.h> #include "util.h" #include "vt.h" typedef struct { struct IGfx* interface; __attribute__((aligned(8))) uint8_t extend_data; } Gfx; struct IGfx { void (*draw_vt) (Gfx* self, const Vt*); void (*resize) (G...
freed00m/wayst
src/vt.h
<filename>src/vt.h /* See LICENSE for license information. */ #pragma once #include <errno.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <uchar.h> #include <fcntl.h> #include <pty.h> #include <sys/ioctl.h> #include <sys/types.h> #i...
freed00m/wayst
src/gfx_gl21.c
/* See LICENSE for license information. */ #define _GNU_SOURCE #include "gfx_gl21.h" #include "vt.h" #include <assert.h> #include <math.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <sys/sysinfo.h> #include <sys/time.h> #include <time.h> #include <unistd.h> #include <GL...
freed00m/wayst
src/main.c
<filename>src/main.c /* See LICENSE for license information. */ #define _GNU_SOURCE #include <stdio.h> #include <unistd.h> #include "gfx_gl21.h" #ifndef NOWL #include "wl.h" #endif #ifndef NOX #include "x.h" #endif #include "settings.h" #include "vt.h" typedef struct Wayst { Window_* win; Gfx* gfx; ...
zaiddashti/python-tutorial
001-introduction/hello.c
<gh_stars>0 #include <stdio.h> int main() { printf("This program is written in C language.\n"); return 0; }
CajjadCodes/SupermarketReceipt-Refactoring-Kata
cpp/model/ReceiptPrinter.h
<filename>cpp/model/ReceiptPrinter.h<gh_stars>0 #ifndef CPP_RECEIPTPRINTER_H #define CPP_RECEIPTPRINTER_H #include "Receipt.h" #include <iomanip> #include <sstream> class ReceiptPrinter { public: ReceiptPrinter(); ReceiptPrinter(int columns); std::string printReceipt(const Receipt &receipt); std...
jwonee1343/data_structure
app/queue_test/main.c
<filename>app/queue_test/main.c #include <stdio.h> #include <stdlib.h> #include "queue.h" #ifndef QUEUELEN #define QUEUELEN 5 #endif /* QUEUELEN */ int main(void) { queue_t *q; int n = 0; printf("Queue length = %d\n", QUEUELEN); q = queue_create(QUEUELEN, sizeof(int)); if (!q) { pr...
jwonee1343/data_structure
source/stack.c
<reponame>jwonee1343/data_structure<gh_stars>0 /** * @file stack.h * @author <NAME> <<EMAIL>> */ #include "stack.h" /* Includes */ #include <malloc.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> /* Functions */ /** * @brief Get start address of a stack elements * * @param s Poin...
jwonee1343/data_structure
app/stack_test/main.c
<filename>app/stack_test/main.c #include <stdio.h> #include <stdlib.h> #include "stack.h" #ifndef STACKLEN #define STACKLEN 5 #endif /* STACKLEN */ int main(void) { stack_t *s; int n = 0; printf("Stack length = %d\n", STACKLEN); s = stack_create(STACKLEN, sizeof(int)); if (!s) { pr...
jwonee1343/data_structure
include/queue.h
/** * @file queue.h * @author <NAME> <<EMAIL>> */ #ifndef _QUEUE_H #define _QUEUE_H /* Includes */ #include <stdbool.h> #include <stddef.h> #include <stdint.h> /* Structure */ typedef struct { uint32_t front; /* Index of front position */ uint32_t rear; /* Index of rear position */ uint32_...
jwonee1343/data_structure
include/stack.h
<reponame>jwonee1343/data_structure /** * @file stack.h * @author <NAME> <<EMAIL>> */ #ifndef _STACK_H #define _STACK_H /* Includes */ #include <stdbool.h> #include <stddef.h> #include <stdint.h> /* Structure */ typedef struct { uint32_t top; /* Index of top position */ uint32_t len; /* Cou...
jwonee1343/data_structure
source/queue.c
/** * @file queue.h * @author <NAME> <<EMAIL>> */ #include "queue.h" /* Includes */ #include <malloc.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> /* Functions */ /** * @brief Get start address of a queue elements * * @param q Pointer of a queue * @param offset Offset * @r...
edgarcheverier/MF
ios/build/Build/Intermediates.noindex/movingfree.build/Debug-iphonesimulator/movingfree.build/DerivedSources/movingfree_vers.c
<filename>ios/build/Build/Intermediates.noindex/movingfree.build/Debug-iphonesimulator/movingfree.build/DerivedSources/movingfree_vers.c<gh_stars>0 extern const unsigned char movingfreeVersionString[]; extern const double movingfreeVersionNumber; const unsigned char movingfreeVersionString[] __attribute__ ((used)) ...
salchint/AsyncLoadingScreen
Source/AsyncLoadingScreen/Public/STipWidget.h
/************************************************************************************ * * * Copyright (C) 2020 <NAME>. * * Website: https://github.com/truong-bui/AsyncLoadingScreen * * Licensed under the MIT License. See 'LICENSE' file for full license information. * * ...
salchint/AsyncLoadingScreen
Source/AsyncLoadingScreen/Public/IWidgetFactory.h
/************************************************************************************ * * * Copyright (C) 2020 <NAME> * * Website: https://github.com/salchint/AsyncLoadingScreen * * Licensed under the MIT License. See 'LICENSE' file for full license information. * * ...
salchint/AsyncLoadingScreen
Source/AsyncLoadingScreen/Public/SBackgroundWidget.h
/************************************************************************************ * * * Copyright (C) 2020 <NAME>. * * Website: https://github.com/truong-bui/AsyncLoadingScreen * * Licensed under the MIT License. See 'LICENSE' file for full license information. * * ...
hsundar/sort
include/gensort/sortRecord.h
#ifndef __SORT_RECORD_H_ #define __SORT_RECORD_H_ #include <iostream> class sortRecord { private: /* long eka; short dva; */ char key[10]; char value[90]; public: sortRecord() { // key = new char[10]; // value = new char[90]; } sortRecord(const sortRecord& other) { ...
hsundar/sort
include/par/rankSwapSort.h
<gh_stars>0 #ifndef __HYPER_QUICKSORT_COMM_AVOID_H__ #define __HYPER_QUICKSORT_COMM_AVOID_H__ #include <cstdio> #include "dendro.h" // #define long long long #ifdef _PROFILE_SORT #include "sort_profiler.h" #endif #include <mpi.h> namespace par { template<typename T> int RankSwapSort(std::vector<T>& arr, MPI_C...
hsundar/sort
include/avx/avxUtils.h
<reponame>hsundar/sort<filename>include/avx/avxUtils.h #ifndef _AVX_UTILS_H_ #define _AVX_UTILS_H_ #include <algorithm> #include <xmmintrin.h> #include <emmintrin.h> #include <immintrin.h> #include <smmintrin.h> template <class T> class Traits_avx{ public: static const int size=-1; }; /*template <> class Traits<...
hsundar/sort
include/gensort/gensort.h
#ifndef __GENSORT_H_ #define __GENSORT_H_ int genRecords(char* data, unsigned int rank, unsigned int n); #endif // __GENSORT_H_
hsundar/sort
include/oct/TreeNodePointer.h
/** * @file TreeNodePointer.h * @author <NAME>, <EMAIL> * **/ #ifndef _TREENODE_POINTER_H_ #define _TREENODE_POINTER_H_ namespace ot { class TreeNode; /** @brief A wrapper for linked list based octree representation @author <NAME> */ struct TreeNodePointer { TreeNode m_tnMe; T...
hsundar/sort
include/oct/octUtils.h
/** * @file octUtils.h * @author <NAME>, <EMAIL> * @author <NAME>, <EMAIL> * @brief A list of non-member functions for the TreeNode class. **/ #ifndef _OCTUTILS_H_ #define _OCTUTILS_H_ #include "mpi.h" #include <vector> #ifdef PETSC_USE_LOG #include "petscsys.h" namespace ot { extern int markHangingEven...