comparison test/suite/mkcase.py @ 484:74a4f682d1ef

- improved comment
author Tassilo Philipp
date Thu, 17 Mar 2022 15:36:24 +0100
parents 3e629dc19168
children
comparison
equal deleted inserted replaced
483:08b0c420ddff 484:74a4f682d1ef
22 22
23 # parameters 23 # parameters
24 24
25 nargs = 8 25 nargs = 8
26 26
27 #TODO: enable all types. temporary disabled for debuggin sparc64. 27 # NOTE: not really feasible to enable all types, results in a huge number of
28 types = ["DCdouble","DClonglong"]#,"DCint","DCpointer","DCbool"]#,"DCfloat"] 28 # cases; use other *_suite tests when needing to test many different types
29 typeSigs = ["d" ,"l" ]#,"i" ,"p" ,"B" ]#,"f" ] 29 types = ["DCdouble","DClonglong","DCint","DCpointer"] #...
30 typeSigs = ["d" ,"l" ,"i" ,"p" ] #...
30 31
31 # generator 32 # generator
32 33
33 ntypes = len(types) 34 ntypes = len(types)
34 35
52 sig = ["f_"] 53 sig = ["f_"]
53 pos = 0 54 pos = 0
54 y = x 55 y = x
55 while y > 0: 56 while y > 0:
56 s = (y-1) % ntypes 57 s = (y-1) % ntypes
57 y = (y-1) / ntypes 58 y = int((y-1) / ntypes)
58 args += [ types [s] ] 59 args += [ types [s] ]
59 sig += [ typeSigs[s] ] 60 sig += [ typeSigs[s] ]
60 pos += 1 61 pos += 1
61 sig = "".join(sig) 62 sig = "".join(sig)
62 args += [ sig ] 63 args += [ sig ]