blob: 9c546d7184d83e9a0e14f1597857d8e93ce4adab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# make sure the local symbols used for
# fp constants do not get a _ prefix
# on apple arm hardware
export function w $main() {
@start
%r =d copy d_1.2
%x =w call $printf(l $fmt, ..., d %r)
ret 0
}
data $fmt = { b "%.06f\n", b 0 }
# >>> output
# 1.200000
# <<<
|