• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
        • Atj
        • Aij
        • Language
          • Syntax
          • Semantics
            • Primitive-function-macros
              • Def-primitive-binary
              • Def-primitive-unary
              • Primitive-type-destructor
              • Primitive-type-predicate
              • Primitive-type-constructor
              • Def-long=>boolean-binary
              • Def-int=>boolean-binary
              • Def-int-binary
              • Def-float=>boolean-binary
              • Def-double=>boolean-binary
              • Def-long-binary
              • Def-float-binary
                • Def-double-binary
                • Def-boolean-binary
                • Def-long-unary
                • Def-int-unary
                • Def-float-unary
                • Def-double-unary
                • Def-boolean-unary
              • Primitive-values
              • Floating-point-placeholders
              • Pointers
              • Floating-point-value-set-parameters
              • Values
              • Primitive-operations
              • Primitive-conversions
              • Reference-values
        • Taspi
        • Riscv
        • Bitcoin
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Primitive-function-macros

    Def-float-binary

    Specialization of def-primitive-binary to the case in which input and output types are float.

    Macro: def-float-binary

    (defmacro def-float-binary
              (name &key
                    operation commutative commutative-hints
                    (parents 'nil parents-suppliedp)
                    (short 'nil short-suppliedp)
                    (long 'nil long-suppliedp))
     (cons
      'def-primitive-binary
      (cons
       name
       (cons
        ':in-type-left
        (cons
         '(primitive-type-float)
         (cons
          ':in-type-right
          (cons
           '(primitive-type-float)
           (cons
            ':out-type
            (cons
             '(primitive-type-float)
             (cons
              ':operation
              (cons
               operation
               (cons
                ':commutative
                (cons
                 commutative
                 (cons
                  ':commutative-hints
                  (cons
                   commutative-hints
                   (append
                       (and parents-suppliedp
                            (list :parents parents))
                       (append (and short-suppliedp (list :short short))
                               (and long-suppliedp
                                    (list :long long)))))))))))))))))))