repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
YuviTz1/Gameboy-Emulator
src/debugger.h
<gh_stars>0 #pragma once #include<SFML\Window.hpp> #include<SFML\Graphics.hpp> #include<imgui.h> #include<imgui-SFML.h> #include<imgui_memory_editor.h> #include"cpu.h" class debugger { public: sf::RenderWindow window; sf::Clock deltaClock; MemoryEditor memEditor; debugger(); ~debugger(); void update(CPU& cpu)...
Thorinair/Sparkle
Configuration.h
/* * The main configuration file. */ /******** * Intervals and optimization *******/ /* Power supply status polling interval. Defined in miliseconds. */ #define POLLING_INTERVAL 100 /* Passive URL notification interval. Defined in seconds. */ #define NOTIFICATION_INTERVAL 300 /* Power level threshold. A value o...
namangupta98/toycar
include/toycar_hardware_interface/toycar_hardware_interface.h
<gh_stars>0 //#ifndef ROS_CONTROL__TOYCAR_HARDWARE_INTERFACE_H //#define ROS_CONTROL__TOYCAR_HARDWARE_INTERFACE_H #include <hardware_interface/joint_state_interface.h> #include <hardware_interface/joint_command_interface.h> #include <hardware_interface/robot_hw.h> #include <joint_limits_interface/joint_limits.h> #incl...
markusn/luit
other.h
/* Copyright (c) 2002 by <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 Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subli...
rastogishubham/llvm-project
mlir/include/mlir/Dialect/Linalg/ComprehensiveBufferize/SCFInterfaceImpl.h
//===- SCFInterfaceImpl.h - SCF Impl. of BufferizableOpInterface ----------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
llvm/include/llvm/ADT/StringMapEntry.h
<reponame>rastogishubham/llvm-project //===- StringMapEntry.h - String Hash table map interface -------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-excepti...
rastogishubham/llvm-project
clang-tools-extra/clang-tidy/bugprone/SignalHandlerCheck.h
<filename>clang-tools-extra/clang-tidy/bugprone/SignalHandlerCheck.h //===--- SignalHandlerCheck.h - clang-tidy ----------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifie...
rastogishubham/llvm-project
mlir/tools/mlir-tblgen/FormatGen.h
<filename>mlir/tools/mlir-tblgen/FormatGen.h //===- FormatGen.h - Utilities for custom assembly formats ------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-...
rastogishubham/llvm-project
mlir/include/mlir/Dialect/Affine/Utils.h
//===- Utils.h - Affine dialect utilities -----------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
mlir/include/mlir/Transforms/Passes.h
<reponame>rastogishubham/llvm-project //===- Passes.h - Pass Entrypoints ------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-excepti...
rastogishubham/llvm-project
lldb/include/lldb/Utility/Logging.h
//===-- Logging.h -----------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
mlir/include/mlir/Dialect/Bufferization/Transforms/BufferUtils.h
<filename>mlir/include/mlir/Dialect/Bufferization/Transforms/BufferUtils.h //===- BufferUtils.h - Buffer optimization utilities ------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Ide...
rastogishubham/llvm-project
libcxx/include/__iterator/counted_iterator.h
// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===------------...
rastogishubham/llvm-project
llvm/include/llvm/Demangle/StringView.h
<gh_stars>0 // Do not edit! -*- read-only -*- // See README.txt for instructions //===--- StringView.h -------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-Licen...
rastogishubham/llvm-project
openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
//===------- target_impl.h - AMDGCN OpenMP GPU implementation ----- HIP -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
mlir/include/mlir/Dialect/StandardOps/Transforms/Passes.h
//===- Passes.h - Pass Entrypoints ------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
lldb/source/Plugins/LanguageRuntime/Swift/LLDBMemoryReader.h
#ifndef liblldb_LLDBMemoryReader_h_ #define liblldb_LLDBMemoryReader_h_ #include "SwiftLanguageRuntime.h" #include "swift/Reflection/TypeLowering.h" #include "llvm/Support/Memory.h" namespace lldb_private { class LLDBMemoryReader : public swift::remote::MemoryReader { public: LLDBMemoryReader(Process &p, size_t m...
rastogishubham/llvm-project
llvm/include/llvm/IR/Statepoint.h
<filename>llvm/include/llvm/IR/Statepoint.h //===- llvm/IR/Statepoint.h - gc.statepoint utilities -----------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-e...
rastogishubham/llvm-project
libcxx/test/std/utilities/format/format.functions/format_tests.h
//===----------------------------------------------------------------------===// // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===------------------------------...
rastogishubham/llvm-project
lldb/include/lldb/Target/Statistics.h
//===-- Statistics.h --------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
lldb/source/Plugins/Process/scripted/ScriptedThread.h
//===-- ScriptedThread.h ----------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
llvm/include/llvm/ADT/MapVector.h
<filename>llvm/include/llvm/ADT/MapVector.h //===- llvm/ADT/MapVector.h - Map w/ deterministic value order --*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-e...
rastogishubham/llvm-project
compiler-rt/test/profile/Posix/instrprof-get-filename-merge-mode.c
<filename>compiler-rt/test/profile/Posix/instrprof-get-filename-merge-mode.c // Test __llvm_profile_get_filename when the on-line merging mode is enabled. // // RUN: %clang_pgogen -fPIC -shared %shared_linker_xopts -o %t.dso %p/../Inputs/instrprof-get-filename-dso.c // RUN: %clang_pgogen -o %t %s %t.dso // RUN: env LLV...
rastogishubham/llvm-project
mlir/include/mlir/Dialect/Vector/VectorOps.h
<filename>mlir/include/mlir/Dialect/Vector/VectorOps.h //===- VectorOps.h - MLIR Vector Dialect Operations -------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 ...
rastogishubham/llvm-project
clang-tools-extra/test/clang-tidy/checkers/bugprone-signal-handler.c
<reponame>rastogishubham/llvm-project // RUN: %check_clang_tidy %s bugprone-signal-handler %t -- -- -isystem %S/Inputs/Headers #include "signal.h" #include "stdlib.h" #include "stdio.h" #include "system-other.h" // The function should be classified as system call even if there is // declaration the in source file. //...
rastogishubham/llvm-project
libc/src/__support/FPUtil/x86_64/sqrt.h
//===-- Square root of IEEE 754 floating point numbers ----------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
mlir/include/mlir/Dialect/Tensor/IR/Tensor.h
<gh_stars>0 //===- Tensor.h - Tensor dialect --------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------...
rastogishubham/llvm-project
libcxx/include/__memory/ranges_uninitialized_algorithms.h
<gh_stars>0 // -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===...
rastogishubham/llvm-project
lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDPLog.h
//===-- ProcessKDPLog.h -----------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
lldb/include/lldb/Interpreter/ScriptedInterface.h
//===-- ScriptedInterface.h -------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
libc/include/llvm-libc-macros/linux/fcntl-macros.h
//===-- Definition of macros from fcntl.h ---------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
mlir/include/mlir/IR/Dialect.h
//===- Dialect.h - IR Dialect Description -----------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h
<gh_stars>0 //===-- ProcessGDBRemoteLog.h -----------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------...
rastogishubham/llvm-project
mlir/include/mlir/Dialect/Tensor/IR/TensorTilingInterfaceImpl.h
//===- TensorTilingOpInterfaceImpl.h - ------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
compiler-rt/test/profile/Linux/instrprof-debug-info-correlate.c
<reponame>rastogishubham/llvm-project // Value profiling is currently not supported in lightweight mode. // RUN: %clang_pgogen -o %t.normal -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp // RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t.n...
rastogishubham/llvm-project
mlir/include/mlir/Dialect/LLVMIR/NVVMDialect.h
//===- NVVMDialect.h - MLIR NVVM IR dialect ---------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
//===- InstrRefBasedImpl.h - Tracking Debug Value MIs ---------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
llvm/include/llvm/Support/FormatVariadicDetails.h
//===- FormatVariadicDetails.h - Helpers for FormatVariadic.h ----*- C++-*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
mlir/include/mlir/Dialect/Linalg/Passes.h
//===- Passes.h - Linalg pass entry points ----------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
lldb/source/Plugins/Process/Windows/Common/ProcessWindowsLog.h
//===-- ProcessWindowsLog.h -------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
llvm/include/llvm/ADT/SetVector.h
//===- llvm/ADT/SetVector.h - Set with insert order iteration ---*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
rastogishubham/llvm-project
lldb/source/Plugins/SymbolFile/DWARF/LogChannelDWARF.h
<filename>lldb/source/Plugins/SymbolFile/DWARF/LogChannelDWARF.h //===-- LogChannelDWARF.h ---------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: A...
rastogishubham/llvm-project
libcxx/test/support/poisoned_hash_helper.h
// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===------------...
rastogishubham/llvm-project
clang/test/OpenMP/irbuilder_unroll_partial_heuristic_constant_for.c
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs // RUN: %clang_cc1 -fopenmp-enable-irbuilder -verify -fopenmp -fopenmp-version=51 -x c -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s // expected-no-diagnostics // RE...
rastogishubham/llvm-project
mlir/include/mlir/Dialect/Bufferization/Transforms/Bufferize.h
<filename>mlir/include/mlir/Dialect/Bufferization/Transforms/Bufferize.h //===- Bufferize.h - Bufferization utilities --------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Ident...
rastogishubham/llvm-project
bolt/include/bolt/Utils/CommandLineOpts.h
//===- bolt/Utils/CommandLineOpts.h - BOLT CLI options ----------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
c0re100/electron
shell/browser/ui/cocoa/window_buttons_proxy.h
// Copyright (c) 2021 Microsoft, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #ifndef SHELL_BROWSER_UI_COCOA_WINDOW_BUTTONS_PROXY_H_ #define SHELL_BROWSER_UI_COCOA_WINDOW_BUTTONS_PROXY_H_ #import <Cocoa/Cocoa.h> #include "base/mac/scoped_nsobject.h" #includ...
EvansWinner/mkwav.c
mkwav.c
// mkwav takes an input file of any type and arbitrarily tacks an RIFF // 16 bit mono 44100 khz .wav file header to it and writes that to a // new file. // <NAME> // 2006.1.27: add use message and some comments. // Compiled on Fedora Core 3 linux machine // at home. // 2...
google/private-membership
private_membership/rlwe/batch/cpp/prng.h
<reponame>google/private-membership // Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
google/private-membership
private_membership/rlwe/batch/cpp/context.h
<reponame>google/private-membership // Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
google/private-membership
private_membership/rlwe/client/cpp/internal/testing/constants.h
#ifndef PRIVATE_MEMBERSHIP_RLWE_CLIENT_CPP_INTERNAL_TESTING_CONSTANTS_H_ #define PRIVATE_MEMBERSHIP_RLWE_CLIENT_CPP_INTERNAL_TESTING_CONSTANTS_H_ #include <openssl/obj_mac.h> namespace private_membership { namespace rlwe { // Identifier of the elliptic curve used in tests. constexpr int kTestCurveId = NID_X9_62_prim...
google/private-membership
private_membership/rlwe/client/cpp/internal/oprf_utils.h
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
google/private-membership
private_membership/rlwe/batch/cpp/client/client.h
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
google/private-membership
private_membership/rlwe/batch/cpp/client/client_helper.h
<reponame>google/private-membership<gh_stars>10-100 // Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // //...
google/private-membership
private_membership/rlwe/batch/cpp/constants.h
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
google/private-membership
private_membership/rlwe/batch/cpp/test_helper.h
<reponame>google/private-membership // Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
google/private-membership
private_membership/rlwe/batch/cpp/server/server.h
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
google/private-membership
private_membership/rlwe/batch/cpp/encoding.h
<filename>private_membership/rlwe/batch/cpp/encoding.h<gh_stars>10-100 // Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/license...
GDokmetas/PySimpleGUI-Relay-Controller
main.c
/* * SerialRole_2.c * * Created: 13.06.2021 13:57:00 * Author : PC */ #include <avr/io.h> #define F_CPU 16000000UL #include <util/delay.h> #include <avr/interrupt.h> #define BAUD 9600 #define BAUDRATE ((F_CPU)/(BAUD*16UL)-1) void uart_basla(uint32_t baud); void uart_gonder(uint8_t data); void uart...
suttonjames/Software-Renderer
src/model.c
#include "model.h" #pragma warning(disable : 4996) static char* ReadLine(FILE* file) { char* line = NULL; while (1) { s32 c = fgetc(file); if (c == EOF) return NULL; sb_push(line, (char)c); if (c == '\n') { sb_push(line, '\0'); return line; ...
suttonjames/Software-Renderer
src/draw.h
#ifndef DRAW_H #define DRAW_H #include "platform.h" #include "shaders.h" void Draw(Backbuffer *buffer, Program *program, mat4 viewport); #endif
suttonjames/Software-Renderer
src/maths.h
#ifndef MATHS_H #define MATHS_H #include <math.h> #include "types.h" typedef struct vec2 { struct { f32 x, y; }; struct { f32 u, v; }; f32 elements[2]; } vec2; typedef union vec3 { struct { f32 x, y, z; }; struct { f32 u, v, w; }; struct { f32 r, g, b; }; f32 elements[3]; } vec3; typedef unio...
suttonjames/Software-Renderer
src/platform.h
<reponame>suttonjames/Software-Renderer<filename>src/platform.h #ifndef PLATFORM_H #define PLATFORM_H #include <windows.h> #include "types.h" #include "maths.h" #include "shaders.h" typedef struct Backbuffer { s32 width; s32 height; void *memory; BITMAPINFO bitmapInfo; f32 *zbuffer; } Backbuffer; typedef stru...
suttonjames/Software-Renderer
src/image.c
<filename>src/image.c #include "image.h" #pragma warning(disable : 4996) Image* ReadFromTGA(const char* file_name) { Image* image; FILE* file; u8 header[18]; file = fopen(file_name, "rb"); assert(file != NULL); fread((void*)header, 1, sizeof(header), file); s32 width = header[12] + (header[13] << 8); s32 he...
suttonjames/Software-Renderer
src/win32.c
#include <windows.h> #include "platform.h" #include "image.h" #include "model.h" #include "draw.h" static LRESULT CALLBACK WindowProc(HWND window, UINT message, WPARAM wParam, LPARAM lParam) { LRESULT result = -1; switch (message) { case WM_CLOSE: case WM_DESTROY: case WM_QUIT: { platform.running = fals...
suttonjames/Software-Renderer
src/shaders.h
<reponame>suttonjames/Software-Renderer #ifndef SHADERS_H #define SHADERS_H #include "types.h" #include "maths.h" #include "image.h" typedef struct Varyings { // input vertex shader vec3 in_positions[3]; vec2 in_texcoords[3]; // output vertex shader vec2 out_texcoords[3]; // input fragment shader vec2 in_te...
suttonjames/Software-Renderer
src/shaders.c
<filename>src/shaders.c #include "shaders.h" vec4 VertexShader(s32 vertex, void *varyings_, void *uniforms_) { Varyings *varyings = (Varyings *)varyings_; Uniforms *uniforms = (Uniforms *)uniforms_; vec3 in_position = varyings->in_positions[vertex]; vec2 in_texcoord = varyings->in_texcoords[vertex]; mat4 mvp = u...
suttonjames/Software-Renderer
src/model.h
<gh_stars>0 #ifndef MODEL_H #define MODEL_H #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <string.h> #include "types.h" #include "maths.h" #include "stretchy_buffer.h" typedef struct Model { vec3 *positions; vec2 *texcoords; vec3 *normals; s32 num_faces; } Model; Model *LoadModel(const ch...
suttonjames/Software-Renderer
src/draw.c
<reponame>suttonjames/Software-Renderer<gh_stars>0 #include "draw.h" static void Swap(f32 *xp, f32 *yp) { f32 temp = *xp; *xp = *yp; *yp = temp; } static void DrawPixel(Backbuffer *buffer, s32 x, s32 y, vec3 colour) { if (x < 0 || y < 0 || x >= buffer->width || y >= buffer->height) return; s32 *pixel = (s32 *...
suttonjames/Software-Renderer
src/types.h
#ifndef TYPES_H #define TYPES_H #include <stdint.h> #define false 0; #define true 1; typedef int8_t s8; typedef int16_t s16; typedef int32_t s32; typedef int64_t s64; typedef uint8_t u8; typedef uint16_t u16; typedef uint32_t u32; typedef uint64_t u64; typedef float f32; typedef double f64; typedef s32 b32; #endif
suttonjames/Software-Renderer
src/image.h
<reponame>suttonjames/Software-Renderer<gh_stars>0 #ifndef IMAGE_H #define IMAGE_H #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <string.h> #include "types.h" #include "maths.h" typedef struct Image { s32 width, height, channels; u8 *buffer; } Image; Image *ReadFromTGA(const char* file_name)...
silvajhb/PSWCLS
HARDWARE/EDA/KICAD/pswcls/complement/SRA-12VDC-CL/LIB_SRA-12VDC-CL/SRA-12VDC-CL/PADS/SRA-12VDC-CL.c
<reponame>silvajhb/PSWCLS *PADS-LIBRARY-SCH-DECALS-V9* SRA-12VDC-CL 0 0 100 10 100 10 4 1 0 5 0 TIMESTAMP 2022.04.16.03.35.20 "Default Font" "Default Font" 650 300 0 8 100 10 REF-DES 650 200 0 8 100 10 PART-TYPE 650 -400 0 8 100 10 * 650 -500 0 8 100 10 * CLOSED 5 10 0 -1 200 100 600 100 600 -300 200...
bobbyjim/x16-hexdump
main.c
#include <peekpoke.h> #include <cbm.h> #include <conio.h> typedef unsigned int word; typedef unsigned char byte; #define VERSION_ADDR 0xff80 #define BLACK 0x90 #define WHITE 0x05 #define RED 0x1c #define GREEN 0x1e #define BLUE 0x1f #define AMBER ...
only-einsteined/OldedDemoViewModel
Example/Pods/Target Support Files/OldedDemoViewModel/OldedDemoViewModel-umbrella.h
<reponame>only-einsteined/OldedDemoViewModel #ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "NHOldedDemoViewModel.h" FOUNDATION_EXPORT double OldedDemoViewModelVer...
only-einsteined/OldedDemoViewModel
OldedDemoViewModel/Code/NHOldedDemoViewModel.h
<filename>OldedDemoViewModel/Code/NHOldedDemoViewModel.h // // NHOldedDemoViewModel.h // OldedDemoViewModel // // // Created by onhonehd on 2020/12/28. // Copyright (c) 2020 only-einsteined. All rights reserved.. #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NHOldedDemoViewModel : NSObjec...
only-einsteined/OldedDemoViewModel
Example/Pods/Target Support Files/NewDemoProtocolManager/NewDemoProtocolManager-umbrella.h
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "NHNewDemoProtocolManager.h" FOUNDATION_EXPORT double NewDemoProtocolManagerVersionNumber; FOUNDATION_EXPORT const u...
only-einsteined/OldedDemoViewModel
Example/OldedDemoViewModel/NHAppDelegate.h
<reponame>only-einsteined/OldedDemoViewModel // // NHAppDelegate.h // OldedDemoViewModel // // Created by only-einsteined on 12/28/2020. // Copyright (c) 2020 only-einsteined. All rights reserved. // @import UIKit; @interface NHAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWin...
olekmali/ATMega328P_J-Lab
Lab 5A power_down_timer1/power_down_timer1/power_down_timer1_main.c
//* Simple test to sleep and wake up on Timer1 output compare interrupt * #include <avr/io.h> #include <avr/interrupt.h> #include <avr/sleep.h> #include <avr/wdt.h> #define F_CPU (16000000UL) #include <util/delay.h> #include "bios_leds.h" #include "bios_timer_int.h" //------------------------------------...
olekmali/ATMega328P_J-Lab
Lab 1 hal_example/toggle_c_m/main.c
//* blink and toggle in c * #include <stdint.h> #include "bios_leds.h" #include "bios_keys.h" #define F_CPU (16000000UL) #include <util/delay.h> // this test allows you to do the final tweak of the delay function int main() { leds_init(); keys_init(); while(1) { uint8_t bit5 =...
olekmali/ATMega328P_J-Lab
Lab 5B timer_sequence/timer_sequence/main.c
//* testing TIMER1 interrupt with sequence generation - main.c * #include <stdint.h> #include <avr/interrupt.h> #include "bios_timer_int.h" #include "bios_leds.h" #include "bios_keys.h" //------------------------------------------------------------------------------------ // Global constant(s) //---------...
olekmali/ATMega328P_J-Lab
Lab 6 lcd_display/lcd_display/lab_lcd.h
<filename>Lab 6 lcd_display/lcd_display/lab_lcd.h //* lab_lcd.h * #ifndef LAB_LCD_H_ #define LAB_LCD_H_ #include <stdint.h> /* Lab 5-1 */ //void lcd_put_nibble(uint8_t mode, uint8_t data) - library internal void lcd_init(); /* Lab 5-2 */ void lcd_putchr(char chr); void lcd_putstr(const char *...
olekmali/ATMega328P_J-Lab
Lab 4 sol_pwm_servo/pwm_servo/main.c
//* testing TIMER1 interrupt with software generated PWM for servomotor - main.c * #include "bios_timer_int.h" #include <stdint.h> #include <avr/interrupt.h> #include "bios_leds.h" #include "bios_keys.h" //------------------------------------------------------------------------------------ // Global consta...
olekmali/ATMega328P_J-Lab
Lab 5B pinc_n_timer/pinc_n_timer/main.c
<gh_stars>1-10 //* testing PINC restarting TIMER1 interrupt - main.c * #include <stdint.h> #include <avr/interrupt.h> #include <avr/sleep.h> #include "bios_leds.h" #include "bios_keys.h" #include "bios_timer_int.h" #include "bios_pinc_int.h" //-------------------------------------------------------------...
olekmali/ATMega328P_J-Lab
Lab 6 lcd_display/lcd_display/lab_lcd.c
<gh_stars>1-10 //* lab_lcd.c * #include "lab_lcd.h" #include <avr/io.h> #define F_CPU (16000000UL) #include <util/delay.h> typedef enum { LCD_CMNDR = 0, LCD_DATAR = 1} lcd_destination_t; /* Connections: LCD D7 D6 D5 D4 -- PortC 3 2 1 0 (most of the time output) LCD E RW RS -- PortB 2 1 ...
olekmali/ATMega328P_J-Lab
Lab 6 lcd_display/lcd_display/main.c
<reponame>olekmali/ATMega328P_J-Lab //* testing LCD display initialization and basic functionality * #include <stdint.h> #include "lab_lcd.h" #define F_CPU (16000000UL) #include <util/delay.h> /* begin testing stub */ #include <avr/io.h> #define L5 (1<<5) inline void L5init() { DDRB = DDRB | L5; } i...
NRGb3nder/network-info
adaptersmeta.h
<reponame>NRGb3nder/network-info #pragma once #include <winsock2.h> #include <iphlpapi.h> #pragma comment(lib, "IPHLPAPI.lib") struct AdapterMetaInfo { CHAR szDesc[512]; CHAR szAddress[512]; }; struct AdapterMetaListNode { struct AdapterMetaInfo *pInfo; struct AdapterMetaListNode *pNex...
NRGb3nder/network-info
adaptersmeta.c
#include "stdafx.h" #include "adaptersmeta.h" BOOL WINAPI getAdaptersMetaInfo(struct AdapterMetaListNode *pAdapterNode) { IP_ADAPTER_INFO aAdapterInfo[32]; PIP_ADAPTER_INFO pAdapterInfo = aAdapterInfo; DWORD dwBufLen = sizeof(aAdapterInfo); DWORD dwStatus = GetAdaptersInfo(pAdapterInfo, &dwBufL...
NRGb3nder/network-info
netresources.c
<reponame>NRGb3nder/network-info<filename>netresources.c #include "stdafx.h" #include "netresources.h" void logerror(FILE *errlog, CONST CHAR *szMsg); void logerrorcode(FILE *errlog, CONST CHAR *szMsg, DWORD dwErrcode); void showResource(DWORD dwNesting, LPNETRESOURCE lpnrLocal); BOOL WINAPI _enumerateResources(...
NRGb3nder/network-info
networkinfo.c
#include "stdafx.h" #include "adaptersmeta.h" #include "netresources.h" int main() { struct AdapterMetaListNode *pAdapterList; struct AdapterMetaListNode *pCurrentNode; pAdapterList = (struct AdapterMetaListNode *) malloc(sizeof(struct AdapterMetaListNode)); pAdapterList->pInfo = NULL; pAdapterLis...
NRGb3nder/network-info
netresources.h
<filename>netresources.h #include <windows.h> #include <winnetwk.h> #pragma comment(lib, "mpr.lib") BOOL WINAPI enumerateResources();
localevil/OSS-13
OSS13 Client/Sources/Graphics/TextureHolder.h
<gh_stars>0 #pragma once #include <vector> #include <Graphics/Texture.hpp> class TextureHolder { public: Texture *LoadTexture(std::wstring path, uint32_t tileSize); protected: std::vector<uptr<Texture>> textures; };
snydersaurus/Bitter
Sources/Bitter/Bitter.h
// // Bitter.h // Bitter // // Created by <NAME> on 05/02/16. // Copyright © 2016 <NAME>. All rights reserved. // @import Foundation; //! Project version number for Bitter. FOUNDATION_EXPORT double BitterVersionNumber; //! Project version string for Bitter. FOUNDATION_EXPORT const unsigned char BitterVersionStri...
jcesarmobile/WebViewTests
WebViewTests/WKWebViewController.h
<filename>WebViewTests/WKWebViewController.h<gh_stars>0 // // WKWebViewController.h // WebViewTests // // Created by <NAME> on 28/11/17. // Copyright © 2017 jcesarmobile. All rights reserved. // #import <UIKit/UIKit.h> #import "WebViewBaseViewController.h" @interface WKWebViewController : WebViewBaseViewControlle...
jcesarmobile/WebViewTests
WebViewTests/AppDelegate.h
<reponame>jcesarmobile/WebViewTests<filename>WebViewTests/AppDelegate.h<gh_stars>0 // // AppDelegate.h // WebViewTests // // Created by <NAME> on 28/11/17. // Copyright © 2017 jcesarmobile. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (str...
jcesarmobile/WebViewTests
WebViewTests/WebViewBaseViewController.h
// // WebViewBaseViewController.h // WebViewTests // // Created by <NAME> on 28/11/17. // Copyright © 2017 jcesarmobile. All rights reserved. // #import <UIKit/UIKit.h> @interface WebViewBaseViewController : UIViewController <UIGestureRecognizerDelegate> @property (strong, nonatomic) NSString * fileName; @end
jcesarmobile/WebViewTests
WebViewTests/ViewController.h
<filename>WebViewTests/ViewController.h // // ViewController.h // WebViewTests // // Created by <NAME> on 28/11/17. // Copyright © 2017 jcesarmobile. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
ernestyalumni/CompPhys
Cpp/Ising/Ising/boundary/boundary.h
/** * @file boundary.h * @brief boundary conditions for 2-dim. Ising model as inline function * @ref http://en.cppreference.com/w/cpp/language/inline * @details Choose correct matrix index with periodic boundary conditions * * * COMPILATION TIP : -Wall warning all, -g debugger, gdb can step through ...
ernestyalumni/CompPhys
Cpp/math/09-ModularArithmetic/Mod.h
//------------------------------------------------------------------------------ /// \file Mod.h /// \author <NAME> /// \email <EMAIL> /// \brief Program 9.1. Header file for the Mod class, Mod.h /// \details /// \ref pp. 159. <NAME>. C++ for Mathematicians: An Introduction /// for Students and Professionals. 20...
ernestyalumni/CompPhys
CUDA-By-Example/cpuvecsum.c
/* cf. <NAME>, <NAME>. CUDA by Example: An Introduction to General-Purpose GPU Programming */ /* ** Chapter 4 Parallel Programming in CUDA C ** 4.2 CUDA Parallel Programming ** 4.2.1 Summing Vectors */ #include <stdio.h> #define N 10 void add(int *a, int*b, int *c){ int tid = 0; // this is CPU zero, so we start ...
ernestyalumni/CompPhys
Cpp/Ising/IsingGPU/grid2d/sysparam.h
/** * @file : sysparam.h * @brief : Physical parameters of the system header file, in CUDA C++11/14, on device GPU * @details : as a struct, have total energy E, total magnetization M, temperature of entire system T (in energy units) * * @author : <NAME> <<EMAIL>> * @date : 20180103 * @ref : M. H...