- C17 fmax
- Rust f64::max
- LLVM llvm.maxnum
- ARM FMAXNM (either mode)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "asr/asr_helpers.h" | |
| #include "asr/mini_libc.h" | |
| ProcessId process = 0; | |
| Address unity = 0; | |
| uint8_t old_run_active = 0; | |
| uint8_t old_timer_paused = 0; | |
| typedef struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Sets the tick rate of the runtime. This influences the amount of times the | |
| * `update` function is called per second. | |
| */ | |
| declare function setTickRate(ticksPerSecond: number): void; | |
| /** Prints a log message for debugging purposes. */ | |
| declare function printMessage(message: unknown): void; | |
| declare type Address = BigInt; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pub trait PopulateString { | |
| fn populate(self, buf: &mut String); | |
| fn as_str(&self) -> &str; | |
| fn into_string(self) -> String { | |
| let mut buf = String::new(); | |
| self.populate(&mut buf); | |
| buf | |
| } | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct Eversleep { | |
| time_info: Watcher<TimeInfo>, | |
| } | |
| impl<'a> AutoSplitter<'a> for Eversleep { | |
| type Data = &'a Pair<TimeInfo>; | |
| fn unhooked(&mut self) { | |
| self.time_info.update(None); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[repr(transparent)] | |
| pub struct Address(pub u64); | |
| #[repr(transparent)] | |
| pub struct NonZeroAddress(pub NonZeroU64); | |
| #[repr(transparent)] | |
| pub struct ProcessId(NonZeroU64); | |
| #[repr(transparent)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #![feature(let_else)] | |
| #![no_std] | |
| use core::{fmt, mem}; | |
| use bytemuck::{Pod, Zeroable}; | |
| #[derive(Debug, Copy, Clone, Pod, Zeroable)] | |
| #[repr(C)] | |
| pub struct Header { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using LiveSplitCore; | |
| using System; | |
| using System.IO; | |
| public class LS : MonoBehaviour | |
| { | |
| Timer timer; | |
| Layout layout; | |
| LayoutState layoutState; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] | |
| use std::{ | |
| io::Cursor, | |
| sync::{Arc, RwLock}, | |
| time::{Duration, Instant}, | |
| }; | |
| use minifb::{Key, KeyRepeat, ScaleMode, Window, WindowOptions}; | |
| use rustybuzz::UnicodeBuffer; |