From ff49ea030a789a629d6f57157827d964b156edb6 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 16 Jan 2009 12:10:02 +0000 Subject: Manufacture fixed point values from floats svn path=/trunk/libcss/; revision=6076 --- test/data/parse/makefixed.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 test/data/parse/makefixed.pl (limited to 'test/data/parse') diff --git a/test/data/parse/makefixed.pl b/test/data/parse/makefixed.pl new file mode 100755 index 0000000..712784f --- /dev/null +++ b/test/data/parse/makefixed.pl @@ -0,0 +1,11 @@ +#!/usr/bin/perl + +use warnings; +use strict; + +die "Usage: makefixed.pl \n" if (@ARGV != 1); + +my $val = shift @ARGV; + +printf("0x%.8x\n", $val * (1 << 10)); + -- cgit v1.2.3