MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / BigEndianTest

Method BigEndianTest

examples/cpp/xlnet/cnpy.cpp:16–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include <stdint.h>
15
16char cnpy::BigEndianTest()
17{
18 int x = 1;
19 return (((char*)&x)[0]) ? '<' : '>';
20}
21
22char cnpy::map_type(const std::type_info& t)
23{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected