ptx_parser/unparser/instruction/
rsqrt_approx_ftz_f64.rs1#![allow(unused)]
6
7use crate::lexer::PtxToken;
8use crate::unparser::{PtxUnparser, common::*};
9
10pub mod section_0 {
11 use super::*;
12 use crate::r#type::instruction::rsqrt_approx_ftz_f64::section_0::*;
13
14 impl PtxUnparser for RsqrtApproxFtzF64 {
15 fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
16 self.unparse_tokens_mode(tokens, false);
17 }
18 fn unparse_tokens_mode(&self, tokens: &mut ::std::vec::Vec<PtxToken>, spaced: bool) {
19 push_opcode(tokens, "rsqrt");
20 push_directive(tokens, "approx");
21 push_directive(tokens, "ftz");
22 push_directive(tokens, "f64");
23 if spaced {
24 tokens.push(PtxToken::Space);
25 }
26 self.d.unparse_tokens_mode(tokens, spaced);
27 tokens.push(PtxToken::Comma);
28 if spaced {
29 tokens.push(PtxToken::Space);
30 }
31 self.a.unparse_tokens_mode(tokens, spaced);
32 tokens.push(PtxToken::Semicolon);
33 if spaced {
34 tokens.push(PtxToken::Newline);
35 }
36 }
37 }
38}