MLIR 22.0.0git
Float16bits.h File Reference
#include <cstdint>
#include <iostream>

Go to the source code of this file.

Classes

struct  f16
struct  bf16

Macros

#define MLIR_FLOAT16_EXPORT   __attribute__((visibility("default")))
#define MLIR_FLOAT16_DEFINE_FUNCTIONS

Functions

MLIR_FLOAT16_EXPORT std::ostream & operator<< (std::ostream &os, const f16 &f)
MLIR_FLOAT16_EXPORT std::ostream & operator<< (std::ostream &os, const bf16 &d)
MLIR_FLOAT16_EXPORT bool operator== (const f16 &f1, const f16 &f2)
MLIR_FLOAT16_EXPORT bool operator== (const bf16 &bf1, const bf16 &bf2)
MLIR_FLOAT16_EXPORT void printF16 (uint16_t bits)
MLIR_FLOAT16_EXPORT void printBF16 (uint16_t bits)

Macro Definition Documentation

◆ MLIR_FLOAT16_DEFINE_FUNCTIONS

#define MLIR_FLOAT16_DEFINE_FUNCTIONS

Definition at line 29 of file Float16bits.h.

◆ MLIR_FLOAT16_EXPORT

#define MLIR_FLOAT16_EXPORT   __attribute__((visibility("default")))

Definition at line 28 of file Float16bits.h.

Referenced by operator<<(), operator<<(), operator==(), operator==(), printBF16(), and printF16().

Function Documentation

◆ operator<<() [1/2]

MLIR_FLOAT16_EXPORT std::ostream & operator<< ( std::ostream & os,
const bf16 & d )

References MLIR_FLOAT16_EXPORT.

◆ operator<<() [2/2]

MLIR_FLOAT16_EXPORT std::ostream & operator<< ( std::ostream & os,
const f16 & f )

References MLIR_FLOAT16_EXPORT.

◆ operator==() [1/2]

MLIR_FLOAT16_EXPORT bool operator== ( const bf16 & bf1,
const bf16 & bf2 )

References MLIR_FLOAT16_EXPORT.

◆ operator==() [2/2]

MLIR_FLOAT16_EXPORT bool operator== ( const f16 & f1,
const f16 & f2 )

References MLIR_FLOAT16_EXPORT.

◆ printBF16()

MLIR_FLOAT16_EXPORT void printBF16 ( uint16_t bits)

References MLIR_FLOAT16_EXPORT.

◆ printF16()

MLIR_FLOAT16_EXPORT void printF16 ( uint16_t bits)

References MLIR_FLOAT16_EXPORT.