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
// IDC script for identifying functions and such | |
#include <idc.idc> | |
#define RenameFunction(a, b) Message("Found %s at %a\r\n", b, a); MakeName(a, b) | |
#define START_ADDR 0x00400000 | |
static main() { | |
auto addr = BADADDR; | |
auto onMovePacket = FindAoBAndRename("25 0C FE FF FF 05 E8 03", "?OnMovePacket@CMovePath@@QAEXAAVCInPacket@@H@Z"); |
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
// reNX is copyright angelsl, 2011 to 2012 inclusive. | |
// | |
// This file is part of reNX. | |
// | |
// reNX 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. | |
// | |
// reNX is distributed in the hope that it will be useful, |
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
import Foundation | |
while let line: String = readLine() { | |
print(processInput(line)) | |
} | |
func processInput(_ line: String) -> String { | |
let components = line.components(separatedBy: ";") | |
guard components.count == 2, | |
let price = Float(components[0]), |
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
// | |
// DarwinNotificationCenter.swift | |
// | |
// Copyright © 2017 WeTransfer. All rights reserved. | |
// | |
import Foundation | |
/// A Darwin notification payload. It does not contain any userInfo, a Darwin notification is purely event handling. | |
public struct DarwinNotification { |
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
package main | |
import ( | |
"bufio" | |
"bytes" | |
"encoding/binary" | |
"encoding/hex" | |
"flag" | |
"fmt" | |
"net" |
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
From a2e3e205250b3f0eddf06e5b0bc3c45231b85350 Mon Sep 17 00:00:00 2001 | |
From: Alsey Coleman Miller <[email protected]> | |
Date: Thu, 3 Nov 2022 00:27:15 -0700 | |
Subject: [PATCH 1/1] [stdlib] Add RISCV64 support | |
--- | |
CMakeLists.txt | 2 ++ | |
cmake/modules/SwiftConfigureSDK.cmake | 2 +- | |
cmake/modules/SwiftSetIfArchBitness.cmake | 3 ++- | |
lib/Basic/LangOptions.cpp | 5 +++++ |
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
diff --git a/include/swift/Runtime/AtomicWaitQueue.h b/include/swift/Runtime/AtomicWaitQueue.h | |
index 9fdd9288fe2..0985067828b 100644 | |
--- a/include/swift/Runtime/AtomicWaitQueue.h | |
+++ b/include/swift/Runtime/AtomicWaitQueue.h | |
@@ -19,6 +19,8 @@ | |
#ifndef SWIFT_RUNTIME_ATOMICWAITQUEUE_H | |
#define SWIFT_RUNTIME_ATOMICWAITQUEUE_H | |
+#include "swift/Runtime/Heap.h" | |
+#include "swift/Runtime/HeapObject.h" |
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
#!/bin/sh | |
# Configuration | |
SWIFT_BUILD_MODE="${SWIFT_BUILD_MODE:=release}" | |
# exit for failures | |
set -e | |
# build swift package | |
echo "Build Swift Package" |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Buildroot -g4176269-dirty Configuration | |
# | |
BR2_HAVE_DOT_CONFIG=y | |
BR2_EXTERNAL_SwiftPackage_PATH="/home/coleman/Developer/swift-cross-compile-action" | |
BR2_HOST_GCC_AT_LEAST_4_9=y | |
BR2_HOST_GCC_AT_LEAST_5=y | |
BR2_HOST_GCC_AT_LEAST_6=y | |
BR2_HOST_GCC_AT_LEAST_7=y |
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
diff --git a/stdlib/public/runtime/Float16Support.cpp b/stdlib/public/runtime/Float16Support.cpp | |
index 817739d4cdf..b1896a4e364 100644 | |
--- a/stdlib/public/runtime/Float16Support.cpp | |
+++ b/stdlib/public/runtime/Float16Support.cpp | |
@@ -29,7 +29,7 @@ | |
// Android NDK <r21 do not provide `__aeabi_d2h` in the compiler runtime, | |
// provide shims in that case. | |
-#if (defined(__ANDROID__) && defined(__ARM_ARCH_7A__) && defined(__ARM_EABI__)) || \ | |
+#if ((defined(__ANDROID__) || defined(__linux__)) && defined(__arm__)) || \ |
NewerOlder