MLIR  20.0.0git
Classes | Macros | Functions
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.

Function Documentation

◆ operator<<() [1/2]

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

◆ operator<<() [2/2]

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

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ printBF16()

MLIR_FLOAT16_EXPORT void printBF16 ( uint16_t  bits)

◆ printF16()

MLIR_FLOAT16_EXPORT void printF16 ( uint16_t  bits)