From b10f51345ae191c2970d53be21f9c1179704a0a6 Mon Sep 17 00:00:00 2001 From: Rikard Nordgren Date: Thu, 9 Apr 2026 21:41:38 +0200 Subject: [PATCH] Add time conversion table --- .../math_consts/bf3a.table_time_conversion.s | 20 +++++++++++++++++++ tools/similarity.c | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/basic/math_consts/bf3a.table_time_conversion.s diff --git a/src/basic/math_consts/bf3a.table_time_conversion.s b/src/basic/math_consts/bf3a.table_time_conversion.s new file mode 100644 index 00000000..1a23b673 --- /dev/null +++ b/src/basic/math_consts/bf3a.table_time_conversion.s @@ -0,0 +1,20 @@ +;; #LAYOUT# STD * #TAKE +;; #LAYOUT# X16 BASIC_0 #TAKE-OFFSET 2000 +;; #LAYOUT# * BASIC_0 #TAKE +;; #LAYOUT# * * #IGNORE + +; This file is under the MIT license, it contains code released by Microsoft Corporation. +; See LICENSE for more information. + +; Math package - time conversion table +; +; This is verified to be identical to the original Microsoft implementation + + + !be32 -2160000 + !be32 216000 + !be32 -36000 + !be32 3600 + !be32 -600 + !be32 60 +TIMEND: diff --git a/tools/similarity.c b/tools/similarity.c index 90f262be..fe1a7e05 100644 --- a/tools/similarity.c +++ b/tools/similarity.c @@ -29,7 +29,7 @@ unsigned short microsoft_basic_chunks[NUM_CHUNKS * 2] = { 0xB983, 0xB9BB, 0xBA28, 0xBCF2, 0xBD7E, 0xBD90, - 0xBF11, 0xBF39, + 0xBF11, 0xBF51, 0xBFB4, 0xBFBE, };