From 0b84fa9cc67593667002d7e7953d90400a66ac09 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 15 Nov 2020 10:51:40 +0000 Subject: bytecode: Change unit representation, so that length has a bit set. This means that we can use a mask to check the unit class. --- docs/Bytecode | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs') diff --git a/docs/Bytecode b/docs/Bytecode index dd0f424..880ccbd 100644 --- a/docs/Bytecode +++ b/docs/Bytecode @@ -33,7 +33,7 @@ The table is found in the stylesheet object. CSS dimensions are stored as two 32bit values: . Length is a 32bit numeric value (as described above) and unit is as follows: - bit 8 clear => length unit + bit 8 set => length unit bits 9-31: MBZ bits 0-7 : 00000000 => px @@ -58,11 +58,11 @@ Length is a 32bit numeric value (as described above) and unit is as follows: 00010011 => vmax 00010100 => q - bit 8 set => percentage unit + bit 9 set => percentage unit bits 9-31: MBZ bits 0-7 : MBZ - bit 9 set => angle unit + bit 10 set => angle unit bits 10-31: MBZ bit 8 : MBZ bits 0-7 : @@ -71,21 +71,21 @@ Length is a 32bit numeric value (as described above) and unit is as follows: 00000010 => rad 00000011 => turn - bit 10 set => time unit + bit 11 set => time unit bits 11-31: MBZ bits 8-9 : MBZ bits 0-7 : 00000000 => ms 00000001 => s - bit 11 set => frequency unit + bit 12 set => frequency unit bits 12-31: MBZ bits 8-10 : MBZ bits 0-7 : 00000000 => Hz 00000001 => kHz - bit 12 set => resolution unit + bit 13 set => resolution unit bits 13-31: MBZ bits 8-11 : MBZ bits 0-7 : -- cgit v1.2.3