MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / mode

Function mode

test/core/test_rounding.c:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include <fenv.h>
11
12const char *mode(int mode)
13{
14 switch(mode)
15 {
16 case FE_DOWNWARD: return "FE_DOWNWARD";
17 case FE_TONEAREST: return "FE_TONEAREST";
18 case FE_TOWARDZERO: return "FE_TOWARDZERO";
19 case FE_UPWARD: return "FE_UPWARD";
20 default: return "Unknown";
21 }
22}
23
24#define NUMELEMS(x) (sizeof((x)) / sizeof((x)[0]))
25

Callers 3

mainFunction · 0.85
int_types.hFile · 0.85
emutls.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected