MCPcopy Create free account
hub / github.com/numpy/numpy / _selected_int_kind_func

Function _selected_int_kind_func

numpy/f2py/crackfortran.py:2445–2458  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

2443
2444
2445def _selected_int_kind_func(r):
2446 # XXX: This should be processor dependent
2447 m = 10 ** r
2448 if m <= 2 ** 8:
2449 return 1
2450 if m <= 2 ** 16:
2451 return 2
2452 if m <= 2 ** 32:
2453 return 4
2454 if m <= 2 ** 63:
2455 return 8
2456 if m <= 2 ** 128:
2457 return 16
2458 return -1
2459
2460
2461def _selected_real_kind_func(p, r=0, radix=0):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected