Commit 862ea508 authored by ROOL's avatar ROOL 🤖
Browse files

Switch to integer implementation

Detail:
  The dynamic range of the values being computed easily fit within integer types, so use these instead of doubles. This makes ScrModes independent of its position in intialisation with respect to FPEmulator once more, and saves 1k of code space too.
  Functions generate_mode_using_gtf(), generate_mode_using_cvt_rb(), generate_cvt3_timing() affected.
Admin:
  Test added to brute force compare float and fixed point results.
  Submission for the EDID bounty.

Version 0.55. Tagged as 'ScrModes-0_55'
parent b2421153
/* (0.54)
/* (0.55)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.54
#define Module_MajorVersion_CMHG 0.55
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 14 May 2016
#define Module_Date_CMHG 30 Jul 2016
#define Module_MajorVersion "0.54"
#define Module_Version 54
#define Module_MajorVersion "0.55"
#define Module_Version 55
#define Module_MinorVersion ""
#define Module_Date "14 May 2016"
#define Module_Date "30 Jul 2016"
#define Module_ApplicationDate "14-May-16"
#define Module_ApplicationDate "30-Jul-16"
#define Module_ComponentName "ScrModes"
#define Module_ComponentPath "castle/RiscOS/Sources/Video/UserI/ScrModes"
#define Module_FullVersion "0.54"
#define Module_HelpVersion "0.54 (14 May 2016)"
#define Module_LibraryVersionInfo "0:54"
#define Module_FullVersion "0.55"
#define Module_HelpVersion "0.55 (30 Jul 2016)"
#define Module_LibraryVersionInfo "0:55"
This diff is collapsed.
This diff is collapsed.
......@@ -165,6 +165,8 @@ typedef struct
#define IS_MODE_SEL_PTR(p) (!IS_MODE_NUMBER(p))
#define UNUSED(k) ((k)=(k))
#define MODESEL(p) ((ModeSelectorRef)(p))
#define MAX(a,b) (((a)<(b))?(b):(a))
#define MIN(a,b) (((a)>(b))?(b):(a))
/*
* Monitor & modes description as loaded from ModeInfo file: note,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment