ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Macro.h File Reference
#include <cassert>
#include <cstdint>

Go to the source code of this file.

Macros

#define DCHECK(condition)   assert((condition))
 
#define DCHECK_EQ(x, y)   assert((x) == (y))
 
#define DCHECK_GE(x, y)   assert((x) >= (y))
 
#define DCHECK_GT(x, y)   assert((x) > (y))
 
#define DCHECK_LE(x, y)   assert((x) <= (y))
 
#define DCHECK_LT(x, y)   assert((x) < (y))
 
#define CHECK_EQ(x, y)   assert((x) == (y))
 

Typedefs

using uint8 = std::uint8_t
 
using int16 = std::int16_t
 
using uint16 = std::uint16_t
 
using int32 = std::int32_t
 
using uint32 = std::uint32_t
 

Macro Definition Documentation

◆ CHECK_EQ

#define CHECK_EQ (   x,
 
)    assert((x) == (y))

Definition at line 49 of file Macro.h.

◆ DCHECK

#define DCHECK (   condition)    assert((condition))

Definition at line 25 of file Macro.h.

◆ DCHECK_EQ

#define DCHECK_EQ (   x,
 
)    assert((x) == (y))

Definition at line 29 of file Macro.h.

◆ DCHECK_GE

#define DCHECK_GE (   x,
 
)    assert((x) >= (y))

Definition at line 33 of file Macro.h.

◆ DCHECK_GT

#define DCHECK_GT (   x,
 
)    assert((x) > (y))

Definition at line 37 of file Macro.h.

◆ DCHECK_LE

#define DCHECK_LE (   x,
 
)    assert((x) <= (y))

Definition at line 41 of file Macro.h.

◆ DCHECK_LT

#define DCHECK_LT (   x,
 
)    assert((x) < (y))

Definition at line 45 of file Macro.h.

Typedef Documentation

◆ int16

using int16 = std::int16_t

Definition at line 53 of file Macro.h.

◆ int32

using int32 = std::int32_t

Definition at line 55 of file Macro.h.

◆ uint16

using uint16 = std::uint16_t

Definition at line 54 of file Macro.h.

◆ uint32

using uint32 = std::uint32_t

Definition at line 56 of file Macro.h.

◆ uint8

using uint8 = std::uint8_t

Definition at line 52 of file Macro.h.