aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Structure/Instructions/Instrs/Numeric/F64Const.php
blob: f6a07d1dfe3ab0a89bc5365e949a8c9779245525 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

declare(strict_types=1);

namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instrs\Numeric;

use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr;

final readonly class F64Const extends Instr
{
    /**
     * @param F64 $value
     */
    protected function __construct(
        public float $value,
    ) {
    }

    public static function opName(): string
    {
        return 'f64.const';
    }
}