summaryrefslogtreecommitdiff
path: root/test/data/parse/makefixed.pl
blob: 712784f65dafd25a65ec59bdef4c2ffe81c9722e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl

use warnings;
use strict;

die "Usage: makefixed.pl <value>\n" if (@ARGV != 1);

my $val = shift @ARGV;

printf("0x%.8x\n", $val * (1 << 10));