Skip to content

Instantly share code, notes, and snippets.

View feliwir's full-sized avatar
👨‍💻
Coding along

Stephan Vedder feliwir

👨‍💻
Coding along
  • mbits imaging GmbH
  • Germany
View GitHub Profile
template<typename CodegenI32, typename CodegenDouble>
void Compiler::branch_if_both_numbers(Assembler::Reg lhs, Assembler::Reg rhs, CodegenI32 codegen_i32, CodegenDouble codegen_double)
{
Assembler::Label end {};
// The only case where we can take the int32 fastpath
branch_if_both_int32(lhs, rhs, [&] {
codegen_i32(lhs, rhs);
});
#include "x3d_texture_gl.h"
#include <cassert>
#include <cstring>
X3D::X3DTextureGL::X3DTextureGL(int width, int height, X3DTextureFormat fmt, int levels) :
X3DTexture(width, height, fmt, levels)
{
glGenTextures(1, &m_texture);
m_pbos = new GLuint[m_levels];
}
==622580==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 765248 byte(s) in 1087 object(s) allocated from:
#0 0x7fb7986d9e28 in operator new(unsigned long) (/lib64/libasan.so.8+0xd9e28) (BuildId: e5f0a0d511a659fbc47bf41072869139cb2db47f)
#1 0xa58219 in ParticleSystemManager::New_Template(Utf8String const&) /home/stephan/Development/Thyme/src/game/client/system/particlesystem/particlesysmanager.cpp:208
#2 0xa59fff in ParticleSystemManager::Parse_Particle_System_Definition(INI*) /home/stephan/Development/Thyme/src/game/client/system/particlesystem/particlesysmanager.cpp:455
#3 0x48acf6 in INI::Load(Utf8String, INILoadType, Xfer*) /home/stephan/Development/Thyme/src/game/common/ini/ini.cpp:233
#4 0xa56438 in ParticleSystemManager::Init() /home/stephan/Development/Thyme/src/game/client/system/particlesystem/particlesysmanager.cpp:67
#5 0x53509b in SubsystemInterfaceList::Init_Subsystem(SubsystemInterface*, char const*, char const*, char const*, Xfer*, Utf8String) /home/stephan/
/* window.rs
*
* Copyright 2023 stephan
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
%macro dotranspose 8
; %1=(00 01 02 03 04 05 06 07 40 41 42 43 44 45 46 47)
; %2=(10 11 12 13 14 15 16 17 50 51 52 53 54 55 56 57)
; %3=(20 21 22 23 24 25 26 27 60 61 62 63 64 65 66 67)
; %4=(30 31 32 33 34 35 36 37 70 71 72 73 74 75 76 77)
vpunpcklwd %5, %1, %2
vpunpckhwd %6, %1, %2
vpunpcklwd %7, %3, %4
vpunpckhwd %8, %3, %4
https://uica.uops.info/?code=%25define%20__x86_64__%0D%0A%0D%0A%25ifdef%20ELF%20%20%20%20%3B%20----(nasm%20-felf%5B64%5D%20-DELF%20...)------------%0D%0Asection%20.note.GNU-stack%20noalloc%20noexec%20nowrite%20progbits%0D%0A%0D%0A%3B%20--%20segment%20definition%20--%0D%0A%3B%0D%0A%25ifdef%20__x86_64__%0D%0A%25define%20SEG_TEXT%20%20%20.text%20%20%20progbits%20align%3D32%0D%0A%25define%20SEG_CONST%20%20.rodata%20progbits%20align%3D32%0D%0A%25else%0D%0A%25define%20SEG_TEXT%20%20%20.text%20%20%20progbits%20alloc%20exec%20%20%20nowrite%20align%3D32%0D%0A%25define%20SEG_CONST%20%20.rodata%20progbits%20alloc%20noexec%20nowrite%20align%3D32%0D%0A%25endif%0D%0A%0D%0A%3B%20To%20make%20the%20code%20position-independent%2C%20append%20-DPIC%20to%20the%20commandline%0D%0A%3B%0D%0A%25define%20GOT_SYMBOL%20%20_GLOBAL_OFFSET_TABLE_%20%20%3B%20ELF%20supports%20PIC%0D%0A%25define%20EXTN(name)%20%20name%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3B%20foo()%20-%3E%20foo%0D%0A%25endif%20%20%20%20%20%20%20%20%20%20%3
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0" />
<object class="StocksSymbol" id="symbol" />
<template class="StocksSymbolInfo" parent="AdwBin">
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="valign">center</property>
<child>
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<requires lib="libadwaita" version="1.0"/>
<template class="NdWindow" parent="GtkApplicationWindow">
<property name="title">Network Displays</property>
<property name="icon_name">org.gnome.NetworkDisplays</property>
<child>
<object class="GtkStack" id="step_stack">
<property name="transition_type">slide-left-right</property>
<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.2"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="GExiv2" version="0.10"/>
<include name="GObject" version="2.0"/>
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/feliwir/voyager">
<file preprocess="xml-stripblanks">icons/map-marker-symbolic.svg</file>
<file preprocess="xml-stripblanks">icons/map-photo-marker-symbolic.svg</file>
<file preprocess="xml-stripblanks">ui/voyager-exif-image-info.ui</file>
<file preprocess="xml-stripblanks">ui/voyager-window.ui</file>
<file preprocess="xml-stripblanks">ui/voyager-image-map.ui</file>
<file preprocess="json-stripblanks">map-style.json</file>
</gresource>